Salome HOME
Update copyright information
[modules/geom.git] / src / DlgRef / DlgRef_4Sel1Spin2Check_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_4Sel1Spin2Check_QTD.ui'
24 **
25 ** Created: Wed Oct 25 20:32:42 2006
26 **      by: The User Interface Compiler ($Id$)
27 **
28 ** WARNING! All changes made in this file will be lost!
29 ****************************************************************************/
30
31 #include "DlgRef_4Sel1Spin2Check_QTD.h"
32
33 #include <qvariant.h>
34 #include <qpushbutton.h>
35 #include <qgroupbox.h>
36 #include <qcheckbox.h>
37 #include <qlineedit.h>
38 #include <qlabel.h>
39 #include <qspinbox.h>
40 #include <qlayout.h>
41 #include <qtooltip.h>
42 #include <qwhatsthis.h>
43
44 /*
45  *  Constructs a DlgRef_4Sel1Spin2Check_QTD as a child of 'parent', with the
46  *  name 'name' and widget flags set to 'f'.
47  */
48 DlgRef_4Sel1Spin2Check_QTD::DlgRef_4Sel1Spin2Check_QTD( QWidget* parent, const char* name, WFlags fl )
49     : QWidget( parent, name, fl )
50 {
51     if ( !name )
52         setName( "DlgRef_4Sel1Spin2Check_QTD" );
53     DlgRef_4Sel1Spin2Check_QTDLayout = new QVBoxLayout( this, 0, 6, "DlgRef_4Sel1Spin2Check_QTDLayout"); 
54
55     GroupBox1 = new QGroupBox( this, "GroupBox1" );
56     GroupBox1->setColumnLayout(0, Qt::Vertical );
57     GroupBox1->layout()->setSpacing( 6 );
58     GroupBox1->layout()->setMargin( 11 );
59     GroupBox1Layout = new QVBoxLayout( GroupBox1->layout() );
60     GroupBox1Layout->setAlignment( Qt::AlignTop );
61
62     Layout1 = new QGridLayout( 0, 1, 1, 6, 6, "Layout1"); 
63
64     CheckButton2 = new QCheckBox( GroupBox1, "CheckButton2" );
65
66     Layout1->addWidget( CheckButton2, 4, 3 );
67
68     PushButton2 = new QPushButton( GroupBox1, "PushButton2" );
69     PushButton2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton2->sizePolicy().hasHeightForWidth() ) );
70
71     Layout1->addWidget( PushButton2, 1, 1 );
72
73     LineEdit5 = new QLineEdit( GroupBox1, "LineEdit5" );
74
75     Layout1->addMultiCellWidget( LineEdit5, 3, 3, 2, 3 );
76
77     TextLabel5 = new QLabel( GroupBox1, "TextLabel5" );
78     TextLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel5->sizePolicy().hasHeightForWidth() ) );
79
80     Layout1->addWidget( TextLabel5, 3, 0 );
81
82     TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
83     TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
84
85     Layout1->addWidget( TextLabel1, 0, 0 );
86
87     LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
88
89     Layout1->addMultiCellWidget( LineEdit1, 0, 0, 2, 3 );
90
91     SpinBox1 = new QSpinBox( GroupBox1, "SpinBox1" );
92     SpinBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox1->sizePolicy().hasHeightForWidth() ) );
93
94     Layout1->addWidget( SpinBox1, 4, 2 );
95
96     CheckButton1 = new QCheckBox( GroupBox1, "CheckButton1" );
97
98     Layout1->addMultiCellWidget( CheckButton1, 5, 5, 0, 2 );
99
100     TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
101     TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
102
103     Layout1->addWidget( TextLabel2, 1, 0 );
104
105     PushButton5 = new QPushButton( GroupBox1, "PushButton5" );
106     PushButton5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton5->sizePolicy().hasHeightForWidth() ) );
107
108     Layout1->addWidget( PushButton5, 3, 1 );
109
110     PushButton4 = new QPushButton( GroupBox1, "PushButton4" );
111     PushButton4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton4->sizePolicy().hasHeightForWidth() ) );
112
113     Layout1->addWidget( PushButton4, 2, 1 );
114
115     TextLabel4 = new QLabel( GroupBox1, "TextLabel4" );
116     TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel4->sizePolicy().hasHeightForWidth() ) );
117
118     Layout1->addWidget( TextLabel4, 2, 0 );
119
120     PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
121     PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
122
123     Layout1->addWidget( PushButton1, 0, 1 );
124
125     LineEdit4 = new QLineEdit( GroupBox1, "LineEdit4" );
126
127     Layout1->addMultiCellWidget( LineEdit4, 2, 2, 2, 3 );
128
129     LineEdit2 = new QLineEdit( GroupBox1, "LineEdit2" );
130
131     Layout1->addMultiCellWidget( LineEdit2, 1, 1, 2, 3 );
132
133     TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
134     TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
135
136     Layout1->addWidget( TextLabel3, 4, 0 );
137     GroupBox1Layout->addLayout( Layout1 );
138     DlgRef_4Sel1Spin2Check_QTDLayout->addWidget( GroupBox1 );
139     languageChange();
140     resize( QSize(261, 198).expandedTo(minimumSizeHint()) );
141     clearWState( WState_Polished );
142
143     // tab order
144     setTabOrder( PushButton1, LineEdit1 );
145     setTabOrder( LineEdit1, PushButton2 );
146     setTabOrder( PushButton2, LineEdit2 );
147     setTabOrder( LineEdit2, SpinBox1 );
148     setTabOrder( SpinBox1, CheckButton2 );
149 }
150
151 /*
152  *  Destroys the object and frees any allocated resources
153  */
154 DlgRef_4Sel1Spin2Check_QTD::~DlgRef_4Sel1Spin2Check_QTD()
155 {
156     // no need to delete child widgets, Qt does it all for us
157 }
158
159 /*
160  *  Sets the strings of the subwidgets using the current
161  *  language.
162  */
163 void DlgRef_4Sel1Spin2Check_QTD::languageChange()
164 {
165     setCaption( tr( "DlgRef_4Sel1Spin2Check_QTD" ) );
166     GroupBox1->setTitle( QString::null );
167     CheckButton2->setText( QString::null );
168     PushButton2->setText( QString::null );
169     TextLabel5->setText( tr( "TL5" ) );
170     TextLabel1->setText( tr( "TL1" ) );
171     CheckButton1->setText( QString::null );
172     TextLabel2->setText( tr( "TL2" ) );
173     PushButton5->setText( QString::null );
174     PushButton4->setText( QString::null );
175     TextLabel4->setText( tr( "TL4" ) );
176     PushButton1->setText( QString::null );
177     TextLabel3->setText( tr( "TL3" ) );
178 }
179