Inheritance diagram for DzPopupMenu:
This class provides ta popup menu widget.
DzPopupMenu::DzPopupMenu | ( | DzWidget | parent | ) |
Creates a popup menu with the given parent widget
void DzPopupMenu::aboutToHide | ( | ) | [signal] |
Signature: "aboutToHide()"
This signal is emitted just before the popup menu is hidden after it has been displayed.
void DzPopupMenu::aboutToShow | ( | ) | [signal] |
Signature: "aboutToShow()"
This signal is emitted just before the popup menu is displayed. You can connect it to any slot that sets up the menu contents (e.g. to ensure that the right items are enabled).
void DzPopupMenu::activated | ( | ) | [signal] |
Signature: "activated()"
This signal is emitted when a menu item is selected; id is the id of the selected item.
void DzPopupMenu::changeItem | ( | Number | id, | |
pixmap | pixmap | |||
) |
Changes the text of the menu item id to text. If the item has an icon, the icon remains unchanged. Changes the pixmap of the menu item id to the pixmap pixmap.
Changes the text of the menu item id to text. If the item has an icon, the icon remains unchanged.
void DzPopupMenu::clear | ( | ) |
Removes all menu items.
Connects the menu item with identifier id to receiver's member slot or signal. The receiver's slot (or signal) is activated when the menu item is activated.
Disconnects the receiver's member from the menu item with identifier id. All connections are removed when the menu data object is destroyed.
Executes this popup synchronously. Opens the popup menu so that the item number indexAtPoint will be at the specified global position pos.
int DzPopupMenu::exec | ( | ) |
Executes this popup synchronously. In most situations you'll want to specify the position yourself, for example at the current mouse position.
void DzPopupMenu::highlighted | ( | ) | [signal] |
Signature: "highlighted()"
This signal is emitted when a menu item is highlighted; id is the id of the highlighted item.
Inserts a menu item that consists of the widget widget with optional id id, and optional index position.
Number DzPopupMenu::insertItem | ( | pixmap | pixmap, | |
DzPopupMenu | popup, | |||
Number | id, | |||
Number | index | |||
) |
Inserts a menu item with pixmap pixmap, submenu popup, optional id id, and optional index position.
Inserts a menu item with pixmap pixmap, optional id id, and optional index position.
Number DzPopupMenu::insertItem | ( | String | text, | |
DzPopupMenu | popup, | |||
Number | id, | |||
Number | index | |||
) |
Inserts a menu item with text text, submenu popup, optional id id, and optional index position.
Inserts a menu item with text text, optional id id, and optional index position.
Inserts a separator at position index, and returns the menu identifier number allocated to it. The separator becomes the last menu item if index is negative.
Inserts a tear-off handle into the menu. A tear-off handle is a special menu item that creates a copy of the menu when the menu is selected. This "torn-off" copy lives in a separate window. It contains the same menu items as the original menu, with the exception of the tear-off handle.
Displays the popup menu so that the item number indexAtPoint will be at the specified global position pos.
void DzPopupMenu::removeItem | ( | Number | id | ) |
Removes the menu item that has the identifier id.
void DzPopupMenu::removeItemAt | ( | Number | index | ) |
Removes the menu item at position index.
void DzPopupMenu::setActiveItem | ( | Number | i | ) |
Sets the currently active item to index i and repaints as necessary.
If check is TRUE, checks the menu item with id id; otherwise unchecks the menu item with id id. Calls DzPopupMenu::setCheckable( TRUE ) if necessary.
If enable is TRUE, enables the menu item with identifier id; otherwise disables the menu item with identifier id.
Sets the parameter of the activation signal of item id to param.
If visible is TRUE, shows the menu item with id id; otherwise hides the menu item with id id.
Sets text as What's This help for the menu item with identifier id.
void DzPopupMenu::updateItem | ( | Number | id | ) |
Updates the item with identity id.
This property holds whether the display of check marks on menu items is enabled. When TRUE, the display of check marks on menu items is enabled. Checking is always enabled when in Windows-style. Holds whether the display of check marks on menu items is enabled.