21 bool _hasThen =
false;
22 bool _hasElse =
false;
40 bool evaluate()
const;
50 bool isShown()
const override;
54 const std::string _tag;
55 Test(std::string tag) : _tag(tag) {}
60 struct TestLongEquals :
public Test {
62 TestLongEquals(std::string tag,
long val) : Test(tag), _val(val) {}
66 struct TestStringEquals :
public Test {
67 const std::string _val;
68 TestStringEquals(std::string tag, std::string val) : Test(tag), _val(val) {}
72 struct TestDimensionEquals :
public Test {
74 TestDimensionEquals(
long val) : Test(
""), _val(val) {}
78 std::unique_ptr<Test> _test;
Shows and hides PWidgets based on a logic test.
PShowIf * Then(PWidget *p)
PShowIf * Then(const PGroup::List &list)
PShowIf * Else(PWidget *p)
bool isShown() const override
PShowIf * Equals(std::string s)
PShowIf * Else(const PGroup::List &list)
PShowIf * DimensionEquals(unsigned int dim)
Nodes with state in Xml tree representation.