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( tr( "OCC_VIEW_TITLE" ).arg( myId ).arg( aPos + 1 ) );
27 //***************************************************************/
28 void OCCViewer_ViewManager::contextMenuPopup( QPopupMenu* popup )
30 SUIT_ViewManager::contextMenuPopup( popup );
31 // if it is necessary invoke method CreatePopup of ViewPort
32 // be sure that existing QPopupMenu menu is used for that.