]> SALOME platform Git repositories - modules/geom.git/blob - src/MeasureGUI/MeasureGUI_Skeleton_QTD.cxx
Salome HOME
Fix issue 0020479: EDF 1116 GEOM: Create a group, "Add" button is inactive but "Selec...
[modules/geom.git] / src / MeasureGUI / MeasureGUI_Skeleton_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 'MeasureGUI_Skeleton_QTD.ui'
24 **
25 ** Created: Tue Mar 13 14:20:24 2007
26 **      by: The User Interface Compiler ($Id$)
27 **
28 ** WARNING! All changes made in this file will be lost!
29 ****************************************************************************/
30
31 #include "MeasureGUI_Skeleton_QTD.h"
32
33 #include <qvariant.h>
34 #include <qpushbutton.h>
35 #include <qgroupbox.h>
36 #include <qbuttongroup.h>
37 #include <qradiobutton.h>
38 #include <qlayout.h>
39 #include <qtooltip.h>
40 #include <qwhatsthis.h>
41
42 /*
43  *  Constructs a MeasureGUI_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 MeasureGUI_Skeleton_QTD::MeasureGUI_Skeleton_QTD( QWidget* parent, const char* name, bool modal, WFlags fl )
50     : QDialog( parent, name, modal, fl )
51 {
52     if ( !name )
53         setName( "MeasureGUI_Skeleton_QTD" );
54     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
55     setSizeGripEnabled( TRUE );
56     MeasureGUI_Skeleton_QTDLayout = new QGridLayout( this, 1, 1, 11, 6, "MeasureGUI_Skeleton_QTDLayout"); 
57
58     Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1"); 
59
60     GroupButtons = new QGroupBox( this, "GroupButtons" );
61     GroupButtons->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupButtons->sizePolicy().hasHeightForWidth() ) );
62     GroupButtons->setColumnLayout(0, Qt::Vertical );
63     GroupButtons->layout()->setSpacing( 6 );
64     GroupButtons->layout()->setMargin( 11 );
65     GroupButtonsLayout = new QGridLayout( GroupButtons->layout() );
66     GroupButtonsLayout->setAlignment( Qt::AlignTop );
67
68     Layout3 = new QGridLayout( 0, 1, 1, 0, 6, "Layout3"); 
69     Spacer1 = new QSpacerItem( 120, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
70     Layout3->addItem( Spacer1, 0, 1 );
71
72     buttonClose = new QPushButton( GroupButtons, "buttonClose" );
73
74     Layout3->addWidget( buttonClose, 0, 0 );
75
76     buttonHelp = new QPushButton( GroupButtons, "buttonHelp" );
77
78     Layout3->addWidget( buttonHelp, 0, 2 );
79
80     GroupButtonsLayout->addLayout( Layout3, 0, 0 );
81
82     Layout1->addWidget( GroupButtons, 2, 0 );
83
84     GroupConstructors = new QButtonGroup( this, "GroupConstructors" );
85     GroupConstructors->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, GroupConstructors->sizePolicy().hasHeightForWidth() ) );
86     GroupConstructors->setColumnLayout(0, Qt::Vertical );
87     GroupConstructors->layout()->setSpacing( 6 );
88     GroupConstructors->layout()->setMargin( 11 );
89     GroupConstructorsLayout = new QGridLayout( GroupConstructors->layout() );
90     GroupConstructorsLayout->setAlignment( Qt::AlignTop );
91
92     Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2"); 
93
94     RadioButton1 = new QRadioButton( GroupConstructors, "RadioButton1" );
95     Layout2->addWidget( RadioButton1 );
96
97     GroupConstructorsLayout->addLayout( Layout2, 0, 0 );
98
99     Layout1->addWidget( GroupConstructors, 0, 0 );
100
101     MeasureGUI_Skeleton_QTDLayout->addLayout( Layout1, 0, 0 );
102     languageChange();
103     resize( QSize(228, 266).expandedTo(minimumSizeHint()) );
104     clearWState( WState_Polished );
105 }
106
107 /*
108  *  Destroys the object and frees any allocated resources
109  */
110 MeasureGUI_Skeleton_QTD::~MeasureGUI_Skeleton_QTD()
111 {
112     // no need to delete child widgets, Qt does it all for us
113 }
114
115 /*
116  *  Sets the strings of the subwidgets using the current
117  *  language.
118  */
119 void MeasureGUI_Skeleton_QTD::languageChange()
120 {
121 }
122