Document/PropertyExpressionEngine: Added onDocumentRestored function, to update internals of PropertyExpressionEngine after loading a document from disk.
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user