Gui: add function to observe before changing a property

This commit is contained in:
wmayer
2020-01-13 02:17:39 +01:00
parent 127ae92e61
commit e5d23469f7
6 changed files with 38 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ private:
/** Checks if the given object is about to be removed. */
void slotDeletedObject(const Gui::ViewProvider& Obj);
/** The property of an observed object has changed */
void slotBeforeChangeObject(const Gui::ViewProvider& Obj, const App::Property& Prop);
/** The property of an observed object has changed */
void slotChangedObject(const Gui::ViewProvider& Obj, const App::Property& Prop);
/** The object was set into edit mode */
void slotInEdit(const Gui::ViewProviderDocumentObject& Obj);
@@ -90,6 +92,7 @@ private:
Connection pyActivateDocument;
Connection pyCreatedObject;
Connection pyDeletedObject;
Connection pyBeforeChangeObject;
Connection pyChangedObject;
Connection pyInEdit;
Connection pyResetEdit;