X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_WidgetPoint2DFlyout.h;h=8b1a87cb7ea7f2cd540de22812be8faf1dcb608c;hb=825fc0c15ec31fb813103b3062fa1e51c0a2d10e;hp=cbcdc473fc17bba5d2917f5e7471892e67716e6c;hpb=c3ae28ba30027cc4a6a757ef623f40adaae96ead;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetPoint2DFlyout.h b/src/PartSet/PartSet_WidgetPoint2DFlyout.h index cbcdc473f..8b1a87cb7 100755 --- a/src/PartSet/PartSet_WidgetPoint2DFlyout.h +++ b/src/PartSet/PartSet_WidgetPoint2DFlyout.h @@ -25,24 +25,28 @@ public: /// \param theParent the parent object /// \param theWorkshop a current workshop /// \param theData the widget configuation. The attribute of the model widget is obtained from - /// \param theParentId is Id of a parent of the current attribute PartSet_WidgetPoint2DFlyout(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop, - const Config_WidgetAPI* theData, - const std::string& theParentId); + const Config_WidgetAPI* theData); /// Destructor virtual ~PartSet_WidgetPoint2DFlyout() {}; + /// Checks if the selection presentation is valid in widget + /// \param theValue a selected presentation in the view + /// \return a boolean value + virtual bool isValidSelectionCustom(const std::shared_ptr& theValue); + /// Activates the editor control only in case if the mouse over the OCC window, otherwise /// set focus to the usual double value control /// \return the state whether the widget can accept the focus virtual bool focusTo(); + /// Returns true if the attribute can be changed using the selected shapes in the viewer + /// and creating a coincidence constraint to them. This control does not use them. + virtual bool useSelectedShapes() const; + private: //! Returns workshop XGUI_Workshop* workshop() const; - -private: - bool myIsInternal; /// an XML internal state }; #endif