Salome HOME
f16b05e10a3c445776237496df0cba4c44bd5ce0
[modules/geom.git] / src / DlgRef / DlgRef_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 'DlgRef_Skeleton_QTD.ui'
22 **
23 ** Created: Wed Aug 11 18:42:51 2004
24 **      by:  The User Interface Compiler (uic)
25 **
26 ** WARNING! All changes made in this file will be lost!
27 ****************************************************************************/
28 #include "DlgRef_Skeleton_QTD.h"
29
30 #include <qvariant.h>
31 #include <qbuttongroup.h>
32 #include <qgroupbox.h>
33 #include <qlabel.h>
34 #include <qlineedit.h>
35 #include <qpushbutton.h>
36 #include <qradiobutton.h>
37 #include <qlayout.h>
38 #include <qtooltip.h>
39 #include <qwhatsthis.h>
40
41 /* 
42  *  Constructs a DlgRef_Skeleton_QTD which is a child of 'parent', with the 
43  *  name 'name' and widget flags set to 'f'.
44  *
45  *  The dialog will by default be modeless, unless you set 'modal' to
46  *  TRUE to construct a modal dialog.
47  */
48 DlgRef_Skeleton_QTD::DlgRef_Skeleton_QTD( QWidget* parent,  const char* name, bool modal, WFlags fl )
49     : QDialog( parent, name, modal, fl )
50 {
51     if ( !name )
52         setName( "DlgRef_Skeleton_QTD" );
53     resize( 307, 378 ); 
54     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
55     setCaption( trUtf8( "DlgRef_Skeleton_QTD" ) );
56     setSizeGripEnabled( TRUE );
57     DlgRef_Skeleton_QTDLayout = new QGridLayout( this, 1, 1, 11, 6, "DlgRef_Skeleton_QTDLayout"); 
58
59     Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1"); 
60
61     GroupMedium = new QGroupBox( this, "GroupMedium" );
62     GroupMedium->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupMedium->sizePolicy().hasHeightForWidth() ) );
63     GroupMedium->setTitle( trUtf8( "" ) );
64
65     Layout1->addWidget( GroupMedium, 2, 0 );
66
67     GroupButtons = new QGroupBox( this, "GroupButtons" );
68     GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
69     GroupButtons->setTitle( trUtf8( "" ) );
70     GroupButtons->setColumnLayout(0, Qt::Vertical );
71     GroupButtons->layout()->setSpacing( 6 );
72     GroupButtons->layout()->setMargin( 11 );
73     GroupButtonsLayout = new QHBoxLayout( GroupButtons->layout() );
74     GroupButtonsLayout->setAlignment( Qt::AlignTop );
75
76     Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); 
77
78     buttonOk = new QPushButton( GroupButtons, "buttonOk" );
79     buttonOk->setText( trUtf8( "&Ok" ) );
80     Layout3->addWidget( buttonOk );
81
82     buttonApply = new QPushButton( GroupButtons, "buttonApply" );
83     buttonApply->setText( trUtf8( "&Apply" ) );
84     Layout3->addWidget( buttonApply );
85     QSpacerItem* spacer = new QSpacerItem( 91, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
86     Layout3->addItem( spacer );
87
88     buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
89     buttonCancel->setText( trUtf8( "&Cancel" ) );
90     Layout3->addWidget( buttonCancel );
91     GroupButtonsLayout->addLayout( Layout3 );
92
93     Layout1->addWidget( GroupButtons, 3, 0 );
94
95     GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
96     GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
97     GroupConstructors->setTitle( trUtf8( "" ) );
98     GroupConstructors->setColumnLayout(0, Qt::Vertical );
99     GroupConstructors->layout()->setSpacing( 6 );
100     GroupConstructors->layout()->setMargin( 11 );
101     GroupConstructorsLayout = new QHBoxLayout( GroupConstructors->layout() );
102     GroupConstructorsLayout->setAlignment( Qt::AlignTop );
103
104     Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
105
106     RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
107     RadioButton1->setText( trUtf8( "" ) );
108     Layout2->addWidget( RadioButton1 );
109
110     RadioButton2 = new QRadioButton( GroupConstructors, "RadioButton2" );
111     RadioButton2->setText( trUtf8( "" ) );
112     Layout2->addWidget( RadioButton2 );
113
114     RadioButton3 = new QRadioButton( GroupConstructors, "RadioButton3" );
115     RadioButton3->setText( trUtf8( "" ) );
116     Layout2->addWidget( RadioButton3 );
117
118     RadioButton4 = new QRadioButton( GroupConstructors, "RadioButton4" );
119     RadioButton4->setText( trUtf8( "" ) );
120     Layout2->addWidget( RadioButton4 );
121     GroupConstructorsLayout->addLayout( Layout2 );
122
123     Layout1->addWidget( GroupConstructors, 0, 0 );
124
125     GroupBoxName = new QGroupBox( this, "GroupBoxName" );
126     GroupBoxName->setTitle( trUtf8( "Result name" ) );
127     GroupBoxName->setColumnLayout(0, Qt::Vertical );
128     GroupBoxName->layout()->setSpacing( 6 );
129     GroupBoxName->layout()->setMargin( 11 );
130     GroupBoxNameLayout = new QGridLayout( GroupBoxName->layout() );
131     GroupBoxNameLayout->setAlignment( Qt::AlignTop );
132
133     Layout66 = new QGridLayout( 0, 1, 1, 0, 6, "Layout66"); 
134
135     ResultName = new QLineEdit( GroupBoxName, "ResultName" );
136
137     Layout66->addWidget( ResultName, 0, 1 );
138
139     NameLabel = new QLabel( GroupBoxName, "NameLabel" );
140     NameLabel->setText( trUtf8( "Name" ) );
141
142     Layout66->addWidget( NameLabel, 0, 0 );
143
144     GroupBoxNameLayout->addLayout( Layout66, 0, 0 );
145
146     Layout1->addWidget( GroupBoxName, 1, 0 );
147
148     DlgRef_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
149 }
150
151 /*  
152  *  Destroys the object and frees any allocated resources
153  */
154 DlgRef_Skeleton_QTD::~DlgRef_Skeleton_QTD()
155 {
156     // no need to delete child widgets, Qt does it all for us
157 }
158