1 // Copyright (C) 2007-2010 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 //////////////////////////////////////////
42 //////////////////////////////////////////
44 EntityGUI_1Spin::EntityGUI_1Spin( QWidget* parent, Qt::WindowFlags f )
45 : QWidget( parent, f )
50 EntityGUI_1Spin::~EntityGUI_1Spin()
54 //////////////////////////////////////////
56 //////////////////////////////////////////
58 EntityGUI_2Spin::EntityGUI_2Spin( QWidget* parent, Qt::WindowFlags f )
59 : QWidget( parent, f )
64 EntityGUI_2Spin::~EntityGUI_2Spin()
68 //////////////////////////////////////////
70 //////////////////////////////////////////
72 EntityGUI_3Spin::EntityGUI_3Spin( QWidget* parent, Qt::WindowFlags f )
73 : QWidget( parent, f )
78 EntityGUI_3Spin::~EntityGUI_3Spin()
82 //////////////////////////////////////////
84 //////////////////////////////////////////
86 EntityGUI_4Spin::EntityGUI_4Spin( QWidget* parent, Qt::WindowFlags f )
87 : QWidget( parent, f )
92 EntityGUI_4Spin::~EntityGUI_4Spin()
96 //////////////////////////////////////////
98 //////////////////////////////////////////
100 EntityGUI_Dir1::EntityGUI_Dir1( QWidget* parent, Qt::WindowFlags f )
101 : QWidget( parent, f )
105 ButtonGroup = new QButtonGroup( this );
106 ButtonGroup->addButton( RB_Dir11, 2 );
107 ButtonGroup->addButton( RB_Dir12, 0 );
108 ButtonGroup->addButton( RB_Dir13, 1 );
109 ButtonGroup->addButton( RB_Dir14, 3 );
112 EntityGUI_Dir1::~EntityGUI_Dir1()
116 //////////////////////////////////////////
118 //////////////////////////////////////////
120 EntityGUI_Dir2::EntityGUI_Dir2( QWidget* parent, Qt::WindowFlags f )
121 : QWidget( parent, f )
125 ButtonGroup = new QButtonGroup( this );
126 ButtonGroup->addButton( RB_Dir21, 2 );
127 ButtonGroup->addButton( RB_Dir22, 0 );
128 ButtonGroup->addButton( RB_Dir23, 1 );
131 EntityGUI_Dir2::~EntityGUI_Dir2()
135 //////////////////////////////////////////
137 //////////////////////////////////////////
139 EntityGUI_Point::EntityGUI_Point( QWidget* parent, Qt::WindowFlags f )
140 : QWidget( parent, f )
144 ButtonGroup = new QButtonGroup( this );
145 ButtonGroup->addButton( RB_Point1, 1 );
146 ButtonGroup->addButton( RB_Point2, 0 );
147 ButtonGroup->addButton( RB_Point3, 2 );
150 EntityGUI_Point::~EntityGUI_Point()
154 //////////////////////////////////////////
155 // EntityGUI_Skeleton
156 //////////////////////////////////////////
158 EntityGUI_Skeleton::EntityGUI_Skeleton( QWidget* parent, Qt::WindowFlags f )
159 : QWidget( parent, f )
163 ButtonGroup = new QButtonGroup( this );
164 ButtonGroup->addButton( RadioButton1, 0 );
165 ButtonGroup->addButton( RadioButton2, 1 );
168 EntityGUI_Skeleton::~EntityGUI_Skeleton()