PartSet_WidgetPoint2DFlyout::PartSet_WidgetPoint2DFlyout(QWidget* theParent,
ModuleBase_IWorkshop* theWorkshop,
- const Config_WidgetAPI* theData,
- const std::string& theParentId)
- : PartSet_WidgetPoint2D(theParent, theWorkshop, theData, theParentId)
+ const Config_WidgetAPI* theData)
+ : PartSet_WidgetPoint2D(theParent, theWorkshop, theData)
{
- myIsInternal = theData->getBooleanAttribute(ATTR_INTERNAL, false);
+}
+
+bool PartSet_WidgetPoint2DFlyout::useSelectedShapes() const
+{
+ return false;
}
bool PartSet_WidgetPoint2DFlyout::focusTo()
{
bool aCanAcceptFocus = true;
- if (myIsInternal && isComputedDefault()) {
+ if (isInternal() && isComputedDefault()) {
AISObjectPtr anObject = workshop()->displayer()->getAISObject(feature());
aCanAcceptFocus = anObject.get() && !anObject->isEmptyDistanceGeometry();
}