void OCCViewer_ViewManager::setViewName(SUIT_ViewWindow* theView)
{
int aPos = myViews.find(theView);
- theView->setCaption( QString( "OCC scene:%1 - viewer:%2" ).arg(myId).arg(aPos+1));
+ theView->setCaption( tr( "OCC_VIEW_TITLE" ).arg( myId ).arg( aPos + 1 ) );
}
//***************************************************************/
#include "VTKViewer_ViewManager.h"
#include "VTKViewer_ViewModel.h"
+int VTKViewer_ViewManager::_VTKViewMgr_Id = 0;
+
//***************************************************************
VTKViewer_ViewManager::VTKViewer_ViewManager( SUIT_Study* study, SUIT_Desktop* theDesktop )
: SUIT_ViewManager( study, theDesktop )
{
+ myId = ++_VTKViewMgr_Id;
setViewModel( new VTKViewer_Viewer() );
}
void VTKViewer_ViewManager::setViewName(SUIT_ViewWindow* theView)
{
int aPos = myViews.find(theView);
- theView->setCaption( QString( "VTK viewer:%1" ).arg(aPos+1));
+ theView->setCaption( tr( "VTK_VIEW_TITLE" ).arg( myId ).arg( aPos + 1 ) );
}