From: vsv Date: Fri, 24 Jun 2005 10:21:40 +0000 (+0000) Subject: View type definition X-Git-Tag: T3_0_0_a4~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3c530e87674c9343cc2d6ea43bd2b746e31775f3;p=modules%2Fgui.git View type definition --- diff --git a/src/Plot2d/Plot2d_ViewModel.h b/src/Plot2d/Plot2d_ViewModel.h index ab40293bd..4189f3138 100755 --- a/src/Plot2d/Plot2d_ViewModel.h +++ b/src/Plot2d/Plot2d_ViewModel.h @@ -19,7 +19,7 @@ class PLOT2D_EXPORT Plot2d_Viewer: public SUIT_ViewModel Q_OBJECT public: - static QString Type() { return tr("Plot2d_ViewModel"); } + static QString Type() { return "Plot2d"; } Plot2d_Viewer(bool theAutoDel = false); ~Plot2d_Viewer(); diff --git a/src/SPlot2d/SPlot2d_ViewModel.h b/src/SPlot2d/SPlot2d_ViewModel.h index 24a1e5e91..7003990aa 100644 --- a/src/SPlot2d/SPlot2d_ViewModel.h +++ b/src/SPlot2d/SPlot2d_ViewModel.h @@ -19,11 +19,14 @@ class SPLOT2D_EXPORT SPlot2d_Viewer : public Plot2d_Viewer, public SALOME_View Q_OBJECT public: + static QString Type() { return "Plot2d"; } + /* Construction/destruction */ SPlot2d_Viewer( bool theAutoDel = false ); virtual ~SPlot2d_Viewer(); public: + virtual QString getType() const { return Type(); } /* interactive object management */ void highlight( const Handle(SALOME_InteractiveObject)& IObject, bool highlight, bool update = true ) {}