1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 /****************************************************************************
23 ** Form implementation generated from reading ui file 'EntityGUI_Skeleton_QTD.ui'
25 ** Created: Tue Mar 13 14:04:48 2007
26 ** by: The User Interface Compiler ($Id$)
28 ** WARNING! All changes made in this file will be lost!
29 ****************************************************************************/
31 #include "EntityGUI_Skeleton_QTD.h"
34 #include <qpushbutton.h>
35 #include <qbuttongroup.h>
36 #include <qradiobutton.h>
37 #include <qgroupbox.h>
40 #include <qwhatsthis.h>
43 * Constructs a EntityGUI_Skeleton_QTD as a child of 'parent', with the
44 * name 'name' and widget flags set to 'f'.
46 * The dialog will by default be modeless, unless you set 'modal' to
47 * TRUE to construct a modal dialog.
49 EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent, const char* name, bool modal, WFlags fl )
50 : QDialog( parent, name, modal, fl )
53 setName( "EntityGUI_Skeleton_QTD" );
54 setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
55 EntityGUI_Skeleton_QTDLayout = new QGridLayout( this, 1, 1, 11, 6, "EntityGUI_Skeleton_QTDLayout");
57 Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
59 GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
60 GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
61 GroupConstructors->setColumnLayout(0, Qt::Vertical );
62 GroupConstructors->layout()->setSpacing( 6 );
63 GroupConstructors->layout()->setMargin( 11 );
64 GroupConstructorsLayout = new QGridLayout( GroupConstructors->layout() );
65 GroupConstructorsLayout->setAlignment( Qt::AlignTop );
67 Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2");
69 RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
70 Layout2->addWidget( RadioButton1 );
72 RadioButton2 = new QRadioButton( GroupConstructors, "RadioButton2" );
73 Layout2->addWidget( RadioButton2 );
75 GroupConstructorsLayout->addLayout( Layout2, 0, 0 );
77 Layout1->addWidget( GroupConstructors, 0, 0 );
79 GroupDest = new QGroupBox( this, "GroupDest" );
80 GroupDest->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupDest->sizePolicy().hasHeightForWidth() ) );
81 GroupDest->setColumnLayout(0, Qt::Vertical );
82 GroupDest->layout()->setSpacing( 6 );
83 GroupDest->layout()->setMargin( 11 );
84 GroupDestLayout = new QGridLayout( GroupDest->layout() );
85 GroupDestLayout->setAlignment( Qt::AlignTop );
87 Layout5 = new QGridLayout( 0, 1, 1, 0, 6, "Layout5");
89 GroupDest1 = new QButtonGroup( GroupDest, "GroupDest1" );
90 GroupDest1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupDest1->sizePolicy().hasHeightForWidth() ) );
91 GroupDest1->setColumnLayout(0, Qt::Vertical );
92 GroupDest1->layout()->setSpacing( 6 );
93 GroupDest1->layout()->setMargin( 11 );
94 GroupDest1Layout = new QGridLayout( GroupDest1->layout() );
95 GroupDest1Layout->setAlignment( Qt::AlignTop );
97 Layout4 = new QGridLayout( 0, 1, 1, 0, 6, "Layout4");
99 RB_Dest2 = new QRadioButton( GroupDest1, "RB_Dest2" );
101 Layout4->addWidget( RB_Dest2, 0, 1 );
103 RB_Dest1 = new QRadioButton( GroupDest1, "RB_Dest1" );
105 Layout4->addWidget( RB_Dest1, 0, 0 );
107 GroupDest1Layout->addLayout( Layout4, 0, 0 );
109 Layout5->addMultiCellWidget( GroupDest1, 0, 0, 0, 1 );
111 GroupDestLayout->addLayout( Layout5, 0, 0 );
113 Layout1->addWidget( GroupDest, 1, 0 );
115 GroupButtons = new QGroupBox( this, "GroupButtons" );
116 GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
117 GroupButtons->setColumnLayout(0, Qt::Vertical );
118 GroupButtons->layout()->setSpacing( 6 );
119 GroupButtons->layout()->setMargin( 11 );
120 GroupButtonsLayout = new QHBoxLayout( GroupButtons->layout() );
121 GroupButtonsLayout->setAlignment( Qt::AlignTop );
123 Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3");
125 buttonEnd = new QPushButton( GroupButtons, "buttonEnd" );
126 Layout3->addWidget( buttonEnd );
128 buttonClose = new QPushButton( GroupButtons, "buttonClose" );
129 Layout3->addWidget( buttonClose );
130 Spacer1 = new QSpacerItem( 91, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
131 Layout3->addItem( Spacer1 );
133 buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
134 Layout3->addWidget( buttonCancel );
136 buttonHelp = new QPushButton( GroupButtons, "buttonHelp" );
137 Layout3->addWidget( buttonHelp );
138 GroupButtonsLayout->addLayout( Layout3 );
140 Layout1->addWidget( GroupButtons, 3, 0 );
142 EntityGUI_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
144 resize( QSize(317, 276).expandedTo(minimumSizeHint()) );
145 clearWState( WState_Polished );
148 setTabOrder( RadioButton1, RadioButton2 );
149 setTabOrder( RadioButton2, RB_Dest1 );
150 setTabOrder( RB_Dest1, RB_Dest2 );
151 setTabOrder( RB_Dest2, buttonEnd );
152 setTabOrder( buttonEnd, buttonClose );
153 setTabOrder( buttonClose, buttonCancel );
157 * Destroys the object and frees any allocated resources
159 EntityGUI_Skeleton_QTD::~EntityGUI_Skeleton_QTD()
161 // no need to delete child widgets, Qt does it all for us
165 * Sets the strings of the subwidgets using the current
168 void EntityGUI_Skeleton_QTD::languageChange()