]> SALOME platform Git repositories - modules/geom.git/blob - src/EntityGUI/EntityGUI_Point_QTD.cxx
Salome HOME
DCQ : new Sketcher
[modules/geom.git] / src / EntityGUI / EntityGUI_Point_QTD.cxx
1 /****************************************************************************
2 ** Form implementation generated from reading ui file 'EntityGUI_Point_QTD.ui'
3 **
4 ** Created: ven déc 12 11:17:08 2003
5 **      by:  The User Interface Compiler (uic)
6 **
7 ** WARNING! All changes made in this file will be lost!
8 ****************************************************************************/
9 #include "EntityGUI_Point_QTD.h"
10
11 #include <qvariant.h>
12 #include <qbuttongroup.h>
13 #include <qpushbutton.h>
14 #include <qradiobutton.h>
15 #include <qlayout.h>
16 #include <qtooltip.h>
17 #include <qwhatsthis.h>
18
19 /* 
20  *  Constructs a EntityGUI_Point_QTD which is a child of 'parent', with the 
21  *  name 'name' and widget flags set to 'f'.
22  */
23 EntityGUI_Point_QTD::EntityGUI_Point_QTD( QWidget* parent,  const char* name, WFlags fl )
24     : QWidget( parent, name, fl )
25 {
26     if ( !name )
27         setName( "EntityGUI_Point_QTD" );
28     resize( 124, 106 ); 
29     setCaption( trUtf8( "EntityGUI_Point_QTD" ) );
30     EntityGUI_Point_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "EntityGUI_Point_QTDLayout"); 
31
32     GroupPoint = new QButtonGroup( this, "GroupPoint" );
33     GroupPoint->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, GroupPoint->sizePolicy().hasHeightForWidth() ) );
34     GroupPoint->setTitle( trUtf8( "Point" ) );
35     GroupPoint->setColumnLayout(0, Qt::Vertical );
36     GroupPoint->layout()->setSpacing( 6 );
37     GroupPoint->layout()->setMargin( 11 );
38     GroupPointLayout = new QGridLayout( GroupPoint->layout() );
39     GroupPointLayout->setAlignment( Qt::AlignTop );
40
41     Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1"); 
42
43     RB_Point2 = new QRadioButton( GroupPoint, "RB_Point2" );
44     RB_Point2->setText( trUtf8( "Relative" ) );
45
46     Layout1->addWidget( RB_Point2, 1, 0 );
47
48     RB_Point1 = new QRadioButton( GroupPoint, "RB_Point1" );
49     RB_Point1->setText( trUtf8( "Absolute" ) );
50
51     Layout1->addWidget( RB_Point1, 0, 0 );
52
53     RB_Point3 = new QRadioButton( GroupPoint, "RB_Point3" );
54     RB_Point3->setText( trUtf8( "Selection" ) );
55
56     Layout1->addWidget( RB_Point3, 2, 0 );
57
58     GroupPointLayout->addLayout( Layout1, 0, 0 );
59
60     EntityGUI_Point_QTDLayout->addWidget( GroupPoint, 0, 0 );
61
62     // tab order
63     setTabOrder( RB_Point1, RB_Point2 );
64     setTabOrder( RB_Point2, RB_Point3 );
65 }
66
67 /*  
68  *  Destroys the object and frees any allocated resources
69  */
70 EntityGUI_Point_QTD::~EntityGUI_Point_QTD()
71 {
72     // no need to delete child widgets, Qt does it all for us
73 }
74