X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUPERVGraph%2FSUPERVGraph_ViewManager.cxx;h=67686ff023c4da236b26d4c95efa4e8848ccd1e3;hb=95185846bd242ec044cb539f4871487ad0dd32b6;hp=a1a486518d8d1ff6fc06ff9cb91736896203fbd2;hpb=5927d3f3ff8d637067333f7bd185e9b13a0fe298;p=modules%2Fgui.git 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)