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 'DlgRef_Skeleton_QTD.ui'
23 ** Created: Fri Mar 17 11:18:06 2006
24 ** by: The User Interface Compiler ($Id$)
26 ** WARNING! All changes made in this file will be lost!
27 ****************************************************************************/
29 #include "DlgRef_Skeleton_QTD.h"
32 #include <qpushbutton.h>
33 #include <qgroupbox.h>
34 #include <qbuttongroup.h>
35 #include <qradiobutton.h>
36 #include <qlineedit.h>
40 #include <qwhatsthis.h>
43 * Constructs a DlgRef_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 DlgRef_Skeleton_QTD::DlgRef_Skeleton_QTD( QWidget* parent, const char* name, bool modal, WFlags fl )
50 : QDialog( parent, name, modal, fl )
53 setName( "DlgRef_Skeleton_QTD" );
54 setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
55 setSizeGripEnabled( TRUE );
56 DlgRef_Skeleton_QTDLayout = new QGridLayout( this, 1, 1, 11, 6, "DlgRef_Skeleton_QTDLayout");
58 Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
60 GroupMedium = new QGroupBox( this, "GroupMedium" );
61 GroupMedium->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupMedium->sizePolicy().hasHeightForWidth() ) );
63 Layout1->addWidget( GroupMedium, 2, 0 );
65 GroupButtons = new QGroupBox( this, "GroupButtons" );
66 GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
67 GroupButtons->setColumnLayout(0, Qt::Vertical );
68 GroupButtons->layout()->setSpacing( 6 );
69 GroupButtons->layout()->setMargin( 11 );
70 GroupButtonsLayout = new QHBoxLayout( GroupButtons->layout() );
71 GroupButtonsLayout->setAlignment( Qt::AlignTop );
73 Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3");
75 buttonOk = new QPushButton( GroupButtons, "buttonOk" );
76 Layout3->addWidget( buttonOk );
78 buttonApply = new QPushButton( GroupButtons, "buttonApply" );
79 Layout3->addWidget( buttonApply );
80 Spacer1 = new QSpacerItem( 91, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
81 Layout3->addItem( Spacer1 );
83 buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
84 Layout3->addWidget( buttonCancel );
86 buttonHelp = new QPushButton( GroupButtons, "buttonHelp" );
87 Layout3->addWidget( buttonHelp );
88 GroupButtonsLayout->addLayout( Layout3 );
90 Layout1->addWidget( GroupButtons, 3, 0 );
92 GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
93 GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
94 GroupConstructors->setColumnLayout(0, Qt::Vertical );
95 GroupConstructors->layout()->setSpacing( 6 );
96 GroupConstructors->layout()->setMargin( 11 );
97 GroupConstructorsLayout = new QHBoxLayout( GroupConstructors->layout() );
98 GroupConstructorsLayout->setAlignment( Qt::AlignTop );
100 Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2");
102 RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
103 Layout2->addWidget( RadioButton1 );
105 RadioButton2 = new QRadioButton( GroupConstructors, "RadioButton2" );
106 Layout2->addWidget( RadioButton2 );
108 RadioButton3 = new QRadioButton( GroupConstructors, "RadioButton3" );
109 Layout2->addWidget( RadioButton3 );
111 RadioButton4 = new QRadioButton( GroupConstructors, "RadioButton4" );
112 Layout2->addWidget( RadioButton4 );
113 GroupConstructorsLayout->addLayout( Layout2 );
115 Layout1->addWidget( GroupConstructors, 0, 0 );
117 GroupBoxName = new QGroupBox( this, "GroupBoxName" );
118 GroupBoxName->setColumnLayout(0, Qt::Vertical );
119 GroupBoxName->layout()->setSpacing( 6 );
120 GroupBoxName->layout()->setMargin( 11 );
121 GroupBoxNameLayout = new QGridLayout( GroupBoxName->layout() );
122 GroupBoxNameLayout->setAlignment( Qt::AlignTop );
124 Layout66 = new QGridLayout( 0, 1, 1, 0, 6, "Layout66");
126 ResultName = new QLineEdit( GroupBoxName, "ResultName" );
128 Layout66->addWidget( ResultName, 0, 1 );
130 NameLabel = new QLabel( GroupBoxName, "NameLabel" );
132 Layout66->addWidget( NameLabel, 0, 0 );
134 GroupBoxNameLayout->addLayout( Layout66, 0, 0 );
136 Layout1->addWidget( GroupBoxName, 1, 0 );
138 DlgRef_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
140 resize( QSize(307, 378).expandedTo(minimumSizeHint()) );
141 clearWState( WState_Polished );
145 * Destroys the object and frees any allocated resources
147 DlgRef_Skeleton_QTD::~DlgRef_Skeleton_QTD()
149 // no need to delete child widgets, Qt does it all for us
153 * Sets the strings of the subwidgets using the current
156 void DlgRef_Skeleton_QTD::languageChange()
158 setCaption( tr( "DlgRef_Skeleton_QTD" ) );
159 GroupMedium->setTitle( QString::null );
160 GroupButtons->setTitle( QString::null );
161 buttonOk->setText( tr( "&Ok" ) );
162 buttonApply->setText( tr( "&Apply" ) );
163 buttonCancel->setText( tr( "&Cancel" ) );
164 buttonHelp->setText( tr( "&Help" ) );
165 GroupConstructors->setTitle( QString::null );
166 RadioButton1->setText( QString::null );
167 RadioButton2->setText( QString::null );
168 RadioButton3->setText( QString::null );
169 RadioButton4->setText( QString::null );
170 GroupBoxName->setTitle( tr( "Result name" ) );
171 NameLabel->setText( tr( "Name" ) );