1 // File : Plot2d_SetupViewDlg.h
2 // Created : Wed Jun 27 16:38:42 2001
3 // Author : Vadim SANDLER
6 // Copyright : Open CASCADE
9 #ifndef Plot2d_SetupViewDlg_H
10 #define Plot2d_SetupViewDlg_H
14 //=================================================================================
15 // class : Plot2d_SetupViewDlg
16 // purpose : Settings dialog for Plot2d view
17 //=================================================================================
26 class Plot2d_SetupViewDlg : public QDialog
31 Plot2d_SetupViewDlg( QWidget* parent = 0, bool showDefCheck = false );
32 ~Plot2d_SetupViewDlg();
34 void setMainTitle( bool enable, const QString& title = QString::null );
35 bool isMainTitleEnabled();
36 QString getMainTitle();
37 void setXTitle( bool enable, const QString& title = QString::null );
38 bool isXTitleEnabled();
40 void setYTitle( bool enable, const QString& title = QString::null );
41 bool isYTitleEnabled();
43 void setCurveType( const int type );
45 void setLegend( bool enable, int pos );
46 bool isLegendEnabled();
48 void setMarkerSize( const int size );
50 void setBackgroundColor( const QColor& color );
51 QColor getBackgroundColor();
52 void setMajorGrid( bool enableX, const int xdiv, bool enableY, const int divY );
53 void getMajorGrid( bool& enableX, int& xdiv, bool& enableY, int& divY );
54 void setMinorGrid( bool enableX, const int xdiv, bool enableY, const int divY );
55 void getMinorGrid( bool& enableX, int& xdiv, bool& enableY, int& divY );
56 void setScaleMode( const int xMode, const int yMode );
59 bool isSetAsDefault();
62 void onMainTitleChecked();
63 void onXTitleChecked();
64 void onYTitleChecked();
65 void onBackgroundClicked();
66 void onLegendChecked();
67 void onXGridMajorChecked();
68 void onYGridMajorChecked();
69 void onXGridMinorChecked();
70 void onYGridMinorChecked();
73 QCheckBox* myTitleCheck;
74 QLineEdit* myTitleEdit;
75 QCheckBox* myTitleXCheck;
76 QLineEdit* myTitleXEdit;
77 QCheckBox* myTitleYCheck;
78 QLineEdit* myTitleYEdit;
79 QToolButton* myBackgroundBtn;
80 QCheckBox* myXGridCheck;
81 QSpinBox* myXGridSpin;
82 QCheckBox* myYGridCheck;
83 QSpinBox* myYGridSpin;
84 QCheckBox* myXMinGridCheck;
85 QSpinBox* myXMinGridSpin;
86 QCheckBox* myYMinGridCheck;
87 QSpinBox* myYMinGridSpin;
88 QComboBox* myCurveCombo;
89 QCheckBox* myLegendCheck;
90 QComboBox* myLegendCombo;
91 QSpinBox* myMarkerSpin;
92 QComboBox* myXModeCombo;
93 QComboBox* myYModeCombo;
94 QCheckBox* myDefCheck;
97 QPushButton* myCancelBtn;
100 #endif // Plot2d_SetupViewDlg_H