UiAction — UiAction is class for UI commands, emited by buttons, menu items and widgets.
class UiAction : : public RefCountedWrappedObjectSernaApi::RefCountedWrappedObject { public: // construct/copy/destruct UiAction(SernaApiBase * = 0); ~UiAction(); // 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; void set(const SString &, const SString &) ; void setBool(const SString &, bool) ; void setInt(const SString &, int) ; void setDouble(const SString &, double) ; bool isEnabled() const; void setEnabled(bool) ; bool isToggleable() const; bool isToggledOn() const; void setToggled(bool) ; void dispatch() const; void dump() const; UiAction firstChild() const; UiAction lastChild() const; UiAction getChild(int) const; int countChildren() const; void appendChild(const UiAction &) ; void removeAllChildren() ; UiAction nextSibling() const; UiAction prevSibling() const; UiAction parent() const; UiAction root() const; void remove() ; void insertBefore(const UiAction &) ; void insertAfter(const UiAction &) ; void 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;