ultimatepp/bazaar/CtrlProp/Switch.icpp
kohait 2af7a2780c bazaar: INITBLOCK issues with MSC optimal, need icpp filed without blitz
git-svn-id: svn://ultimatepp.org/upp/trunk@3314 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-03-29 13:45:37 +00:00

11 lines
350 B
Text

#include "CtrlPropCommon.h"
#include <CtrlLib/CtrlLib.h>
bool PropSetLabel(const Value& v, Switch& o) { o.SetLabel(AsString(v)); return true; }
bool PropGetLabel(Value& v, const Switch& o) { v = o.GetLabel(); return true; }
PROPERTIES(Switch, Ctrl)
PROPERTY("label", PropSetLabel, PropGetLabel)
END_PROPERTIES
PROPS(Ctrl, Switch, Ctrl)