Salome HOME
Property "isOpen" property added.
[modules/gui.git] / src / SUPERVGraph / SUPERVGraph_ViewManager.cxx
index a1a486518d8d1ff6fc06ff9cb91736896203fbd2..67686ff023c4da236b26d4c95efa4e8848ccd1e3 100644 (file)
@@ -1,10 +1,13 @@
 #include "SUPERVGraph_ViewManager.h"
 
+int SUPERVGraph_ViewManager::myMaxId = 0;
+
 SUPERVGraph_ViewManager::SUPERVGraph_ViewManager( SUIT_Study* theStudy, 
                                                  SUIT_Desktop* theDesktop, 
                                                  SUIT_ViewModel* theViewModel )
   : SUIT_ViewManager( theStudy, theDesktop, theViewModel )
 {
+  myId = ++myMaxId;
 }
 
 SUPERVGraph_ViewManager::~SUPERVGraph_ViewManager()
@@ -14,7 +17,7 @@ SUPERVGraph_ViewManager::~SUPERVGraph_ViewManager()
 void SUPERVGraph_ViewManager::setViewName(SUIT_ViewWindow* theView)
 {
   int aPos = myViews.find(theView);
-  theView->setCaption( QString( "SUPERVISION  - viewer:%1" ).arg(aPos+1));
+  theView->setCaption( QString( "SUPERVISION  scene:%1 - viewer:%2" ).arg( myId ).arg(aPos+1));
 }
 
 void SUPERVGraph_ViewManager::contextMenuPopup( QPopupMenu* thePopup)