X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_WidgetPoint2d.h;h=a07107f669ab30a56c698ddcd5333d1ea7fec5bc;hb=857b1f72d9703c46c6c8c9bb239821d314344c86;hp=77ead09c2e9f8809fd753aa40cc2c5d1645ac8be;hpb=9c710f79194400664d41e147a7c783b86c906d53;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetPoint2d.h b/src/PartSet/PartSet_WidgetPoint2d.h index 77ead09c2..a07107f66 100644 --- a/src/PartSet/PartSet_WidgetPoint2d.h +++ b/src/PartSet/PartSet_WidgetPoint2d.h @@ -56,9 +56,8 @@ 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 - virtual bool setSelection(QList& theValues); - - virtual bool restoreValue(); + virtual bool setSelection(QList& theValues, + const bool theToValidate); /// Returns list of widget controls /// \return a control list @@ -108,9 +107,18 @@ 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 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(); @@ -124,6 +132,10 @@ private slots: bool getPoint2d(const Handle(V3d_View)& theView, const TopoDS_Shape& theShape, double& theX, double& theY) const; + /// Create a coincidence constraint between the attribute and the parameter object + /// \theObject a result object + void setConstraintWith(const ObjectPtr& theObject); + ModuleBase_IWorkshop* myWorkshop; PartSet_LockApplyMgr* myLockApplyMgr; ///< a manager to lock/unlock Apply button in PP