1 // VISU VISUGUI : GUI of VISU component
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 // File : VVTK_SizeBox.h
25 // Author : Oleg UVAROV
28 #ifndef VVTK_SIZEBOX_H
29 #define VVTK_SIZEBOX_H
44 class VVTK_EXPORT VVTK_SizeBox : public QVBox
49 enum { Results = 0, Geometry, Inside, Outside };
52 VVTK_SizeBox( QWidget* );
56 int getType() const { return myType; }
59 float getOutsideSize() const;
60 void setOutsideSize( float );
62 float getGeomSize() const;
63 void setGeomSize( float );
65 float getMinSize() const;
66 void setMinSize( float );
68 float getMaxSize() const;
69 void setMaxSize( float );
71 float getMagnification() const;
72 void setMagnification( float );
74 float getIncrement() const;
75 void setIncrement( float );
77 bool getUniform() const;
78 void setUniform( bool );
80 QColor getColor() const;
81 void setColor( const QColor& );
84 void onToggleResults();
85 void onToggleGeometry();
86 void onToggleInside();
87 void onToggleOutside();
89 void onColorButtonPressed();
94 QLabel* myOutsideSizeLabel;
95 QtxIntSpinBox* myOutsideSizeSpinBox;
97 QLabel* myGeomSizeLabel;
98 QtxIntSpinBox* myGeomSizeSpinBox;
100 QLabel* myMinSizeLabel;
101 QtxIntSpinBox* myMinSizeSpinBox;
103 QLabel* myMaxSizeLabel;
104 QtxIntSpinBox* myMaxSizeSpinBox;
106 QLabel* myMagnificationLabel;
107 QtxIntSpinBox* myMagnificationSpinBox;
109 QLabel* myIncrementLabel;
110 QtxDblSpinBox* myIncrementSpinBox;
112 QCheckBox* myUniformCheckBox;
114 QGroupBox* myColorGroup;
115 QLabel* myColorLabel;
116 QPushButton* myColorButton;