|
Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
DeviceDialog are the collection of dialogs used to edit the devices. More...
Public Member Functions | |
| void | setVisible (bool) |
| Shows or hides this device dialog widget from view. More... | |
| void | setWidgetVisible (string, bool) |
| Shows or hides the specified child widget. More... | |
| void | setDisabled (bool) |
| Enables or disables input events to this device dialog widget. More... | |
| void | setWidgetDisable (string, bool) |
| Enables or disables the specified child widget. More... | |
| void | disableCLIImportExport (bool) |
| Enable or disable copying and pasting from the CLI. More... | |
| void | reloadCustomHtmlTab () |
| Reload custom html tab. More... | |
| bool | hasDesktop () |
| Check if the device dialog has desktop tab. More... | |
| bool | setTabVisible (QString, bool) |
| Shows or hides a tab in the device dialog. More... | |
| bool | addCustomDesktopApp (QString, QString, QString, QString) |
| Add custom desktop app. More... | |
| void | desktopAppOpened (QString) |
| This event is emitted when an app in the desktop tab is opened. More... | |
| void | tabChanged (QString) |
| This event is emitted when the current tab changes. More... | |
| void | setGeometry (int, int, int, int) |
DeviceDialog are the collection of dialogs used to edit the devices.
| bool DeviceDialog::addCustomDesktopApp | ( | QString | , |
| QString | , | ||
| QString | , | ||
| QString | |||
| ) |
Add custom desktop app.
| name,application | name |
| description,desktop | app description |
| iconPath,icon | path |
| customInterface,custom | Interface name |
| void DeviceDialog::desktopAppOpened | ( | QString | ) |
This event is emitted when an app in the desktop tab is opened.
IPC event.
| void DeviceDialog::disableCLIImportExport | ( | bool | ) |
Enable or disable copying and pasting from the CLI.
| bDisable,true | to disable copying and pasting from the CLI, false to enable it. |
| bool DeviceDialog::hasDesktop | ( | ) |
Check if the device dialog has desktop tab.
| void DeviceDialog::reloadCustomHtmlTab | ( | ) |
Reload custom html tab.
| void DeviceDialog::setDisabled | ( | bool | ) |
Enables or disables input events to this device dialog widget.
| bDisabled,true | to disable this device dialog, false to enable it. |
| void DeviceDialog::setGeometry | ( | int | , |
| int | , | ||
| int | , | ||
| int | |||
| ) |
| bool DeviceDialog::setTabVisible | ( | QString | , |
| bool | |||
| ) |
Shows or hides a tab in the device dialog.
| tabName,the | name of the tab (case-insensitive) e.g. "physical", "config", "cli", etc. |
| visible,true | to to show the tab, false to hide it. |
| void DeviceDialog::setVisible | ( | bool | ) |
Shows or hides this device dialog widget from view.
| bVisible,true | to show this device dialog, false to hide it. |
| void DeviceDialog::setWidgetDisable | ( | string | , |
| bool | |||
| ) |
Enables or disables the specified child widget.
| name | where name can be one of the following: IPConfigBtn, IPConfigLbl, DialupBtn, DialupLbl, TerminalBtn, TerminalLbl, CommandPromptBtn, CommandPromptLbl, WebBrowserBtn, WebBrowserLbl, PCWirelessBtn, PCWirelessLbl, VPNBtn, VPNLbl, TrafficGeneratorBtn, TrafficGeneratorLbl, MIBBroswerBtn, MIBBrowserLbl, IPCommunicatorBtn, IPCommunicatorLbl, EmailBtn, EmailLbl, PPPoEDialerBtn, PPPoEDialerLbl, TextEditorBtn, TextEditorLbl, FirewallBtn, FirewallLbl, IPv6FirewallBtn, IPv6FirewallLbl, AAAAccountingBtn, AAAAccountingLbl, NetflowCollectorBtn, NetflowCollectorLbl, IoXSdkBtn, IoXSdkLbl, TftpLbl, TftpBtn, SshClientBtn, SshClientLbl, BluetoothBtn, BluetoothLbl, IoT Monitor_btn, IoT Monitor_lbl, IoT IDE_btn, IoT IDE_lbl, User Apps Manager_btn, User Apps Manager_lbl |
| bDisabled,true | to disable the child widget, false to enable it. |
| void DeviceDialog::setWidgetVisible | ( | string | , |
| bool | |||
| ) |
Shows or hides the specified child widget.
| name | where name can be one of the following: IPConfigBtn, IPConfigLbl, DialupBtn, DialupLbl, TerminalBtn, TerminalLbl, CommandPromptBtn, CommandPromptLbl, WebBrowserBtn, WebBrowserLbl, PCWirelessBtn, PCWirelessLbl, VPNBtn, VPNLbl, TrafficGeneratorBtn, TrafficGeneratorLbl, MIBBroswerBtn, MIBBrowserLbl, IPCommunicatorBtn, IPCommunicatorLbl, EmailBtn, EmailLbl, PPPoEDialerBtn, PPPoEDialerLbl, TextEditorBtn, TextEditorLbl, FirewallBtn, FirewallLbl, IPv6FirewallBtn, IPv6FirewallLbl, AAAAccountingBtn, AAAAccountingLbl, NetflowCollectorBtn, NetflowCollectorLbl, IoXSdkBtn, IoXSdkLbl, TftpLbl, TftpBtn, SshClientBtn, SshClientLbl, BluetoothBtn, BluetoothLbl, IoT Monitor_btn, IoT Monitor_lbl, IoT IDE_btn, IoT IDE_lbl, User Apps Manager_btn, User Apps Manager_lbl |
| bVisible,true | to show the child widget, false to hide it. |
| void DeviceDialog::tabChanged | ( | QString | ) |