8#include <boost/python/class.hpp>
9#include <boost/python/enum.hpp>
16 enum_<ePropertyCriterion>(
"PropertyCriterion")
24 enum_<eLogicOperator>(
"LogicOperator").value(
"And",
AND).value(
"Or",
OR).value(
"Xor",
XOR);
26 class_<EnabledWhenProperty, bases<IPropertySettings>>(
"EnabledWhenProperty", no_init)
28 .def(init<std::string, ePropertyCriterion, std::string>(
29 (arg(
"self"), arg(
"otherPropName"), arg(
"when"), arg(
"value")),
30 "Enabled otherPropName property when value criterion meets that "
31 "given by the 'when' argument"))
33 .def(init<std::string, ePropertyCriterion>((arg(
"self"), arg(
"otherPropName"), arg(
"when")),
34 "Enabled otherPropName property when criterion does not require a "
35 "value, i.e isDefault"))
37 .def(init<EnabledWhenProperty, EnabledWhenProperty, eLogicOperator>(
38 (arg(
"self"), arg(
"conditionObjOne"), arg(
"conditionObjTwo"), arg(
"operator")),
39 "Enables property when the two EnabledWhenProperty conditions match"
40 " the operator condition"));
void export_EnabledWhenProperty()