]> SALOME platform Git repositories - modules/visu.git/blob - src/VVTK/VVTK_SizeBox.h
Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/visu.git] / src / VVTK / VVTK_SizeBox.h
1 //  VISU VISUGUI : GUI of VISU 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //
23 //
24 //  File   : VVTK_SizeBox.h
25 //  Author : Oleg UVAROV
26 //  Module : VISU
27
28 #ifndef VVTK_SIZEBOX_H
29 #define VVTK_SIZEBOX_H
30
31 #include "VVTK.h"
32
33 #include <qvbox.h>
34
35 class QLabel;
36 class QLineEdit;
37 class QPushButton;
38 class QCheckBox;
39 class QGroupBox;
40
41 class QtxDblSpinBox;
42 class QtxIntSpinBox;
43
44 class VVTK_EXPORT VVTK_SizeBox : public QVBox
45 {
46   Q_OBJECT
47
48 public:
49   enum { Results = 0, Geometry, Inside, Outside };
50
51 public:
52   VVTK_SizeBox( QWidget* );
53   ~VVTK_SizeBox() {}
54
55 public:
56   int                      getType() const { return myType; }
57   void                     setType( int );
58
59   float                    getOutsideSize() const;
60   void                     setOutsideSize( float );
61
62   float                    getGeomSize() const;
63   void                     setGeomSize( float );
64
65   float                    getMinSize() const;
66   void                     setMinSize( float );
67
68   float                    getMaxSize() const;
69   void                     setMaxSize( float );
70
71   float                    getMagnification() const;
72   void                     setMagnification( float );
73
74   float                    getIncrement() const;
75   void                     setIncrement( float );
76
77   bool                     getUniform() const;
78   void                     setUniform( bool );
79
80   QColor                   getColor() const;
81   void                     setColor( const QColor& );
82
83 protected slots:
84   void                     onToggleResults();
85   void                     onToggleGeometry();
86   void                     onToggleInside();
87   void                     onToggleOutside();
88
89   void                     onColorButtonPressed();
90
91 private:
92   int                      myType;
93
94   QLabel*                  myOutsideSizeLabel;
95   QtxIntSpinBox*           myOutsideSizeSpinBox;
96
97   QLabel*                  myGeomSizeLabel;
98   QtxIntSpinBox*           myGeomSizeSpinBox;
99
100   QLabel*                  myMinSizeLabel;
101   QtxIntSpinBox*           myMinSizeSpinBox;
102
103   QLabel*                  myMaxSizeLabel;
104   QtxIntSpinBox*           myMaxSizeSpinBox;
105
106   QLabel*                  myMagnificationLabel;
107   QtxIntSpinBox*           myMagnificationSpinBox;
108
109   QLabel*                  myIncrementLabel;
110   QtxDblSpinBox*           myIncrementSpinBox;
111
112   QCheckBox*               myUniformCheckBox;  
113
114   QGroupBox*               myColorGroup;
115   QLabel*                  myColorLabel;
116   QPushButton*             myColorButton;
117 };
118
119
120
121 #endif