MenuAction objects are triggerable choices in a menu.
More...
#include <synthclone/menuaction.h>
MenuAction objects are triggerable choices in a menu.
◆ MenuAction() [1/3]
synthclone::MenuAction::MenuAction |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
Constructs an new MenuAction object.
- Parameters
-
parent | The parent object of the new menu action. |
◆ MenuAction() [2/3]
synthclone::MenuAction::MenuAction |
( |
const QString & |
text, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
Constructs a new MenuAction object.
- Parameters
-
text | The default text for the new menu action. |
parent | The parent object of the new menu action. |
◆ MenuAction() [3/3]
synthclone::MenuAction::MenuAction |
( |
const QString & |
text, |
|
|
const QString & |
description, |
|
|
QObject * |
parent = 0 |
|
) |
| |
Constructs a new MenuAction object.
- Parameters
-
text | The default text for the new menu action. |
description | The default description for the new menu action. |
parent | The parent object of the new menu action. |
◆ ~MenuAction()
synthclone::MenuAction::~MenuAction |
( |
| ) |
|
◆ descriptionChanged
void synthclone::MenuAction::descriptionChanged |
( |
const QString & |
description | ) |
|
|
signal |
Emitted when the description is changed.
- Parameters
-
description | The new description. |
◆ enabledChanged
void synthclone::MenuAction::enabledChanged |
( |
bool |
enabled | ) |
|
|
signal |
Emitted when the 'enabled' flag is changed.
- Parameters
-
enabled | Whether or not the action is now enabled. |
◆ getDescription()
QString synthclone::MenuAction::getDescription |
( |
| ) |
const |
Gets the action description.
- Returns
- The description.
◆ getText()
QString synthclone::MenuAction::getText |
( |
| ) |
const |
Gets the action text.
- Returns
- The action text.
◆ isEnabled()
bool synthclone::MenuAction::isEnabled |
( |
| ) |
const |
Gets a boolean indicating whether or not this action is able to be triggered.
- Returns
- The specified boolean.
◆ setDescription
void synthclone::MenuAction::setDescription |
( |
const QString & |
description | ) |
|
|
slot |
Sets the description.
- Parameters
-
description | The description. |
◆ setEnabled
void synthclone::MenuAction::setEnabled |
( |
bool |
enabled | ) |
|
|
slot |
Sets a boolean indicating whether or not this action is able to be triggered.
- Parameters
-
enabled | The specified boolean. |
◆ setText
void synthclone::MenuAction::setText |
( |
const QString & |
text | ) |
|
|
slot |
Sets the action text.
- Parameters
-
◆ textChanged
void synthclone::MenuAction::textChanged |
( |
const QString & |
text | ) |
|
|
signal |
Emitted when the action text is changed.
- Parameters
-
◆ trigger
void synthclone::MenuAction::trigger |
( |
| ) |
|
|
slot |
Triggers the action.
This method is called from within synthclone
.
◆ triggered
void synthclone::MenuAction::triggered |
( |
| ) |
|
|
signal |
Emitted when this action is triggered.
The documentation for this class was generated from the following file: