From 74c9a3dc4eb2abc9be0bad8b731d26207ee4a561 Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Sat, 25 Apr 2015 23:43:15 +1200 Subject: [PATCH] Now with more Property properties! --- src/App/PropertyStandard.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/App/PropertyStandard.cpp b/src/App/PropertyStandard.cpp index 35cb1852b..bd056489c 100644 --- a/src/App/PropertyStandard.cpp +++ b/src/App/PropertyStandard.cpp @@ -286,17 +286,23 @@ void PropertyEnumeration::setEnums(const char **plEnums) void PropertyEnumeration::setValue(const char *value) { + aboutToSetValue(); _enum.setValue(value); + hasSetValue(); } void PropertyEnumeration::setValue(long value) { + aboutToSetValue(); _enum.setValue(value); + hasSetValue(); } void PropertyEnumeration::setValue(const Enumeration &source) { + aboutToSetValue(); _enum = source; + hasSetValue(); } long PropertyEnumeration::getValue(void) const @@ -393,13 +399,17 @@ void PropertyEnumeration::setPyObject(PyObject *value) if (PyInt_Check(value)) { long val = PyInt_AsLong(value); if (_enum.isValid()) { + aboutToSetValue(); _enum.setValue(val, true); + hasSetValue(); } } else if (PyString_Check(value)) { const char* str = PyString_AsString (value); if (_enum.contains(str)) { + aboutToSetValue(); _enum.setValue(PyString_AsString (value)); + hasSetValue(); } else { std::stringstream out;