1 #ifndef PLOT2D_VIEWWINDOW_H
2 #define PLOT2D_VIEWWINDOW_H
6 #include "Plot2d_ViewModel.h"
7 #include "Plot2d_ViewFrame.h"
9 #include <SUIT_Desktop.h>
10 #include <SUIT_ViewWindow.h>
11 #include <SUIT_ToolButton.h>
13 #include <QtxAction.h>
18 #include <qpopupmenu.h>
21 #pragma warning( disable:4251 )
24 class PLOT2D_EXPORT Plot2d_ViewWindow : public SUIT_ViewWindow
29 Plot2d_ViewWindow( SUIT_Desktop* theDesktop, Plot2d_Viewer* theModel );
30 virtual ~Plot2d_ViewWindow();
32 Plot2d_Viewer* getModel() { return myModel; }
33 void putInfo(QString theMsg);
34 Plot2d_ViewFrame* getViewFrame() { return myViewFrame; };
35 QToolBar* getToolBar() { return myToolBar; };
36 void contextMenuPopup( QPopupMenu* thePopup );
42 bool eventFilter(QObject* watched, QEvent* e);
48 void onChangeHorMode();
49 void onChangeVerMode();
50 void onChangeCurveMode();
51 void onChangeLegendMode();
57 void onGlobalPanning();
69 enum { DumpId, FitAllId, FitRectId, ZoomId, PanId, GlobalPanId, HorId,
70 VerId, LegendId, CurvPointsId, CurvLinesId, CurvSplinesId, CurvSettingsId, CloneId,
71 PModeXLinearId, PModeXLogarithmicId, PModeYLinearId, PModeYLogarithmicId };
72 typedef QMap<int, QtxAction*> ActionsMap;
73 ActionsMap myActionsMap;
76 Plot2d_Viewer* myModel;
77 Plot2d_ViewFrame* myViewFrame;
80 SUIT_ToolButton* myCurveBtn;
84 #pragma warning( default:4251 )