1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : EntityGUI_Widgets.cxx
21 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
23 #include "EntityGUI_Widgets.h"
24 #include <QButtonGroup>
26 //////////////////////////////////////////
28 //////////////////////////////////////////
30 EntityGUI_1Sel::EntityGUI_1Sel( QWidget* parent, Qt::WindowFlags f )
31 : QWidget( parent, f )
36 EntityGUI_1Sel::~EntityGUI_1Sel()
40 //////////////////////////////////////////
41 // EntityGUI_2Sel1Check
42 //////////////////////////////////////////
44 EntityGUI_2Sel1Check::EntityGUI_2Sel1Check( QWidget* parent, Qt::WindowFlags f )
45 : QWidget( parent, f )
50 EntityGUI_2Sel1Check::~EntityGUI_2Sel1Check()
55 //////////////////////////////////////////
56 // EntityGUI_1Sel1Spin1Check
57 //////////////////////////////////////////
59 EntityGUI_1Sel1Spin1Check::EntityGUI_1Sel1Spin1Check( QWidget* parent, Qt::WindowFlags f )
60 : QWidget( parent, f )
65 EntityGUI_1Sel1Spin1Check::~EntityGUI_1Sel1Spin1Check()
69 //////////////////////////////////////////
71 //////////////////////////////////////////
73 EntityGUI_1Spin::EntityGUI_1Spin( QWidget* parent, Qt::WindowFlags f )
74 : QWidget( parent, f )
79 EntityGUI_1Spin::~EntityGUI_1Spin()
83 //////////////////////////////////////////
85 //////////////////////////////////////////
87 EntityGUI_2Spin::EntityGUI_2Spin( QWidget* parent, Qt::WindowFlags f )
88 : QWidget( parent, f )
93 EntityGUI_2Spin::~EntityGUI_2Spin()
97 //////////////////////////////////////////
99 //////////////////////////////////////////
101 EntityGUI_3Spin::EntityGUI_3Spin( QWidget* parent, Qt::WindowFlags f )
102 : QWidget( parent, f )
107 EntityGUI_3Spin::~EntityGUI_3Spin()
112 //////////////////////////////////////////
113 // EntityGUI_3Spin1Check
114 //////////////////////////////////////////
116 EntityGUI_3Spin1Check::EntityGUI_3Spin1Check( QWidget* parent, Qt::WindowFlags f )
117 : QWidget( parent, f )
122 EntityGUI_3Spin1Check::~EntityGUI_3Spin1Check()
126 //////////////////////////////////////////
128 //////////////////////////////////////////
130 EntityGUI_4Spin::EntityGUI_4Spin( QWidget* parent, Qt::WindowFlags f )
131 : QWidget( parent, f )
136 EntityGUI_4Spin::~EntityGUI_4Spin()
141 //////////////////////////////////////////
142 // EntityGUI_4Spin1Check
143 //////////////////////////////////////////
145 EntityGUI_4Spin1Check::EntityGUI_4Spin1Check( QWidget* parent, Qt::WindowFlags f )
146 : QWidget( parent, f )
151 EntityGUI_4Spin1Check::~EntityGUI_4Spin1Check()
155 //////////////////////////////////////////
157 //////////////////////////////////////////
159 EntityGUI_Dir1::EntityGUI_Dir1( QWidget* parent, Qt::WindowFlags f )
160 : QWidget( parent, f )
164 ButtonGroup = new QButtonGroup( this );
165 ButtonGroup->addButton( RB_Dir11, 2 );
166 ButtonGroup->addButton( RB_Dir12, 0 );
167 ButtonGroup->addButton( RB_Dir13, 1 );
168 ButtonGroup->addButton( RB_Dir14, 3 );
171 EntityGUI_Dir1::~EntityGUI_Dir1()
175 //////////////////////////////////////////
177 //////////////////////////////////////////
179 EntityGUI_Dir2::EntityGUI_Dir2( QWidget* parent, Qt::WindowFlags f )
180 : QWidget( parent, f )
184 ButtonGroup = new QButtonGroup( this );
185 ButtonGroup->addButton( RB_Dir21, 2 );
186 ButtonGroup->addButton( RB_Dir22, 0 );
187 ButtonGroup->addButton( RB_Dir23, 1 );
190 EntityGUI_Dir2::~EntityGUI_Dir2()
194 //////////////////////////////////////////
196 //////////////////////////////////////////
198 EntityGUI_Point::EntityGUI_Point( QWidget* parent, Qt::WindowFlags f )
199 : QWidget( parent, f )
203 ButtonGroup = new QButtonGroup( this );
204 ButtonGroup->addButton( RB_Point1, 1 );
205 ButtonGroup->addButton( RB_Point2, 0 );
206 ButtonGroup->addButton( RB_Point3, 2 );
209 EntityGUI_Point::~EntityGUI_Point()
213 //////////////////////////////////////////
215 //////////////////////////////////////////
217 EntityGUI_Type::EntityGUI_Type( QWidget* parent, Qt::WindowFlags f )
218 : QWidget( parent, f )
223 EntityGUI_Type::~EntityGUI_Type()
227 //////////////////////////////////////////
229 //////////////////////////////////////////
231 EntityGUI_Angles::EntityGUI_Angles( QWidget* parent, Qt::WindowFlags f )
232 : QWidget( parent, f )
237 EntityGUI_Angles::~EntityGUI_Angles()
241 //////////////////////////////////////////
242 // EntityGUI_Controls
243 //////////////////////////////////////////
245 EntityGUI_Controls::EntityGUI_Controls( QWidget* parent, Qt::WindowFlags f )
246 : QWidget( parent, f )
251 EntityGUI_Controls::~EntityGUI_Controls()
255 //////////////////////////////////////////
256 // EntityGUI_Skeleton
257 //////////////////////////////////////////
259 EntityGUI_Skeleton::EntityGUI_Skeleton( QWidget* parent, Qt::WindowFlags f )
260 : QWidget( parent, f )
264 ButtonGroup = new QButtonGroup( this );
265 ButtonGroup->addButton( RadioButton1, 0 );
266 ButtonGroup->addButton( RadioButton2, 1 );
267 ButtonGroup->addButton( RadioButton3, 2 );
270 EntityGUI_Skeleton::~EntityGUI_Skeleton()