Document/PropertyExpressionEngine: Added onDocumentRestored function, to update internals of PropertyExpressionEngine after loading a document from disk.

This commit is contained in:
Eivind Kvedalen
2015-12-24 14:38:50 +01:00
parent 905cd3b1d2
commit 009d0c03b4
3 changed files with 24 additions and 9 deletions

View File

@@ -44,7 +44,8 @@ class DocumentObjectExecReturn;
class ObjectIdentifier;
class Expression;
class AppExport PropertyExpressionEngine : public App::Property
class AppExport PropertyExpressionEngine : public App::Property, private App::AtomicPropertyChangeInterface<PropertyExpressionEngine>
{
TYPESYSTEM_HEADER();
public:
@@ -124,6 +125,8 @@ public:
///signal called when a expression was changed
boost::signal<void (const App::ObjectIdentifier &)> expressionChanged;
void onDocumentRestored();
/* Python interface */
PyObject *getPyObject(void);
void setPyObject(PyObject *);
@@ -149,6 +152,10 @@ private:
ValidatorFunc validator; /**< Valdiator functor */
ExpressionMap restoredExpressions; /**< Expressions are read from file to this map first before they are validated and inserted into the actual map */
friend class AtomicPropertyChange;
};
}