]> SALOME platform Git repositories - modules/geom.git/blob - src/DlgRef/DlgRef_2Sel3Spin2Rb.cxx
Salome HOME
Update copyright information
[modules/geom.git] / src / DlgRef / DlgRef_2Sel3Spin2Rb.cxx
1 //  File   : DlgRef_2Sel2Spin.cxx
2 //  Author : Dmitry MATVEITCHEV
3 //  Module : GEOM
4 //  $Header: 
5
6 #include "DlgRef_2Sel3Spin2Rb.h"
7 #include <iostream>
8
9 #include <qlayout.h>
10 #include <qspinbox.h>
11 #include <qgroupbox.h>
12 #include <qradiobutton.h>
13
14 /* 
15  *  Constructs a DlgRef_2Sel3Spin2Rb which is a child of 'parent', with the 
16  *  name 'name' and widget flags set to 'f' 
17  */
18 DlgRef_2Sel3Spin2Rb::DlgRef_2Sel3Spin2Rb(QWidget* parent,  const char* name, WFlags fl)
19   :DlgRef_2Sel3Spin2Rb_QTD(parent, name, fl)
20 {
21   SpinBox1->close(TRUE);
22   SpinBox2->close(TRUE);
23   SpinBox3->close(TRUE);
24   RadioButton1->setChecked(true);
25   SpinBox_DX = new DlgRef_SpinBox(GroupBox1, "SpinBox_DX");
26   Layout2->addMultiCellWidget(SpinBox_DX, 0, 0, 2, 4);
27   SpinBox_DY = new DlgRef_SpinBox(GroupBox1, "SpinBox_DY");
28   Layout2->addWidget(SpinBox_DY, 1, 2);
29   SpinBox_DZ = new DlgRef_SpinBox(GroupBox1, "SpinBox_DZ");
30   Layout2->addWidget(SpinBox_DZ, 1, 4);
31   SpinBox_DY->setEnabled(false);
32   SpinBox_DZ->setEnabled(false);
33 }
34
35 /*  
36  *  Destroys the object and frees any allocated resources
37  */
38 DlgRef_2Sel3Spin2Rb::~DlgRef_2Sel3Spin2Rb()
39 {
40     // no need to delete child widgets, Qt does it all for us
41 }