#include <ModuleBase.h>
#include <ModuleBase_IOperation.h>
-#include "ModelAPI_Feature.h"
+#include <ModelAPI_Feature.h>
#include <QObject>
#include <QString>
/// \return the feature
FeaturePtr feature() const;
+ /// Returns true is feature of operation is valid.
+ virtual bool isValid() const;
+
/// Returns whether the nested operations are enabled.
/// The state can depend on the operation current state.
/// \return enabled state
virtual void activateNextToCurrentWidget() {};
+ /// If operation needs to redisplay its result during operation
+ /// then this method has to return True
+ virtual bool hasPreview() const { return false; }
+
public slots:
/// Slots which listen the mode widget activation
/// \param theWidget the model widget