

Definition at line 55 of file tomenu.h.
| OSB_GUI::ToMenu::ToMenu | ( | QWidget * | parent, | |
| const char * | name = "toMenu_" | |||
| ) | [explicit] |
Constructor with Qt arguments.
| OSB_GUI::ToMenu::ToMenu | ( | const ToMenu & | ) | [private] |
Prevent copying: not implemented.
| void OSB_GUI::ToMenu::activationEvent | ( | int | id | ) | [private, slot] |
Handle signals activated() from the base class.
Emit sigCommand(), see there for details.
| void OSB_GUI::ToMenu::addCmd | ( | Command | cmd, | |
| bool | enable = true | |||
| ) |
Add a predefined command.
| cmd | Command to add. | |
| enable | Flag to enable or disable the command. |
| void OSB_GUI::ToMenu::addUserCmd | ( | int | cmd, | |
| const std::string & | text, | |||
| bool | enable = true, |
|||
| const QKeySequence & | accel = QKeySequence() | |||
| ) |
Add a user defined command.
| cmd | Command to add, it should be cmdUser plus an integer constant. | |
| text | Menu text. | |
| enable | Flag to enable or disable the command. | |
| accel | keyboard accelerator for the command. |
| void OSB_GUI::ToMenu::clearCommands | ( | bool | disable = false |
) |
Remove all menu items.
| disable | Flag to disable the menu. |
| void OSB_GUI::ToMenu::languageChange | ( | ) |
Process a language change.
Prevent assignment: not implemented.
| void OSB_GUI::ToMenu::sigCommand | ( | ToMenuCmd | cmd | ) | [signal] |
Command activated, i.e. selected by the user.
This signal is set emitted on activated() from the base class. It is not sent if the command is not enabled.
| cmd | The selected command. |
1.4.7