1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: SketchShapePlugin_PageGroupBox.h
4 // Created: 13 Dec 2015
5 // Author: Natalia ERMOLAEVA
7 #include <SketchShapePlugin_WidgetMultiSelector.h>
9 #include <SketchShapePlugin_PageGroupBox.h>
11 #include <ModuleBase_IWorkshop.h>
13 #include <Config_WidgetAPI.h>
15 SketchShapePlugin_WidgetMultiSelector::SketchShapePlugin_WidgetMultiSelector(QWidget* theParent,
16 ModuleBase_IWorkshop* theWorkshop,
17 const Config_WidgetAPI* theData,
18 const std::string& theParentId)
19 : ModuleBase_WidgetMultiSelector(theParent, theWorkshop, theData, theParentId)
23 void SketchShapePlugin_WidgetMultiSelector::setHighlighted(bool isHighlighted)
25 SketchShapePlugin_PageGroupBox* aShapeGroupBox = 0;
26 QWidget* aParent = qobject_cast<QWidget*>(parent());
28 aShapeGroupBox = dynamic_cast<SketchShapePlugin_PageGroupBox*>(aParent);
31 aParent = qobject_cast<QWidget*>(aParent->parent());
35 aShapeGroupBox->setHighlightedGroupBox(isHighlighted);