1 // SMESH SMESHGUI : GUI for SMESH component
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SMESHGUI_Preferences_ScalarBarDlg.h
25 // Author : Nicolas REJNERI
29 #ifndef SMESHGUI_PREFERENCES_SCALARBARDLG_H
30 #define SMESHGUI_PREFERENCES_SCALARBARDLG_H
45 class SALOME_Selection;
48 class SMESHGUI_Preferences_ScalarBarDlg : public QDialog
53 ~SMESHGUI_Preferences_ScalarBarDlg();
54 static void ScalarBarPreferences( QWidget* parent );
55 static void ScalarBarProperties ( QWidget* parent, SALOME_Selection* Sel );
58 SMESHGUI_Preferences_ScalarBarDlg( QWidget* parent = 0, SALOME_Selection* Sel = 0, bool modal = FALSE );
59 static SMESHGUI_Preferences_ScalarBarDlg* myDlg;
60 void closeEvent( QCloseEvent* e );
61 void setOriginAndSize( const double x, const double y, const double w, const double h );
69 void onSelectionChanged();
71 void onOrientationChanged();
74 SALOME_Selection* mySelection;
76 double myIniX, myIniY, myIniW, myIniH;
79 QGroupBox* myRangeGrp;
84 QToolButton* myTitleColorBtn;
85 QComboBox* myTitleFontCombo;
86 QCheckBox* myTitleBoldCheck;
87 QCheckBox* myTitleItalicCheck;
88 QCheckBox* myTitleShadowCheck;
89 QToolButton* myLabelsColorBtn;
90 QComboBox* myLabelsFontCombo;
91 QCheckBox* myLabelsBoldCheck;
92 QCheckBox* myLabelsItalicCheck;
93 QCheckBox* myLabelsShadowCheck;
95 QGroupBox* myLabColorGrp;
96 QSpinBox* myColorsSpin;
97 QSpinBox* myLabelsSpin;
99 QButtonGroup* myOrientationGrp;
100 QRadioButton* myVertRadioBtn;
101 QRadioButton* myHorizRadioBtn;
103 QGroupBox* myOriginDimGrp;
104 QAD_SpinBoxDbl* myXSpin;
105 QAD_SpinBoxDbl* myYSpin;
106 QAD_SpinBoxDbl* myWidthSpin;
107 QAD_SpinBoxDbl* myHeightSpin;
109 QGroupBox* myButtonGrp;
110 QPushButton* myOkBtn;
111 QPushButton* myApplyBtn;
112 QPushButton* myCancelBtn;
115 #endif // SMESHGUI_PREFERENCES_SCALARBARDLG_H