1 #ifndef PLOT2D_VIEWWINDOW_H
2 #define PLOT2D_VIEWWINDOW_H
5 #include <SUIT_ViewWindow.h>
8 #pragma warning( disable:4251 )
13 class Plot2d_ViewFrame;
15 class SUIT_ToolButton;
17 class PLOT2D_EXPORT Plot2d_ViewWindow : public SUIT_ViewWindow
22 Plot2d_ViewWindow( SUIT_Desktop* theDesktop, Plot2d_Viewer* theModel );
23 virtual ~Plot2d_ViewWindow();
25 Plot2d_Viewer* getModel() { return myModel; }
26 void putInfo(QString theMsg);
27 Plot2d_ViewFrame* getViewFrame() { return myViewFrame; };
28 QToolBar* getToolBar() { return myToolBar; };
29 void contextMenuPopup( QPopupMenu* thePopup );
35 bool eventFilter(QObject* watched, QEvent* e);
41 void onChangeHorMode();
42 void onChangeVerMode();
43 void onChangeCurveMode();
44 void onChangeLegendMode();
50 void onGlobalPanning();
62 enum { DumpId, FitAllId, FitRectId, ZoomId, PanId, GlobalPanId, HorId,
63 VerId, LegendId, CurvPointsId, CurvLinesId, CurvSplinesId, CurvSettingsId, CloneId,
64 PModeXLinearId, PModeXLogarithmicId, PModeYLinearId, PModeYLogarithmicId };
65 typedef QMap<int, QtxAction*> ActionsMap;
66 ActionsMap myActionsMap;
69 Plot2d_Viewer* myModel;
70 Plot2d_ViewFrame* myViewFrame;
73 SUIT_ToolButton* myCurveBtn;
77 #pragma warning( default:4251 )