Salome HOME
0020154: Implement major axis support for ellipse creation (merge development from...
[modules/geom.git] / src / DlgRef / DlgRef_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 'DlgRef_Skeleton_QTD.ui'
24 **
25 ** Created: Wed May 7 11:21:32 2008
26 **      by: The User Interface Compiler ($Id$)
27 **
28 ** WARNING! All changes made in this file will be lost!
29 ****************************************************************************/
30
31 #include "DlgRef_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 <qlabel.h>
39 #include <qlineedit.h>
40 #include <qcheckbox.h>
41 #include <qlayout.h>
42 #include <qtooltip.h>
43 #include <qwhatsthis.h>
44
45 /*
46  *  Constructs a DlgRef_Skeleton_QTD as a child of 'parent', with the
47  *  name 'name' and widget flags set to 'f'.
48  *
49  *  The dialog will by default be modeless, unless you set 'modal' to
50  *  TRUE to construct a modal dialog.
51  */
52 DlgRef_Skeleton_QTD::DlgRef_Skeleton_QTD( QWidget* parent, const char* name, bool modal, WFlags fl )
53     : QDialog( parent, name, modal, fl )
54 {
55     if ( !name )
56         setName( "DlgRef_Skeleton_QTD" );
57     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
58     setSizeGripEnabled( TRUE );
59     DlgRef_Skeleton_QTDLayout = new QGridLayout( this, 1, 1, 11, 6, "DlgRef_Skeleton_QTDLayout"); 
60
61     Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1"); 
62
63     GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
64     GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
65     GroupConstructors->setColumnLayout(0, Qt::Vertical );
66     GroupConstructors->layout()->setSpacing( 6 );
67     GroupConstructors->layout()->setMargin( 11 );
68     GroupConstructorsLayout = new QHBoxLayout( GroupConstructors->layout() );
69     GroupConstructorsLayout->setAlignment( Qt::AlignTop );
70
71     Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
72
73     RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
74     Layout2->addWidget( RadioButton1 );
75
76     RadioButton2 = new QRadioButton( GroupConstructors, "RadioButton2" );
77     Layout2->addWidget( RadioButton2 );
78
79     RadioButton3 = new QRadioButton( GroupConstructors, "RadioButton3" );
80     Layout2->addWidget( RadioButton3 );
81
82     RadioButton4 = new QRadioButton( GroupConstructors, "RadioButton4" );
83     Layout2->addWidget( RadioButton4 );
84
85     RadioButton5 = new QRadioButton( GroupConstructors, "RadioButton5" );
86     Layout2->addWidget( RadioButton5 );
87     GroupConstructorsLayout->addLayout( Layout2 );
88
89     Layout1->addWidget( GroupConstructors, 0, 0 );
90
91     GroupBoxName = new QGroupBox( this, "GroupBoxName" );
92     GroupBoxName->setColumnLayout(0, Qt::Vertical );
93     GroupBoxName->layout()->setSpacing( 6 );
94     GroupBoxName->layout()->setMargin( 11 );
95     GroupBoxNameLayout = new QGridLayout( GroupBoxName->layout() );
96     GroupBoxNameLayout->setAlignment( Qt::AlignTop );
97
98     Layout4 = new QGridLayout( 0, 1, 1, 0, 6, "Layout4"); 
99
100     NameLabel = new QLabel( GroupBoxName, "NameLabel" );
101
102     Layout4->addWidget( NameLabel, 0, 0 );
103
104     ResultName = new QLineEdit( GroupBoxName, "ResultName" );
105
106     Layout4->addWidget( ResultName, 0, 1 );
107
108     GroupBoxNameLayout->addLayout( Layout4, 0, 0 );
109
110     Layout1->addWidget( GroupBoxName, 1, 0 );
111
112     GroupBoxPublish = new QGroupBox( this, "GroupBoxPublish" );
113     GroupBoxPublish->setColumnLayout(0, Qt::Vertical );
114     GroupBoxPublish->layout()->setSpacing( 6 );
115     GroupBoxPublish->layout()->setMargin( 11 );
116     GroupBoxPublishLayout = new QGridLayout( GroupBoxPublish->layout() );
117     GroupBoxPublishLayout->setAlignment( Qt::AlignTop );
118
119     Layout5 = new QGridLayout( 0, 1, 1, 0, 6, "Layout5"); 
120
121     CheckBoxRestoreSS = new QCheckBox( GroupBoxPublish, "CheckBoxRestoreSS" );
122
123     Layout5->addWidget( CheckBoxRestoreSS, 0, 0 );
124
125     GroupBoxPublishLayout->addLayout( Layout5, 0, 0 );
126
127     Layout1->addWidget( GroupBoxPublish, 3, 0 );
128
129     GroupButtons = new QGroupBox( this, "GroupButtons" );
130     GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
131     GroupButtons->setColumnLayout(0, Qt::Vertical );
132     GroupButtons->layout()->setSpacing( 6 );
133     GroupButtons->layout()->setMargin( 11 );
134     GroupButtonsLayout = new QVBoxLayout( GroupButtons->layout() );
135     GroupButtonsLayout->setAlignment( Qt::AlignTop );
136
137     Layout3 = new QGridLayout( 0, 1, 1, 0, 6, "Layout3"); 
138
139     buttonOk = new QPushButton( GroupButtons, "buttonOk" );
140
141     Layout3->addWidget( buttonOk, 0, 0 );
142
143     buttonApply = new QPushButton( GroupButtons, "buttonApply" );
144
145     Layout3->addWidget( buttonApply, 0, 1 );
146
147     buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
148
149     Layout3->addWidget( buttonCancel, 0, 3 );
150     Spacer1 = new QSpacerItem( 90, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
151     Layout3->addItem( Spacer1, 0, 2 );
152
153     buttonHelp = new QPushButton( GroupButtons, "buttonHelp" );
154
155     Layout3->addWidget( buttonHelp, 0, 4 );
156     GroupButtonsLayout->addLayout( Layout3 );
157
158     Layout1->addWidget( GroupButtons, 4, 0 );
159
160     DlgRef_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
161     languageChange();
162     resize( QSize(615, 682).expandedTo(minimumSizeHint()) );
163     clearWState( WState_Polished );
164 }
165
166 /*
167  *  Destroys the object and frees any allocated resources
168  */
169 DlgRef_Skeleton_QTD::~DlgRef_Skeleton_QTD()
170 {
171     // no need to delete child widgets, Qt does it all for us
172 }
173
174 /*
175  *  Sets the strings of the subwidgets using the current
176  *  language.
177  */
178 void DlgRef_Skeleton_QTD::languageChange()
179 {
180 }
181