X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IOperation.h;h=0d304c0a2a7bebc1d684914ef6bba0b4bf48dc2b;hb=11496be069750941ff9cbcef21088a56bfd32cdf;hp=77e01083c30ebab40f8cec01fac58e127cd3fc8e;hpb=42807365a2239055e4bcdb570ff594e9eedbb6ec;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IOperation.h b/src/ModuleBase/ModuleBase_IOperation.h index 77e01083c..0d304c0a2 100644 --- a/src/ModuleBase/ModuleBase_IOperation.h +++ b/src/ModuleBase/ModuleBase_IOperation.h @@ -76,6 +76,12 @@ public: //void setModelWidgets(const std::string& theXmlRepresentation, // QList theWidgets); + /// Returns True if data of its feature was modified during operation + virtual bool isModified() const { return myIsModified; } + + /// Returns True id the current operation is launched in editing mode + bool isEditOperation() const { return myIsEditing; } + signals: void started(); /// the operation is started void aborted(); /// the operation is aborted @@ -134,6 +140,12 @@ protected: /// Returns pointer to the root document. boost::shared_ptr document() const; + /// Editing feature flag + bool myIsEditing; + + /// Modified feature flag + bool myIsModified; + private: ModuleBase_OperationDescription* myDescription; /// the container to have the operation description };