geom/GEOMGUI/GeometryGUI_aParameterDlg.h
2003-07-09 07:30:56 +00:00

72 lines
2.2 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 : GeometryGUI_aParameterDlg.h
// Author : Lucien PIGNOLONI
// Module : GEOM
// $Header$
#ifndef GeometryGUI_aParameterDLG_H
#define GeometryGUI_aParameterDLG_H
#include <qdialog.h>
class QPushButton;
class GeometryGUI;
class QAD_SpinBoxDbl;
//=================================================================================
// class : GeometryGUI_aParameterDlg
// purpose :
//=================================================================================
class GeometryGUI_aParameterDlg : public QDialog
{
Q_OBJECT
public:
GeometryGUI_aParameterDlg( const char* aValue1 = "25",
const char* aTitle1 = "Value :",
QWidget* parent = 0,
const char* name = 0,
bool modal = FALSE,
WFlags fl = 0,
const double bottom = -1E6,
const double top = +1E6,
const int decimals = 6 ) ;
~GeometryGUI_aParameterDlg();
void setValue( double val );
double getValue();
private:
GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
QPushButton* myButtonOk;
QPushButton* myButtonCancel;
QAD_SpinBoxDbl* mySpinBox;
};
#endif // GeometryGUI_aParameterDlg.h