Inheritance diagram for DzMenu:
Methods | |
Number | addAction (DzAction action, Number menu=0) |
Number | addItem (String item, const QObject receiver, String member, Number menu=0) |
Number | addItem (String item, Number menu=0) |
void | addSeparator (Number menu=0) |
Number | addSubMenu (String label, Number menu=0) |
Number | exec (Point pos) |
Number | exec () |
Boolean | isEmpty () |
Signals | |
void | activated (Number id) |
void DzMenu::activated | ( | Number | id | ) | [signal] |
Emitted when the user selects an item in the menu, or one of its submenus.
id | The item id of the item the user selected. |
Adds the DzAction to the given menu.
action | A pointer to the action item to add to the menu. | |
menu | The menu id of the menu to add the action to. If zero, the action will be added to the root menu. |
Adds an entry to the given menu and connects it to a slot.
item | The label that will appear in the menu for the user to activate the item. | |
receiver | The QObject to connect the activate signal to. | |
member | The slot/signal that will be connect to the activate signal. | |
menu | The menu id of the menu to add the item to. If zero, the item will be added to the root menu. |
Adds an entry to the given menu.
item | The label that will appear in the menu for the user to activate the item. | |
menu | The menu id of the menu to add the item to. If zero, the item will be added to the root menu. |
void DzMenu::addSeparator | ( | Number | menu = 0 |
) |
Adds a separator bar to the given menu.
menu | The menu id of the menu to add the separator to. If zero, the separator will be added to the root menu. |
Creates a submenu with the given label, and adds it to the given menu.
label | The text that will appear in the parent menu for the user to activate the submenu. | |
menu | The menu id of the parent menu to add the submenu to. If zero, the submenu will be added to the root menu. |
Shows the menu to the user.
pos | The global position that the menu will be displayed at. |
int DzMenu::exec | ( | ) |
Shows the menu to the user.
Boolean DzMenu::isEmpty | ( | ) |