Salome HOME
Mantis issues 0020939(GetSharedShapes) and 0020842(AllSorted meaning).
[modules/geom.git] / src / EntityGUI / EntityGUI_Widgets.cxx
1 //  Copyright (C) 2007-2010  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.
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_1Spin
42 //////////////////////////////////////////
43
44 EntityGUI_1Spin::EntityGUI_1Spin( QWidget* parent, Qt::WindowFlags f )
45 : QWidget( parent, f )
46 {
47   setupUi( this );
48 }
49
50 EntityGUI_1Spin::~EntityGUI_1Spin()
51 {
52 }
53
54 //////////////////////////////////////////
55 // EntityGUI_2Spin
56 //////////////////////////////////////////
57
58 EntityGUI_2Spin::EntityGUI_2Spin( QWidget* parent, Qt::WindowFlags f )
59 : QWidget( parent, f )
60 {
61   setupUi( this );
62 }
63
64 EntityGUI_2Spin::~EntityGUI_2Spin()
65 {
66 }
67
68 //////////////////////////////////////////
69 // EntityGUI_3Spin
70 //////////////////////////////////////////
71
72 EntityGUI_3Spin::EntityGUI_3Spin( QWidget* parent, Qt::WindowFlags f )
73 : QWidget( parent, f )
74 {
75   setupUi( this );
76 }
77
78 EntityGUI_3Spin::~EntityGUI_3Spin()
79 {
80 }
81
82 //////////////////////////////////////////
83 // EntityGUI_4Spin
84 //////////////////////////////////////////
85
86 EntityGUI_4Spin::EntityGUI_4Spin( QWidget* parent, Qt::WindowFlags f )
87 : QWidget( parent, f )
88 {
89   setupUi( this );
90 }
91
92 EntityGUI_4Spin::~EntityGUI_4Spin()
93 {
94 }
95
96 //////////////////////////////////////////
97 // EntityGUI_Dir1
98 //////////////////////////////////////////
99
100 EntityGUI_Dir1::EntityGUI_Dir1( QWidget* parent, Qt::WindowFlags f )
101 : QWidget( parent, f )
102 {
103   setupUi( this );
104
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 );
110 }
111
112 EntityGUI_Dir1::~EntityGUI_Dir1()
113 {
114 }
115
116 //////////////////////////////////////////
117 // EntityGUI_Dir2
118 //////////////////////////////////////////
119
120 EntityGUI_Dir2::EntityGUI_Dir2( QWidget* parent, Qt::WindowFlags f )
121 : QWidget( parent, f )
122 {
123   setupUi( this );
124
125   ButtonGroup = new QButtonGroup( this );
126   ButtonGroup->addButton( RB_Dir21, 2 );
127   ButtonGroup->addButton( RB_Dir22, 0 );
128   ButtonGroup->addButton( RB_Dir23, 1 );
129 }
130
131 EntityGUI_Dir2::~EntityGUI_Dir2()
132 {
133 }
134
135 //////////////////////////////////////////
136 // EntityGUI_Point
137 //////////////////////////////////////////
138
139 EntityGUI_Point::EntityGUI_Point( QWidget* parent, Qt::WindowFlags f )
140 : QWidget( parent, f )
141 {
142   setupUi( this );
143
144   ButtonGroup = new QButtonGroup( this );
145   ButtonGroup->addButton( RB_Point1, 1 );
146   ButtonGroup->addButton( RB_Point2, 0 );
147   ButtonGroup->addButton( RB_Point3, 2 );
148 }
149
150 EntityGUI_Point::~EntityGUI_Point()
151 {
152 }
153
154 //////////////////////////////////////////
155 // EntityGUI_Skeleton
156 //////////////////////////////////////////
157
158 EntityGUI_Skeleton::EntityGUI_Skeleton( QWidget* parent, Qt::WindowFlags f )
159 : QWidget( parent, f )
160 {
161   setupUi( this );
162
163   ButtonGroup = new QButtonGroup( this );
164   ButtonGroup->addButton( RadioButton1, 0 );
165   ButtonGroup->addButton( RadioButton2, 1 );
166 }
167
168 EntityGUI_Skeleton::~EntityGUI_Skeleton()
169 {
170 }
171