1 #include "OCCViewer_ViewManager.h"
2 #include "OCCViewer_ViewWindow.h"
3 #include "SUIT_Desktop.h"
5 int OCCViewer_ViewManager::myMaxId = 0;
7 //***************************************************************
8 OCCViewer_ViewManager::OCCViewer_ViewManager( SUIT_Study* study, SUIT_Desktop* theDesktop, bool DisplayTrihedron )
9 : SUIT_ViewManager( study, theDesktop )
12 setViewModel( new OCCViewer_Viewer( DisplayTrihedron ) );
15 //***************************************************************
16 OCCViewer_ViewManager::~OCCViewer_ViewManager()
20 //***************************************************************
21 void OCCViewer_ViewManager::setViewName(SUIT_ViewWindow* theView)
23 int aPos = myViews.find(theView);
24 theView->setCaption( QString( "OCC scene:%1 - viewer:%2" ).arg(myId).arg(aPos+1));
27 //***************************************************************
28 /*bool OCCViewer_ViewManager::insertView(SUIT_ViewWindow* theView)
30 bool res = SUIT_ViewManager::insertView( theView );
32 OCCViewer_ViewWindow* view = (OCCViewer_ViewWindow*)theView;
33 connect( view, SIGNAL(cloneView()), this, SLOT(createView()) );
38 //***************************************************************
39 void OCCViewer_ViewManager::contextMenuPopup( QPopupMenu* popup )
41 SUIT_ViewManager::contextMenuPopup( popup );
42 // if it is necessary invoke method CreatePopup of ViewPort
43 // be sure that existing QPopupMenu menu is used for that.