]> SALOME platform Git repositories - modules/geom.git/blob - src/DlgRef/DlgRef_3Sel3Spin2Check_QTD.cxx
Salome HOME
NPAL 12483 Translate an object vector distance correct Dialog layouts and size
[modules/geom.git] / src / DlgRef / DlgRef_3Sel3Spin2Check_QTD.cxx
1 /****************************************************************************
2 ** Form implementation generated from reading ui file 'DlgRef_3Sel3Spin2Check_QTD.ui'
3 **
4 ** Created: Wed Mar 12 11:57:09 2008
5 **      by: The User Interface Compiler ($Id$)
6 **
7 ** WARNING! All changes made in this file will be lost!
8 ****************************************************************************/
9
10 #include "DlgRef_3Sel3Spin2Check_QTD.h"
11
12 #include <qvariant.h>
13 #include <qpushbutton.h>
14 #include <qgroupbox.h>
15 #include <qlabel.h>
16 #include <qspinbox.h>
17 #include <qlineedit.h>
18 #include <qcheckbox.h>
19 #include <qlayout.h>
20 #include <qtooltip.h>
21 #include <qwhatsthis.h>
22
23 /*
24  *  Constructs a DlgRef_3Sel3Spin2Check_QTD as a child of 'parent', with the
25  *  name 'name' and widget flags set to 'f'.
26  */
27 DlgRef_3Sel3Spin2Check_QTD::DlgRef_3Sel3Spin2Check_QTD( QWidget* parent, const char* name, WFlags fl )
28     : QWidget( parent, name, fl )
29 {
30     if ( !name )
31         setName( "DlgRef_3Sel3Spin2Check_QTD" );
32     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
33     DlgRef_3Sel3Spin2Check_QTDLayout = new QVBoxLayout( this, 0, 6, "DlgRef_3Sel3Spin2Check_QTDLayout"); 
34
35     GroupBox1 = new QGroupBox( this, "GroupBox1" );
36     GroupBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, GroupBox1->sizePolicy().hasHeightForWidth() ) );
37     GroupBox1->setColumnLayout(0, Qt::Vertical );
38     GroupBox1->layout()->setSpacing( 6 );
39     GroupBox1->layout()->setMargin( 11 );
40     GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
41     GroupBox1Layout->setAlignment( Qt::AlignTop );
42
43     layout1 = new QGridLayout( 0, 1, 1, 0, 6, "layout1"); 
44
45     TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
46     TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
47
48     layout1->addWidget( TextLabel2, 1, 0 );
49
50     SpinBox_3 = new QSpinBox( GroupBox1, "SpinBox_3" );
51     SpinBox_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_3->sizePolicy().hasHeightForWidth() ) );
52
53     layout1->addWidget( SpinBox_3, 5, 2 );
54
55     TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
56     TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
57
58     layout1->addWidget( TextLabel3, 2, 0 );
59
60     LineEdit2 = new QLineEdit( GroupBox1, "LineEdit2" );
61
62     layout1->addWidget( LineEdit2, 1, 2 );
63
64     PushButton2 = new QPushButton( GroupBox1, "PushButton2" );
65     PushButton2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton2->sizePolicy().hasHeightForWidth() ) );
66
67     layout1->addWidget( PushButton2, 1, 1 );
68
69     TextLabel6 = new QLabel( GroupBox1, "TextLabel6" );
70     TextLabel6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel6->sizePolicy().hasHeightForWidth() ) );
71
72     layout1->addWidget( TextLabel6, 5, 0 );
73
74     PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
75     PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
76
77     layout1->addWidget( PushButton1, 0, 1 );
78
79     CheckBox1 = new QCheckBox( GroupBox1, "CheckBox1" );
80
81     layout1->addMultiCellWidget( CheckBox1, 6, 6, 0, 2 );
82
83     SpinBox_2 = new QSpinBox( GroupBox1, "SpinBox_2" );
84     SpinBox_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_2->sizePolicy().hasHeightForWidth() ) );
85
86     layout1->addWidget( SpinBox_2, 4, 2 );
87
88     TextLabel5 = new QLabel( GroupBox1, "TextLabel5" );
89     TextLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel5->sizePolicy().hasHeightForWidth() ) );
90
91     layout1->addWidget( TextLabel5, 4, 0 );
92
93     TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
94     TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
95
96     layout1->addWidget( TextLabel1, 0, 0 );
97
98     TextLabel4 = new QLabel( GroupBox1, "TextLabel4" );
99     TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel4->sizePolicy().hasHeightForWidth() ) );
100
101     layout1->addWidget( TextLabel4, 3, 0 );
102
103     CheckBox2 = new QCheckBox( GroupBox1, "CheckBox2" );
104
105     layout1->addMultiCellWidget( CheckBox2, 7, 7, 0, 2 );
106
107     LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
108
109     layout1->addWidget( LineEdit1, 0, 2 );
110     Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
111     layout1->addItem( Spacer3, 8, 2 );
112
113     LineEdit3 = new QLineEdit( GroupBox1, "LineEdit3" );
114
115     layout1->addWidget( LineEdit3, 2, 2 );
116
117     PushButton3 = new QPushButton( GroupBox1, "PushButton3" );
118     PushButton3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton3->sizePolicy().hasHeightForWidth() ) );
119
120     layout1->addWidget( PushButton3, 2, 1 );
121
122     SpinBox_1 = new QSpinBox( GroupBox1, "SpinBox_1" );
123     SpinBox_1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_1->sizePolicy().hasHeightForWidth() ) );
124
125     layout1->addWidget( SpinBox_1, 3, 2 );
126
127     GroupBox1Layout->addLayout( layout1, 0, 0 );
128     DlgRef_3Sel3Spin2Check_QTDLayout->addWidget( GroupBox1 );
129     languageChange();
130     resize( QSize(263, 254).expandedTo(minimumSizeHint()) );
131     clearWState( WState_Polished );
132
133     // tab order
134     setTabOrder( PushButton1, LineEdit1 );
135     setTabOrder( LineEdit1, PushButton2 );
136     setTabOrder( PushButton2, LineEdit2 );
137     setTabOrder( LineEdit2, PushButton3 );
138     setTabOrder( PushButton3, LineEdit3 );
139     setTabOrder( LineEdit3, SpinBox_1 );
140     setTabOrder( SpinBox_1, SpinBox_2 );
141     setTabOrder( SpinBox_2, SpinBox_3 );
142     setTabOrder( SpinBox_3, CheckBox1 );
143     setTabOrder( CheckBox1, CheckBox2 );
144 }
145
146 /*
147  *  Destroys the object and frees any allocated resources
148  */
149 DlgRef_3Sel3Spin2Check_QTD::~DlgRef_3Sel3Spin2Check_QTD()
150 {
151     // no need to delete child widgets, Qt does it all for us
152 }
153
154 /*
155  *  Sets the strings of the subwidgets using the current
156  *  language.
157  */
158 void DlgRef_3Sel3Spin2Check_QTD::languageChange()
159 {
160     setCaption( tr( "DlgRef_3Sel3Spin2Check_QTD" ) );
161     GroupBox1->setTitle( QString::null );
162     TextLabel2->setText( tr( "TL2" ) );
163     TextLabel3->setText( tr( "TL3" ) );
164     PushButton2->setText( QString::null );
165     TextLabel6->setText( tr( "TL6" ) );
166     PushButton1->setText( QString::null );
167     CheckBox1->setText( QString::null );
168     TextLabel5->setText( tr( "TL5" ) );
169     TextLabel1->setText( tr( "TL1" ) );
170     TextLabel4->setText( tr( "TL4" ) );
171     CheckBox2->setText( QString::null );
172     PushButton3->setText( QString::null );
173 }
174