Salome HOME
According to "operation-widget_factory-property"
[modules/shaper.git] / src / ModuleBase / ModuleBase_IOperation.h
index 4af5c227f6abe858f23262cd958fab9cc3e2cd2a..5c753c728067ff1a0978a2405291262957a908d3 100644 (file)
 
 #include <QObject>
 #include <QString>
+#include <QList>
 
 #include <boost/shared_ptr.hpp>
 
 class ModelAPI_Document;
 class ModuleBase_OperationDescription;
+class ModuleBase_ModelWidget;
 
 /*!
  \class ModuleBase_IOperation
@@ -68,6 +70,12 @@ public:
   /// \param theOperation the previous running operation
   virtual bool isGranted(ModuleBase_IOperation* theOperation) const;
 
+  /// Sets a list of model widgets, according to the operation feature xml definition
+  /// \param theXmlRepresentation an xml feature definition
+  /// \param theWidgets a list of widgets
+  void setModelWidgets(const std::string& theXmlRepresentation,
+                       QList<ModuleBase_ModelWidget*> theWidgets);
+
 signals:
   void started(); /// the operation is started
   void aborted(); /// the operation is aborted
@@ -106,9 +114,6 @@ public slots:
   void setRunning(bool theState);
 
   // Data model methods.
-  /// Stores a real value in model.
-  /// \param theValue - to store
-  virtual void storeReal(double theValue) = 0;
   /// Stores a custom value in model.
   virtual void storeCustomValue() = 0;