mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
bazaar: CtrlProp changes, enhancement of uniform handling and naming restructure, Property package; some package descriptions; Styler some more helpers for local Style handling, WhenEnterAction restructured to work with arbitrary base
git-svn-id: svn://ultimatepp.org/upp/trunk@3193 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
bb3aa27a7b
commit
0b8798969a
71 changed files with 1486 additions and 659 deletions
|
|
@ -86,29 +86,29 @@ void CtrlPropTest::Test()
|
|||
|
||||
ei.Tip("Tooltip for this one");
|
||||
|
||||
b = SetProperty(ei, "data", 10);
|
||||
b = Props<Ctrl>::Set(ei, "data", 10);
|
||||
RLOG(b);
|
||||
|
||||
Value v;
|
||||
b = GetProperty(ei, "data", v);
|
||||
b = Props<Ctrl>::Get(ei, "data", v);
|
||||
RLOG(b << v);
|
||||
|
||||
b = SetProperty(ei, "min", -100);
|
||||
b = Props<Ctrl>::Set(ei, "min", -100);
|
||||
RLOG(b);
|
||||
b = SetProperty(ei, "max", 100);
|
||||
b = Props<Ctrl>::Set(ei, "max", 100);
|
||||
RLOG(b);
|
||||
|
||||
b = GetProperty(ei, "min", v);
|
||||
b = Props<Ctrl>::Get(ei, "min", v);
|
||||
RLOG(b << v);
|
||||
b = GetProperty(ei, "max", v);
|
||||
b = Props<Ctrl>::Get(ei, "max", v);
|
||||
RLOG(b << v);
|
||||
|
||||
v = Value();
|
||||
b = GetProperty(ei, "listset", v);
|
||||
b = Props<Ctrl>::Get(ei, "listset", v);
|
||||
RLOG(b << v);
|
||||
|
||||
v = Value();
|
||||
b = GetProperty(ei, "listget", v);
|
||||
b = Props<Ctrl>::Get(ei, "listget", v);
|
||||
RLOG(b << v);
|
||||
|
||||
ValueArray va = v;
|
||||
|
|
@ -117,7 +117,16 @@ void CtrlPropTest::Test()
|
|||
String s = va.Get(i);
|
||||
RLOG(s);
|
||||
v = Value();
|
||||
b = GetProperty(ei, s, v);
|
||||
b = Props<Ctrl>::Get(ei, s, v);
|
||||
RLOG(v << "\n");
|
||||
}
|
||||
|
||||
//other method
|
||||
|
||||
AccessorMap am;
|
||||
b = Props<Ctrl>::SetupAccessorMap(ei, am);
|
||||
|
||||
b = am.Get("password").set(true);
|
||||
v = Value();
|
||||
b = am.Get("enable").get(v);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue