OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ak::uiAPI::action Namespace Reference

Functions

UICORE_API_EXPORT void setEnabled (UID _actionUID, bool _enabled)
 Will set the enabled state of the action.
 
UICORE_API_EXPORT void setText (UID _actionUID, const QString &_text)
 Will set the text of the action.
 
UICORE_API_EXPORT void setIcon (UID _actionUID, const QIcon &_icon)
 Will set the icon of the action.
 
UICORE_API_EXPORT void setIcon (UID _actionUID, const QString &_iconName, const QString &_iconFolder)
 Will set the icon of the action.
 
UICORE_API_EXPORT QString getText (UID _actionUID)
 Will return the text of the action.
 

Function Documentation

◆ getText()

QString ak::uiAPI::action::getText ( UID _actionUID)

Will return the text of the action.

Parameters
_actionUIDThe UID of the action

◆ setEnabled()

void ak::uiAPI::action::setEnabled ( UID _actionUID,
bool _enabled )

Will set the enabled state of the action.

Parameters
_actionUIDThe UID of the action
_enabledThe enabled state to set

◆ setIcon() [1/2]

void ak::uiAPI::action::setIcon ( UID _actionUID,
const QIcon & _icon )

Will set the icon of the action.

Parameters
_actionUIDThe UID of the action
_iconThe icon to set

◆ setIcon() [2/2]

void ak::uiAPI::action::setIcon ( UID _actionUID,
const QString & _iconName,
const QString & _iconFolder )

Will set the icon of the action.

Parameters
_actionUIDThe UID of the action
_iconNameThe name of the icon
_iconFolderThe folder the icon is located at

◆ setText()

void ak::uiAPI::action::setText ( UID _actionUID,
const QString & _text )

Will set the text of the action.

Parameters
_actionUIDThe UID of the action
_textThe text to set