Salome HOME
NPAL13898 Ok Apply Close laborious for User...
[modules/geom.git] / src / DlgRef / DlgRef_Skeleton_QTD.cxx
1 /****************************************************************************
2 ** Form implementation generated from reading ui file 'DlgRef_Skeleton_QTD.ui'
3 **
4 ** Created: Wed Feb 13 17:37:30 2008
5 **      by: The User Interface Compiler ($Id$)
6 **
7 ** WARNING! All changes made in this file will be lost!
8 ****************************************************************************/
9
10 #include "DlgRef_Skeleton_QTD.h"
11
12 #include <qvariant.h>
13 #include <qpushbutton.h>
14 #include <qgroupbox.h>
15 #include <qbuttongroup.h>
16 #include <qradiobutton.h>
17 #include <qlineedit.h>
18 #include <qlabel.h>
19 #include <qlayout.h>
20 #include <qtooltip.h>
21 #include <qwhatsthis.h>
22
23 /*
24  *  Constructs a DlgRef_Skeleton_QTD as a child of 'parent', with the
25  *  name 'name' and widget flags set to 'f'.
26  *
27  *  The dialog will by default be modeless, unless you set 'modal' to
28  *  TRUE to construct a modal dialog.
29  */
30 DlgRef_Skeleton_QTD::DlgRef_Skeleton_QTD( QWidget* parent, const char* name, bool modal, WFlags fl )
31     : QDialog( parent, name, modal, fl )
32 {
33     if ( !name )
34         setName( "DlgRef_Skeleton_QTD" );
35     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
36     setSizeGripEnabled( TRUE );
37     DlgRef_Skeleton_QTDLayout = new QGridLayout( this, 1, 1, 11, 6, "DlgRef_Skeleton_QTDLayout"); 
38
39     Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1"); 
40
41     GroupButtons = new QGroupBox( this, "GroupButtons" );
42     GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
43     GroupButtons->setColumnLayout(0, Qt::Vertical );
44     GroupButtons->layout()->setSpacing( 6 );
45     GroupButtons->layout()->setMargin( 11 );
46     GroupButtonsLayout = new QVBoxLayout( GroupButtons->layout() );
47     GroupButtonsLayout->setAlignment( Qt::AlignTop );
48
49     layout3 = new QGridLayout( 0, 1, 1, 0, 6, "layout3"); 
50     Spacer1 = new QSpacerItem( 90, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
51     layout3->addItem( Spacer1, 0, 3 );
52
53     buttonOk = new QPushButton( GroupButtons, "buttonOk" );
54
55     layout3->addWidget( buttonOk, 0, 2 );
56
57     buttonApply = new QPushButton( GroupButtons, "buttonApply" );
58
59     layout3->addWidget( buttonApply, 0, 0 );
60
61     buttonCancel = new QPushButton( GroupButtons, "buttonCancel" );
62
63     layout3->addWidget( buttonCancel, 0, 1 );
64
65     buttonHelp = new QPushButton( GroupButtons, "buttonHelp" );
66
67     layout3->addWidget( buttonHelp, 0, 4 );
68     GroupButtonsLayout->addLayout( layout3 );
69
70     Layout1->addWidget( GroupButtons, 3, 0 );
71
72     GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
73     GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
74     GroupConstructors->setColumnLayout(0, Qt::Vertical );
75     GroupConstructors->layout()->setSpacing( 6 );
76     GroupConstructors->layout()->setMargin( 11 );
77     GroupConstructorsLayout = new QHBoxLayout( GroupConstructors->layout() );
78     GroupConstructorsLayout->setAlignment( Qt::AlignTop );
79
80     Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
81
82     RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
83     Layout2->addWidget( RadioButton1 );
84
85     RadioButton2 = new QRadioButton( GroupConstructors, "RadioButton2" );
86     Layout2->addWidget( RadioButton2 );
87
88     RadioButton3 = new QRadioButton( GroupConstructors, "RadioButton3" );
89     Layout2->addWidget( RadioButton3 );
90
91     RadioButton4 = new QRadioButton( GroupConstructors, "RadioButton4" );
92     Layout2->addWidget( RadioButton4 );
93     GroupConstructorsLayout->addLayout( Layout2 );
94
95     Layout1->addWidget( GroupConstructors, 0, 0 );
96
97     GroupBoxName = new QGroupBox( this, "GroupBoxName" );
98     GroupBoxName->setColumnLayout(0, Qt::Vertical );
99     GroupBoxName->layout()->setSpacing( 6 );
100     GroupBoxName->layout()->setMargin( 11 );
101     GroupBoxNameLayout = new QGridLayout( GroupBoxName->layout() );
102     GroupBoxNameLayout->setAlignment( Qt::AlignTop );
103
104     Layout66 = new QGridLayout( 0, 1, 1, 0, 6, "Layout66"); 
105
106     ResultName = new QLineEdit( GroupBoxName, "ResultName" );
107
108     Layout66->addWidget( ResultName, 0, 1 );
109
110     NameLabel = new QLabel( GroupBoxName, "NameLabel" );
111
112     Layout66->addWidget( NameLabel, 0, 0 );
113
114     GroupBoxNameLayout->addLayout( Layout66, 0, 0 );
115
116     Layout1->addWidget( GroupBoxName, 1, 0 );
117
118     DlgRef_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
119     languageChange();
120     resize( QSize(615, 682).expandedTo(minimumSizeHint()) );
121     clearWState( WState_Polished );
122 }
123
124 /*
125  *  Destroys the object and frees any allocated resources
126  */
127 DlgRef_Skeleton_QTD::~DlgRef_Skeleton_QTD()
128 {
129     // no need to delete child widgets, Qt does it all for us
130 }
131
132 /*
133  *  Sets the strings of the subwidgets using the current
134  *  language.
135  */
136 void DlgRef_Skeleton_QTD::languageChange()
137 {
138     setCaption( tr( "DlgRef_Skeleton_QTD" ) );
139     GroupButtons->setTitle( QString::null );
140     buttonOk->setText( QString::null );
141     buttonApply->setText( QString::null );
142     buttonCancel->setText( QString::null );
143     buttonHelp->setText( QString::null );
144     GroupConstructors->setTitle( QString::null );
145     RadioButton1->setText( QString::null );
146     RadioButton2->setText( QString::null );
147     RadioButton3->setText( QString::null );
148     RadioButton4->setText( QString::null );
149     GroupBoxName->setTitle( QString::null );
150 }
151