]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PartSet/PartSet_WidgetSketchCreator.h
Salome HOME
Issue #1343. Improvement of Extrusion and Revolution operations: transaction correcti...
[modules/shaper.git] / src / PartSet / PartSet_WidgetSketchCreator.h
index b7b8b2f40df2969545389fc8c0ef55e198f426a9..d94e0d6d9dee4011ad7e5a44941bf74245095642 100644 (file)
@@ -12,7 +12,6 @@
 #include <ModuleBase_WidgetSelector.h>
 
 class QLabel;
-class QLineEdit;
 class PartSet_Module;
 class ModelAPI_Tools;
 class ModuleBase_Operation;
@@ -117,6 +116,10 @@ private:
   /// \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);
 
@@ -134,6 +137,12 @@ private:
   /// \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;
 
@@ -146,9 +155,6 @@ private:
   /// Label of the widget
   QLabel* myLabel;
 
-  /// Input control of the widget
-  QLineEdit* myTextLine;
-
   /// List of accepting shapes types
   QStringList myShapeTypes;