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