1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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
22 // File : EntityGUI_Widgets.cxx
23 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
25 #include "EntityGUI_Widgets.h"
26 #include <QButtonGroup>
28 //////////////////////////////////////////
30 //////////////////////////////////////////
32 EntityGUI_1Sel::EntityGUI_1Sel( QWidget* parent, Qt::WindowFlags f )
33 : QWidget( parent, f )
38 EntityGUI_1Sel::~EntityGUI_1Sel()
42 //////////////////////////////////////////
44 //////////////////////////////////////////
46 EntityGUI_1Spin::EntityGUI_1Spin( QWidget* parent, Qt::WindowFlags f )
47 : QWidget( parent, f )
52 EntityGUI_1Spin::~EntityGUI_1Spin()
56 //////////////////////////////////////////
58 //////////////////////////////////////////
60 EntityGUI_2Spin::EntityGUI_2Spin( QWidget* parent, Qt::WindowFlags f )
61 : QWidget( parent, f )
66 EntityGUI_2Spin::~EntityGUI_2Spin()
70 //////////////////////////////////////////
72 //////////////////////////////////////////
74 EntityGUI_3Spin::EntityGUI_3Spin( QWidget* parent, Qt::WindowFlags f )
75 : QWidget( parent, f )
80 EntityGUI_3Spin::~EntityGUI_3Spin()
84 //////////////////////////////////////////
86 //////////////////////////////////////////
88 EntityGUI_4Spin::EntityGUI_4Spin( QWidget* parent, Qt::WindowFlags f )
89 : QWidget( parent, f )
94 EntityGUI_4Spin::~EntityGUI_4Spin()
98 //////////////////////////////////////////
100 //////////////////////////////////////////
102 EntityGUI_Dir1::EntityGUI_Dir1( QWidget* parent, Qt::WindowFlags f )
103 : QWidget( parent, f )
107 ButtonGroup = new QButtonGroup( this );
108 ButtonGroup->addButton( RB_Dir11, 2 );
109 ButtonGroup->addButton( RB_Dir12, 0 );
110 ButtonGroup->addButton( RB_Dir13, 1 );
111 ButtonGroup->addButton( RB_Dir14, 3 );
114 EntityGUI_Dir1::~EntityGUI_Dir1()
118 //////////////////////////////////////////
120 //////////////////////////////////////////
122 EntityGUI_Dir2::EntityGUI_Dir2( QWidget* parent, Qt::WindowFlags f )
123 : QWidget( parent, f )
127 ButtonGroup = new QButtonGroup( this );
128 ButtonGroup->addButton( RB_Dir21, 2 );
129 ButtonGroup->addButton( RB_Dir22, 0 );
130 ButtonGroup->addButton( RB_Dir23, 1 );
133 EntityGUI_Dir2::~EntityGUI_Dir2()
137 //////////////////////////////////////////
139 //////////////////////////////////////////
141 EntityGUI_Point::EntityGUI_Point( QWidget* parent, Qt::WindowFlags f )
142 : QWidget( parent, f )
146 ButtonGroup = new QButtonGroup( this );
147 ButtonGroup->addButton( RB_Point1, 1 );
148 ButtonGroup->addButton( RB_Point2, 0 );
149 ButtonGroup->addButton( RB_Point3, 2 );
152 EntityGUI_Point::~EntityGUI_Point()
156 //////////////////////////////////////////
157 // EntityGUI_Skeleton
158 //////////////////////////////////////////
160 EntityGUI_Skeleton::EntityGUI_Skeleton( QWidget* parent, Qt::WindowFlags f )
161 : QWidget( parent, f )
165 ButtonGroup = new QButtonGroup( this );
166 ButtonGroup->addButton( RadioButton1, 0 );
167 ButtonGroup->addButton( RadioButton2, 1 );
170 EntityGUI_Skeleton::~EntityGUI_Skeleton()