#include "SPlot2d_ViewModel.h"
#include "VisuGUI_SetupPlot2dDlg.h"
#include "Plot2d_SetupCurveDlg.h"
+#include "Plot2d_ViewManager.h"
#include "OB_Browser.h"
// rename the study object
aName->SetValue(Name.latin1()); // rename the SObject
anIO->setName(Name.latin1()); // rename the InteractiveObject
+
+ ViewManagerList pvm_list;
+ getApp()->viewManagers( SPlot2d_Viewer::Type(), pvm_list );
+ for( SUIT_ViewManager* mgr = pvm_list.first(); mgr; mgr = pvm_list.next() )
+ {
+ Plot2d_ViewManager* pvm = dynamic_cast<Plot2d_ViewManager*>( mgr );
+ if( pvm )
+ {
+ SPlot2d_Viewer* pv = dynamic_cast<SPlot2d_Viewer*>( pvm->getViewModel() );
+ if( pv )
+ pv->renameAll( anIO, Name.latin1() );
+ }
+ }
+
UpdateObjBrowser(this, false);
QApplication::restoreOverrideCursor();