mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-29 19:00:36 +05:00
61 lines
1.8 KiB
C++
61 lines
1.8 KiB
C++
// GEOM GEOMGUI : GUI for Geometry component
|
|
//
|
|
// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
|
//
|
|
// This library is free software; you can redistribute it and/or
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
// License as published by the Free Software Foundation; either
|
|
// version 2.1 of the License.
|
|
//
|
|
// This library is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
// Lesser General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
// License along with this library; if not, write to the Free Software
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
//
|
|
// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
|
|
//
|
|
//
|
|
//
|
|
// File : EntityGUI_2Spin.cxx
|
|
// Author : Damien COQUERET
|
|
// Module : GEOM
|
|
// $Header:
|
|
|
|
#include "EntityGUI_2Spin.h"
|
|
|
|
#include <qlayout.h>
|
|
#include <qspinbox.h>
|
|
#include <qgroupbox.h>
|
|
|
|
/*
|
|
* Constructs a EntityGUI_2Spin which is a child of 'parent', with the
|
|
* name 'name' and widget flags set to 'f'
|
|
*/
|
|
EntityGUI_2Spin::EntityGUI_2Spin(QWidget* parent, const char* name, WFlags fl)
|
|
:EntityGUI_2Spin_QTD(parent, name, fl)
|
|
{
|
|
SpinBox1->close(TRUE);
|
|
SpinBox2->close(TRUE);
|
|
|
|
SpinBox_DX = new DlgRef_SpinBox(GroupBox1, "SpinBox_DX");
|
|
Layout1->addWidget(SpinBox_DX, 0, 1);
|
|
|
|
SpinBox_DY = new DlgRef_SpinBox(GroupBox1, "SpinBox_DY");
|
|
Layout1->addWidget(SpinBox_DY, 1, 1);
|
|
|
|
}
|
|
|
|
|
|
/*
|
|
* Destroys the object and frees any allocated resources
|
|
*/
|
|
EntityGUI_2Spin::~EntityGUI_2Spin()
|
|
{
|
|
// no need to delete child widgets, Qt does it all for us
|
|
}
|