mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 14:16:10 -06:00
17 lines
658 B
Text
17 lines
658 B
Text
#include "CtrlPropCommon.h"
|
|
|
|
NAMESPACE_UPP
|
|
|
|
bool PropSetInc(const Value& v, EditIntSpin& o) { if(!IsNumber(v)) return false; o.SetInc(v); return true; }
|
|
bool PropGetInc(Value& v, const EditIntSpin& o) { v = o.GetInc(); return true; }
|
|
bool PropSetShowSpin(const Value& v, EditIntSpin& o) { if(!IsNumber(v)) return false; o.ShowSpin(v); return true; }
|
|
bool PropGetShowSpin(Value& v, const EditIntSpin& o) { v = o.IsSpinVisible(); return true; }
|
|
|
|
PROPERTIES(EditIntSpin, EditInt)
|
|
PROPERTY("inc", PropSetInc, PropGetInc)
|
|
PROPERTY("showspin", PropSetShowSpin, PropGetShowSpin)
|
|
END_PROPERTIES
|
|
|
|
PROPS(Ctrl, EditIntSpin, EditInt)
|
|
|
|
END_UPP_NAMESPACE
|