Salome HOME
IMP 0016175: EDF455: Save GUIState don't redisplay the objects.
[modules/geom.git] / src / EntityGUI / EntityGUI_Widgets.cxx
1 // Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
3 // 
4 // This library is free software; you can redistribute it and/or 
5 // modify it under the terms of the GNU Lesser General Public 
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License. 
8 // 
9 // This library is distributed in the hope that it will be useful, 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details. 
13 // 
14 // You should have received a copy of the GNU Lesser General Public 
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
17 // 
18 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
19 //
20 // File   : EntityGUI_Widgets.cxx
21 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
22 //
23
24 #include "EntityGUI_Widgets.h"
25 #include <QButtonGroup>
26
27 //////////////////////////////////////////
28 // EntityGUI_1Sel
29 //////////////////////////////////////////
30
31 EntityGUI_1Sel::EntityGUI_1Sel( QWidget* parent, Qt::WindowFlags f )
32 : QWidget( parent, f )
33 {
34   setupUi( this );
35 }
36
37 EntityGUI_1Sel::~EntityGUI_1Sel()
38 {
39 }
40
41 //////////////////////////////////////////
42 // EntityGUI_1Spin
43 //////////////////////////////////////////
44
45 EntityGUI_1Spin::EntityGUI_1Spin( QWidget* parent, Qt::WindowFlags f )
46 : QWidget( parent, f )
47 {
48   setupUi( this );
49 }
50
51 EntityGUI_1Spin::~EntityGUI_1Spin()
52 {
53 }
54
55 //////////////////////////////////////////
56 // EntityGUI_2Spin
57 //////////////////////////////////////////
58
59 EntityGUI_2Spin::EntityGUI_2Spin( QWidget* parent, Qt::WindowFlags f )
60 : QWidget( parent, f )
61 {
62   setupUi( this );
63 }
64
65 EntityGUI_2Spin::~EntityGUI_2Spin()
66 {
67 }
68
69 //////////////////////////////////////////
70 // EntityGUI_3Spin
71 //////////////////////////////////////////
72
73 EntityGUI_3Spin::EntityGUI_3Spin( QWidget* parent, Qt::WindowFlags f )
74 : QWidget( parent, f )
75 {
76   setupUi( this );
77 }
78
79 EntityGUI_3Spin::~EntityGUI_3Spin()
80 {
81 }
82
83 //////////////////////////////////////////
84 // EntityGUI_4Spin
85 //////////////////////////////////////////
86
87 EntityGUI_4Spin::EntityGUI_4Spin( QWidget* parent, Qt::WindowFlags f )
88 : QWidget( parent, f )
89 {
90   setupUi( this );
91 }
92
93 EntityGUI_4Spin::~EntityGUI_4Spin()
94 {
95 }
96
97 //////////////////////////////////////////
98 // EntityGUI_Dir1
99 //////////////////////////////////////////
100
101 EntityGUI_Dir1::EntityGUI_Dir1( QWidget* parent, Qt::WindowFlags f )
102 : QWidget( parent, f )
103 {
104   setupUi( this );
105
106   ButtonGroup = new QButtonGroup( this );
107   ButtonGroup->addButton( RB_Dir11, 2 );
108   ButtonGroup->addButton( RB_Dir12, 0 );
109   ButtonGroup->addButton( RB_Dir13, 1 );
110   ButtonGroup->addButton( RB_Dir14, 3 );
111 }
112
113 EntityGUI_Dir1::~EntityGUI_Dir1()
114 {
115 }
116
117 //////////////////////////////////////////
118 // EntityGUI_Dir2
119 //////////////////////////////////////////
120
121 EntityGUI_Dir2::EntityGUI_Dir2( QWidget* parent, Qt::WindowFlags f )
122 : QWidget( parent, f )
123 {
124   setupUi( this );
125
126   ButtonGroup = new QButtonGroup( this );
127   ButtonGroup->addButton( RB_Dir21, 2 );
128   ButtonGroup->addButton( RB_Dir22, 0 );
129   ButtonGroup->addButton( RB_Dir23, 1 );
130 }
131
132 EntityGUI_Dir2::~EntityGUI_Dir2()
133 {
134 }
135
136 //////////////////////////////////////////
137 // EntityGUI_Point
138 //////////////////////////////////////////
139
140 EntityGUI_Point::EntityGUI_Point( QWidget* parent, Qt::WindowFlags f )
141 : QWidget( parent, f )
142 {
143   setupUi( this );
144
145   ButtonGroup = new QButtonGroup( this );
146   ButtonGroup->addButton( RB_Point1, 1 );
147   ButtonGroup->addButton( RB_Point2, 0 );
148   ButtonGroup->addButton( RB_Point3, 2 );
149 }
150
151 EntityGUI_Point::~EntityGUI_Point()
152 {
153 }
154
155 //////////////////////////////////////////
156 // EntityGUI_Skeleton
157 //////////////////////////////////////////
158
159 EntityGUI_Skeleton::EntityGUI_Skeleton( QWidget* parent, Qt::WindowFlags f )
160 : QWidget( parent, f )
161 {
162   setupUi( this );
163
164   ButtonGroup = new QButtonGroup( this );
165   ButtonGroup->addButton( RadioButton1, 0 );
166   ButtonGroup->addButton( RadioButton2, 1 );
167 }
168
169 EntityGUI_Skeleton::~EntityGUI_Skeleton()
170 {
171 }
172