#include <ModuleBase_WidgetSelector.h>
class QLabel;
-class QLineEdit;
class PartSet_Module;
class ModelAPI_Tools;
class ModuleBase_Operation;
/// \return boolean value
bool isSelectionMode() const;
+ /// Returns true if the current composite feature contains at least one sub-object
+ /// \return boolean value
+ bool hasSubObjects() const;
+
private slots:
void onResumed(ModuleBase_Operation* theOp);
/// \return true if validation succeed
bool validateSelectionList() const;
+ /// Change enable state of controls in the model widget by the attribute identifier
+ /// \param theModelWidget a model widget
+ /// \param theEnabled a state if the controls should be enabled/disabled
+ void setEnabledModelWidget(ModuleBase_ModelWidget* theModelWidget,
+ const bool theEnabled);
+
private:
std::string myAttributeListID;
/// Label of the widget
QLabel* myLabel;
- /// Input control of the widget
- QLineEdit* myTextLine;
-
/// List of accepting shapes types
QStringList myShapeTypes;