X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_Operation.h;h=a76c7c0ee7c356ec519a5e97f1ac25046fec4c2f;hb=cdc2caa21375bc96aaad9bb7c3ee1140dac1d738;hp=77c8d3fe34e2b622d36476da8ff7b9b51660c06e;hpb=2928584ae0e88591f8962bde6986f03283c6b819;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_Operation.h b/src/ModuleBase/ModuleBase_Operation.h index 77c8d3fe3..a76c7c0ee 100644 --- a/src/ModuleBase/ModuleBase_Operation.h +++ b/src/ModuleBase/ModuleBase_Operation.h @@ -29,7 +29,8 @@ class ModuleBase_IViewer; class QKeyEvent; /*! - \class ModuleBase_Operation + * \class ModuleBase_Operation + * \ingroup GUI * \brief Base class for all operations * * Base class for all operations. If you perform an action it is reasonable to create @@ -49,6 +50,9 @@ class MODULEBASE_EXPORT ModuleBase_Operation : public QObject Q_OBJECT public: + + /// Appends to operation's history id, if it is an "edit" operation (myIsEditing == true) + static QString EditSuffix() { return "_E"; } /// Constructor /// \param theId the operation identifier /// \param theParent the QObject parent @@ -206,12 +210,6 @@ signals: /// Virtual method called after operation resume (see resume() method for more description) virtual void resumeOperation() {} - /// Send update message by loop - void flushUpdated(); - - /// Send created message by loop - void flushCreated(); - /// Creates an operation new feature /// \param theFlushMessage the flag whether the create message should be flushed /// \returns the created feature @@ -221,9 +219,6 @@ signals: /// \return Returns TRUE if current operation can be committed, e.g. all parameters are filled virtual bool canBeCommitted() const; - /// Returns pointer to the root document. - std::shared_ptr document() const; - /// Return a widget value point by the selection and the viewer position /// The default realization returns false /// \param thePrs the presentation