Salome HOME
NRI : First integration.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_Preferences_ColorDlg.h
1 //  File      : SMESHGUI_Preferences_ColorDlg.h
2 //  Created   : Mon Jun 17 19:11:46 2002
3 //  Author    : Nicolas REJNERI
4
5 //  Project   : SALOME
6 //  Module    : SMESH
7 //  Copyright : Open CASCADE 2002
8 //  $Header$
9
10 #ifndef SMESHGUI_PREFERENCES_COLORDLG_H
11 #define SMESHGUI_PREFERENCES_COLORDLG_H
12
13 // SALOME Includes
14 #include "QAD_Config.h"
15 #include "QAD_Settings.h"
16
17 // IDL Headers
18 #include <SALOMEconfig.h>
19 #include CORBA_SERVER_HEADER(SMESH_Gen)
20
21 // QT Includes
22 #include <qdialog.h>
23
24 class QButtonGroup;
25 class QFrame;
26 class QLabel;
27 class QPushButton;
28 class QSpinBox;
29 class QColor;
30 class SMESHGUI;
31
32 class SMESHGUI_Preferences_ColorDlg : public QDialog
33
34     Q_OBJECT
35
36 public:
37     SMESHGUI_Preferences_ColorDlg( QWidget* parent = 0, const char* name = 0 );
38     ~SMESHGUI_Preferences_ColorDlg();
39
40     void   SetColor(int type, QColor color);
41     QColor GetColor(int type);
42     void   SetIntValue(int type, int value);
43     int    GetIntValue(int type);
44
45 private:
46     void closeEvent( QCloseEvent* e ) ;
47     void Init();
48
49 private slots:
50 //  void RadioButtonClicked(int radioButtonId);
51     void ClickOnOk();
52     void ClickOnCancel();
53     void DeactivateActiveDialog() ;
54     void ActivateThisDialog() ;
55
56     void SelectFillColor();
57     void SelectBackFaceColor();
58     void SelectOutlineColor();
59     void SelectNodeColor();
60
61 private:
62     SMESH::SMESH_Gen_var  myCompMesh ;                
63     SMESHGUI*             mySMESHGUI ;            
64
65     QButtonGroup*         ButtonGroup1;
66     QLabel*               TextLabel_Fill;
67     QPushButton*          btnFillColor;
68     QLabel*               TextLabel_Outine;
69     QPushButton*          btnOutlineColor;
70     QLabel*               TextLabel_Width;
71     QSpinBox*             SpinBox_Width;
72     QLabel*               TextLabel_BackFace;
73     QPushButton*          btnBackFaceColor;
74     QLabel*               TextLabel_ShrinkCoeff;
75     QSpinBox*             SpinBox_Shrink;
76     QButtonGroup*         ButtonGroup2;
77     QLabel*               TextLabel_Nodes_Color;
78     QPushButton*          btnNodeColor;
79     QLabel*               TextLabel_Nodes_Size;
80     QSpinBox*             SpinBox_Nodes_Size;
81     QButtonGroup*         GroupButtons;
82     QPushButton*          buttonOk;
83     QPushButton*          buttonCancel;
84 };
85
86 #endif // SMESHGUI_PREFERENCES_COLORDLG_H