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 );
39 bool eventFilter(QObject* watched, QEvent* e);
45 void onChangeHorMode();
46 void onChangeVerMode();
47 void onChangeCurveMode();
48 void onChangeLegendMode();
55 void onGlobalPanning();
65 enum { DumpId, FitAllId, FitRectId, ZoomId, PanId, GlobalPanId, HorId,
66 VerId, LegendId, CurvPointsId, CurvLinesId, CurvSplinesId, CurvSettingsId, CloneId,
67 PModeXLinearId, PModeXLogarithmicId, PModeYLinearId, PModeYLogarithmicId };
68 typedef QMap<int, QtxAction*> ActionsMap;
69 ActionsMap myActionsMap;
72 Plot2d_Viewer* myModel;
73 Plot2d_ViewFrame* myViewFrame;
76 SUIT_ToolButton* myCurveBtn;
80 #pragma warning( default:4251 )