Mantid
Loading...
Searching...
No Matches
VisibleWhenProperty.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
8#include <boost/python/class.hpp>
9
10using namespace Mantid::Kernel;
11using namespace boost::python;
12
14 class_<VisibleWhenProperty, bases<EnabledWhenProperty>>("VisibleWhenProperty", no_init)
15 .def(init<std::string, ePropertyCriterion, std::string>(
16 (arg("self"), arg("otherPropName"), arg("when"), arg("value")),
17 "Enabled otherPropName property when value criterion meets that "
18 "given by the 'when' argument"))
19
20 .def(init<std::string, ePropertyCriterion>((arg("self"), arg("otherPropName"), arg("when")),
21 "Enabled otherPropName property when criterion does not require a "
22 "value, i.e isDefault"))
23
24 .def(init<VisibleWhenProperty, VisibleWhenProperty, eLogicOperator>(
25 (arg("self"), arg("conditionObjOne"), arg("conditionObjTwo")),
26 "Sets the property to visible when the two VisibleWhenProperty"
27 " conditions match the operator condition"));
28}
void export_VisibleWhenProperty()