Salome HOME
Copyrights update
[modules/geom.git] / src / EntityGUI / EntityGUI_Skeleton_QTD.cxx
1 // Copyright (C) 2005  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.salome-platform.org/
19 //
20 /****************************************************************************
21 ** Form implementation generated from reading ui file 'EntityGUI_Skeleton_QTD.ui'
22 **
23 ** Created: ven déc 12 11:17:08 2003
24 **      by:  The User Interface Compiler (uic)
25 **
26 ** WARNING! All changes made in this file will be lost!
27 ****************************************************************************/
28 #include "EntityGUI_Skeleton_QTD.h"
29
30 #include <qvariant.h>
31 #include <qbuttongroup.h>
32 #include <qgroupbox.h>
33 #include <qpushbutton.h>
34 #include <qradiobutton.h>
35 #include <qlayout.h>
36 #include <qtooltip.h>
37 #include <qwhatsthis.h>
38
39 /* 
40  *  Constructs a EntityGUI_Skeleton_QTD which is a child of 'parent', with the 
41  *  name 'name' and widget flags set to 'f'.
42  *
43  *  The dialog will by default be modeless, unless you set 'modal' to
44  *  TRUE to construct a modal dialog.
45  */
46 EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent,  const char* name, bool modal, WFlags fl )
47     : QDialog( parent, name, modal, fl )
48 {
49     if ( !name )
50         setName( "EntityGUI_Skeleton_QTD" );
51     resize( 317, 276 ); 
52     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
53     setCaption( trUtf8( "EntityGUI_Skeleton_QTD" ) );
54     EntityGUI_Skeleton_QTDLayout = new QGridLayout( this, 1, 1, 11, 6, "EntityGUI_Skeleton_QTDLayout"); 
55
56     Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1"); 
57
58     GroupVal = new QGroupBox( this, "GroupVal" );
59     GroupVal->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupVal->sizePolicy().hasHeightForWidth() ) );
60     GroupVal->setTitle( trUtf8( "" ) );
61
62     Layout1->addWidget( GroupVal, 2, 0 );
63
64     GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
65     GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
66     GroupConstructors->setTitle( trUtf8( "Element Type" ) );
67     GroupConstructors->setColumnLayout(0, Qt::Vertical );
68     GroupConstructors->layout()->setSpacing( 6 );
69     GroupConstructors->layout()->setMargin( 11 );
70     GroupConstructorsLayout = new QGridLayout( GroupConstructors->layout() );
71     GroupConstructorsLayout->setAlignment( Qt::AlignTop );
72
73     Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
74
75     RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
76     RadioButton1->setText( trUtf8( "Segment" ) );
77     Layout2->addWidget( RadioButton1 );
78
79     RadioButton2 = new QRadioButton( GroupConstructors, "RadioButton2" );
80     RadioButton2->setText( trUtf8( "Arc" ) );
81     Layout2->addWidget( RadioButton2 );
82
83     GroupConstructorsLayout->addLayout( Layout2, 0, 0 );
84
85     Layout1->addWidget( GroupConstructors, 0, 0 );
86
87     GroupDest = new QGroupBox( this, "GroupDest" );
88     GroupDest->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupDest->sizePolicy().hasHeightForWidth() ) );
89     GroupDest->setTitle( trUtf8( "Destination" ) );
90     GroupDest->setColumnLayout(0, Qt::Vertical );
91     GroupDest->layout()->setSpacing( 6 );
92     GroupDest->layout()->setMargin( 11 );
93     GroupDestLayout = new QGridLayout( GroupDest->layout() );
94     GroupDestLayout->setAlignment( Qt::AlignTop );
95
96     Layout5 = new QGridLayout( 0, 1, 1, 0, 6, "Layout5"); 
97
98     GroupDest1 = new QButtonGroup( GroupDest, "GroupDest1" );
99     GroupDest1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupDest1->sizePolicy().hasHeightForWidth() ) );
100     GroupDest1->setTitle( trUtf8( "Type" ) );
101     GroupDest1->setColumnLayout(0, Qt::Vertical );
102     GroupDest1->layout()->setSpacing( 6 );
103     GroupDest1->layout()->setMargin( 11 );
104     GroupDest1Layout = new QGridLayout( GroupDest1->layout() );
105     GroupDest1Layout->setAlignment( Qt::AlignTop );
106
107     Layout4 = new QGridLayout( 0, 1, 1, 0, 6, "Layout4"); 
108
109     RB_Dest2 = new QRadioButton( GroupDest1, "RB_Dest2" );
110     RB_Dest2->setText( trUtf8( "Direction" ) );
111
112     Layout4->addWidget( RB_Dest2, 0, 1 );
113
114     RB_Dest1 = new QRadioButton( GroupDest1, "RB_Dest1" );
115     RB_Dest1->setText( trUtf8( "Point" ) );
116
117     Layout4->addWidget( RB_Dest1, 0, 0 );
118
119     GroupDest1Layout->addLayout( Layout4, 0, 0 );
120
121     Layout5->addMultiCellWidget( GroupDest1, 0, 0, 0, 1 );
122
123     GroupDest2 = new QButtonGroup( GroupDest, "GroupDest2" );
124     GroupDest2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupDest2->sizePolicy().hasHeightForWidth() ) );
125     GroupDest2->setTitle( trUtf8( "" ) );
126     GroupDest2->setColumnLayout(0, Qt::Vertical );
127     GroupDest2->layout()->setSpacing( 6 );
128     GroupDest2->layout()->setMargin( 11 );
129     GroupDest2Layout = new QGridLayout( GroupDest2->layout() );
130     GroupDest2Layout->setAlignment( Qt::AlignTop );
131
132     Layout5->addWidget( GroupDest2, 1, 0 );
133
134     GroupDest3 = new QButtonGroup( GroupDest, "GroupDest3" );
135     GroupDest3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupDest3->sizePolicy().hasHeightForWidth() ) );
136     GroupDest3->setTitle( trUtf8( "" ) );
137     GroupDest3->setColumnLayout(0, Qt::Vertical );
138     GroupDest3->layout()->setSpacing( 6 );
139     GroupDest3->layout()->setMargin( 11 );
140     GroupDest3Layout = new QGridLayout( GroupDest3->layout() );
141     GroupDest3Layout->setAlignment( Qt::AlignTop );
142
143     Layout5->addWidget( GroupDest3, 1, 1 );
144
145     GroupDestLayout->addLayout( Layout5, 0, 0 );
146
147     Layout1->addWidget( GroupDest, 1, 0 );
148
149     GroupButtons = new QGroupBox( this, "GroupButtons" );
150     GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
151     GroupButtons->setTitle( trUtf8( "" ) );
152     GroupButtons->setColumnLayout(0, Qt::Vertical );
153     GroupButtons->layout()->setSpacing( 6 );
154     GroupButtons->layout()->setMargin( 11 );
155     GroupButtonsLayout = new QHBoxLayout( GroupButtons->layout() );
156     GroupButtonsLayout->setAlignment( Qt::AlignTop );
157
158     Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); 
159
160     buttonEnd = new QPushButton( GroupButtons, "buttonEnd" );
161     buttonEnd->setText( trUtf8( "End Sketch" ) );
162     Layout3->addWidget( buttonEnd );
163
164     buttonClose = new QPushButton( GroupButtons, "buttonClose" );
165     buttonClose->setText( trUtf8( "Close Sketch" ) );
166     Layout3->addWidget( buttonClose );
167     QSpacerItem* spacer = new QSpacerItem( 91, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
168     Layout3->addItem( spacer );
169
170     buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
171     buttonCancel->setText( trUtf8( "&Cancel" ) );
172     Layout3->addWidget( buttonCancel );
173     GroupButtonsLayout->addLayout( Layout3 );
174
175     Layout1->addWidget( GroupButtons, 3, 0 );
176
177     EntityGUI_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
178
179     // tab order
180     setTabOrder( RadioButton1, RadioButton2 );
181     setTabOrder( RadioButton2, RB_Dest1 );
182     setTabOrder( RB_Dest1, RB_Dest2 );
183     setTabOrder( RB_Dest2, buttonEnd );
184     setTabOrder( buttonEnd, buttonClose );
185     setTabOrder( buttonClose, buttonCancel );
186 }
187
188 /*  
189  *  Destroys the object and frees any allocated resources
190  */
191 EntityGUI_Skeleton_QTD::~EntityGUI_Skeleton_QTD()
192 {
193     // no need to delete child widgets, Qt does it all for us
194 }
195