* - id - is a name of corresponded attribute
* - tooltip - a tooltip for the widget
* - type_choice - list of expected shape types.
* - id - is a name of corresponded attribute
* - tooltip - a tooltip for the widget
* - type_choice - list of expected shape types.
/// \param theParentId is Id of a parent of the current attribute
ModuleBase_WidgetMultiSelector(QWidget* theParent,
ModuleBase_IWorkshop* theWorkshop,
/// \param theParentId is Id of a parent of the current attribute
ModuleBase_WidgetMultiSelector(QWidget* theParent,
ModuleBase_IWorkshop* theWorkshop,
/// Returns list of widget controls
/// \return a control list
virtual QList<QWidget*> getControls() const;
/// Returns list of widget controls
/// \return a control list
virtual QList<QWidget*> getControls() const;
/// 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 selection values
/// 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 selection values
virtual bool setSelection(QList<ModuleBase_ViewerPrs>& theValues,
const bool theToValidate);
/// Checks the widget validity. By default, it returns true.
virtual bool setSelection(QList<ModuleBase_ViewerPrs>& theValues,
const bool theToValidate);
/// Checks the widget validity. By default, it returns true.
/// Creates a backup of the current values of the attribute
/// It should be realized in the specific widget because of different
/// parameters of the current attribute
/// Creates a backup of the current values of the attribute
/// It should be realized in the specific widget because of different
/// parameters of the current attribute
/// a shape. If the attribute do not uses the shape, it is empty
virtual QList<ModuleBase_ViewerPrs> getAttributeSelection() const;
/// a shape. If the attribute do not uses the shape, it is empty
virtual QList<ModuleBase_ViewerPrs> getAttributeSelection() const;
/// Converts the XML defined type choice to the validator type
/// For example, the "Edges" is converted to "edge"
/// Converts the XML defined type choice to the validator type
/// For example, the "Edges" is converted to "edge"