X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOMBase%2FGEOMBase_Skeleton.h;h=b41134016337cb854d2e5336e0c40a046e1ad468;hb=8b5f1c191594c2b11725b6344b81ba0cd2835809;hp=089681038cbde94dadef25bd7b1e46ab82e9523d;hpb=e955dc7400ea4afde710e02dd82e2ed6f20d09f8;p=modules%2Fgeom.git diff --git a/src/GEOMBase/GEOMBase_Skeleton.h b/src/GEOMBase/GEOMBase_Skeleton.h index 089681038..b41134016 100644 --- a/src/GEOMBase/GEOMBase_Skeleton.h +++ b/src/GEOMBase/GEOMBase_Skeleton.h @@ -33,6 +33,7 @@ class GeometryGUI; class DlgRef_Skeleton; +class QSpinBox; class QDoubleSpinBox; class QLineEdit; class QButtonGroup; @@ -41,6 +42,8 @@ class QPushButton; #ifndef COORD_MIN # define COORD_MIN -1e+15 # define COORD_MAX +1e+15 +# define MAX_NUMBER 100000 +# define DBL_DIGITS_DISPLAY 16 #endif // COORD_MIN class GEOMBASE_EXPORT GEOMBase_Skeleton : public QDialog, public GEOMBase_Helper @@ -48,13 +51,14 @@ class GEOMBASE_EXPORT GEOMBase_Skeleton : public QDialog, public GEOMBase_Helper Q_OBJECT public: - GEOMBase_Skeleton( GeometryGUI*, QWidget* = 0, const char* = 0, bool = false, Qt::WindowFlags = 0 ); + GEOMBase_Skeleton( GeometryGUI*, QWidget* = 0, bool = false, Qt::WindowFlags = 0 ); ~GEOMBase_Skeleton(); private: void Init(); protected: + void initSpinBox( QSpinBox*, int, int, int = 1 ); void initSpinBox( QDoubleSpinBox*, double, double, double = 0.1, int = 3 ); void closeEvent( QCloseEvent* ); @@ -66,11 +70,14 @@ protected: /*! returns contents of "Name" field */ - virtual const char* getNewObjectName() const; + virtual QString getNewObjectName() const; /*! returns id of a selected "constructor" radio button or '-1' in case of error */ int getConstructorId() const; + /*! set selected "constructor" radio button id + */ + void setConstructorId( const int ); void setHelpFileName( const QString& );