]> SALOME platform Git repositories - modules/geom.git/blob - src/MeasureGUI/MeasureGUI_1Sel12LineEdit_QTD.cxx
Salome HOME
Fix issue 0020479: EDF 1116 GEOM: Create a group, "Add" button is inactive but "Selec...
[modules/geom.git] / src / MeasureGUI / MeasureGUI_1Sel12LineEdit_QTD.cxx
1 /****************************************************************************
2 ** Form implementation generated from reading ui file 'MeasureGUI_1Sel12LineEdit_QTD.ui'
3 **
4 ** Created: Fri Mar 6 16:48:17 2009
5 **      by: The User Interface Compiler ($Id$)
6 **
7 ** WARNING! All changes made in this file will be lost!
8 ****************************************************************************/
9
10 #include "MeasureGUI_1Sel12LineEdit_QTD.h"
11
12 #include <qvariant.h>
13 #include <qpushbutton.h>
14 #include <qgroupbox.h>
15 #include <qlineedit.h>
16 #include <qlabel.h>
17 #include <qlayout.h>
18 #include <qtooltip.h>
19 #include <qwhatsthis.h>
20
21 /*
22  *  Constructs a MeasureGUI_1Sel12LineEdit_QTD as a child of 'parent', with the
23  *  name 'name' and widget flags set to 'f'.
24  */
25 MeasureGUI_1Sel12LineEdit_QTD::MeasureGUI_1Sel12LineEdit_QTD( QWidget* parent, const char* name, WFlags fl )
26     : QWidget( parent, name, fl )
27 {
28     if ( !name )
29         setName( "MeasureGUI_1Sel12LineEdit_QTD" );
30     MeasureGUI_1Sel12LineEdit_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "MeasureGUI_1Sel12LineEdit_QTDLayout"); 
31
32     GroupBox1 = new QGroupBox( this, "GroupBox1" );
33     GroupBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupBox1->sizePolicy().hasHeightForWidth() ) );
34     GroupBox1->setColumnLayout(0, Qt::Vertical );
35     GroupBox1->layout()->setSpacing( 6 );
36     GroupBox1->layout()->setMargin( 11 );
37     GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
38     GroupBox1Layout->setAlignment( Qt::AlignTop );
39
40     Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1"); 
41
42     Layout2 = new QGridLayout( 0, 1, 1, 0, 6, "Layout2"); 
43
44     LineEdit12 = new QLineEdit( GroupBox1, "LineEdit12" );
45
46     Layout2->addWidget( LineEdit12, 0, 2 );
47
48     LineEdit11 = new QLineEdit( GroupBox1, "LineEdit11" );
49
50     Layout2->addWidget( LineEdit11, 0, 1 );
51
52     LineEdit42 = new QLineEdit( GroupBox1, "LineEdit42" );
53
54     Layout2->addWidget( LineEdit42, 3, 2 );
55
56     TextLabel5 = new QLabel( GroupBox1, "TextLabel5" );
57     TextLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel5->sizePolicy().hasHeightForWidth() ) );
58
59     Layout2->addWidget( TextLabel5, 3, 0 );
60
61     LineEdit31 = new QLineEdit( GroupBox1, "LineEdit31" );
62
63     Layout2->addWidget( LineEdit31, 2, 1 );
64
65     LineEdit41 = new QLineEdit( GroupBox1, "LineEdit41" );
66
67     Layout2->addWidget( LineEdit41, 3, 1 );
68
69     LineEdit23 = new QLineEdit( GroupBox1, "LineEdit23" );
70
71     Layout2->addWidget( LineEdit23, 1, 3 );
72
73     LineEdit33 = new QLineEdit( GroupBox1, "LineEdit33" );
74
75     Layout2->addWidget( LineEdit33, 2, 3 );
76
77     LineEdit43 = new QLineEdit( GroupBox1, "LineEdit43" );
78
79     Layout2->addWidget( LineEdit43, 3, 3 );
80
81     LineEdit22 = new QLineEdit( GroupBox1, "LineEdit22" );
82
83     Layout2->addWidget( LineEdit22, 1, 2 );
84
85     TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
86     TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
87
88     Layout2->addWidget( TextLabel2, 0, 0 );
89
90     TextLabel4 = new QLabel( GroupBox1, "TextLabel4" );
91     TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel4->sizePolicy().hasHeightForWidth() ) );
92
93     Layout2->addWidget( TextLabel4, 2, 0 );
94
95     LineEdit13 = new QLineEdit( GroupBox1, "LineEdit13" );
96
97     Layout2->addWidget( LineEdit13, 0, 3 );
98
99     LineEdit32 = new QLineEdit( GroupBox1, "LineEdit32" );
100
101     Layout2->addWidget( LineEdit32, 2, 2 );
102
103     LineEdit21 = new QLineEdit( GroupBox1, "LineEdit21" );
104
105     Layout2->addWidget( LineEdit21, 1, 1 );
106
107     TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
108     TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
109
110     Layout2->addWidget( TextLabel3, 1, 0 );
111
112     Layout1->addMultiCellLayout( Layout2, 1, 1, 0, 2 );
113
114     LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
115     LineEdit1->setMinimumSize( QSize( 300, 0 ) );
116
117     Layout1->addWidget( LineEdit1, 0, 2 );
118     Spacer8 = new QSpacerItem( 0, 40, QSizePolicy::Minimum, QSizePolicy::Expanding );
119     Layout1->addItem( Spacer8, 2, 2 );
120
121     PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
122     PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
123
124     Layout1->addWidget( PushButton1, 0, 1 );
125
126     TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
127     TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
128
129     Layout1->addWidget( TextLabel1, 0, 0 );
130
131     GroupBox1Layout->addLayout( Layout1, 0, 0 );
132
133     MeasureGUI_1Sel12LineEdit_QTDLayout->addWidget( GroupBox1, 0, 0 );
134     languageChange();
135     resize( QSize(131, 171).expandedTo(minimumSizeHint()) );
136     clearWState( WState_Polished );
137 }
138
139 /*
140  *  Destroys the object and frees any allocated resources
141  */
142 MeasureGUI_1Sel12LineEdit_QTD::~MeasureGUI_1Sel12LineEdit_QTD()
143 {
144     // no need to delete child widgets, Qt does it all for us
145 }
146
147 /*
148  *  Sets the strings of the subwidgets using the current
149  *  language.
150  */
151 void MeasureGUI_1Sel12LineEdit_QTD::languageChange()
152 {
153     setCaption( tr( "MeasureGUI_1Sel12LineEdit_QTD" ) );
154     GroupBox1->setTitle( QString::null );
155     TextLabel5->setText( tr( "TL5" ) );
156     TextLabel2->setText( tr( "TL2" ) );
157     TextLabel4->setText( tr( "TL4" ) );
158     TextLabel3->setText( tr( "TL3" ) );
159     PushButton1->setText( QString::null );
160     TextLabel1->setText( tr( "TL1" ) );
161 }
162