1 // Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/
19 #ifndef PLOT2D_VIEWWINDOW_H
20 #define PLOT2D_VIEWWINDOW_H
23 #include <SUIT_ViewWindow.h>
26 #pragma warning( disable:4251 )
31 class Plot2d_ViewFrame;
33 class SUIT_ToolButton;
35 class PLOT2D_EXPORT Plot2d_ViewWindow : public SUIT_ViewWindow
40 Plot2d_ViewWindow( SUIT_Desktop* theDesktop, Plot2d_Viewer* theModel );
41 virtual ~Plot2d_ViewWindow();
43 Plot2d_Viewer* getModel() { return myModel; }
44 void putInfo(QString theMsg);
45 Plot2d_ViewFrame* getViewFrame() { return myViewFrame; };
46 QToolBar* getToolBar() { return myToolBar; };
47 void contextMenuPopup( QPopupMenu* thePopup );
50 virtual QImage dumpView();
51 virtual QString filter() const;
52 virtual bool dumpViewToFormat( const QString& fileName, const QString& format );
55 bool eventFilter(QObject* watched, QEvent* e);
61 void onChangeHorMode();
62 void onChangeVerMode();
63 void onChangeCurveMode();
64 void onChangeLegendMode();
70 void onGlobalPanning();
82 enum { DumpId, FitAllId, FitRectId, ZoomId, PanId, GlobalPanId, HorId,
83 VerId, LegendId, CurvPointsId, CurvLinesId, CurvSplinesId, CurvSettingsId, CloneId,
84 PModeXLinearId, PModeXLogarithmicId, PModeYLinearId, PModeYLogarithmicId };
85 typedef QMap<int, QtxAction*> ActionsMap;
86 ActionsMap myActionsMap;
89 Plot2d_Viewer* myModel;
90 Plot2d_ViewFrame* myViewFrame;
93 SUIT_ToolButton* myCurveBtn;
97 #pragma warning( default:4251 )