1 #if !defined(_PLOT2D_VIEWMODEL_H)
2 #define _PLOT2D_VIEWMODEL_H
5 #include "SUIT_ViewModel.h"
9 class Plot2d_ViewFrame;
14 class PLOT2D_EXPORT Plot2d_Viewer: public SUIT_ViewModel
19 static QString Type() { return "Plot2d"; }
21 Plot2d_Viewer(bool theAutoDel = false);
24 virtual void setViewManager( SUIT_ViewManager* );
25 virtual SUIT_ViewWindow* createView(SUIT_Desktop* theDesktop);
26 virtual QString getType() const { return Type(); }
27 virtual void contextMenuPopup(QPopupMenu*);
28 Plot2d_Prs* getPrs() const { return myPrs; };
29 void setPrs(Plot2d_Prs* thePrs);
32 void setAutoDel(bool theDel);
35 void onChangeBgColor();
38 virtual void onCloneView( Plot2d_ViewFrame*, Plot2d_ViewFrame* );
45 #endif // !defined(_PLOT2D_VIEWMODEL_H)