]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authormkr <mkr@opencascade.com>
Thu, 2 Jun 2005 09:53:53 +0000 (09:53 +0000)
committermkr <mkr@opencascade.com>
Thu, 2 Jun 2005 09:53:53 +0000 (09:53 +0000)
src/SUPERVGraph/SUPERVGraph_ViewManager.cxx
src/SUPERVGraph/SUPERVGraph_ViewManager.h

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)
index 95b87b811aeb1de47be16699d6b59ee53a5353ee..57b134f34629272d410fd1b5e38baf2de0b815cf 100644 (file)
@@ -20,6 +20,10 @@ public:
 protected:
   void              setViewName(SUIT_ViewWindow* theView);
 
+private:
+  static int        myMaxId;
+  int               myId;
+
 };
 
 #endif