Methods | |
| void | clear () |
| void | exec (Point pos) |
| void | exec () |
| DzActionMenu | findSubMenu (String name) |
| DzActionMenuItem | getItem (Number which) |
| Array | getItemList () |
| Number | getNumItems () |
| DzActionMenu | getSubMenu (String name) |
| Boolean | hasItems () |
| void | insertAction (String action, Number at=-1) |
| void | insertCustomAction (String action, Number at=-1) |
| void | insertMenu (String text, DzActionMenu menu, Number at=-1) |
| void | insertSeparator (Number at=-1) |
| void | removeItem (DzActionMenuItem item) |
| void | simplifySeparators () |
Signals | |
| void | itemListChanged () |
Signature: "itemListChanged()" | |
| void DzActionMenu::clear | ( | ) |
Removes all items from the menu.
| void DzActionMenu::exec | ( | Point | pos | ) |
Displays the menu to the user at the given position.
| pos | The global window coordinates at which to display the popup menu. |
| void DzActionMenu::exec | ( | ) |
Displays the menu to the user
| DzActionMenu DzActionMenu::findSubMenu | ( | String | name | ) |
| name | The name of the submenu to find. |
| DzActionMenuItem DzActionMenu::getItem | ( | Number | which | ) |
| which | The index of the item to return. |
| Array DzActionMenu::getItemList | ( | ) |
This function is provided for DAZ Script access. Plugin developers are encouraged to use the much more efficient itemListIterator() method.
| Number DzActionMenu::getNumItems | ( | ) |
| DzActionMenu DzActionMenu::getSubMenu | ( | String | name | ) |
| name | The name of the submenu to get. |
| Boolean DzActionMenu::hasItems | ( | ) |
Inserts the given action into the menu at the given location.
| action | The class name of the action to insert into the menu | |
| at | The index at which to insert the item, if the index is invalid (the default) the item is appended to the end of the menu. |
Inserts the given custom action into the menu at the given location.
| action | The name of the custom action to insert into the menu | |
| at | The index at which to insert the item, if the index is invalid (the default) the item is appended to the end of the menu. |
| void DzActionMenu::insertMenu | ( | String | text, | |
| DzActionMenu | menu, | |||
| Number | at = -1 | |||
| ) |
Inserts the given menu into the menu at the given location as a submenu.
| text | The text to display in this menu for the submenu item | |
| menu | The submenu to insert into this menu | |
| at | The index at which to insert the item, if the index is invalid (the default) the item is appended to the end of the menu. |
| void DzActionMenu::insertSeparator | ( | Number | at = -1 |
) |
Inserts a separator into the menu at the given location.
| at | The index at which to insert the item, if the index is invalid (the default) the item is appended to the end of the menu. |
| void DzActionMenu::itemListChanged | ( | ) | [signal] |
Signature: "itemListChanged()"
Emitted when items are added to or removed from this menu
| void DzActionMenu::removeItem | ( | DzActionMenuItem | item | ) |
Remove the given item from the menu.
| item | The item to remove from the menu |
| void DzActionMenu::simplifySeparators | ( | ) |
Removes any duplicate separators from the menu by replacing multiple separators with a single separator.