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.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : SMESHGUI_Preferences_ScalarBarDlg.h
23 // Author : Nicolas REJNERI, Open CASCADE S.A.S.
26 #ifndef SMESHGUI_PREFERENCES_SCALARBARDLG_H
27 #define SMESHGUI_PREFERENCES_SCALARBARDLG_H
30 #include "SMESH_SMESHGUI.hxx"
46 class QtxDoubleSpinBox;
48 class LightApp_SelectionMgr;
50 class SMESHGUI_EXPORT SMESHGUI_Preferences_ScalarBarDlg : public QDialog
55 SMESHGUI_Preferences_ScalarBarDlg( SMESHGUI* );
57 static SMESHGUI_Preferences_ScalarBarDlg* myDlg;
60 ~SMESHGUI_Preferences_ScalarBarDlg();
62 static void ScalarBarProperties( SMESHGUI* );
64 void closeEvent( QCloseEvent* );
65 void setOriginAndSize( const double,
69 void initScalarBarFromResources();
75 void onSelectionChanged();
77 void onOrientationChanged();
81 LightApp_SelectionMgr* mySelectionMgr;
83 double myIniX, myIniY, myIniW, myIniH;
85 double DEF_VER_X, DEF_VER_Y, DEF_VER_H, DEF_VER_W;
86 double DEF_HOR_X, DEF_HOR_Y, DEF_HOR_H, DEF_HOR_W;
88 QGroupBox* myRangeGrp;
93 QtxColorButton* myTitleColorBtn;
94 QComboBox* myTitleFontCombo;
95 QCheckBox* myTitleBoldCheck;
96 QCheckBox* myTitleItalicCheck;
97 QCheckBox* myTitleShadowCheck;
98 QtxColorButton* myLabelsColorBtn;
99 QComboBox* myLabelsFontCombo;
100 QCheckBox* myLabelsBoldCheck;
101 QCheckBox* myLabelsItalicCheck;
102 QCheckBox* myLabelsShadowCheck;
104 QGroupBox* myLabColorGrp;
105 QSpinBox* myColorsSpin;
106 QSpinBox* myLabelsSpin;
108 QGroupBox* myOrientationGrp;
109 QRadioButton* myVertRadioBtn;
110 QRadioButton* myHorizRadioBtn;
112 QGroupBox* myOriginDimGrp;
113 QtxDoubleSpinBox* myXSpin;
114 QtxDoubleSpinBox* myYSpin;
115 QtxDoubleSpinBox* myWidthSpin;
116 QtxDoubleSpinBox* myHeightSpin;
118 QGroupBox* myButtonGrp;
119 QPushButton* myOkBtn;
120 QPushButton* myApplyBtn;
121 QPushButton* myCancelBtn;
124 #endif // SMESHGUI_PREFERENCES_SCALARBARDLG_H