]> SALOME platform Git repositories - modules/geom.git/blob - src/DlgRef/DlgRef_3Sel3Spin1Check_QTD.cxx
Salome HOME
Issue 0020400: EDF 1057 GEOM: Point coordinate operation gives (0,0,0)
[modules/geom.git] / src / DlgRef / DlgRef_3Sel3Spin1Check_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_3Sel3Spin1Check_QTD.ui'
24 **
25 ** Created: Mon Apr 19 16:36:48 2004
26 **      by:  The User Interface Compiler (uic)
27 **
28 ** WARNING! All changes made in this file will be lost!
29 ****************************************************************************/
30 #include "DlgRef_3Sel3Spin1Check_QTD.h"
31
32 #include <qvariant.h>
33 #include <qcheckbox.h>
34 #include <qgroupbox.h>
35 #include <qlabel.h>
36 #include <qlineedit.h>
37 #include <qpushbutton.h>
38 #include <qspinbox.h>
39 #include <qlayout.h>
40 #include <qtooltip.h>
41 #include <qwhatsthis.h>
42
43 /* 
44  *  Constructs a DlgRef_3Sel3Spin1Check_QTD which is a child of 'parent', with the 
45  *  name 'name' and widget flags set to 'f'.
46  */
47 DlgRef_3Sel3Spin1Check_QTD::DlgRef_3Sel3Spin1Check_QTD( QWidget* parent,  const char* name, WFlags fl )
48     : QWidget( parent, name, fl )
49 {
50     if ( !name )
51         setName( "DlgRef_3Sel3Spin1Check_QTD" );
52     resize( 380, 229 ); 
53     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
54     setCaption( trUtf8( "DlgRef_3Sel3Spin1Check_QTD" ) );
55     DlgRef_3Sel3Spin1Check_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_3Sel3Spin1Check_QTDLayout"); 
56
57     GroupBox1 = new QGroupBox( this, "GroupBox1" );
58     GroupBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, GroupBox1->sizePolicy().hasHeightForWidth() ) );
59     GroupBox1->setTitle( trUtf8( "" ) );
60     GroupBox1->setColumnLayout(0, Qt::Vertical );
61     GroupBox1->layout()->setSpacing( 6 );
62     GroupBox1->layout()->setMargin( 11 );
63     GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
64     GroupBox1Layout->setAlignment( Qt::AlignTop );
65
66     Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1"); 
67
68     SpinBox_2 = new QSpinBox( GroupBox1, "SpinBox_2" );
69     SpinBox_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_2->sizePolicy().hasHeightForWidth() ) );
70
71     Layout1->addWidget( SpinBox_2, 4, 2 );
72
73     LineEdit3 = new QLineEdit( GroupBox1, "LineEdit3" );
74
75     Layout1->addWidget( LineEdit3, 2, 2 );
76
77     SpinBox_3 = new QSpinBox( GroupBox1, "SpinBox_3" );
78     SpinBox_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_3->sizePolicy().hasHeightForWidth() ) );
79
80     Layout1->addWidget( SpinBox_3, 5, 2 );
81
82     TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
83     TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
84     TextLabel1->setText( trUtf8( "TL1" ) );
85
86     Layout1->addWidget( TextLabel1, 0, 0 );
87
88     TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
89     TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
90     TextLabel3->setText( trUtf8( "TL3" ) );
91
92     Layout1->addWidget( TextLabel3, 2, 0 );
93
94     CheckBox1 = new QCheckBox( GroupBox1, "CheckBox1" );
95     CheckBox1->setText( trUtf8( "" ) );
96
97     Layout1->addMultiCellWidget( CheckBox1, 6, 6, 0, 1 );
98
99     PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
100     PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
101     PushButton1->setText( trUtf8( "" ) );
102
103     Layout1->addWidget( PushButton1, 0, 1 );
104
105     TextLabel4 = new QLabel( GroupBox1, "TextLabel4" );
106     TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel4->sizePolicy().hasHeightForWidth() ) );
107     TextLabel4->setText( trUtf8( "TL4" ) );
108
109     Layout1->addWidget( TextLabel4, 3, 0 );
110
111     LineEdit2 = new QLineEdit( GroupBox1, "LineEdit2" );
112
113     Layout1->addWidget( LineEdit2, 1, 2 );
114
115     PushButton3 = new QPushButton( GroupBox1, "PushButton3" );
116     PushButton3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton3->sizePolicy().hasHeightForWidth() ) );
117     PushButton3->setText( trUtf8( "" ) );
118
119     Layout1->addWidget( PushButton3, 2, 1 );
120
121     TextLabel6 = new QLabel( GroupBox1, "TextLabel6" );
122     TextLabel6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel6->sizePolicy().hasHeightForWidth() ) );
123     TextLabel6->setText( trUtf8( "TL6" ) );
124
125     Layout1->addWidget( TextLabel6, 5, 0 );
126
127     SpinBox_1 = new QSpinBox( GroupBox1, "SpinBox_1" );
128     SpinBox_1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox_1->sizePolicy().hasHeightForWidth() ) );
129
130     Layout1->addWidget( SpinBox_1, 3, 2 );
131
132     TextLabel5 = new QLabel( GroupBox1, "TextLabel5" );
133     TextLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel5->sizePolicy().hasHeightForWidth() ) );
134     TextLabel5->setText( trUtf8( "TL5" ) );
135
136     Layout1->addWidget( TextLabel5, 4, 0 );
137
138     TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
139     TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
140     TextLabel2->setText( trUtf8( "TL2" ) );
141
142     Layout1->addWidget( TextLabel2, 1, 0 );
143
144     LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
145
146     Layout1->addWidget( LineEdit1, 0, 2 );
147
148     PushButton2 = new QPushButton( GroupBox1, "PushButton2" );
149     PushButton2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton2->sizePolicy().hasHeightForWidth() ) );
150     PushButton2->setText( trUtf8( "" ) );
151
152     Layout1->addWidget( PushButton2, 1, 1 );
153     QSpacerItem* spacer = new QSpacerItem( 0, 250, QSizePolicy::Minimum, QSizePolicy::Expanding );
154     Layout1->addItem( spacer, 7, 2 );
155
156     GroupBox1Layout->addLayout( Layout1, 0, 0 );
157
158     DlgRef_3Sel3Spin1Check_QTDLayout->addWidget( GroupBox1, 0, 0 );
159
160     // tab order
161     setTabOrder( PushButton1, LineEdit1 );
162     setTabOrder( LineEdit1, PushButton2 );
163     setTabOrder( PushButton2, LineEdit2 );
164     setTabOrder( LineEdit2, PushButton3 );
165     setTabOrder( PushButton3, LineEdit3 );
166     setTabOrder( LineEdit3, SpinBox_1 );
167     setTabOrder( SpinBox_1, SpinBox_2 );
168     setTabOrder( SpinBox_2, SpinBox_3 );
169     setTabOrder( SpinBox_3, CheckBox1 );
170 }
171
172 /*  
173  *  Destroys the object and frees any allocated resources
174  */
175 DlgRef_3Sel3Spin1Check_QTD::~DlgRef_3Sel3Spin1Check_QTD()
176 {
177     // no need to delete child widgets, Qt does it all for us
178 }
179