#include <ModuleBase_ParamSpinBox.h>
class QGroupBox;
-
+class QScrollArea;
+class QToolButton;
/** \brief Represent a content of the property panel to show/modify parameters of B-spline curve.
* \ingroup GUI
/// Update attributes of B-spline feature
void storePolesAndWeights() const;
+private slots:
+ void onAddPole();
+
private:
struct BSplinePoleWidgets {
ModuleBase_LabelValue* myX;
ModuleBase_LabelValue* myY;
ModuleBase_ParamSpinBox* myWeight;
+ QToolButton* myAddBtn;
};
- QGroupBox* myPolesGroupBox; ///< widget to show poles and weights of B-spline curve
+ QGroupBox* createPoleWidget(BSplinePoleWidgets& thePole,
+ const QString& theName,
+ QWidget* theParent);
+
+ QWidget* myPolesWgt; ///< widget to show poles and weights of B-spline curve
+ QGroupBox* myPolesGroupBox;
+ QScrollArea* myScrollArea;
std::list<BSplinePoleWidgets> myPoles; ///< list of B-spline poles and their weights
};