+ add slots for undo/redo to Python document observer

This commit is contained in:
wmayer
2015-02-18 21:36:47 +01:00
parent af80c7493a
commit 22c6c89719
2 changed files with 46 additions and 0 deletions

View File

@@ -65,6 +65,10 @@ private:
void slotDeletedObject(const App::DocumentObject& Obj);
/** The property of an observed object has changed */
void slotChangedObject(const App::DocumentObject& Obj, const App::Property& Prop);
/** Undoes the last transaction of the document */
void slotUndoDocument(const App::Document& Doc);
/** Redoes the last undone transaction of the document */
void slotRedoDocument(const App::Document& Doc);
private:
Py::Object inst;
@@ -75,6 +79,8 @@ private:
Connection connectApplicationDeletedDocument;
Connection connectApplicationRelabelDocument;
Connection connectApplicationActivateDocument;
Connection connectApplicationUndoDocument;
Connection connectApplicationRedoDocument;
Connection connectDocumentCreatedObject;
Connection connectDocumentDeletedObject;
Connection connectDocumentChangedObject;