1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: PartSet_WidgetPoint2dFlyout.h
4 // Created: 14 Oct 2015
5 // Author: Natalia ERMOLAEVA
7 #ifndef PartSet_WidgetPoint2DFlyout_H
8 #define PartSet_WidgetPoint2DFlyout_H
11 #include <PartSet_WidgetPoint2d.h>
15 /**\class PartSet_WidgetPoint2DFlyout
17 * \brief Implementation of usual point 2d widget with a condition that it can not accept the focus
18 * when the AIS presentation is not visualized in the viewer.
20 class PARTSET_EXPORT PartSet_WidgetPoint2DFlyout : public PartSet_WidgetPoint2D
25 /// \param theParent the parent object
26 /// \param theWorkshop a current workshop
27 /// \param theData the widget configuation. The attribute of the model widget is obtained from
28 PartSet_WidgetPoint2DFlyout(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop,
29 const Config_WidgetAPI* theData);
31 virtual ~PartSet_WidgetPoint2DFlyout() {};
33 /// Activates the editor control only in case if the mouse over the OCC window, otherwise
34 /// set focus to the usual double value control
35 /// \return the state whether the widget can accept the focus
36 virtual bool focusTo();
38 /// Returns true if the attribute can be changed using the selected shapes in the viewer
39 /// and creating a coincidence constraint to them. This control does not use them.
40 virtual bool useSelectedShapes() const;
44 XGUI_Workshop* workshop() const;