|
Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
AppWindow serves as the entry point to all GUI objects. More...
Public Member Functions | |
| MenuBar | getMenuBar () |
| Returns the menu bar. More... | |
| ToolBar | getToolBar () |
| Returns the toolbar. More... | |
| ToolBar | getSecondaryToolBar () |
| Returns the secondary toolbar. More... | |
| RSSwitch | getRSSwitch () |
| Returns the Realtime/Simulation mode switch. More... | |
| PLSwitch | getPLSwitch () |
| Returns the Physical/Logical workspace switch. More... | |
| LogicalToolbar | getLogicalToolbar () |
| Returns the Logical workspace toolbar. More... | |
| PhysicalToolbar | getPhysicalToolbar () |
| Returns the Physical workspace toolbar. More... | |
| SimulationToolbar | getSimulationToolbar () |
| Returns the Simulation mode toolbar. More... | |
| RealtimeToolbar | getRealtimeToolbar () |
| Returns the Realtime mode toolbar. More... | |
| void | setPLFrameVisible (bool) |
| void | setRSFrameVisible (bool) |
| PhysicalLocationDialog | getPhysicalLocationDialog () |
| Returns the Physical Location dialog. More... | |
| SimulationPanel | getSimulationPanel () |
| Returns the Simulation panel. More... | |
| UserCreatedPDU | getUserCreatedPDU () |
| Returns the User Created PDU. More... | |
| NetworkComponentBox | getNetworkComponentBox () |
| Returns the Network Component Box. More... | |
| PDUListWindow | getPDUListWindow () |
| Returns the PDU list window. More... | |
| ActivityWizard | getActivityWizard () |
| Returns the Activity Wizard. More... | |
| InfoDialog | getInfoDialog () |
| Returns the info dialog. More... | |
| CommonToolbar | getCommonToolbar () |
| Returns the Common Toolbar. More... | |
| bool | isSimulationMode () |
| Returns true if currently in Simulation mode, otherwise false. More... | |
| bool | isRealtimeMode () |
| Returns true if currently in Realtime mode, otherwise false. More... | |
| bool | isLogicalMode () |
| Returns true if currently in Logical workspace, otherwise false. More... | |
| bool | isPhysicalMode () |
| Returns true if currently in Physical workspace, otherwise false. More... | |
| Workspace | getActiveWorkspace () |
| Returns the current active workspace. More... | |
| ActiveDialog | getActiveDialog () |
| Returns the current active dialog. More... | |
| AdministrativeDialog | getAdminDialog () |
| Returns the administrative dialog. More... | |
| PaletteDialog | getPaletteDialog () |
| Returns the palette dialog. More... | |
| PrintDialogPT4 | getPrintDialog () |
| Returns the print dialog. More... | |
| InstructionDlg | getInstructionDlg () |
| Returns the activity instructions dialog. More... | |
| void | suppressInstructionDlg (bool) |
| WebViewManager | getWebViewManager () |
| Returns the WebView manager. More... | |
| NetworkFile | getActiveFile () |
| Returns the current active file. More... | |
| void | exit () |
| Exits Packet Tracer. More... | |
| void | exitNoConfirm (bool) |
| Exits packet tracer with or without save conformation. More... | |
| DialogManager | getDialogManager () |
| Returns the dialog manager. More... | |
| void | writeToPT (QString) |
| Writes a message to the IPC Log and shows it. More... | |
| QString | getVersion () |
| Returns the Packet Tracer version number. More... | |
| QString | getBasePath () |
| Returns the installation directory of Packet Tracer. More... | |
| bool | fileNew (bool) |
| Creates a new file. More... | |
| FileOpenReturnValue | fileOpen (QString) |
| Opens the specified file. More... | |
| FileOpenReturnValue | promptFileOpenFolder (QString) |
| Prompts to browse a folder for a file to open. More... | |
| vector< QString > | getListOfFilesToOpen (QString) |
| Retrives list of files that can be opened location. More... | |
| vector< QString > | getListOfFilesSaved (QString) |
| Retrives list of files saved at default location. More... | |
| QString | getDefaultFileSaveLocation () |
| Retrives default save location. More... | |
| QString | getTempFileLocation () |
| bool | fileSave () |
| void | fileSaveAsync () |
| Starts save operation and returns immediately. More... | |
| bool | fileSaveAs (QString) |
| void | fileSaveAsAsync (QString) |
| Starts save as operation to the specified file and returns immediately. More... | |
| void | fileSaveAsNoPrompt (QString, bool) |
| Same as fileSaveAs() except it does not prompt to overwrite the file. More... | |
| bool | fileSaveAsPkz (QString) |
| void | fileSaveAsPkzAsync (QString) |
| Starts save as pkz operation and returns immediately. More... | |
| void | fileActivityWizard () |
| Enters the Activity Wizard. More... | |
| FileOpenReturnValue | fileOpenFromBytes (vector< byte >, QString) |
| Opens the specified file with the specified bytes of data. More... | |
| FileOpenReturnValue | fileOpenFromURL (QString) |
| Opens a file at the specified URL. More... | |
| vector< byte > | fileSaveToBytes () |
| void | fileSaveToBytesAsync () |
| Starts save to bytes operation and returns immediately. More... | |
| void | fileNewed () |
| This event is emitted when a new file is created. More... | |
| void | fileOpened () |
| This event is emitted when a file is opened. More... | |
| void | activityFileOpening () |
| This event is emitted when a activity file is opening. More... | |
| void | fileClosing () |
| This event is emitted when the file is closing. More... | |
| void | fileSaved () |
| IPC event. More... | |
| void | fileSaveDone (bool) |
| This event is emitted when a file is saved. More... | |
| void | fileSaveToBytesDone (vector< byte >) |
| This event is emitted when a file is saved. More... | |
| bool | shouldIgnoreFileNew () |
| This delegate determines if PT should ignore the file->new action. If ignoring, then the script module should do something to let the user know. More... | |
| bool | shouldIgnoreFileOpenFolder (QString) |
| This delegate determines if PT should ignore the file->open folder action. If ignoring, then the script module should do something to let the user know. More... | |
| bool | shouldIgnoreFileOpenRecent (QString) |
| This delegate determines if PT should ignore the file->open recent file action. If ignoring, then the script module should do something to let the user know. More... | |
| bool | shouldIgnoreFileSave () |
| This delegate determines if PT should ignore the file->save action. If ignoring, then the script module should do something to let the user know. More... | |
| bool | shouldIgnoreFileSaveAs (QString) |
| This delegate determines if PT should ignore the file->save as action. If ignoring, then the script module should do something to let the user know. More... | |
| bool | shouldIgnoreFileExit () |
| This delegate determines if PT should ignore the file->exit action. If ignoring, then the script module should do something to let the user know. More... | |
| void | enteredActivityWizard (bool) |
| This event is emitted when the activity wizard is entered. More... | |
| bool | isPreventClose () |
| Returns true if Packet Tracer is prevented from closing, otherwise false. More... | |
| void | setPreventClose (bool) |
| Allows or prevents Packet Tracer from closing. More... | |
| long | getProcessId () |
| Returns Packet Tracer application process ID. More... | |
| QString | getSessionId () |
| Returns the globally unique Packet Tracer application session ID. More... | |
| QString | getUserFolder () |
| Returns the user folder of the current user logged into the OS. More... | |
| void | appExit () |
| This event is emitted when the user exits application. More... | |
| void | lockedInterfaceInvoked (QString, QString, QString, QString) |
| This event is emitted when a locked interface is invoked. More... | |
| void | setVisible (bool) |
| Shows or hides the Packet Tracer main window. More... | |
| void | raise () |
| void | setDisabled (bool) |
| Disables or enables the application. Buttons, etc will be shown as disabled and unuable. More... | |
| void | isMaximized () |
| void | showMaximized () |
| Sets the Packet Tracer main window to the maximum size. More... | |
| void | isMinimized () |
| void | showMinimized () |
| Sets the Packet Tracer main window to the minimum size. More... | |
| void | showNormal () |
| Sets the Packet Tracer main window to the normal size. More... | |
| void | setWindowTitle (QString) |
| Sets the Packet Tracer main window title. More... | |
| void | setWindowGeometry (int, int, int, int) |
| Sets the Packet Tracer main window geometry and position. More... | |
| int | getX () |
| Returns the Packet Tracer main window x-coorindate. More... | |
| int | getY () |
| Returns the Packet Tracer main window y-coorindate. More... | |
| int | getWidth () |
| Returns the Packet Tracer main window width. More... | |
| int | getHeight () |
| Returns the Packet Tracer main window height. More... | |
| void | setMaximumSize (int, int) |
| Sets the maximum size of the Packet Tracer main window. More... | |
| void | setMaximumWidth (int) |
| Sets the maximum width of the Packet Tracer main window. More... | |
| void | setMaximumHeight (int) |
| Sets the maximum height of the Packet Tracer main window. More... | |
| int | getMaximumWidth () |
| Returns the maximum width of the Packet Tracer main window. More... | |
| int | getMaximumHeight () |
| Returns the maximum height of the Packet Tracer main window. More... | |
| void | setMinimumSize (int, int) |
| Sets the minimum size of the Packet Tracer main window. More... | |
| void | setMinimumWidth (int) |
| Sets the minimum width of the Packet Tracer main window. More... | |
| void | setMinimumHeight (int) |
| Sets the minimum height of the Packet Tracer main window. More... | |
| int | getMinimumWidth () |
| Returns the minimum width of the Packet Tracer main window. More... | |
| int | getMinimumHeight () |
| Returns the minimum height of the Packet Tracer main window. More... | |
| int | getMainViewAreaWidth () |
| Returns the main view area's width. More... | |
| int | getMainViewAreaHeight () |
| Returns the main view area's height. More... | |
| void | resized (int, int) |
| This event is emitted when the Packet Tracer main window is resized. More... | |
| bool | isInterfaceLocked (QString, QString, QString) |
| Returns true if the interface with the specified ID is locked, otherwise false. More... | |
| void | setClipboardText (QString) |
| Sets the clipboard text(copy/paste text) to the given text. More... | |
| QString | getClipboardText () |
| Returns the current clipboard text, if any. More... | |
| void | helpPath (QString) |
| Open a help file at the given path. More... | |
| bool | openURL (QString) |
| Open URL in external web browser. More... | |
| EnvironmentDialog | getEnvironmentDialog () |
| Returns the Environment Dialog. More... | |
| vector< QString > | listDirectory (QString, QString) |
| Temporary function used to update sample files. Not for normal use. More... | |
| void | setCheckOutdatedDevices (bool) |
| Set if devices marked as outdated should be displayed for selection. More... | |
| void | deletePTConf () |
| QString | getPTSAMode () |
| Get the current PTSA Mode. More... | |
| void | setPTSAMode (QString) |
| Get the current PTSA Mode. More... | |
| bool | isPTSA () |
| returns true if PTSA More... | |
| void | setPTSAPluginVisible (bool) |
| show and hide pt window, called from ptsa plugin only. you still need to clear other windows, possibly with file->new More... | |
| bool | isActivityWizardOpen () |
| StandardButton | showMessageBox (QString, QString, QString, MessageBoxIcon, StandardButton, StandardButton, StandardButton) |
| Shows a modal message box with standard buttons over the PT main window. More... | |
| int | showMessageBoxWithCustomButtons (QString, QString, QString, MessageBoxIcon, QString, int, int) |
| Shows a modal message box with custom buttons over the PT main window. More... | |
AppWindow serves as the entry point to all GUI objects.
| void AppWindow::activityFileOpening | ( | ) |
This event is emitted when a activity file is opening.
IPC event.
| void AppWindow::appExit | ( | ) |
This event is emitted when the user exits application.
IPC event.
| void AppWindow::deletePTConf | ( | ) |
| void AppWindow::enteredActivityWizard | ( | bool | ) |
This event is emitted when the activity wizard is entered.
IPC event.
| void AppWindow::exit | ( | ) |
Exits Packet Tracer.
| void AppWindow::exitNoConfirm | ( | bool | ) |
Exits packet tracer with or without save conformation.
| flag,true | to exit Packet Tracer without save confirmation, false to exit with save confirmation. |
| void AppWindow::fileActivityWizard | ( | ) |
Enters the Activity Wizard.
| void AppWindow::fileClosing | ( | ) |
This event is emitted when the file is closing.
IPC event.
| bool AppWindow::fileNew | ( | bool | ) |
Creates a new file.
| flag,true | shows the save confirmation dialog, false does not. |
| void AppWindow::fileNewed | ( | ) |
This event is emitted when a new file is created.
IPC event.
| FileOpenReturnValue AppWindow::fileOpen | ( | QString | ) |
Opens the specified file.
| filename,the | path of the file. |
| void AppWindow::fileOpened | ( | ) |
This event is emitted when a file is opened.
IPC event.
| FileOpenReturnValue AppWindow::fileOpenFromBytes | ( | vector< byte > | , |
| QString | |||
| ) |
Opens the specified file with the specified bytes of data.
| data,vector | of bytes of the file. |
| filename,the | path of the file. |
| FileOpenReturnValue AppWindow::fileOpenFromURL | ( | QString | ) |
Opens a file at the specified URL.
| url,the | URL of the file. |
| bool AppWindow::fileSave | ( | ) |
| bool AppWindow::fileSaveAs | ( | QString | ) |
| void AppWindow::fileSaveAsAsync | ( | QString | ) |
Starts save as operation to the specified file and returns immediately.
| filename,the | path of the file. |
| void AppWindow::fileSaveAsNoPrompt | ( | QString | , |
| bool | |||
| ) |
Same as fileSaveAs() except it does not prompt to overwrite the file.
| filename,the | path of the file. |
| bAsync,set | to true to use fileSaveAsAsync() |
| bool AppWindow::fileSaveAsPkz | ( | QString | ) |
| void AppWindow::fileSaveAsPkzAsync | ( | QString | ) |
Starts save as pkz operation and returns immediately.
| filename,the | path of the file. |
| void AppWindow::fileSaveAsync | ( | ) |
Starts save operation and returns immediately.
| void AppWindow::fileSaved | ( | ) |
IPC event.
| void AppWindow::fileSaveDone | ( | bool | ) |
This event is emitted when a file is saved.
IPC event.
| vector< byte > AppWindow::fileSaveToBytes | ( | ) |
| void AppWindow::fileSaveToBytesAsync | ( | ) |
Starts save to bytes operation and returns immediately.
| void AppWindow::fileSaveToBytesDone | ( | vector< byte > | ) |
| ActiveDialog AppWindow::getActiveDialog | ( | ) |
Returns the current active dialog.
| NetworkFile AppWindow::getActiveFile | ( | ) |
Returns the current active file.
| Workspace AppWindow::getActiveWorkspace | ( | ) |
Returns the current active workspace.
| ActivityWizard AppWindow::getActivityWizard | ( | ) |
Returns the Activity Wizard.
| AdministrativeDialog AppWindow::getAdminDialog | ( | ) |
Returns the administrative dialog.
| QString AppWindow::getBasePath | ( | ) |
Returns the installation directory of Packet Tracer.
| QString AppWindow::getClipboardText | ( | ) |
Returns the current clipboard text, if any.
| CommonToolbar AppWindow::getCommonToolbar | ( | ) |
Returns the Common Toolbar.
| QString AppWindow::getDefaultFileSaveLocation | ( | ) |
Retrives default save location.
| DialogManager AppWindow::getDialogManager | ( | ) |
Returns the dialog manager.
| EnvironmentDialog AppWindow::getEnvironmentDialog | ( | ) |
Returns the Environment Dialog.
| int AppWindow::getHeight | ( | ) |
Returns the Packet Tracer main window height.
| InfoDialog AppWindow::getInfoDialog | ( | ) |
Returns the info dialog.
| InstructionDlg AppWindow::getInstructionDlg | ( | ) |
Returns the activity instructions dialog.
| vector< QString > AppWindow::getListOfFilesSaved | ( | QString | ) |
Retrives list of files saved at default location.
| location,Reserved |
| vector< QString > AppWindow::getListOfFilesToOpen | ( | QString | ) |
Retrives list of files that can be opened location.
| location,Reserved |
| LogicalToolbar AppWindow::getLogicalToolbar | ( | ) |
Returns the Logical workspace toolbar.
| int AppWindow::getMainViewAreaHeight | ( | ) |
Returns the main view area's height.
| int AppWindow::getMainViewAreaWidth | ( | ) |
Returns the main view area's width.
| int AppWindow::getMaximumHeight | ( | ) |
Returns the maximum height of the Packet Tracer main window.
| int AppWindow::getMaximumWidth | ( | ) |
Returns the maximum width of the Packet Tracer main window.
| int AppWindow::getMinimumHeight | ( | ) |
Returns the minimum height of the Packet Tracer main window.
| int AppWindow::getMinimumWidth | ( | ) |
Returns the minimum width of the Packet Tracer main window.
| NetworkComponentBox AppWindow::getNetworkComponentBox | ( | ) |
Returns the Network Component Box.
| PaletteDialog AppWindow::getPaletteDialog | ( | ) |
Returns the palette dialog.
| PDUListWindow AppWindow::getPDUListWindow | ( | ) |
Returns the PDU list window.
| PhysicalLocationDialog AppWindow::getPhysicalLocationDialog | ( | ) |
Returns the Physical Location dialog.
| PhysicalToolbar AppWindow::getPhysicalToolbar | ( | ) |
Returns the Physical workspace toolbar.
| PLSwitch AppWindow::getPLSwitch | ( | ) |
Returns the Physical/Logical workspace switch.
| PrintDialogPT4 AppWindow::getPrintDialog | ( | ) |
Returns the print dialog.
| long AppWindow::getProcessId | ( | ) |
Returns Packet Tracer application process ID.
| QString AppWindow::getPTSAMode | ( | ) |
Get the current PTSA Mode.
| RealtimeToolbar AppWindow::getRealtimeToolbar | ( | ) |
Returns the Realtime mode toolbar.
| RSSwitch AppWindow::getRSSwitch | ( | ) |
Returns the Realtime/Simulation mode switch.
| ToolBar AppWindow::getSecondaryToolBar | ( | ) |
Returns the secondary toolbar.
| QString AppWindow::getSessionId | ( | ) |
Returns the globally unique Packet Tracer application session ID.
| SimulationPanel AppWindow::getSimulationPanel | ( | ) |
Returns the Simulation panel.
| SimulationToolbar AppWindow::getSimulationToolbar | ( | ) |
Returns the Simulation mode toolbar.
| QString AppWindow::getTempFileLocation | ( | ) |
| UserCreatedPDU AppWindow::getUserCreatedPDU | ( | ) |
Returns the User Created PDU.
| QString AppWindow::getUserFolder | ( | ) |
Returns the user folder of the current user logged into the OS.
| QString AppWindow::getVersion | ( | ) |
Returns the Packet Tracer version number.
| WebViewManager AppWindow::getWebViewManager | ( | ) |
Returns the WebView manager.
| int AppWindow::getWidth | ( | ) |
Returns the Packet Tracer main window width.
| int AppWindow::getX | ( | ) |
Returns the Packet Tracer main window x-coorindate.
| int AppWindow::getY | ( | ) |
Returns the Packet Tracer main window y-coorindate.
| void AppWindow::helpPath | ( | QString | ) |
Open a help file at the given path.
| subPath,subpath | to the file to open. |
| bool AppWindow::isActivityWizardOpen | ( | ) |
| bool AppWindow::isInterfaceLocked | ( | QString | , |
| QString | , | ||
| QString | |||
| ) |
Returns true if the interface with the specified ID is locked, otherwise false.
| ID,the | ID of the item to check if locked. |
| branchID1,limit | the search to this branch ID. |
| branchID2,limit | the search to this branch ID of branchID1. |
| bool AppWindow::isLogicalMode | ( | ) |
Returns true if currently in Logical workspace, otherwise false.
| void AppWindow::isMaximized | ( | ) |
| void AppWindow::isMinimized | ( | ) |
| bool AppWindow::isPhysicalMode | ( | ) |
Returns true if currently in Physical workspace, otherwise false.
| bool AppWindow::isPreventClose | ( | ) |
Returns true if Packet Tracer is prevented from closing, otherwise false.
| bool AppWindow::isPTSA | ( | ) |
returns true if PTSA
| bool AppWindow::isRealtimeMode | ( | ) |
Returns true if currently in Realtime mode, otherwise false.
| bool AppWindow::isSimulationMode | ( | ) |
Returns true if currently in Simulation mode, otherwise false.
| vector< QString > AppWindow::listDirectory | ( | QString | , |
| QString | |||
| ) |
Temporary function used to update sample files. Not for normal use.
| void AppWindow::lockedInterfaceInvoked | ( | QString | , |
| QString | , | ||
| QString | , | ||
| QString | |||
| ) |
This event is emitted when a locked interface is invoked.
IPC event.
| bool AppWindow::openURL | ( | QString | ) |
Open URL in external web browser.
| url,url | to open. |
| FileOpenReturnValue AppWindow::promptFileOpenFolder | ( | QString | ) |
Prompts to browse a folder for a file to open.
| folder,the | path of the folder to browse. |
| void AppWindow::raise | ( | ) |
| void AppWindow::resized | ( | int | , |
| int | |||
| ) |
This event is emitted when the Packet Tracer main window is resized.
IPC event.
| void AppWindow::setCheckOutdatedDevices | ( | bool | ) |
Set if devices marked as outdated should be displayed for selection.
| bCheck,true | if outdated devices should be handled when setting up the toolbar, false if not. |
| void AppWindow::setClipboardText | ( | QString | ) |
Sets the clipboard text(copy/paste text) to the given text.
| text,text | to put on the clipboard to use for paste. |
| void AppWindow::setDisabled | ( | bool | ) |
Disables or enables the application. Buttons, etc will be shown as disabled and unuable.
| flag,true | to disable the application and false to enable. |
| void AppWindow::setMaximumHeight | ( | int | ) |
Sets the maximum height of the Packet Tracer main window.
| void AppWindow::setMaximumSize | ( | int | , |
| int | |||
| ) |
Sets the maximum size of the Packet Tracer main window.
| void AppWindow::setMaximumWidth | ( | int | ) |
Sets the maximum width of the Packet Tracer main window.
| void AppWindow::setMinimumHeight | ( | int | ) |
Sets the minimum height of the Packet Tracer main window.
| void AppWindow::setMinimumSize | ( | int | , |
| int | |||
| ) |
Sets the minimum size of the Packet Tracer main window.
| void AppWindow::setMinimumWidth | ( | int | ) |
Sets the minimum width of the Packet Tracer main window.
| void AppWindow::setPLFrameVisible | ( | bool | ) |
| void AppWindow::setPreventClose | ( | bool | ) |
Allows or prevents Packet Tracer from closing.
| bPreventClose,true | to prevent Packet Tracer from closing, false to allow closing. |
| void AppWindow::setPTSAMode | ( | QString | ) |
Get the current PTSA Mode.
| void AppWindow::setPTSAPluginVisible | ( | bool | ) |
show and hide pt window, called from ptsa plugin only. you still need to clear other windows, possibly with file->new
| void AppWindow::setRSFrameVisible | ( | bool | ) |
| void AppWindow::setVisible | ( | bool | ) |
Shows or hides the Packet Tracer main window.
\brief This event is emitted when a message box should be displayed.
\NOT APPLICABLE TO DESKTOP
event: popupMessage(QString reason, QString title, QString message, QString buttonA, QString buttonB, QString buttonC, QString buttonD) - PrivApplication;
| flag,true | to show the Packet Tracer main window, false to hide it. |
| void AppWindow::setWindowGeometry | ( | int | , |
| int | , | ||
| int | , | ||
| int | |||
| ) |
Sets the Packet Tracer main window geometry and position.
| x,the | x-coordinate of the main window. |
| y,the | y-coordinate of the main window. |
| width,the | width of the main window. |
| height,the | height of the main window. |
| void AppWindow::setWindowTitle | ( | QString | ) |
Sets the Packet Tracer main window title.
| title,the | window title |
| bool AppWindow::shouldIgnoreFileExit | ( | ) |
This delegate determines if PT should ignore the file->exit action. If ignoring, then the script module should do something to let the user know.
| bool AppWindow::shouldIgnoreFileNew | ( | ) |
This delegate determines if PT should ignore the file->new action. If ignoring, then the script module should do something to let the user know.
| bool AppWindow::shouldIgnoreFileOpenFolder | ( | QString | ) |
This delegate determines if PT should ignore the file->open folder action. If ignoring, then the script module should do something to let the user know.
| bool AppWindow::shouldIgnoreFileOpenRecent | ( | QString | ) |
This delegate determines if PT should ignore the file->open recent file action. If ignoring, then the script module should do something to let the user know.
| bool AppWindow::shouldIgnoreFileSave | ( | ) |
This delegate determines if PT should ignore the file->save action. If ignoring, then the script module should do something to let the user know.
| bool AppWindow::shouldIgnoreFileSaveAs | ( | QString | ) |
This delegate determines if PT should ignore the file->save as action. If ignoring, then the script module should do something to let the user know.
| void AppWindow::showMaximized | ( | ) |
Sets the Packet Tracer main window to the maximum size.
| StandardButton AppWindow::showMessageBox | ( | QString | , |
| QString | , | ||
| QString | , | ||
| MessageBoxIcon | , | ||
| StandardButton | , | ||
| StandardButton | , | ||
| StandardButton | |||
| ) |
Shows a modal message box with standard buttons over the PT main window.
StandardButton values: Ok = 0x00000400, // An "OK" button defined with the AcceptRole. Open = 0x00002000, // An "Open" button defined with the AcceptRole. Save = 0x00000800, // A "Save" button defined with the AcceptRole. Cancel = 0x00400000, // A "Cancel" button defined with the RejectRole. Close = 0x00200000, // A "Close" button defined with the RejectRole. Discard = 0x00800000, // A "Discard" or "Don't Save" button, depending on the platform, defined with the DestructiveRole. Apply = 0x02000000, // An "Apply" button defined with the ApplyRole. Reset = 0x04000000, // A "Reset" button defined with the ResetRole. RestoreDefaults = 0x08000000, // A "Restore Defaults" button defined with the ResetRole. Help = 0x01000000, // A "Help" button defined with the HelpRole. SaveAll = 0x00001000, // A "Save All" button defined with the AcceptRole. Yes = 0x00004000, // A "Yes" button defined with the YesRole. YesToAll = 0x00008000, // A "Yes to All" button defined with the YesRole. No = 0x00010000, // A "No" button defined with the NoRole. NoToAll = 0x00020000, // A "No to All" button defined with the NoRole. Abort = 0x00040000, // An "Abort" button defined with the RejectRole. Retry = 0x00080000, // A "Retry" button defined with the AcceptRole. Ignore = 0x00100000, // An "Ignore" button defined with the AcceptRole. NoButton = 0x00000000 // An invalid button.
| int AppWindow::showMessageBoxWithCustomButtons | ( | QString | , |
| QString | , | ||
| QString | , | ||
| MessageBoxIcon | , | ||
| QString | , | ||
| int | , | ||
| int | |||
| ) |
Shows a modal message box with custom buttons over the PT main window.
| void AppWindow::showMinimized | ( | ) |
Sets the Packet Tracer main window to the minimum size.
| void AppWindow::showNormal | ( | ) |
Sets the Packet Tracer main window to the normal size.
| void AppWindow::suppressInstructionDlg | ( | bool | ) |
| void AppWindow::writeToPT | ( | QString | ) |