X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FPartSet%2FPartSet_WidgetPoint2d.h;h=c85ad2082c2c81906cda79fbe3cdc421c5173b5b;hb=7cb6ac084270943d926ec7ef35bf9e63d6a3eaf5;hp=d42bd44fb4e1f1229cea95edf3b9a83c4519e507;hpb=840655e90a46754f2dd37aac6b888ec32eec69d3;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetPoint2d.h b/src/PartSet/PartSet_WidgetPoint2d.h index d42bd44fb..c85ad2082 100644 --- a/src/PartSet/PartSet_WidgetPoint2d.h +++ b/src/PartSet/PartSet_WidgetPoint2d.h @@ -56,11 +56,10 @@ Q_OBJECT /// Set the given wrapped value to the current widget /// This value should be processed in the widget according to the needs /// \param theValues the wrapped widget values + /// \param theToValidate a validation flag virtual bool setSelection(QList& theValues, const bool theToValidate); - virtual bool restoreValue(); - /// Returns list of widget controls /// \return a control list virtual QList getControls() const; @@ -109,9 +108,19 @@ protected: /// \return True in success virtual bool storeValueCustom() const; + virtual bool restoreValueCustom(); + /// The methiod called when widget is activated virtual void activateCustom(); + /// Returns true if the feature contains Point2D attribute with the same coordinates + /// The attribute of the widget is not processed. + /// \param theFeature a feature + /// \param theX the X coordinate + /// \param theY the Y coordinate + /// \return boolean result + bool isFeatureContainsPoint(const FeaturePtr& theFeature, double theX, double theY); + private slots: /// Process value changed event void onValuesChanged();