Version: 9.16.0
Plot2d_SetupViewDlg.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Lesser General Public
8// License as published by the Free Software Foundation; either
9// version 2.1 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19//
20// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21//
22
23// File : Plot2d_SetupViewDlg.cxx
24// Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
25//
26#ifndef PLOT2D_SETUPVIEWDLG_H
27#define PLOT2D_SETUPVIEWDLG_H
28
29#include "Plot2d.h"
30
31#include <QDialog>
32
33class QSpinBox;
34class QCheckBox;
35class QLineEdit;
36class QComboBox;
37class QPushButton;
38class QtxColorButton;
39class QtxFontEdit;
40
42{
43 Q_OBJECT
44
45public:
46 Plot2d_SetupViewDlg( QWidget* = 0, bool = false, bool = false );
48
49 void setMainTitle( bool, const QString& = QString() );
50 bool isMainTitleEnabled();
51 QString getMainTitle();
52
53 void setXTitle( bool, const QString& = QString() );
54 bool isXTitleEnabled();
55 QString getXTitle();
56
57 void setYTitle( bool, const QString& = QString() );
58 void setY2Title( bool, const QString& = QString() );
59 bool isYTitleEnabled();
60 bool isY2TitleEnabled();
61 QString getYTitle();
62 QString getY2Title();
63
64 void setCurveType( const int );
65 int getCurveType();
66
67 bool getLMaxNormMode();
68 void setLMaxNormMode(const bool);
69 bool getLMinNormMode();
70 void setLMinNormMode(const bool);
71 bool getRMaxNormMode();
72 void setRMaxNormMode(const bool);
73 bool getRMinNormMode();
74 void setRMinNormMode(const bool);
75
76 void setLegend( bool, int, int, const QFont&, const QColor&, const QColor& );
77 bool isLegendEnabled();
78 int getLegendPos();
79 int getLegendSymbolType();
80 QFont getLegendFont();
81 QColor getLegendColor();
82 QColor getSelectedLegendColor();
83
84 void setMarkerSize( const int );
85 int getMarkerSize();
86
87 void setBackgroundColor( const QColor& );
88 QColor getBackgroundColor();
89
90 void setSelectionColor( const QColor& );
91 QColor getSelectionColor();
92
93 void setMajorGrid( bool, const int, bool, const int, bool, const int );
94 void getMajorGrid( bool&, int&, bool&, int&, bool&, int& );
95 void setMinorGrid( bool, const int, bool, const int, bool, const int );
96 void getMinorGrid( bool&, int&, bool&, int&, bool&, int& );
97
98 void setScaleMode( const int, const int );
99 int getXScaleMode();
100 int getYScaleMode();
101
102 void setDeviationMarkerLw( const int);
103 int getDeviationMarkerLw() const;
104
105 void setDeviationMarkerTs( const int);
106 int getDeviationMarkerTs() const;
107
108 void setDeviationMarkerCl( const QColor&);
109 QColor getDeviationMarkerCl() const;
110
111 bool isSetAsDefault();
112
113protected slots:
114 void onMainTitleChecked();
115 void onXTitleChecked();
116 void onYTitleChecked();
117 void onY2TitleChecked();
118 void onLegendChecked();
119 void onXGridMajorChecked();
120 void onYGridMajorChecked();
121 void onY2GridMajorChecked();
122 void onXGridMinorChecked();
123 void onYGridMinorChecked();
124 void onY2GridMinorChecked();
125 void onNormLMaxChecked();
126 void onNormLMinChecked();
127 void onNormRMaxChecked();
128 void onNormRMinChecked();
129 void onHelp();
130
131private:
132 QCheckBox* myTitleCheck;
134 QCheckBox* myTitleXCheck;
136 QCheckBox* myTitleYCheck;
137 QCheckBox* myTitleY2Check;
145 QCheckBox* myXGridCheck;
147 QCheckBox* myYGridCheck;
148 QCheckBox* myY2GridCheck;
151 QCheckBox* myXMinGridCheck;
153 QCheckBox* myYMinGridCheck;
158 QCheckBox* myLegendCheck;
164 QCheckBox* myNormLMaxCheck;
165 QCheckBox* myNormLMinCheck;
166 QCheckBox* myNormRMaxCheck;
167 QCheckBox* myNormRMinCheck;
169 QCheckBox* myDefCheck;
170 QPushButton* myOkBtn;
171 QPushButton* myCancelBtn;
172 QPushButton* myHelpBtn;
177};
178
179#endif // PLOT2D_SETUPVIEWDLG_H
#define PLOT2D_EXPORT
Definition: Plot2d.h:36
Dialog box to setup Plot2d view window.
Definition: Plot2d_SetupViewDlg.h:42
QSpinBox * myDeviationTs
Definition: Plot2d_SetupViewDlg.h:174
QLineEdit * myTitleY2Edit
Definition: Plot2d_SetupViewDlg.h:139
QtxColorButton * myDeviationCl
Definition: Plot2d_SetupViewDlg.h:175
QCheckBox * myLegendCheck
Definition: Plot2d_SetupViewDlg.h:158
QCheckBox * myXGridCheck
Definition: Plot2d_SetupViewDlg.h:145
QCheckBox * myTitleXCheck
Definition: Plot2d_SetupViewDlg.h:134
QCheckBox * myY2GridCheck
Definition: Plot2d_SetupViewDlg.h:148
QCheckBox * myY2MinGridCheck
Definition: Plot2d_SetupViewDlg.h:154
QCheckBox * myXMinGridCheck
Definition: Plot2d_SetupViewDlg.h:151
QCheckBox * myNormRMaxCheck
Definition: Plot2d_SetupViewDlg.h:166
QComboBox * myLegendCombo
Definition: Plot2d_SetupViewDlg.h:159
QComboBox * myLegendSymbolType
Definition: Plot2d_SetupViewDlg.h:160
QComboBox * myCurveCombo
Definition: Plot2d_SetupViewDlg.h:157
QtxColorButton * mySelectedLegendFontColor
Definition: Plot2d_SetupViewDlg.h:143
QPushButton * myOkBtn
Definition: Plot2d_SetupViewDlg.h:170
QLineEdit * myTitleYEdit
Definition: Plot2d_SetupViewDlg.h:138
QCheckBox * myYGridCheck
Definition: Plot2d_SetupViewDlg.h:147
QCheckBox * myNormLMinCheck
Definition: Plot2d_SetupViewDlg.h:165
QCheckBox * myTitleY2Check
Definition: Plot2d_SetupViewDlg.h:137
QComboBox * myY2ModeCombo
Definition: Plot2d_SetupViewDlg.h:168
QCheckBox * myTitleCheck
Definition: Plot2d_SetupViewDlg.h:132
QLineEdit * myTitleXEdit
Definition: Plot2d_SetupViewDlg.h:135
QPushButton * myCancelBtn
Definition: Plot2d_SetupViewDlg.h:171
QSpinBox * myYMinGridSpin
Definition: Plot2d_SetupViewDlg.h:155
QCheckBox * myDefCheck
Definition: Plot2d_SetupViewDlg.h:169
QSpinBox * myYGridSpin
Definition: Plot2d_SetupViewDlg.h:149
QSpinBox * myXMinGridSpin
Definition: Plot2d_SetupViewDlg.h:152
QLineEdit * myTitleEdit
Definition: Plot2d_SetupViewDlg.h:133
QtxFontEdit * myLegendFont
Definition: Plot2d_SetupViewDlg.h:144
QSpinBox * myY2MinGridSpin
Definition: Plot2d_SetupViewDlg.h:156
QSpinBox * myXGridSpin
Definition: Plot2d_SetupViewDlg.h:146
QSpinBox * myDeviationLw
Definition: Plot2d_SetupViewDlg.h:173
QCheckBox * myYMinGridCheck
Definition: Plot2d_SetupViewDlg.h:153
QComboBox * myXModeCombo
Definition: Plot2d_SetupViewDlg.h:162
QComboBox * myYModeCombo
Definition: Plot2d_SetupViewDlg.h:163
QtxColorButton * mySelectionBtn
Definition: Plot2d_SetupViewDlg.h:141
QtxColorButton * myLegendFontColor
Definition: Plot2d_SetupViewDlg.h:142
QPushButton * myHelpBtn
Definition: Plot2d_SetupViewDlg.h:172
QCheckBox * myNormRMinCheck
Definition: Plot2d_SetupViewDlg.h:167
QSpinBox * myMarkerSpin
Definition: Plot2d_SetupViewDlg.h:161
QCheckBox * myNormLMaxCheck
Definition: Plot2d_SetupViewDlg.h:164
QCheckBox * myTitleYCheck
Definition: Plot2d_SetupViewDlg.h:136
QSpinBox * myY2GridSpin
Definition: Plot2d_SetupViewDlg.h:150
QtxColorButton * myBackgroundBtn
Definition: Plot2d_SetupViewDlg.h:140
bool mySecondAxisY
Definition: Plot2d_SetupViewDlg.h:176
The QtxColorButton class implements a widget for color preference items editing.
Definition: QtxColorButton.h:36
The QtxFontEdit class represents a widget for font preference items editing.
Definition: QtxFontEdit.h:36