Salome HOME
fcae10cc2e8b25369392a8c30e72ed5035ab60bb
[modules/visu.git] / src / VISUGUI / VisuGUI_SelectionPrefDlg.h
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  File   : VisuGUI_SelectionPrefDlg.cxx
23 //  Author : Oleg UVAROV
24 //  Module : SALOME
25 //
26 #ifndef VisuGUI_SELECTIONPREFDLG_H
27 #define VisuGUI_SELECTIONPREFDLG_H
28
29 #include <QDialog>
30
31 class QComboBox;
32 class QGroupBox;
33 class QPushButton;
34
35 class QtxColorButton;
36 class QtxDoubleSpinBox;
37 class QtxIntSpinBox;
38
39 class VisuGUI_SelectionPrefDlg : public QDialog
40
41   Q_OBJECT
42
43 public:
44   VisuGUI_SelectionPrefDlg( QWidget* parent = 0 );
45   ~VisuGUI_SelectionPrefDlg();
46     
47 public:
48   void                      update();
49
50 private:
51   void                      keyPressEvent( QKeyEvent* e );
52     
53 protected slots:
54   void                      accept();
55
56   void                      onApply();
57   void                      onHelp();
58   
59 private:
60   QtxDoubleSpinBox*         myCursorSizeSpinBox;
61   QtxDoubleSpinBox*         myPyramidHeightSpinBox;
62   QtxColorButton*           mySelectionColorButton;
63   QtxDoubleSpinBox*         myPointToleranceSpinBox;
64
65   QGroupBox*                myInfoWindowGroup;
66   QtxIntSpinBox*            myTransparencySpinBox;
67   QComboBox*                myPositionComboBox;
68
69   QGroupBox*                myCameraGroup;
70   QtxDoubleSpinBox*         myZoomFactorSpinBox;
71   QtxIntSpinBox*            myStepNumberSpinBox;
72
73   QPushButton*              myButtonOk;
74   QPushButton*              myButtonApply;
75   QPushButton*              myButtonCancel;
76   QPushButton*              myButtonHelp;
77 };
78
79 #endif // VisuGUI_SELECTIONPREFDLG_H