1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
20 // File : EntityGUI_Widgets.cxx
21 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
24 #include "EntityGUI_Widgets.h"
25 #include <QButtonGroup>
27 //////////////////////////////////////////
29 //////////////////////////////////////////
31 EntityGUI_1Sel::EntityGUI_1Sel( QWidget* parent, Qt::WindowFlags f )
32 : QWidget( parent, f )
37 EntityGUI_1Sel::~EntityGUI_1Sel()
41 //////////////////////////////////////////
43 //////////////////////////////////////////
45 EntityGUI_1Spin::EntityGUI_1Spin( QWidget* parent, Qt::WindowFlags f )
46 : QWidget( parent, f )
51 EntityGUI_1Spin::~EntityGUI_1Spin()
55 //////////////////////////////////////////
57 //////////////////////////////////////////
59 EntityGUI_2Spin::EntityGUI_2Spin( QWidget* parent, Qt::WindowFlags f )
60 : QWidget( parent, f )
65 EntityGUI_2Spin::~EntityGUI_2Spin()
69 //////////////////////////////////////////
71 //////////////////////////////////////////
73 EntityGUI_3Spin::EntityGUI_3Spin( QWidget* parent, Qt::WindowFlags f )
74 : QWidget( parent, f )
79 EntityGUI_3Spin::~EntityGUI_3Spin()
83 //////////////////////////////////////////
85 //////////////////////////////////////////
87 EntityGUI_4Spin::EntityGUI_4Spin( QWidget* parent, Qt::WindowFlags f )
88 : QWidget( parent, f )
93 EntityGUI_4Spin::~EntityGUI_4Spin()
97 //////////////////////////////////////////
99 //////////////////////////////////////////
101 EntityGUI_Dir1::EntityGUI_Dir1( QWidget* parent, Qt::WindowFlags f )
102 : QWidget( parent, f )
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 );
113 EntityGUI_Dir1::~EntityGUI_Dir1()
117 //////////////////////////////////////////
119 //////////////////////////////////////////
121 EntityGUI_Dir2::EntityGUI_Dir2( QWidget* parent, Qt::WindowFlags f )
122 : QWidget( parent, f )
126 ButtonGroup = new QButtonGroup( this );
127 ButtonGroup->addButton( RB_Dir21, 2 );
128 ButtonGroup->addButton( RB_Dir22, 0 );
129 ButtonGroup->addButton( RB_Dir23, 1 );
132 EntityGUI_Dir2::~EntityGUI_Dir2()
136 //////////////////////////////////////////
138 //////////////////////////////////////////
140 EntityGUI_Point::EntityGUI_Point( QWidget* parent, Qt::WindowFlags f )
141 : QWidget( parent, f )
145 ButtonGroup = new QButtonGroup( this );
146 ButtonGroup->addButton( RB_Point1, 1 );
147 ButtonGroup->addButton( RB_Point2, 0 );
148 ButtonGroup->addButton( RB_Point3, 2 );
151 EntityGUI_Point::~EntityGUI_Point()
155 //////////////////////////////////////////
156 // EntityGUI_Skeleton
157 //////////////////////////////////////////
159 EntityGUI_Skeleton::EntityGUI_Skeleton( QWidget* parent, Qt::WindowFlags f )
160 : QWidget( parent, f )
164 ButtonGroup = new QButtonGroup( this );
165 ButtonGroup->addButton( RadioButton1, 0 );
166 ButtonGroup->addButton( RadioButton2, 1 );
169 EntityGUI_Skeleton::~EntityGUI_Skeleton()