| Cisco Packet Tracer Extensions API 8.1.0
    API for communication between Cisco Packet Tracer application and its extension applications and modules. | 
Menu is the popup menu instantiated from the MenuBar object. More...
| Public Member Functions | |
| int | count () | 
| Returns the number of menu items in this menu.  More... | |
| MenuItem | getMenuItemAt (int) | 
| Returns the menu item at the specified index.  More... | |
| MenuItem | getMenuItemByUuid (uuid) | 
| Returns the menu item with the specified UUID.  More... | |
| MenuItem | getMenuItemByName (QString) | 
| Returns the menu item with the specified name.  More... | |
| uuid | getMenuItemUuid (QString) | 
| Returns the UUID of the menu item with the specified name.  More... | |
| void | setItemVisibleUuid (uuid, bool) | 
| Changes the visibility of the item with the specified UUID.  More... | |
| void | setItemEnabledUuid (uuid, bool) | 
| Enables or disables input events to the menu item with the specified UUID.  More... | |
| void | removeItemUuid (uuid) | 
| Removes the menu item with the specified UUID.  More... | |
| uuid | insertItem (QString, QString) | 
| Inserts an item before the specified item with the specified action.  More... | |
| uuid | insertItemAfter (QString, QString) | 
| Inserts an item after the specified item with the specified action.  More... | |
| uuid | insertSeparator (QString, QString) | 
| Inserts a separator before the specified item with the specified name.  More... | |
| uuid | insertSeparatorAfter (QString, QString) | 
| Inserts a separator after the specified item with the specified name.  More... | |
| void | removeItem (QString) | 
| Removes the specified menu item.  More... | |
| void | setItemVisible (string, bool) | 
| Shows or hides the specified menu item.  More... | |
| void | setItemEnabled (string, bool) | 
| Enables or disables the specified menu item.  More... | |
| void | setItemObjectEnabled (string, bool) | 
| Enables or disables the specified menu item using object name.  More... | |
| void | setItemObjectEnabledFuzzy (string, bool) | 
| Enables or disables the specified menu item using any text.  More... | |
| uuid | insertItemWithName (QString, QString, QString) | 
| Inserts an item before the specified item with the specified action.  More... | |
| uuid | insertItemWithNameAfter (QString, QString, QString) | 
| Inserts an item after the specified item with the specified action.  More... | |
| int Menu::count | ( | ) | 
Returns the number of menu items in this menu.
| MenuItem Menu::getMenuItemAt | ( | int | ) | 
| MenuItem Menu::getMenuItemByName | ( | QString | ) | 
| MenuItem Menu::getMenuItemByUuid | ( | uuid | ) | 
| uuid Menu::getMenuItemUuid | ( | QString | ) | 
Returns the UUID of the menu item with the specified name.
| name,the | name of the menu item of interest. | 
| uuid Menu::insertItem | ( | QString | , | 
| QString | |||
| ) | 
Inserts an item before the specified item with the specified action.
| before,the | name of the menu item to insert before. | 
| action,the | action of the menu item. | 
| uuid Menu::insertItemAfter | ( | QString | , | 
| QString | |||
| ) | 
Inserts an item after the specified item with the specified action.
| after,the | name of the menu item to insert after. | 
| action,the | action of the menu item. | 
| uuid Menu::insertItemWithName | ( | QString | , | 
| QString | , | ||
| QString | |||
| ) | 
Inserts an item before the specified item with the specified action.
| before,the | name of the menu item to insert before. | 
| action,the | action of the menu item. | 
| name,object | name assigned to the action | 
| uuid Menu::insertItemWithNameAfter | ( | QString | , | 
| QString | , | ||
| QString | |||
| ) | 
Inserts an item after the specified item with the specified action.
| after,the | name of the menu item to insert after. | 
| action,the | action of the menu item. | 
| name,object | name assigned to the action | 
| uuid Menu::insertSeparator | ( | QString | , | 
| QString | |||
| ) | 
Inserts a separator before the specified item with the specified name.
| before,the | name of the menu item to insert before. | 
| name,the | name of the separator; not displayed but can be used to find it later. | 
| uuid Menu::insertSeparatorAfter | ( | QString | , | 
| QString | |||
| ) | 
Inserts a separator after the specified item with the specified name.
| after,the | name of the menu item to insert after. | 
| name,the | name of the separator; not displayed but can be used to find it later. | 
| void Menu::removeItem | ( | QString | ) | 
Removes the specified menu item.
| name,the | name of the menu item. | 
| void Menu::removeItemUuid | ( | uuid | ) | 
Removes the menu item with the specified UUID.
| id,the | UUID of the menu item of interest. | 
| void Menu::setItemEnabled | ( | string | , | 
| bool | |||
| ) | 
Enables or disables the specified menu item.
| name,the | name of the menu item. | 
| bEnable,true | to enable the menu item, false to disable it. | 
| void Menu::setItemEnabledUuid | ( | uuid | , | 
| bool | |||
| ) | 
Enables or disables input events to the menu item with the specified UUID.
| id,the | UUID of the menu item of interest. | 
| bEnabled,true | to enable input events to the menu item, false to disable it. | 
| void Menu::setItemObjectEnabled | ( | string | , | 
| bool | |||
| ) | 
Enables or disables the specified menu item using object name.
| name,the | name of the menu item. | 
| bEnable,true | to enable the menu item, false to disable it. | 
| void Menu::setItemObjectEnabledFuzzy | ( | string | , | 
| bool | |||
| ) | 
Enables or disables the specified menu item using any text.
| anyText,text | that is a portion of either object name or label. | 
| bEnable,true | to enable the menu item, false to disable it. | 
| void Menu::setItemVisible | ( | string | , | 
| bool | |||
| ) | 
Shows or hides the specified menu item.
| name,the | name of the menu item. | 
| bVisible,true | to show the menu item, false to hide it. | 
| void Menu::setItemVisibleUuid | ( | uuid | , | 
| bool | |||
| ) | 
Changes the visibility of the item with the specified UUID.
| id,the | UUID of the menu item of interest. | 
| bVisibile,true | to show the menu item, false to hide it. |