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