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
47 class SalomeApp_SelectionMgr;
51 class SMESHGUI_Preferences_ScalarBarDlg : public QDialog
56 ~SMESHGUI_Preferences_ScalarBarDlg();
57 static void ScalarBarPreferences( QWidget* parent );
58 static void ScalarBarProperties ( QWidget* parent, SalomeApp_SelectionMgr* Sel );
61 SMESHGUI_Preferences_ScalarBarDlg( QWidget* parent = 0, SalomeApp_SelectionMgr* Sel = 0, bool modal = FALSE );
62 static SMESHGUI_Preferences_ScalarBarDlg* myDlg;
63 void closeEvent( QCloseEvent* e );
64 void setOriginAndSize( const double x, const double y, const double w, const double h );
72 void onSelectionChanged();
74 void onOrientationChanged();
77 SalomeApp_SelectionMgr* mySelectionMgr;
79 double myIniX, myIniY, myIniW, myIniH;
82 QGroupBox* myRangeGrp;
87 QToolButton* myTitleColorBtn;
88 QComboBox* myTitleFontCombo;
89 QCheckBox* myTitleBoldCheck;
90 QCheckBox* myTitleItalicCheck;
91 QCheckBox* myTitleShadowCheck;
92 QToolButton* myLabelsColorBtn;
93 QComboBox* myLabelsFontCombo;
94 QCheckBox* myLabelsBoldCheck;
95 QCheckBox* myLabelsItalicCheck;
96 QCheckBox* myLabelsShadowCheck;
98 QGroupBox* myLabColorGrp;
99 QSpinBox* myColorsSpin;
100 QSpinBox* myLabelsSpin;
102 QButtonGroup* myOrientationGrp;
103 QRadioButton* myVertRadioBtn;
104 QRadioButton* myHorizRadioBtn;
106 QGroupBox* myOriginDimGrp;
107 QtxDblSpinBox* myXSpin;
108 QtxDblSpinBox* myYSpin;
109 QtxDblSpinBox* myWidthSpin;
110 QtxDblSpinBox* myHeightSpin;
112 QGroupBox* myButtonGrp;
113 QPushButton* myOkBtn;
114 QPushButton* myApplyBtn;
115 QPushButton* myCancelBtn;
118 #endif // SMESHGUI_PREFERENCES_SCALARBARDLG_H