Salome HOME
Copyrights update
[modules/geom.git] / src / MeasureGUI / MeasureGUI_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 'MeasureGUI_Skeleton_QTD.ui'
22 **
23 ** Created: lun oct 27 11:23:09 2003
24 **      by:  The User Interface Compiler (uic)
25 **
26 ** WARNING! All changes made in this file will be lost!
27 ****************************************************************************/
28 #include "MeasureGUI_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 MeasureGUI_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 MeasureGUI_Skeleton_QTD::MeasureGUI_Skeleton_QTD( QWidget* parent,  const char* name, bool modal, WFlags fl )
47     : QDialog( parent, name, modal, fl )
48 {
49     if ( !name )
50         setName( "MeasureGUI_Skeleton_QTD" );
51     resize( 228, 266 ); 
52     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
53     setCaption( trUtf8( "MeasureGUI_Skeleton_QTD" ) );
54     setSizeGripEnabled( TRUE );
55     MeasureGUI_Skeleton_QTDLayout = new QGridLayout( this, 1, 1, 11, 6, "MeasureGUI_Skeleton_QTDLayout"); 
56
57     Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1"); 
58
59     GroupButtons = new QGroupBox( this, "GroupButtons" );
60     GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
61     GroupButtons->setTitle( trUtf8( "" ) );
62     GroupButtons->setColumnLayout(0, Qt::Vertical );
63     GroupButtons->layout()->setSpacing( 6 );
64     GroupButtons->layout()->setMargin( 11 );
65     GroupButtonsLayout = new QGridLayout( GroupButtons->layout() );
66     GroupButtonsLayout->setAlignment( Qt::AlignTop );
67
68     Layout3 = new QGridLayout( 0, 1, 1, 0, 6, "Layout3"); 
69     QSpacerItem* spacer = new QSpacerItem( 120, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
70     Layout3->addItem( spacer, 0, 2 );
71     QSpacerItem* spacer_2 = new QSpacerItem( 120, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
72     Layout3->addItem( spacer_2, 0, 0 );
73
74     buttonClose = new QPushButton( GroupButtons, "buttonClose" );
75     buttonClose->setText( trUtf8( "&Close" ) );
76
77     Layout3->addWidget( buttonClose, 0, 1 );
78
79     GroupButtonsLayout->addLayout( Layout3, 0, 0 );
80
81     Layout1->addWidget( GroupButtons, 2, 0 );
82
83     GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
84     GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
85     GroupConstructors->setTitle( trUtf8( "" ) );
86     GroupConstructors->setColumnLayout(0, Qt::Vertical );
87     GroupConstructors->layout()->setSpacing( 6 );
88     GroupConstructors->layout()->setMargin( 11 );
89     GroupConstructorsLayout = new QGridLayout( GroupConstructors->layout() );
90     GroupConstructorsLayout->setAlignment( Qt::AlignTop );
91
92     Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
93
94     RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
95     RadioButton1->setText( trUtf8( "" ) );
96     Layout2->addWidget( RadioButton1 );
97
98     GroupConstructorsLayout->addLayout( Layout2, 0, 0 );
99
100     Layout1->addWidget( GroupConstructors, 0, 0 );
101
102     GroupMedium = new QGroupBox( this, "GroupMedium" );
103     GroupMedium->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupMedium->sizePolicy().hasHeightForWidth() ) );
104     GroupMedium->setTitle( trUtf8( "" ) );
105
106     Layout1->addWidget( GroupMedium, 1, 0 );
107
108     MeasureGUI_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
109 }
110
111 /*  
112  *  Destroys the object and frees any allocated resources
113  */
114 MeasureGUI_Skeleton_QTD::~MeasureGUI_Skeleton_QTD()
115 {
116     // no need to delete child widgets, Qt does it all for us
117 }
118