]> SALOME platform Git repositories - modules/smesh.git/blob - src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.h
Salome HOME
add #inlcude <list>
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_Preferences_ScalarBarDlg.h
1 //  SMESH SMESHGUI : GUI for SMESH component
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
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. 
10 // 
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. 
15 // 
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 
19 // 
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : SMESHGUI_Preferences_ScalarBarDlg.h
25 //  Author : Nicolas REJNERI
26 //  Module : SMESH
27 //  $Header$
28
29 #ifndef SMESHGUI_PREFERENCES_SCALARBARDLG_H
30 #define SMESHGUI_PREFERENCES_SCALARBARDLG_H
31
32 #include "SMESH_SMESHGUI.hxx"
33
34 #include <qdialog.h>
35
36 class QButtonGroup;
37 class QCheckBox;
38 class QComboBox;
39 class QGroupBox;
40 class QLabel;
41 class QLineEdit;
42 class QPushButton;
43 class QToolButton;
44 class QRadioButton;
45 class QSpinBox;
46 class SMESHGUI;
47
48 class QtxDblSpinBox;
49
50 class LightApp_SelectionMgr;
51
52 class SMESH_Actor;
53
54 class SMESHGUI_EXPORT SMESHGUI_Preferences_ScalarBarDlg : public QDialog
55
56   Q_OBJECT
57
58 public:
59   ~SMESHGUI_Preferences_ScalarBarDlg();
60   static void ScalarBarPreferences( SMESHGUI* );
61   static void ScalarBarProperties ( SMESHGUI* );
62
63 protected:
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 );
68
69 protected slots:
70   void onOk();
71   bool onApply();
72   void onCancel();
73   void onTitleColor();
74   void onLabelsColor();
75   void onSelectionChanged();
76   void onXYChanged();
77   void onOrientationChanged();
78
79 private:
80   SMESHGUI*                mySMESHGUI;
81   LightApp_SelectionMgr*   mySelectionMgr;
82   SMESH_Actor*             myActor;
83   double                   myIniX, myIniY, myIniW, myIniH;
84   int                      myIniOrientation;
85
86   QGroupBox*         myRangeGrp;
87   QLineEdit*         myMinEdit;
88   QLineEdit*         myMaxEdit;
89
90   QGroupBox*         myFontGrp;
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;
101   
102   QGroupBox*         myLabColorGrp;
103   QSpinBox*          myColorsSpin;
104   QSpinBox*          myLabelsSpin;
105
106   QButtonGroup*      myOrientationGrp;
107   QRadioButton*      myVertRadioBtn;
108   QRadioButton*      myHorizRadioBtn;
109
110   QGroupBox*         myOriginDimGrp;
111   QtxDblSpinBox*     myXSpin;
112   QtxDblSpinBox*     myYSpin;
113   QtxDblSpinBox*     myWidthSpin;
114   QtxDblSpinBox*     myHeightSpin;
115
116   QGroupBox*         myButtonGrp;
117   QPushButton*       myOkBtn;
118   QPushButton*       myApplyBtn;
119   QPushButton*       myCancelBtn;
120 };
121
122 #endif // SMESHGUI_PREFERENCES_SCALARBARDLG_H