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