From 3c530e87674c9343cc2d6ea43bd2b746e31775f3 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 24 Jun 2005 10:21:40 +0000 Subject: [PATCH] View type definition --- src/Plot2d/Plot2d_ViewModel.h | 2 +- src/SPlot2d/SPlot2d_ViewModel.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 ) {} -- 2.39.2