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
32 #include "SMESH_SMESHGUI.hxx"
50 class LightApp_SelectionMgr;
54 class SMESHGUI_EXPORT SMESHGUI_Preferences_ScalarBarDlg : public QDialog
59 ~SMESHGUI_Preferences_ScalarBarDlg();
60 static void ScalarBarPreferences( SMESHGUI* );
61 static void ScalarBarProperties ( SMESHGUI* );
64 SMESHGUI_Preferences_ScalarBarDlg( SMESHGUI*, bool, bool modal = FALSE );
65 static SMESHGUI_Preferences_ScalarBarDlg* myDlg;
66 void closeEvent( QCloseEvent* e );
67 void setOriginAndSize( const double x, const double y, const double w, const double h );
75 void onSelectionChanged();
77 void onOrientationChanged();
81 LightApp_SelectionMgr* mySelectionMgr;
83 double myIniX, myIniY, myIniW, myIniH;
86 QGroupBox* myRangeGrp;
91 QToolButton* myTitleColorBtn;
92 QComboBox* myTitleFontCombo;
93 QCheckBox* myTitleBoldCheck;
94 QCheckBox* myTitleItalicCheck;
95 QCheckBox* myTitleShadowCheck;
96 QToolButton* myLabelsColorBtn;
97 QComboBox* myLabelsFontCombo;
98 QCheckBox* myLabelsBoldCheck;
99 QCheckBox* myLabelsItalicCheck;
100 QCheckBox* myLabelsShadowCheck;
102 QGroupBox* myLabColorGrp;
103 QSpinBox* myColorsSpin;
104 QSpinBox* myLabelsSpin;
106 QButtonGroup* myOrientationGrp;
107 QRadioButton* myVertRadioBtn;
108 QRadioButton* myHorizRadioBtn;
110 QGroupBox* myOriginDimGrp;
111 QtxDblSpinBox* myXSpin;
112 QtxDblSpinBox* myYSpin;
113 QtxDblSpinBox* myWidthSpin;
114 QtxDblSpinBox* myHeightSpin;
116 QGroupBox* myButtonGrp;
117 QPushButton* myOkBtn;
118 QPushButton* myApplyBtn;
119 QPushButton* myCancelBtn;
122 #endif // SMESHGUI_PREFERENCES_SCALARBARDLG_H