Salome HOME
Fix for bug IPAL18899 : 4x REGRESS: Dump python on the study leads to fatal error...
[modules/geom.git] / src / EntityGUI / EntityGUI_4Spin_QTD.cxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 /****************************************************************************
21 ** Form implementation generated from reading ui file 'EntityGUI_4Spin_QTD.ui'
22 **
23 ** Created: Fri Jul 30 16:06:00 2004
24 **      by:  The User Interface Compiler (uic)
25 **
26 ** WARNING! All changes made in this file will be lost!
27 ****************************************************************************/
28 #include "EntityGUI_4Spin_QTD.h"
29
30 #include <qvariant.h>
31 #include <qgroupbox.h>
32 #include <qlabel.h>
33 #include <qpushbutton.h>
34 #include <qspinbox.h>
35 #include <qlayout.h>
36 #include <qtooltip.h>
37 #include <qwhatsthis.h>
38
39 /* 
40  *  Constructs a EntityGUI_4Spin_QTD which is a child of 'parent', with the 
41  *  name 'name' and widget flags set to 'f'.
42  */
43 EntityGUI_4Spin_QTD::EntityGUI_4Spin_QTD( QWidget* parent,  const char* name, WFlags fl )
44     : QWidget( parent, name, fl )
45 {
46     if ( !name )
47         setName( "EntityGUI_4Spin_QTD" );
48     resize( 255, 154 ); 
49     setCaption( trUtf8( "EntityGUI_4Spin_QTD" ) );
50     EntityGUI_4Spin_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "EntityGUI_4Spin_QTDLayout"); 
51
52     GroupBox1 = new QGroupBox( this, "GroupBox1" );
53     GroupBox1->setTitle( trUtf8( "Values" ) );
54     GroupBox1->setColumnLayout(0, Qt::Vertical );
55     GroupBox1->layout()->setSpacing( 6 );
56     GroupBox1->layout()->setMargin( 11 );
57     GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
58     GroupBox1Layout->setAlignment( Qt::AlignTop );
59
60     Layout4 = new QGridLayout( 0, 1, 1, 0, 6, "Layout4"); 
61
62     Layout3 = new QGridLayout( 0, 1, 1, 0, 6, "Layout3"); 
63
64     Layout2 = new QGridLayout( 0, 1, 1, 0, 6, "Layout2"); 
65
66     buttonRedo = new QPushButton( GroupBox1, "buttonRedo" );
67     buttonRedo->setText( trUtf8( "Redo" ) );
68
69     Layout2->addWidget( buttonRedo, 0, 1 );
70
71     buttonUndo = new QPushButton( GroupBox1, "buttonUndo" );
72     buttonUndo->setText( trUtf8( "Undo" ) );
73
74     Layout2->addWidget( buttonUndo, 0, 0 );
75
76     Layout3->addLayout( Layout2, 1, 0 );
77     QSpacerItem* spacer = new QSpacerItem( 0, 45, QSizePolicy::Minimum, QSizePolicy::Expanding );
78     Layout3->addItem( spacer, 2, 0 );
79
80     buttonApply = new QPushButton( GroupBox1, "buttonApply" );
81     buttonApply->setText( trUtf8( "Create" ) );
82
83     Layout3->addWidget( buttonApply, 0, 0 );
84
85     Layout4->addLayout( Layout3, 0, 1 );
86
87     Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1"); 
88
89     SpinBox3 = new QSpinBox( GroupBox1, "SpinBox3" );
90     SpinBox3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox3->sizePolicy().hasHeightForWidth() ) );
91
92     Layout1->addWidget( SpinBox3, 2, 1 );
93
94     SpinBox2 = new QSpinBox( GroupBox1, "SpinBox2" );
95     SpinBox2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox2->sizePolicy().hasHeightForWidth() ) );
96
97     Layout1->addWidget( SpinBox2, 1, 1 );
98
99     TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
100     TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
101     TextLabel2->setText( trUtf8( "TL2" ) );
102
103     Layout1->addWidget( TextLabel2, 1, 0 );
104     QSpacerItem* spacer_2 = new QSpacerItem( 0, 70, QSizePolicy::Minimum, QSizePolicy::Expanding );
105     Layout1->addItem( spacer_2, 4, 1 );
106
107     SpinBox4 = new QSpinBox( GroupBox1, "SpinBox4" );
108     SpinBox4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox4->sizePolicy().hasHeightForWidth() ) );
109
110     Layout1->addWidget( SpinBox4, 3, 1 );
111
112     TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
113     TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
114     TextLabel3->setText( trUtf8( "TL3" ) );
115
116     Layout1->addWidget( TextLabel3, 2, 0 );
117
118     SpinBox1 = new QSpinBox( GroupBox1, "SpinBox1" );
119     SpinBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox1->sizePolicy().hasHeightForWidth() ) );
120
121     Layout1->addWidget( SpinBox1, 0, 1 );
122
123     TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
124     TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
125     TextLabel1->setText( trUtf8( "TL1" ) );
126
127     Layout1->addWidget( TextLabel1, 0, 0 );
128
129     TextLabel4 = new QLabel( GroupBox1, "TextLabel4" );
130     TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel4->sizePolicy().hasHeightForWidth() ) );
131     TextLabel4->setText( trUtf8( "TL4" ) );
132
133     Layout1->addWidget( TextLabel4, 3, 0 );
134
135     Layout4->addLayout( Layout1, 0, 0 );
136
137     GroupBox1Layout->addLayout( Layout4, 0, 0 );
138
139     EntityGUI_4Spin_QTDLayout->addWidget( GroupBox1, 0, 0 );
140 }
141
142 /*  
143  *  Destroys the object and frees any allocated resources
144  */
145 EntityGUI_4Spin_QTD::~EntityGUI_4Spin_QTD()
146 {
147     // no need to delete child widgets, Qt does it all for us
148 }
149