1 #if !defined(_PLOT2D_VIEWMODEL_H)
2 #define _PLOT2D_VIEWMODEL_H
5 #include "SUIT_ViewModel.h"
6 #include "SUIT_ViewWindow.h"
7 #include "SUIT_Desktop.h"
8 #include "SUIT_ViewManager.h"
9 #include "Plot2d_Prs.h"
12 #include <qpopupmenu.h>
14 class SUIT_ViewWindow;
17 class PLOT2D_EXPORT Plot2d_Viewer: public SUIT_ViewModel
22 static QString Type() { return "Plot2d"; }
24 Plot2d_Viewer(bool theAutoDel = false);
27 virtual SUIT_ViewWindow* createView(SUIT_Desktop* theDesktop);
28 virtual QString getType() const { return Type(); }
29 virtual void contextMenuPopup(QPopupMenu*);
30 Plot2d_Prs* getPrs() const { return myPrs; };
31 void setPrs(Plot2d_Prs* thePrs);
34 void setAutoDel(bool theDel);
37 void onChangeBgColor();
46 #endif // !defined(_PLOT2D_VIEWMODEL_H)