Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/geom.git] / src / EntityGUI / EntityGUI_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/ or email : webmaster.salome@opencascade.com
19 //
20 /****************************************************************************
21 ** Form implementation generated from reading ui file 'EntityGUI_Skeleton_QTD.ui'
22 **
23 ** Created: Tue Mar 13 14:04:48 2007
24 **      by: The User Interface Compiler ($Id$)
25 **
26 ** WARNING! All changes made in this file will be lost!
27 ****************************************************************************/
28
29 #include "EntityGUI_Skeleton_QTD.h"
30
31 #include <qvariant.h>
32 #include <qpushbutton.h>
33 #include <qbuttongroup.h>
34 #include <qradiobutton.h>
35 #include <qgroupbox.h>
36 #include <qlayout.h>
37 #include <qtooltip.h>
38 #include <qwhatsthis.h>
39
40 /*
41  *  Constructs a EntityGUI_Skeleton_QTD as a child of 'parent', with the
42  *  name 'name' and widget flags set to 'f'.
43  *
44  *  The dialog will by default be modeless, unless you set 'modal' to
45  *  TRUE to construct a modal dialog.
46  */
47 EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent, const char* name, bool modal, WFlags fl )
48     : QDialog( parent, name, modal, fl )
49 {
50     if ( !name )
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"); 
54
55     Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1"); 
56
57     GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
58     GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
59     GroupConstructors->setColumnLayout(0, Qt::Vertical );
60     GroupConstructors->layout()->setSpacing( 6 );
61     GroupConstructors->layout()->setMargin( 11 );
62     GroupConstructorsLayout = new QGridLayout( GroupConstructors->layout() );
63     GroupConstructorsLayout->setAlignment( Qt::AlignTop );
64
65     Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
66
67     RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
68     Layout2->addWidget( RadioButton1 );
69
70     RadioButton2 = new QRadioButton( GroupConstructors, "RadioButton2" );
71     Layout2->addWidget( RadioButton2 );
72
73     GroupConstructorsLayout->addLayout( Layout2, 0, 0 );
74
75     Layout1->addWidget( GroupConstructors, 0, 0 );
76
77     GroupDest = new QGroupBox( this, "GroupDest" );
78     GroupDest->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupDest->sizePolicy().hasHeightForWidth() ) );
79     GroupDest->setColumnLayout(0, Qt::Vertical );
80     GroupDest->layout()->setSpacing( 6 );
81     GroupDest->layout()->setMargin( 11 );
82     GroupDestLayout = new QGridLayout( GroupDest->layout() );
83     GroupDestLayout->setAlignment( Qt::AlignTop );
84
85     Layout5 = new QGridLayout( 0, 1, 1, 0, 6, "Layout5"); 
86
87     GroupDest1 = new QButtonGroup( GroupDest, "GroupDest1" );
88     GroupDest1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupDest1->sizePolicy().hasHeightForWidth() ) );
89     GroupDest1->setColumnLayout(0, Qt::Vertical );
90     GroupDest1->layout()->setSpacing( 6 );
91     GroupDest1->layout()->setMargin( 11 );
92     GroupDest1Layout = new QGridLayout( GroupDest1->layout() );
93     GroupDest1Layout->setAlignment( Qt::AlignTop );
94
95     Layout4 = new QGridLayout( 0, 1, 1, 0, 6, "Layout4"); 
96
97     RB_Dest2 = new QRadioButton( GroupDest1, "RB_Dest2" );
98
99     Layout4->addWidget( RB_Dest2, 0, 1 );
100
101     RB_Dest1 = new QRadioButton( GroupDest1, "RB_Dest1" );
102
103     Layout4->addWidget( RB_Dest1, 0, 0 );
104
105     GroupDest1Layout->addLayout( Layout4, 0, 0 );
106
107     Layout5->addMultiCellWidget( GroupDest1, 0, 0, 0, 1 );
108
109     GroupDestLayout->addLayout( Layout5, 0, 0 );
110
111     Layout1->addWidget( GroupDest, 1, 0 );
112
113     GroupButtons = new QGroupBox( this, "GroupButtons" );
114     GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
115     GroupButtons->setColumnLayout(0, Qt::Vertical );
116     GroupButtons->layout()->setSpacing( 6 );
117     GroupButtons->layout()->setMargin( 11 );
118     GroupButtonsLayout = new QHBoxLayout( GroupButtons->layout() );
119     GroupButtonsLayout->setAlignment( Qt::AlignTop );
120
121     Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); 
122
123     buttonEnd = new QPushButton( GroupButtons, "buttonEnd" );
124     Layout3->addWidget( buttonEnd );
125
126     buttonClose = new QPushButton( GroupButtons, "buttonClose" );
127     Layout3->addWidget( buttonClose );
128     Spacer1 = new QSpacerItem( 91, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
129     Layout3->addItem( Spacer1 );
130
131     buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
132     Layout3->addWidget( buttonCancel );
133
134     buttonHelp = new QPushButton( GroupButtons, "buttonHelp" );
135     Layout3->addWidget( buttonHelp );
136     GroupButtonsLayout->addLayout( Layout3 );
137
138     Layout1->addWidget( GroupButtons, 3, 0 );
139
140     EntityGUI_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
141     languageChange();
142     resize( QSize(317, 276).expandedTo(minimumSizeHint()) );
143     clearWState( WState_Polished );
144
145     // tab order
146     setTabOrder( RadioButton1, RadioButton2 );
147     setTabOrder( RadioButton2, RB_Dest1 );
148     setTabOrder( RB_Dest1, RB_Dest2 );
149     setTabOrder( RB_Dest2, buttonEnd );
150     setTabOrder( buttonEnd, buttonClose );
151     setTabOrder( buttonClose, buttonCancel );
152 }
153
154 /*
155  *  Destroys the object and frees any allocated resources
156  */
157 EntityGUI_Skeleton_QTD::~EntityGUI_Skeleton_QTD()
158 {
159     // no need to delete child widgets, Qt does it all for us
160 }
161
162 /*
163  *  Sets the strings of the subwidgets using the current
164  *  language.
165  */
166 void EntityGUI_Skeleton_QTD::languageChange()
167 {
168 }
169