From: sbh Date: Wed, 15 Apr 2015 08:17:45 +0000 (+0300) Subject: Do no accept variables in Point2D X-Git-Tag: V_1.1.0~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d71459a4c5bb5ff24e92d4e500f4fa6c871f59e1;p=modules%2Fshaper.git Do no accept variables in Point2D --- diff --git a/src/PartSet/PartSet_WidgetPoint2d.cpp b/src/PartSet/PartSet_WidgetPoint2d.cpp index d2c65a27f..10f6de95f 100644 --- a/src/PartSet/PartSet_WidgetPoint2d.cpp +++ b/src/PartSet/PartSet_WidgetPoint2d.cpp @@ -14,7 +14,7 @@ #include #include -#include +#include #include #include @@ -70,7 +70,7 @@ PartSet_WidgetPoint2D::PartSet_WidgetPoint2D(QWidget* theParent, aLabel->setPixmap(QPixmap(":pictures/x_point.png")); aGroupLay->addWidget(aLabel, 0, 0); - myXSpin = new ModuleBase_ParamSpinBox(myGroupBox); + myXSpin = new ModuleBase_DoubleSpinBox(myGroupBox); myXSpin->setMinimum(-DBL_MAX); myXSpin->setMaximum(DBL_MAX); myXSpin->setToolTip(tr("X")); @@ -84,7 +84,7 @@ PartSet_WidgetPoint2D::PartSet_WidgetPoint2D(QWidget* theParent, aLabel->setPixmap(QPixmap(":pictures/y_point.png")); aGroupLay->addWidget(aLabel, 1, 0); - myYSpin = new ModuleBase_ParamSpinBox(myGroupBox); + myYSpin = new ModuleBase_DoubleSpinBox(myGroupBox); myYSpin->setMinimum(-DBL_MAX); myYSpin->setMaximum(DBL_MAX); myYSpin->setToolTip(tr("Y")); diff --git a/src/PartSet/PartSet_WidgetPoint2d.h b/src/PartSet/PartSet_WidgetPoint2d.h index 133ac4fa6..e39011c90 100644 --- a/src/PartSet/PartSet_WidgetPoint2d.h +++ b/src/PartSet/PartSet_WidgetPoint2d.h @@ -18,7 +18,7 @@ class ModelAPI_Feature; class ModuleBase_IWorkshop; -class ModuleBase_ParamSpinBox; +class ModuleBase_DoubleSpinBox; class ModuleBase_IViewWindow; class GeomAPI_Pnt2d; class XGUI_Workshop; @@ -130,8 +130,8 @@ private slots: XGUI_Workshop* myWorkshop; QGroupBox* myGroupBox; ///< the parent group box for all intenal widgets - ModuleBase_ParamSpinBox* myXSpin; ///< the spin box for the X coordinate - ModuleBase_ParamSpinBox* myYSpin; ///< the spin box for the Y coordinate + ModuleBase_DoubleSpinBox* myXSpin; ///< the spin box for the X coordinate + ModuleBase_DoubleSpinBox* myYSpin; ///< the spin box for the Y coordinate //std::string myOptionParam; /// Parameter name which has to be taken from previous feature