Salome HOME
Update from BR_V5_DEV 13Feb2009
[modules/geom.git] / src / EntityGUI / EntityGUI_Widgets.cxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  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 // File   : EntityGUI_Widgets.cxx
23 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
24 //
25 #include "EntityGUI_Widgets.h"
26 #include <QButtonGroup>
27
28 //////////////////////////////////////////
29 // EntityGUI_1Sel
30 //////////////////////////////////////////
31
32 EntityGUI_1Sel::EntityGUI_1Sel( QWidget* parent, Qt::WindowFlags f )
33 : QWidget( parent, f )
34 {
35   setupUi( this );
36 }
37
38 EntityGUI_1Sel::~EntityGUI_1Sel()
39 {
40 }
41
42 //////////////////////////////////////////
43 // EntityGUI_1Spin
44 //////////////////////////////////////////
45
46 EntityGUI_1Spin::EntityGUI_1Spin( QWidget* parent, Qt::WindowFlags f )
47 : QWidget( parent, f )
48 {
49   setupUi( this );
50 }
51
52 EntityGUI_1Spin::~EntityGUI_1Spin()
53 {
54 }
55
56 //////////////////////////////////////////
57 // EntityGUI_2Spin
58 //////////////////////////////////////////
59
60 EntityGUI_2Spin::EntityGUI_2Spin( QWidget* parent, Qt::WindowFlags f )
61 : QWidget( parent, f )
62 {
63   setupUi( this );
64 }
65
66 EntityGUI_2Spin::~EntityGUI_2Spin()
67 {
68 }
69
70 //////////////////////////////////////////
71 // EntityGUI_3Spin
72 //////////////////////////////////////////
73
74 EntityGUI_3Spin::EntityGUI_3Spin( QWidget* parent, Qt::WindowFlags f )
75 : QWidget( parent, f )
76 {
77   setupUi( this );
78 }
79
80 EntityGUI_3Spin::~EntityGUI_3Spin()
81 {
82 }
83
84 //////////////////////////////////////////
85 // EntityGUI_4Spin
86 //////////////////////////////////////////
87
88 EntityGUI_4Spin::EntityGUI_4Spin( QWidget* parent, Qt::WindowFlags f )
89 : QWidget( parent, f )
90 {
91   setupUi( this );
92 }
93
94 EntityGUI_4Spin::~EntityGUI_4Spin()
95 {
96 }
97
98 //////////////////////////////////////////
99 // EntityGUI_Dir1
100 //////////////////////////////////////////
101
102 EntityGUI_Dir1::EntityGUI_Dir1( QWidget* parent, Qt::WindowFlags f )
103 : QWidget( parent, f )
104 {
105   setupUi( this );
106
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 );
112 }
113
114 EntityGUI_Dir1::~EntityGUI_Dir1()
115 {
116 }
117
118 //////////////////////////////////////////
119 // EntityGUI_Dir2
120 //////////////////////////////////////////
121
122 EntityGUI_Dir2::EntityGUI_Dir2( QWidget* parent, Qt::WindowFlags f )
123 : QWidget( parent, f )
124 {
125   setupUi( this );
126
127   ButtonGroup = new QButtonGroup( this );
128   ButtonGroup->addButton( RB_Dir21, 2 );
129   ButtonGroup->addButton( RB_Dir22, 0 );
130   ButtonGroup->addButton( RB_Dir23, 1 );
131 }
132
133 EntityGUI_Dir2::~EntityGUI_Dir2()
134 {
135 }
136
137 //////////////////////////////////////////
138 // EntityGUI_Point
139 //////////////////////////////////////////
140
141 EntityGUI_Point::EntityGUI_Point( QWidget* parent, Qt::WindowFlags f )
142 : QWidget( parent, f )
143 {
144   setupUi( this );
145
146   ButtonGroup = new QButtonGroup( this );
147   ButtonGroup->addButton( RB_Point1, 1 );
148   ButtonGroup->addButton( RB_Point2, 0 );
149   ButtonGroup->addButton( RB_Point3, 2 );
150 }
151
152 EntityGUI_Point::~EntityGUI_Point()
153 {
154 }
155
156 //////////////////////////////////////////
157 // EntityGUI_Skeleton
158 //////////////////////////////////////////
159
160 EntityGUI_Skeleton::EntityGUI_Skeleton( QWidget* parent, Qt::WindowFlags f )
161 : QWidget( parent, f )
162 {
163   setupUi( this );
164
165   ButtonGroup = new QButtonGroup( this );
166   ButtonGroup->addButton( RadioButton1, 0 );
167   ButtonGroup->addButton( RadioButton2, 1 );
168 }
169
170 EntityGUI_Skeleton::~EntityGUI_Skeleton()
171 {
172 }
173