Salome HOME
It removes obsolete code. In Mirror constraint setFlushed should not be called as...
[modules/shaper.git] / src / ModuleBase / ModuleBase_IPropertyPanel.h
index 22648e99806486e6f98a69384f5c25c4ca56bec8..516fdf3a6430e374fae22b2c022e58e6cb2dc8b0 100644 (file)
@@ -18,6 +18,7 @@
 class ModuleBase_ModelWidget;
 
 /**
+* \ingroup GUI
 * A class for Property panel object definition
 */
 class MODULEBASE_EXPORT ModuleBase_IPropertyPanel : public QDockWidget
@@ -26,7 +27,10 @@ Q_OBJECT
 public:
   /// Constructor
   /// \param theParent is a parent of the property panel
-  ModuleBase_IPropertyPanel(QWidget* theParent) : QDockWidget(theParent), myIsEditing(false) {}
+  ModuleBase_IPropertyPanel(QWidget* theParent);
+
+  /// Returns header widget
+  virtual QWidget* headerWidget() const = 0;
 
   /// Returns currently active widget
   virtual ModuleBase_ModelWidget* activeWidget() const = 0;
@@ -34,6 +38,9 @@ public:
   /// Returns all property panel's widget created by WidgetFactory
   virtual const QList<ModuleBase_ModelWidget*>& modelWidgets() const = 0;
 
+  /// Removes all widgets in the widget area of the property panel
+  virtual void cleanContent() = 0;
+
   /// Editing mode depends on mode of current operation. This value is defined by it.
   /// \param isEditing state of editing mode flag
   virtual void setEditingMode(bool isEditing) { myIsEditing = isEditing; }
@@ -48,6 +55,12 @@ public:
   /// \return Enable/Disable state of Cancel button
   virtual bool isCancelEnabled() const = 0;
 
+  /// Returns widget processed by preselection
+  virtual ModuleBase_ModelWidget* preselectionWidget() const = 0;
+
+  /// Sets widget processed by preselection
+  virtual void setPreselectionWidget(ModuleBase_ModelWidget* theWidget) = 0;
+
 signals:
   /// The signal about key release on the control, that corresponds to the attribute
   /// \param theEvent key release event