From: mkr Date: Thu, 2 Jun 2005 09:53:53 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: T3_0_0_a1~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a7ea2c1ebe303ddbabf9a73b6123e909fb6b78a5;p=modules%2Fgui.git *** empty log message *** --- diff --git a/src/SUPERVGraph/SUPERVGraph_ViewManager.cxx b/src/SUPERVGraph/SUPERVGraph_ViewManager.cxx index a1a486518..67686ff02 100644 --- a/src/SUPERVGraph/SUPERVGraph_ViewManager.cxx +++ b/src/SUPERVGraph/SUPERVGraph_ViewManager.cxx @@ -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) diff --git a/src/SUPERVGraph/SUPERVGraph_ViewManager.h b/src/SUPERVGraph/SUPERVGraph_ViewManager.h index 95b87b811..57b134f34 100644 --- a/src/SUPERVGraph/SUPERVGraph_ViewManager.h +++ b/src/SUPERVGraph/SUPERVGraph_ViewManager.h @@ -20,6 +20,10 @@ public: protected: void setViewName(SUIT_ViewWindow* theView); +private: + static int myMaxId; + int myId; + }; #endif