From: stv Date: Wed, 1 Jun 2005 06:44:56 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: T3_0_0_a1~50 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5b9eeec3175e5ac384061edf5e84ea5358d8c757;p=modules%2Fgui.git *** empty log message *** --- diff --git a/src/SVTK/SVTK_ViewManager.cxx b/src/SVTK/SVTK_ViewManager.cxx index dd4e33e40..25fcbdfd6 100644 --- a/src/SVTK/SVTK_ViewManager.cxx +++ b/src/SVTK/SVTK_ViewManager.cxx @@ -1,26 +1,27 @@ #include "SVTK_ViewManager.h" #include "SVTK_ViewModel.h" +#include + +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 ) ); } diff --git a/src/SVTK/SVTK_ViewManager.h b/src/SVTK/SVTK_ViewManager.h index f32057680..e6fa784f9 100644 --- a/src/SVTK/SVTK_ViewManager.h +++ b/src/SVTK/SVTK_ViewManager.h @@ -16,6 +16,10 @@ public: protected: void setViewName( SUIT_ViewWindow* theView ); + +private: + int myId; + static int _SVTKViewMgr_Id; }; #endif