]> SALOME platform Git repositories - modules/geom.git/blob - src/EntityGUI/EntityGUI_Skeleton_QTD.cxx
Salome HOME
Delete comments in UI files, leads to crash on opening in UI designer.
[modules/geom.git] / src / EntityGUI / EntityGUI_Skeleton_QTD.cxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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.
10 //
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.
15 //
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
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 /****************************************************************************
23 ** Form implementation generated from reading ui file 'EntityGUI_Skeleton_QTD.ui'
24 **
25 ** Created: Tue Mar 13 14:04:48 2007
26 **      by: The User Interface Compiler ($Id$)
27 **
28 ** WARNING! All changes made in this file will be lost!
29 ****************************************************************************/
30
31 #include "EntityGUI_Skeleton_QTD.h"
32
33 #include <qvariant.h>
34 #include <qpushbutton.h>
35 #include <qbuttongroup.h>
36 #include <qradiobutton.h>
37 #include <qgroupbox.h>
38 #include <qlayout.h>
39 #include <qtooltip.h>
40 #include <qwhatsthis.h>
41
42 /*
43  *  Constructs a EntityGUI_Skeleton_QTD as a child of 'parent', with the
44  *  name 'name' and widget flags set to 'f'.
45  *
46  *  The dialog will by default be modeless, unless you set 'modal' to
47  *  TRUE to construct a modal dialog.
48  */
49 EntityGUI_Skeleton_QTD::EntityGUI_Skeleton_QTD( QWidget* parent, const char* name, bool modal, WFlags fl )
50     : QDialog( parent, name, modal, fl )
51 {
52     if ( !name )
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"); 
56
57     Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1"); 
58
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 );
66
67     Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
68
69     RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
70     Layout2->addWidget( RadioButton1 );
71
72     RadioButton2 = new QRadioButton( GroupConstructors, "RadioButton2" );
73     Layout2->addWidget( RadioButton2 );
74
75     GroupConstructorsLayout->addLayout( Layout2, 0, 0 );
76
77     Layout1->addWidget( GroupConstructors, 0, 0 );
78
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 );
86
87     Layout5 = new QGridLayout( 0, 1, 1, 0, 6, "Layout5"); 
88
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 );
96
97     Layout4 = new QGridLayout( 0, 1, 1, 0, 6, "Layout4"); 
98
99     RB_Dest2 = new QRadioButton( GroupDest1, "RB_Dest2" );
100
101     Layout4->addWidget( RB_Dest2, 0, 1 );
102
103     RB_Dest1 = new QRadioButton( GroupDest1, "RB_Dest1" );
104
105     Layout4->addWidget( RB_Dest1, 0, 0 );
106
107     GroupDest1Layout->addLayout( Layout4, 0, 0 );
108
109     Layout5->addMultiCellWidget( GroupDest1, 0, 0, 0, 1 );
110
111     GroupDestLayout->addLayout( Layout5, 0, 0 );
112
113     Layout1->addWidget( GroupDest, 1, 0 );
114
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 );
122
123     Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); 
124
125     buttonEnd = new QPushButton( GroupButtons, "buttonEnd" );
126     Layout3->addWidget( buttonEnd );
127
128     buttonClose = new QPushButton( GroupButtons, "buttonClose" );
129     Layout3->addWidget( buttonClose );
130     Spacer1 = new QSpacerItem( 91, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
131     Layout3->addItem( Spacer1 );
132
133     buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
134     Layout3->addWidget( buttonCancel );
135
136     buttonHelp = new QPushButton( GroupButtons, "buttonHelp" );
137     Layout3->addWidget( buttonHelp );
138     GroupButtonsLayout->addLayout( Layout3 );
139
140     Layout1->addWidget( GroupButtons, 3, 0 );
141
142     EntityGUI_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
143     languageChange();
144     resize( QSize(317, 276).expandedTo(minimumSizeHint()) );
145     clearWState( WState_Polished );
146
147     // tab order
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 );
154 }
155
156 /*
157  *  Destroys the object and frees any allocated resources
158  */
159 EntityGUI_Skeleton_QTD::~EntityGUI_Skeleton_QTD()
160 {
161     // no need to delete child widgets, Qt does it all for us
162 }
163
164 /*
165  *  Sets the strings of the subwidgets using the current
166  *  language.
167  */
168 void EntityGUI_Skeleton_QTD::languageChange()
169 {
170 }
171