1 #include "Plot2d_ViewManager.h"
2 #include "Plot2d_ViewModel.h"
4 int Plot2d_ViewManager::myMaxId = 0;
6 Plot2d_ViewManager::Plot2d_ViewManager( SUIT_Study* study, SUIT_Desktop* desk )
7 : SUIT_ViewManager( study, desk )
10 setViewModel( new Plot2d_Viewer() );
13 Plot2d_ViewManager::~Plot2d_ViewManager()
17 void Plot2d_ViewManager::setViewName( SUIT_ViewWindow* theView )
19 int aPos = myViews.find(theView);
20 theView->setCaption( QString( "Plot2d scene:%1 - viewer:%2" ).arg(myId).arg(aPos+1));
23 bool Plot2d_ViewManager::insertView( SUIT_ViewWindow* theView )
25 bool res = SUIT_ViewManager::insertView( theView );
28 Plot2d_ViewWindow* view = (Plot2d_ViewWindow*)theView;
29 connect( view, SIGNAL( cloneView() ), this, SLOT( createView() ) );
34 void Plot2d_ViewManager::createView()