]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authorstv <stv@opencascade.com>
Wed, 1 Jun 2005 06:44:56 +0000 (06:44 +0000)
committerstv <stv@opencascade.com>
Wed, 1 Jun 2005 06:44:56 +0000 (06:44 +0000)
src/SVTK/SVTK_ViewManager.cxx
src/SVTK/SVTK_ViewManager.h

index dd4e33e400daa61592a57fe6e4f7cc752fdae55b..25fcbdfd6ecde9ad034ff592b538c2114fc3e6ae 100644 (file)
@@ -1,26 +1,27 @@
 #include "SVTK_ViewManager.h"
 #include "SVTK_ViewModel.h"
 
+#include <VTKViewer_ViewManager.h>
+
+int SVTK_ViewManager::_SVTKViewMgr_Id = 0;
+
 //***************************************************************
-SVTK_ViewManager
-::SVTK_ViewManager( SUIT_Study* study, 
+SVTK_ViewManager::SVTK_ViewManager( SUIT_Study* study, 
                    SUIT_Desktop* theDesktop ) 
 : SUIT_ViewManager( study, theDesktop )
 {
+  myId = ++_SVTKViewMgr_Id;
   setViewModel( new SVTK_Viewer() );
 }
 
 //***************************************************************
-SVTK_ViewManager
-::~SVTK_ViewManager()
+SVTK_ViewManager::~SVTK_ViewManager()
 {
 }
 
 //***************************************************************
-void 
-SVTK_ViewManager
-::setViewName(SUIT_ViewWindow* theView)
+void SVTK_ViewManager::setViewName(SUIT_ViewWindow* theView)
 {
   int aPos = myViews.find(theView);
-  theView->setCaption( QString( "VTK viewer:%1" ).arg(aPos+1));
+  theView->setCaption( VTKViewer_ViewManager::tr( "VTK_VIEW_TITLE" ).arg( myId ).arg( aPos + 1 ) );
 }
index f32057680d73d9e41bb876f68b2fb1cd1165fdb5..e6fa784f959ceac247a33279428e650e7430a1c2 100644 (file)
@@ -16,6 +16,10 @@ public:
 
 protected:
   void setViewName( SUIT_ViewWindow* theView );
+
+private:
+  int               myId;
+  static  int       _SVTKViewMgr_Id;
 };
 
 #endif