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
48 class LightApp_SelectionMgr;
52 class SMESHGUI_Preferences_ScalarBarDlg : public QDialog
57 ~SMESHGUI_Preferences_ScalarBarDlg();
58 static void ScalarBarPreferences( SMESHGUI* );
59 static void ScalarBarProperties ( SMESHGUI* );
62 SMESHGUI_Preferences_ScalarBarDlg( SMESHGUI*, bool, bool modal = FALSE );
63 static SMESHGUI_Preferences_ScalarBarDlg* myDlg;
64 void closeEvent( QCloseEvent* e );
65 void setOriginAndSize( const double x, const double y, const double w, const double h );
66 void initScalarBarFromResources();
74 void onSelectionChanged();
76 void onOrientationChanged();
80 LightApp_SelectionMgr* mySelectionMgr;
82 double myIniX, myIniY, myIniW, myIniH;
84 double DEF_VER_X,DEF_VER_Y,DEF_VER_H,DEF_VER_W;
85 double DEF_HOR_X,DEF_HOR_Y,DEF_HOR_H,DEF_HOR_W;
87 QGroupBox* myRangeGrp;
92 QToolButton* myTitleColorBtn;
93 QComboBox* myTitleFontCombo;
94 QCheckBox* myTitleBoldCheck;
95 QCheckBox* myTitleItalicCheck;
96 QCheckBox* myTitleShadowCheck;
97 QToolButton* myLabelsColorBtn;
98 QComboBox* myLabelsFontCombo;
99 QCheckBox* myLabelsBoldCheck;
100 QCheckBox* myLabelsItalicCheck;
101 QCheckBox* myLabelsShadowCheck;
103 QGroupBox* myLabColorGrp;
104 QSpinBox* myColorsSpin;
105 QSpinBox* myLabelsSpin;
107 QButtonGroup* myOrientationGrp;
108 QRadioButton* myVertRadioBtn;
109 QRadioButton* myHorizRadioBtn;
111 QGroupBox* myOriginDimGrp;
112 QtxDblSpinBox* myXSpin;
113 QtxDblSpinBox* myYSpin;
114 QtxDblSpinBox* myWidthSpin;
115 QtxDblSpinBox* myHeightSpin;
117 QGroupBox* myButtonGrp;
118 QPushButton* myOkBtn;
119 QPushButton* myApplyBtn;
120 QPushButton* myCancelBtn;
123 #endif // SMESHGUI_PREFERENCES_SCALARBARDLG_H