From a7ea2c1ebe303ddbabf9a73b6123e909fb6b78a5 Mon Sep 17 00:00:00 2001 From: mkr Date: Thu, 2 Jun 2005 09:53:53 +0000 Subject: [PATCH] *** empty log message *** --- src/SUPERVGraph/SUPERVGraph_ViewManager.cxx | 5 ++++- src/SUPERVGraph/SUPERVGraph_ViewManager.h | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 -- 2.39.2