X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlot2d%2FPlot2d_ViewManager.cxx;h=7681bd3f2b4eeba76076ef263cb5581d7f7d6cc4;hb=f830c97c748d8f8a6a7eccc8e3a58e19066a1181;hp=405e90243b97dc2a9d4dac1a654657804154a787;hpb=da1f47b34cbb3bc5b2cff58f1091e74a696b406c;p=modules%2Fgui.git diff --git a/src/Plot2d/Plot2d_ViewManager.cxx b/src/Plot2d/Plot2d_ViewManager.cxx index 405e90243..7681bd3f2 100755 --- a/src/Plot2d/Plot2d_ViewManager.cxx +++ b/src/Plot2d/Plot2d_ViewManager.cxx @@ -20,17 +20,13 @@ #include "Plot2d_ViewModel.h" #include "Plot2d_ViewWindow.h" -int Plot2d_ViewManager::myMaxId = 0; - /*! Constructor */ Plot2d_ViewManager::Plot2d_ViewManager( SUIT_Study* study, SUIT_Desktop* desk ) -: SUIT_ViewManager( study, desk ) +: SUIT_ViewManager( study, desk, new Plot2d_Viewer() ) { - myId = ++myMaxId; - Plot2d_Viewer* v = new Plot2d_Viewer(); - setViewModel( v ); + setTitle( tr( "PLOT2D_VIEW_TITLE" ) ); } /*! @@ -48,16 +44,6 @@ Plot2d_Viewer* Plot2d_ViewManager::getPlot2dModel() const return (Plot2d_Viewer*)myViewModel; } -/*! - Sets default name of view - \param the View - view to be renamed -*/ -void Plot2d_ViewManager::setViewName( SUIT_ViewWindow* theView ) -{ - int aPos = myViews.find(theView); - theView->setCaption( QString( "Plot2d scene:%1 - viewer:%2" ).arg(myId).arg(aPos+1)); -} - /*! Adds new view \param theView - view to be added