Salome HOME
0020154: Implement major axis support for ellipse creation (merge development from...
[modules/geom.git] / src / DlgRef / DlgRef_3Sel3Spin2Check_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_3Sel3Spin2Check_QTD.ui'
24 **
25 ** Created: Wed Mar 12 11:57:09 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_3Sel3Spin2Check_QTD.h"
32
33 #include <qvariant.h>
34 #include <qpushbutton.h>
35 #include <qgroupbox.h>
36 #include <qlabel.h>
37 #include <qspinbox.h>
38 #include <qlineedit.h>
39 #include <qcheckbox.h>
40 #include <qlayout.h>
41 #include <qtooltip.h>
42 #include <qwhatsthis.h>
43
44 /*
45  *  Constructs a DlgRef_3Sel3Spin2Check_QTD as a child of 'parent', with the
46  *  name 'name' and widget flags set to 'f'.
47  */
48 DlgRef_3Sel3Spin2Check_QTD::DlgRef_3Sel3Spin2Check_QTD( QWidget* parent, const char* name, WFlags fl )
49     : QWidget( parent, name, fl )
50 {
51     if ( !name )
52         setName( "DlgRef_3Sel3Spin2Check_QTD" );
53     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
54     DlgRef_3Sel3Spin2Check_QTDLayout = new QVBoxLayout( this, 0, 6, "DlgRef_3Sel3Spin2Check_QTDLayout"); 
55
56     GroupBox1 = new QGroupBox( this, "GroupBox1" );
57     GroupBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, GroupBox1->sizePolicy().hasHeightForWidth() ) );
58     GroupBox1->setColumnLayout(0, Qt::Vertical );
59     GroupBox1->layout()->setSpacing( 6 );
60     GroupBox1->layout()->setMargin( 11 );
61     GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
62     GroupBox1Layout->setAlignment( Qt::AlignTop );
63
64     layout1 = new QGridLayout( 0, 1, 1, 0, 6, "layout1"); 
65
66     TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
67     TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
68
69     layout1->addWidget( TextLabel2, 1, 0 );
70
71     SpinBox_3 = new QSpinBox( GroupBox1, "SpinBox_3" );
72     SpinBox_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_3->sizePolicy().hasHeightForWidth() ) );
73
74     layout1->addWidget( SpinBox_3, 5, 2 );
75
76     TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
77     TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
78
79     layout1->addWidget( TextLabel3, 2, 0 );
80
81     LineEdit2 = new QLineEdit( GroupBox1, "LineEdit2" );
82
83     layout1->addWidget( LineEdit2, 1, 2 );
84
85     PushButton2 = new QPushButton( GroupBox1, "PushButton2" );
86     PushButton2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton2->sizePolicy().hasHeightForWidth() ) );
87
88     layout1->addWidget( PushButton2, 1, 1 );
89
90     TextLabel6 = new QLabel( GroupBox1, "TextLabel6" );
91     TextLabel6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel6->sizePolicy().hasHeightForWidth() ) );
92
93     layout1->addWidget( TextLabel6, 5, 0 );
94
95     PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
96     PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
97
98     layout1->addWidget( PushButton1, 0, 1 );
99
100     CheckBox1 = new QCheckBox( GroupBox1, "CheckBox1" );
101
102     layout1->addMultiCellWidget( CheckBox1, 6, 6, 0, 2 );
103
104     SpinBox_2 = new QSpinBox( GroupBox1, "SpinBox_2" );
105     SpinBox_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_2->sizePolicy().hasHeightForWidth() ) );
106
107     layout1->addWidget( SpinBox_2, 4, 2 );
108
109     TextLabel5 = new QLabel( GroupBox1, "TextLabel5" );
110     TextLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel5->sizePolicy().hasHeightForWidth() ) );
111
112     layout1->addWidget( TextLabel5, 4, 0 );
113
114     TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
115     TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
116
117     layout1->addWidget( TextLabel1, 0, 0 );
118
119     TextLabel4 = new QLabel( GroupBox1, "TextLabel4" );
120     TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel4->sizePolicy().hasHeightForWidth() ) );
121
122     layout1->addWidget( TextLabel4, 3, 0 );
123
124     CheckBox2 = new QCheckBox( GroupBox1, "CheckBox2" );
125
126     layout1->addMultiCellWidget( CheckBox2, 7, 7, 0, 2 );
127
128     LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
129
130     layout1->addWidget( LineEdit1, 0, 2 );
131     Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
132     layout1->addItem( Spacer3, 8, 2 );
133
134     LineEdit3 = new QLineEdit( GroupBox1, "LineEdit3" );
135
136     layout1->addWidget( LineEdit3, 2, 2 );
137
138     PushButton3 = new QPushButton( GroupBox1, "PushButton3" );
139     PushButton3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton3->sizePolicy().hasHeightForWidth() ) );
140
141     layout1->addWidget( PushButton3, 2, 1 );
142
143     SpinBox_1 = new QSpinBox( GroupBox1, "SpinBox_1" );
144     SpinBox_1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_1->sizePolicy().hasHeightForWidth() ) );
145
146     layout1->addWidget( SpinBox_1, 3, 2 );
147
148     GroupBox1Layout->addLayout( layout1, 0, 0 );
149     DlgRef_3Sel3Spin2Check_QTDLayout->addWidget( GroupBox1 );
150     languageChange();
151     resize( QSize(263, 254).expandedTo(minimumSizeHint()) );
152     clearWState( WState_Polished );
153
154     // tab order
155     setTabOrder( PushButton1, LineEdit1 );
156     setTabOrder( LineEdit1, PushButton2 );
157     setTabOrder( PushButton2, LineEdit2 );
158     setTabOrder( LineEdit2, PushButton3 );
159     setTabOrder( PushButton3, LineEdit3 );
160     setTabOrder( LineEdit3, SpinBox_1 );
161     setTabOrder( SpinBox_1, SpinBox_2 );
162     setTabOrder( SpinBox_2, SpinBox_3 );
163     setTabOrder( SpinBox_3, CheckBox1 );
164     setTabOrder( CheckBox1, CheckBox2 );
165 }
166
167 /*
168  *  Destroys the object and frees any allocated resources
169  */
170 DlgRef_3Sel3Spin2Check_QTD::~DlgRef_3Sel3Spin2Check_QTD()
171 {
172     // no need to delete child widgets, Qt does it all for us
173 }
174
175 /*
176  *  Sets the strings of the subwidgets using the current
177  *  language.
178  */
179 void DlgRef_3Sel3Spin2Check_QTD::languageChange()
180 {
181     setCaption( tr( "DlgRef_3Sel3Spin2Check_QTD" ) );
182     GroupBox1->setTitle( QString::null );
183     TextLabel2->setText( tr( "TL2" ) );
184     TextLabel3->setText( tr( "TL3" ) );
185     PushButton2->setText( QString::null );
186     TextLabel6->setText( tr( "TL6" ) );
187     PushButton1->setText( QString::null );
188     CheckBox1->setText( QString::null );
189     TextLabel5->setText( tr( "TL5" ) );
190     TextLabel1->setText( tr( "TL1" ) );
191     TextLabel4->setText( tr( "TL4" ) );
192     CheckBox2->setText( QString::null );
193     PushButton3->setText( QString::null );
194 }
195