Salome HOME
55fd1609a97fd66cbc33d0c58505a38f0a8c392b
[modules/geom.git] / src / EntityGUI / EntityGUI_Widgets.cxx
1 // Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
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, or (at your option) any later version.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 // File   : EntityGUI_Widgets.cxx
21 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
22 //
23 #include "EntityGUI_Widgets.h"
24 #include <QButtonGroup>
25
26 //////////////////////////////////////////
27 // EntityGUI_1Sel
28 //////////////////////////////////////////
29
30 EntityGUI_1Sel::EntityGUI_1Sel( QWidget* parent, Qt::WindowFlags f )
31 : QWidget( parent, f )
32 {
33   setupUi( this );
34 }
35
36 EntityGUI_1Sel::~EntityGUI_1Sel()
37 {
38 }
39
40 //////////////////////////////////////////
41 // EntityGUI_2Sel1Check
42 //////////////////////////////////////////
43
44 EntityGUI_2Sel1Check::EntityGUI_2Sel1Check( QWidget* parent, Qt::WindowFlags f )
45 : QWidget( parent, f )
46 {
47   setupUi( this );
48 }
49
50 EntityGUI_2Sel1Check::~EntityGUI_2Sel1Check()
51 {
52 }
53
54
55 //////////////////////////////////////////
56 // EntityGUI_1Sel1Spin1Check
57 //////////////////////////////////////////
58
59 EntityGUI_1Sel1Spin1Check::EntityGUI_1Sel1Spin1Check( QWidget* parent, Qt::WindowFlags f )
60 : QWidget( parent, f )
61 {
62   setupUi( this );
63 }
64
65 EntityGUI_1Sel1Spin1Check::~EntityGUI_1Sel1Spin1Check()
66 {
67 }
68
69 //////////////////////////////////////////
70 // EntityGUI_1Spin
71 //////////////////////////////////////////
72
73 EntityGUI_1Spin::EntityGUI_1Spin( QWidget* parent, Qt::WindowFlags f )
74 : QWidget( parent, f )
75 {
76   setupUi( this );
77 }
78
79 EntityGUI_1Spin::~EntityGUI_1Spin()
80 {
81 }
82
83 //////////////////////////////////////////
84 // EntityGUI_2Spin
85 //////////////////////////////////////////
86
87 EntityGUI_2Spin::EntityGUI_2Spin( QWidget* parent, Qt::WindowFlags f )
88 : QWidget( parent, f )
89 {
90   setupUi( this );
91 }
92
93 EntityGUI_2Spin::~EntityGUI_2Spin()
94 {
95 }
96
97 //////////////////////////////////////////
98 // EntityGUI_3Spin
99 //////////////////////////////////////////
100
101 EntityGUI_3Spin::EntityGUI_3Spin( QWidget* parent, Qt::WindowFlags f )
102 : QWidget( parent, f )
103 {
104   setupUi( this );
105 }
106
107 EntityGUI_3Spin::~EntityGUI_3Spin()
108 {
109 }
110
111
112 //////////////////////////////////////////
113 // EntityGUI_3Spin1Check
114 //////////////////////////////////////////
115
116 EntityGUI_3Spin1Check::EntityGUI_3Spin1Check( QWidget* parent, Qt::WindowFlags f )
117 : QWidget( parent, f )
118 {
119   setupUi( this );
120 }
121
122 EntityGUI_3Spin1Check::~EntityGUI_3Spin1Check()
123 {
124 }
125
126 //////////////////////////////////////////
127 // EntityGUI_4Spin
128 //////////////////////////////////////////
129
130 EntityGUI_4Spin::EntityGUI_4Spin( QWidget* parent, Qt::WindowFlags f )
131 : QWidget( parent, f )
132 {
133   setupUi( this );
134 }
135
136 EntityGUI_4Spin::~EntityGUI_4Spin()
137 {
138 }
139
140
141 //////////////////////////////////////////
142 // EntityGUI_4Spin1Check
143 //////////////////////////////////////////
144
145 EntityGUI_4Spin1Check::EntityGUI_4Spin1Check( QWidget* parent, Qt::WindowFlags f )
146 : QWidget( parent, f )
147 {
148   setupUi( this );
149 }
150
151 EntityGUI_4Spin1Check::~EntityGUI_4Spin1Check()
152 {
153 }
154
155 //////////////////////////////////////////
156 // EntityGUI_Dir1
157 //////////////////////////////////////////
158
159 EntityGUI_Dir1::EntityGUI_Dir1( QWidget* parent, Qt::WindowFlags f )
160 : QWidget( parent, f )
161 {
162   setupUi( this );
163
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 );
169 }
170
171 EntityGUI_Dir1::~EntityGUI_Dir1()
172 {
173 }
174
175 //////////////////////////////////////////
176 // EntityGUI_Dir2
177 //////////////////////////////////////////
178
179 EntityGUI_Dir2::EntityGUI_Dir2( QWidget* parent, Qt::WindowFlags f )
180 : QWidget( parent, f )
181 {
182   setupUi( this );
183
184   ButtonGroup = new QButtonGroup( this );
185   ButtonGroup->addButton( RB_Dir21, 2 );
186   ButtonGroup->addButton( RB_Dir22, 0 );
187   ButtonGroup->addButton( RB_Dir23, 1 );
188 }
189
190 EntityGUI_Dir2::~EntityGUI_Dir2()
191 {
192 }
193
194 //////////////////////////////////////////
195 // EntityGUI_Point
196 //////////////////////////////////////////
197
198 EntityGUI_Point::EntityGUI_Point( QWidget* parent, Qt::WindowFlags f )
199 : QWidget( parent, f )
200 {
201   setupUi( this );
202
203   ButtonGroup = new QButtonGroup( this );
204   ButtonGroup->addButton( RB_Point1, 1 );
205   ButtonGroup->addButton( RB_Point2, 0 );
206   ButtonGroup->addButton( RB_Point3, 2 );
207 }
208
209 EntityGUI_Point::~EntityGUI_Point()
210 {
211 }
212
213 //////////////////////////////////////////
214 // EntityGUI_Type
215 //////////////////////////////////////////
216
217 EntityGUI_Type::EntityGUI_Type( QWidget* parent, Qt::WindowFlags f )
218 : QWidget( parent, f )
219 {
220   setupUi( this );
221 }
222
223 EntityGUI_Type::~EntityGUI_Type()
224 {
225 }
226
227 //////////////////////////////////////////
228 // EntityGUI_Angles
229 //////////////////////////////////////////
230
231 EntityGUI_Angles::EntityGUI_Angles( QWidget* parent, Qt::WindowFlags f )
232 : QWidget( parent, f )
233 {
234   setupUi( this );
235 }
236
237 EntityGUI_Angles::~EntityGUI_Angles()
238 {
239 }
240
241 //////////////////////////////////////////
242 // EntityGUI_Controls
243 //////////////////////////////////////////
244
245 EntityGUI_Controls::EntityGUI_Controls( QWidget* parent, Qt::WindowFlags f )
246 : QWidget( parent, f )
247 {
248   setupUi( this );
249 }
250
251 EntityGUI_Controls::~EntityGUI_Controls()
252 {
253 }
254
255 //////////////////////////////////////////
256 // EntityGUI_Skeleton
257 //////////////////////////////////////////
258
259 EntityGUI_Skeleton::EntityGUI_Skeleton( QWidget* parent, Qt::WindowFlags f )
260 : QWidget( parent, f )
261 {
262   setupUi( this );
263
264   ButtonGroup = new QButtonGroup( this );
265   ButtonGroup->addButton( RadioButton1, 0 );
266   ButtonGroup->addButton( RadioButton2, 1 );
267   ButtonGroup->addButton( RadioButton3, 2 );
268 }
269
270 EntityGUI_Skeleton::~EntityGUI_Skeleton()
271 {
272 }
273