]> SALOME platform Git repositories - modules/geom.git/blob - src/DlgRef/DlgRef_3Sel2Spin_QTD.cxx
Salome HOME
Issue 0020400: EDF 1057 GEOM: Point coordinate operation gives (0,0,0)
[modules/geom.git] / src / DlgRef / DlgRef_3Sel2Spin_QTD.cxx
1 /****************************************************************************
2 ** Form implementation generated from reading ui file 'DlgRef_3Sel2Spin_QTD.ui'
3 **
4 ** Created: Mon Apr 13 11:59:12 2009
5 **      by: The User Interface Compiler ($Id$)
6 **
7 ** WARNING! All changes made in this file will be lost!
8 ****************************************************************************/
9
10 #include "DlgRef_3Sel2Spin_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 <qspinbox.h>
18 #include <qlayout.h>
19 #include <qtooltip.h>
20 #include <qwhatsthis.h>
21
22 /*
23  *  Constructs a DlgRef_3Sel2Spin_QTD as a child of 'parent', with the
24  *  name 'name' and widget flags set to 'f'.
25  */
26 DlgRef_3Sel2Spin_QTD::DlgRef_3Sel2Spin_QTD( QWidget* parent, const char* name, WFlags fl )
27     : QWidget( parent, name, fl )
28 {
29     if ( !name )
30         setName( "DlgRef_3Sel2Spin_QTD" );
31     DlgRef_3Sel2Spin_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_3Sel2Spin_QTDLayout"); 
32
33     GroupBox1 = new QGroupBox( this, "GroupBox1" );
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     LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
41
42     GroupBox1Layout->addWidget( LineEdit1, 0, 2 );
43
44     TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
45     TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
46
47     GroupBox1Layout->addWidget( TextLabel1, 0, 0 );
48
49     PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
50     PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
51
52     GroupBox1Layout->addWidget( PushButton1, 0, 1 );
53
54     TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
55     TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
56
57     GroupBox1Layout->addWidget( TextLabel2, 1, 0 );
58
59     LineEdit2 = new QLineEdit( GroupBox1, "LineEdit2" );
60
61     GroupBox1Layout->addWidget( LineEdit2, 1, 2 );
62
63     PushButton2 = new QPushButton( GroupBox1, "PushButton2" );
64     PushButton2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton2->sizePolicy().hasHeightForWidth() ) );
65
66     GroupBox1Layout->addWidget( PushButton2, 1, 1 );
67
68     TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
69     TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
70
71     GroupBox1Layout->addWidget( TextLabel3, 2, 0 );
72
73     PushButton3 = new QPushButton( GroupBox1, "PushButton3" );
74     PushButton3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton3->sizePolicy().hasHeightForWidth() ) );
75
76     GroupBox1Layout->addWidget( PushButton3, 2, 1 );
77
78     LineEdit3 = new QLineEdit( GroupBox1, "LineEdit3" );
79
80     GroupBox1Layout->addWidget( LineEdit3, 2, 2 );
81
82     Layout2 = new QGridLayout( 0, 1, 1, 0, 6, "Layout2"); 
83
84     SpinBox2 = new QSpinBox( GroupBox1, "SpinBox2" );
85     SpinBox2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox2->sizePolicy().hasHeightForWidth() ) );
86
87     Layout2->addWidget( SpinBox2, 1, 1 );
88
89     TextLabel5 = new QLabel( GroupBox1, "TextLabel5" );
90     TextLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel5->sizePolicy().hasHeightForWidth() ) );
91
92     Layout2->addWidget( TextLabel5, 1, 0 );
93
94     TextLabel4 = new QLabel( GroupBox1, "TextLabel4" );
95     TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel4->sizePolicy().hasHeightForWidth() ) );
96
97     Layout2->addWidget( TextLabel4, 0, 0 );
98
99     SpinBox1 = new QSpinBox( GroupBox1, "SpinBox1" );
100     SpinBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox1->sizePolicy().hasHeightForWidth() ) );
101
102     Layout2->addWidget( SpinBox1, 0, 1 );
103
104     GroupBox1Layout->addMultiCellLayout( Layout2, 3, 3, 0, 2 );
105     Spacer5 = new QSpacerItem( 16, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
106     GroupBox1Layout->addItem( Spacer5, 4, 1 );
107
108     DlgRef_3Sel2Spin_QTDLayout->addWidget( GroupBox1, 0, 0 );
109     languageChange();
110     resize( QSize(124, 201).expandedTo(minimumSizeHint()) );
111     clearWState( WState_Polished );
112
113     // tab order
114     setTabOrder( PushButton1, LineEdit1 );
115     setTabOrder( LineEdit1, PushButton2 );
116     setTabOrder( PushButton2, LineEdit2 );
117     setTabOrder( LineEdit2, PushButton3 );
118     setTabOrder( PushButton3, LineEdit3 );
119     setTabOrder( LineEdit3, SpinBox1 );
120     setTabOrder( SpinBox1, SpinBox2 );
121 }
122
123 /*
124  *  Destroys the object and frees any allocated resources
125  */
126 DlgRef_3Sel2Spin_QTD::~DlgRef_3Sel2Spin_QTD()
127 {
128     // no need to delete child widgets, Qt does it all for us
129 }
130
131 /*
132  *  Sets the strings of the subwidgets using the current
133  *  language.
134  */
135 void DlgRef_3Sel2Spin_QTD::languageChange()
136 {
137     setCaption( tr( "DlgRef_2Sel2Spin_QTD" ) );
138     GroupBox1->setTitle( QString::null );
139     TextLabel1->setText( tr( "TL1" ) );
140     PushButton1->setText( QString::null );
141     TextLabel2->setText( tr( "TL2" ) );
142     PushButton2->setText( QString::null );
143     TextLabel3->setText( tr( "TL3" ) );
144     PushButton3->setText( QString::null );
145     TextLabel5->setText( tr( "TL5" ) );
146     TextLabel4->setText( tr( "TL4" ) );
147 }
148