UiAction — UiAction is class for UI commands, emited by buttons, menu items and widgets.
class UiAction (RefCountedWrappedObjectSernaApi::RefCountedWrappedObject) : # construct/copy/destruct __init__(SernaApiBase * = 0) __del__() # public member functions SString name() const PropertyNode property(const SString &) const PropertyNode properties() const SString get(const SString &) const SString getTranslated(const SString &) const bool getBool(const SString &) const int getInt(const SString &) const double getDouble(const SString &) const None set(const SString &, const SString &) None setBool(const SString &, bool) None setInt(const SString &, int) None setDouble(const SString &, double) bool isEnabled() const None setEnabled(bool) bool isToggleable() const bool isToggledOn() const None setToggled(bool) None dispatch() const None dump() const UiAction firstChild() const UiAction lastChild() const UiAction getChild(int) const int countChildren() const None appendChild(const UiAction &) None removeAllChildren() UiAction nextSibling() const UiAction prevSibling() const UiAction parent() const UiAction root() const None remove() None insertBefore(const UiAction &) None insertAfter(const UiAction &) None removeGroup(const UiAction &) int siblingIndex() const SString getTreelocString(const UiAction & = UiAction()) const UiAction getByTreelocString(const SString &) const
UiAction
public member functionsSString name() const
Command name.
PropertyNode property(const SString & prop) const
Returns actin property by name.
PropertyNode properties() const
Properties of the action.
SString get(const SString & propName) const
Accesor to concrete property value.
SString getTranslated(const SString & propName) const
Accesor to concrete property value.
Returns boolean property value.
Returns integer property value.
Returns double property value.
Set property with name and value.
Sets boolean property value.
Sets integer property value.
Sets double property value.
Returns enabled state.
Change enabled state.
Returns true if command can be toggled.
Returns toggled state.
Sets toggled state.
Dispatches the command.
Dumps command properties.
UiAction firstChild() const
UiAction lastChild() const
UiAction getChild(int n) const
UiAction nextSibling() const
UiAction prevSibling() const
UiAction parent() const
UiAction root() const
SString getTreelocString(const UiAction & = UiAction()) const
UiAction getByTreelocString(const SString & ) const