Salome HOME
d010bea89a54fdd728a69ff7d8cc24d98ced5952
[modules/visu.git] / src / VISUGUI / VisuGUI_SelectionPrefDlg.h
1 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 //  File   : VisuGUI_SelectionPrefDlg.cxx
21 //  Author : Oleg UVAROV
22 //  Module : SALOME
23 //
24 #ifndef VisuGUI_SELECTIONPREFDLG_H
25 #define VisuGUI_SELECTIONPREFDLG_H
26
27 #include <QDialog>
28
29 class QComboBox;
30 class QGroupBox;
31 class QPushButton;
32
33 class QtxColorButton;
34 class SalomeApp_DoubleSpinBox;
35 class SalomeApp_IntSpinBox;
36
37 class VisuGUI_SelectionPrefDlg : public QDialog
38
39   Q_OBJECT
40
41 public:
42   VisuGUI_SelectionPrefDlg( QWidget* parent = 0 );
43   ~VisuGUI_SelectionPrefDlg();
44     
45 public:
46   void                      update();
47
48 private:
49   void                      keyPressEvent( QKeyEvent* e );
50     
51 protected slots:
52   void                      accept();
53
54   void                      onApply();
55   void                      onHelp();
56   
57 private:
58   SalomeApp_DoubleSpinBox*  myCursorSizeSpinBox;
59   SalomeApp_DoubleSpinBox*  myPyramidHeightSpinBox;
60   QtxColorButton*           mySelectionColorButton;
61   SalomeApp_DoubleSpinBox*  myPointToleranceSpinBox;
62
63   QGroupBox*                myInfoWindowGroup;
64   SalomeApp_IntSpinBox*     myTransparencySpinBox;
65   QComboBox*                myPositionComboBox;
66
67   QGroupBox*                myCameraGroup;
68   SalomeApp_DoubleSpinBox*  myZoomFactorSpinBox;
69   SalomeApp_IntSpinBox*     myStepNumberSpinBox;
70
71   QPushButton*              myButtonOk;
72   QPushButton*              myButtonApply;
73   QPushButton*              myButtonCancel;
74   QPushButton*              myButtonHelp;
75 };
76
77 #endif // VisuGUI_SELECTIONPREFDLG_H