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/ or email : webmaster.salome@opencascade.com
19 #ifndef PLOT2D_SETUPVIEWDLG_H
20 #define PLOT2D_SETUPVIEWDLG_H
32 class PLOT2D_EXPORT Plot2d_SetupViewDlg : public QDialog
37 Plot2d_SetupViewDlg( QWidget* parent = 0, bool showDefCheck = false, bool secondAxisY = false );
38 ~Plot2d_SetupViewDlg();
40 void setMainTitle( bool enable, const QString& title = QString::null );
41 bool isMainTitleEnabled();
42 QString getMainTitle();
43 void setXTitle( bool enable, const QString& title = QString::null );
44 bool isXTitleEnabled();
46 void setYTitle( bool enable, const QString& title = QString::null );
47 void setY2Title( bool enable, const QString& title = QString::null );
48 bool isYTitleEnabled();
49 bool isY2TitleEnabled();
52 void setCurveType( const int type );
54 void setLegend( bool enable, int pos );
55 bool isLegendEnabled();
57 void setMarkerSize( const int size );
59 void setBackgroundColor( const QColor& color );
60 QColor getBackgroundColor();
61 void setMajorGrid( bool enableX, const int xdiv, bool enableY, const int divY,
62 bool enableY2, const int divY2 );
63 void getMajorGrid( bool& enableX, int& xdiv, bool& enableY, int& divY,
64 bool& enableY2, int& divY2);
65 void setMinorGrid( bool enableX, const int xdiv, bool enableY, const int divY,
66 bool enableY2, const int divY2);
67 void getMinorGrid( bool& enableX, int& xdiv, bool& enableY, int& divY,
68 bool& enableY2, int& divY2);
69 void setScaleMode( const int xMode, const int yMode );
72 bool isSetAsDefault();
75 void onMainTitleChecked();
76 void onXTitleChecked();
77 void onYTitleChecked();
78 void onY2TitleChecked();
79 void onBackgroundClicked();
80 void onLegendChecked();
81 void onXGridMajorChecked();
82 void onYGridMajorChecked();
83 void onY2GridMajorChecked();
84 void onXGridMinorChecked();
85 void onYGridMinorChecked();
86 void onY2GridMinorChecked();
90 QCheckBox* myTitleCheck;
91 QLineEdit* myTitleEdit;
92 QCheckBox* myTitleXCheck;
93 QLineEdit* myTitleXEdit;
94 QCheckBox* myTitleYCheck;
95 QCheckBox* myTitleY2Check;
96 QLineEdit* myTitleYEdit;
97 QLineEdit* myTitleY2Edit;
98 QToolButton* myBackgroundBtn;
99 QCheckBox* myXGridCheck;
100 QSpinBox* myXGridSpin;
101 QCheckBox* myYGridCheck;
102 QCheckBox* myY2GridCheck;
103 QSpinBox* myYGridSpin;
104 QSpinBox* myY2GridSpin;
105 QCheckBox* myXMinGridCheck;
106 QSpinBox* myXMinGridSpin;
107 QCheckBox* myYMinGridCheck;
108 QCheckBox* myY2MinGridCheck;
109 QSpinBox* myYMinGridSpin;
110 QSpinBox* myY2MinGridSpin;
111 QComboBox* myCurveCombo;
112 QCheckBox* myLegendCheck;
113 QComboBox* myLegendCombo;
114 QSpinBox* myMarkerSpin;
115 QComboBox* myXModeCombo;
116 QComboBox* myYModeCombo;
117 QComboBox* myY2ModeCombo;
118 QCheckBox* myDefCheck;
120 QPushButton* myOkBtn;
121 QPushButton* myCancelBtn;
122 QPushButton* myHelpBtn;