1 // Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/
19 #if !defined(_PLOT2D_VIEWMODEL_H)
20 #define _PLOT2D_VIEWMODEL_H
23 #include "SUIT_ViewModel.h"
25 class SUIT_ViewWindow;
27 class Plot2d_ViewFrame;
32 class PLOT2D_EXPORT Plot2d_Viewer: public SUIT_ViewModel
37 static QString Type() { return "Plot2d"; }
39 Plot2d_Viewer(bool theAutoDel = false);
42 virtual void setViewManager( SUIT_ViewManager* );
43 virtual SUIT_ViewWindow* createView(SUIT_Desktop* theDesktop);
44 virtual QString getType() const { return Type(); }
45 virtual void contextMenuPopup(QPopupMenu*);
46 Plot2d_Prs* getPrs() const { return myPrs; };
47 void setPrs(Plot2d_Prs* thePrs);
50 void setAutoDel(bool theDel);
53 void onChangeBgColor();
56 virtual void onCloneView( Plot2d_ViewFrame*, Plot2d_ViewFrame* );
63 #endif // !defined(_PLOT2D_VIEWMODEL_H)