Salome HOME
NPAL17269: Performance pb. when creating a group with GUI.
[modules/geom.git] / src / DlgRef / DlgRef_3Sel1Check_QTD.cxx
1 /****************************************************************************
2 ** Form implementation generated from reading ui file 'UIFiles/DlgRef_3Sel1Check_QTD.ui'
3 **
4 ** Created: Wed Feb 21 10:49:18 2007
5 **      by: The User Interface Compiler ($Id$)
6 **
7 ** WARNING! All changes made in this file will be lost!
8 ****************************************************************************/
9
10 #include "DlgRef_3Sel1Check_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 <qradiobutton.h>
18 #include <qlayout.h>
19 #include <qtooltip.h>
20 #include <qwhatsthis.h>
21
22 /*
23  *  Constructs a DlgRef_3Sel1Check_QTD as a child of 'parent', with the
24  *  name 'name' and widget flags set to 'f'.
25  */
26 DlgRef_3Sel1Check_QTD::DlgRef_3Sel1Check_QTD( QWidget* parent, const char* name, WFlags fl )
27     : QWidget( parent, name, fl )
28 {
29     if ( !name )
30         setName( "DlgRef_3Sel1Check_QTD" );
31     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
32     DlgRef_3Sel1Check_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_3Sel1Check_QTDLayout"); 
33
34     GroupBox1 = new QGroupBox( this, "GroupBox1" );
35     GroupBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, GroupBox1->sizePolicy().hasHeightForWidth() ) );
36     GroupBox1->setColumnLayout(0, Qt::Vertical );
37     GroupBox1->layout()->setSpacing( 6 );
38     GroupBox1->layout()->setMargin( 11 );
39     GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
40     GroupBox1Layout->setAlignment( Qt::AlignTop );
41
42     PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
43     PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
44
45     GroupBox1Layout->addWidget( PushButton1, 0, 1 );
46
47     LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
48
49     GroupBox1Layout->addWidget( LineEdit1, 0, 2 );
50
51     TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
52     TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
53
54     GroupBox1Layout->addWidget( TextLabel1, 0, 0 );
55
56     PushButton2 = new QPushButton( GroupBox1, "PushButton2" );
57     PushButton2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton2->sizePolicy().hasHeightForWidth() ) );
58
59     GroupBox1Layout->addWidget( PushButton2, 1, 1 );
60
61     LineEdit2 = new QLineEdit( GroupBox1, "LineEdit2" );
62
63     GroupBox1Layout->addWidget( LineEdit2, 1, 2 );
64
65     TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
66     TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
67
68     GroupBox1Layout->addWidget( TextLabel2, 1, 0 );
69
70     PushButton3 = new QPushButton( GroupBox1, "PushButton3" );
71     PushButton3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton3->sizePolicy().hasHeightForWidth() ) );
72
73     GroupBox1Layout->addWidget( PushButton3, 2, 1 );
74
75     LineEdit3 = new QLineEdit( GroupBox1, "LineEdit3" );
76
77     GroupBox1Layout->addWidget( LineEdit3, 2, 2 );
78
79     TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
80     TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
81
82     GroupBox1Layout->addWidget( TextLabel3, 2, 0 );
83
84     radioButton4 = new QRadioButton( GroupBox1, "radioButton4" );
85
86     GroupBox1Layout->addMultiCellWidget( radioButton4, 3, 3, 0, 1 );
87     Spacer3 = new QSpacerItem( 16, 721, QSizePolicy::Minimum, QSizePolicy::Expanding );
88     GroupBox1Layout->addItem( Spacer3, 4, 2 );
89
90     DlgRef_3Sel1Check_QTDLayout->addWidget( GroupBox1, 0, 0 );
91     languageChange();
92     resize( QSize(490, 878).expandedTo(minimumSizeHint()) );
93     clearWState( WState_Polished );
94
95     // tab order
96     setTabOrder( PushButton1, LineEdit1 );
97     setTabOrder( LineEdit1, PushButton2 );
98     setTabOrder( PushButton2, LineEdit2 );
99     setTabOrder( LineEdit2, PushButton3 );
100     setTabOrder( PushButton3, LineEdit3 );
101 }
102
103 /*
104  *  Destroys the object and frees any allocated resources
105  */
106 DlgRef_3Sel1Check_QTD::~DlgRef_3Sel1Check_QTD()
107 {
108     // no need to delete child widgets, Qt does it all for us
109 }
110
111 /*
112  *  Sets the strings of the subwidgets using the current
113  *  language.
114  */
115 void DlgRef_3Sel1Check_QTD::languageChange()
116 {
117     setCaption( tr( "DlgRef_3Sel3Spin1Check_QTD" ) );
118     GroupBox1->setTitle( QString::null );
119     PushButton1->setText( QString::null );
120     TextLabel1->setText( tr( "TL1" ) );
121     PushButton2->setText( QString::null );
122     TextLabel2->setText( tr( "TL2" ) );
123     PushButton3->setText( QString::null );
124     TextLabel3->setText( tr( "TL3" ) );
125     radioButton4->setText( tr( "radioButton4" ) );
126 }
127