1 // Copyright (C) 2005 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 /****************************************************************************
21 ** Form implementation generated from reading ui file 'EntityGUI_Skeleton_QTD.ui'
23 ** Created: Fri Mar 17 15:47:14 2006
24 ** by: The User Interface Compiler ($Id$)
26 ** WARNING! All changes made in this file will be lost!
27 ****************************************************************************/
29 #include "EntityGUI_Skeleton_QTD.h"
32 #include <qpushbutton.h>
33 #include <qgroupbox.h>
34 #include <qbuttongroup.h>
35 #include <qradiobutton.h>
38 #include <qwhatsthis.h>
41 * Constructs a EntityGUI_Skeleton_QTD as a child of 'parent', with the
42 * name 'name' and widget flags set to 'f'.
44 * The dialog will by default be modeless, unless you set 'modal' to
45 * TRUE to construct a modal dialog.
47 EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent, const char* name, bool modal, WFlags fl )
48 : QDialog( parent, name, modal, fl )
51 setName( "EntityGUI_Skeleton_QTD" );
52 setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
53 EntityGUI_Skeleton_QTDLayout = new QGridLayout( this, 1, 1, 11, 6, "EntityGUI_Skeleton_QTDLayout");
55 Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
57 GroupVal = new QGroupBox( this, "GroupVal" );
58 GroupVal->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupVal->sizePolicy().hasHeightForWidth() ) );
60 Layout1->addWidget( GroupVal, 2, 0 );
62 GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
63 GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
64 GroupConstructors->setColumnLayout(0, Qt::Vertical );
65 GroupConstructors->layout()->setSpacing( 6 );
66 GroupConstructors->layout()->setMargin( 11 );
67 GroupConstructorsLayout = new QGridLayout( GroupConstructors->layout() );
68 GroupConstructorsLayout->setAlignment( Qt::AlignTop );
70 Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2");
72 RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
73 Layout2->addWidget( RadioButton1 );
75 RadioButton2 = new QRadioButton( GroupConstructors, "RadioButton2" );
76 Layout2->addWidget( RadioButton2 );
78 GroupConstructorsLayout->addLayout( Layout2, 0, 0 );
80 Layout1->addWidget( GroupConstructors, 0, 0 );
82 GroupDest = new QGroupBox( this, "GroupDest" );
83 GroupDest->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupDest->sizePolicy().hasHeightForWidth() ) );
84 GroupDest->setColumnLayout(0, Qt::Vertical );
85 GroupDest->layout()->setSpacing( 6 );
86 GroupDest->layout()->setMargin( 11 );
87 GroupDestLayout = new QGridLayout( GroupDest->layout() );
88 GroupDestLayout->setAlignment( Qt::AlignTop );
90 Layout5 = new QGridLayout( 0, 1, 1, 0, 6, "Layout5");
92 GroupDest1 = new QButtonGroup( GroupDest, "GroupDest1" );
93 GroupDest1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupDest1->sizePolicy().hasHeightForWidth() ) );
94 GroupDest1->setColumnLayout(0, Qt::Vertical );
95 GroupDest1->layout()->setSpacing( 6 );
96 GroupDest1->layout()->setMargin( 11 );
97 GroupDest1Layout = new QGridLayout( GroupDest1->layout() );
98 GroupDest1Layout->setAlignment( Qt::AlignTop );
100 Layout4 = new QGridLayout( 0, 1, 1, 0, 6, "Layout4");
102 RB_Dest2 = new QRadioButton( GroupDest1, "RB_Dest2" );
104 Layout4->addWidget( RB_Dest2, 0, 1 );
106 RB_Dest1 = new QRadioButton( GroupDest1, "RB_Dest1" );
108 Layout4->addWidget( RB_Dest1, 0, 0 );
110 GroupDest1Layout->addLayout( Layout4, 0, 0 );
112 Layout5->addMultiCellWidget( GroupDest1, 0, 0, 0, 1 );
114 GroupDest2 = new QButtonGroup( GroupDest, "GroupDest2" );
115 GroupDest2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupDest2->sizePolicy().hasHeightForWidth() ) );
116 GroupDest2->setColumnLayout(0, Qt::Vertical );
117 GroupDest2->layout()->setSpacing( 6 );
118 GroupDest2->layout()->setMargin( 11 );
119 GroupDest2Layout = new QGridLayout( GroupDest2->layout() );
120 GroupDest2Layout->setAlignment( Qt::AlignTop );
122 Layout5->addWidget( GroupDest2, 1, 0 );
124 GroupDest3 = new QButtonGroup( GroupDest, "GroupDest3" );
125 GroupDest3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupDest3->sizePolicy().hasHeightForWidth() ) );
126 GroupDest3->setColumnLayout(0, Qt::Vertical );
127 GroupDest3->layout()->setSpacing( 6 );
128 GroupDest3->layout()->setMargin( 11 );
129 GroupDest3Layout = new QGridLayout( GroupDest3->layout() );
130 GroupDest3Layout->setAlignment( Qt::AlignTop );
132 Layout5->addWidget( GroupDest3, 1, 1 );
134 GroupDestLayout->addLayout( Layout5, 0, 0 );
136 Layout1->addWidget( GroupDest, 1, 0 );
138 GroupButtons = new QGroupBox( this, "GroupButtons" );
139 GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
140 GroupButtons->setColumnLayout(0, Qt::Vertical );
141 GroupButtons->layout()->setSpacing( 6 );
142 GroupButtons->layout()->setMargin( 11 );
143 GroupButtonsLayout = new QHBoxLayout( GroupButtons->layout() );
144 GroupButtonsLayout->setAlignment( Qt::AlignTop );
146 Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3");
148 buttonEnd = new QPushButton( GroupButtons, "buttonEnd" );
149 Layout3->addWidget( buttonEnd );
151 buttonClose = new QPushButton( GroupButtons, "buttonClose" );
152 Layout3->addWidget( buttonClose );
153 Spacer1 = new QSpacerItem( 91, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
154 Layout3->addItem( Spacer1 );
156 buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
157 Layout3->addWidget( buttonCancel );
159 buttonHelp = new QPushButton( GroupButtons, "buttonHelp" );
160 Layout3->addWidget( buttonHelp );
161 GroupButtonsLayout->addLayout( Layout3 );
163 Layout1->addWidget( GroupButtons, 3, 0 );
165 EntityGUI_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
167 resize( QSize(317, 276).expandedTo(minimumSizeHint()) );
168 clearWState( WState_Polished );
171 setTabOrder( RadioButton1, RadioButton2 );
172 setTabOrder( RadioButton2, RB_Dest1 );
173 setTabOrder( RB_Dest1, RB_Dest2 );
174 setTabOrder( RB_Dest2, buttonEnd );
175 setTabOrder( buttonEnd, buttonClose );
176 setTabOrder( buttonClose, buttonCancel );
180 * Destroys the object and frees any allocated resources
182 EntityGUI_Skeleton_QTD::~EntityGUI_Skeleton_QTD()
184 // no need to delete child widgets, Qt does it all for us
188 * Sets the strings of the subwidgets using the current
191 void EntityGUI_Skeleton_QTD::languageChange()
193 setCaption( tr( "EntityGUI_Skeleton_QTD" ) );
194 GroupVal->setTitle( QString::null );
195 GroupConstructors->setTitle( tr( "Element Type" ) );
196 RadioButton1->setText( tr( "Segment" ) );
197 RadioButton2->setText( tr( "Arc" ) );
198 GroupDest->setTitle( tr( "Destination" ) );
199 GroupDest1->setTitle( tr( "Type" ) );
200 RB_Dest2->setText( tr( "Direction" ) );
201 RB_Dest1->setText( tr( "Point" ) );
202 GroupDest2->setTitle( QString::null );
203 GroupDest3->setTitle( QString::null );
204 GroupButtons->setTitle( QString::null );
205 buttonEnd->setText( tr( "End Sketch" ) );
206 buttonClose->setText( tr( "Close Sketch" ) );
207 buttonCancel->setText( tr( "&Cancel" ) );
208 buttonHelp->setText( tr( "&Help" ) );