Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
InstructionDlg is the instruction dialog associated with activity files. More...
Public Member Functions | |
void | resetActivity () |
Resets the activity. More... | |
void | showAnswerPage (bool) |
Shows the Check Results page. More... | |
void | closeAnswerPage () |
Closes the Check Results page. More... | |
void | prev () |
Shows the previous instruction page. More... | |
void | next () |
Shows the next instruction page. More... | |
void | alwaysOnTop (bool) |
Enables or disables the always on top feature. More... | |
void | dock () |
Dock the instructions dialog to the left of the main window. More... | |
void | undock () |
Undock the instructions dialog. More... | |
bool | isDocked () |
Returns true if instructions dialog is docked, false otherwise. More... | |
void | dockChanged (bool) |
This event is emitted when this window is docked or undocked. More... | |
void | setVisible (bool) |
Shows or hides this 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 widget. More... | |
void | setWidgetDisable (string, bool) |
Enables or disables the specified child widget. More... | |
bool | isEditInstructionsLocked () |
void | setEditInstructionsLocked (bool) |
void | setWindowGeometry (int, int, int, int) |
int | getX () |
int | getY () |
int | getWidth () |
int | getHeight () |
void | raise () |
WebView | getWebView () |
void | countdownExpired () |
This event is emitted when countdown expires. More... | |
bool | isShowCheckResultsLockMessage () |
void | setShowCheckResultsLockMessage (bool) |
set to show check results lock message or not. More... | |
void | overrideTimeLabel (QString, QString) |
Overrides the time label in the instruction box. More... | |
void | overrideProgressLabel (QString, QString) |
Overrides the progress label in the instruction box. More... | |
void | overrideInstructions () |
Overrides the instructions and the system will not update instructions anymore. More... | |
WebView | getTabWebView (int) |
Returns the web view in a tab. More... | |
void | setTabVisible (int, bool) |
Shows or hides a tab. More... | |
bool | addButton (QString, QString, HorizontalAlignment, int, int) |
Adds a button to the instruction dialog. More... | |
bool | addSlider (QString, int, int, int, HorizontalAlignment, int, int) |
Adds a slider to the instruction dialog. More... | |
bool | addLabel (QString, QString, HorizontalAlignment) |
Adds a label to the instruction dialog. More... | |
bool | removeWidget (QString) |
Removes a widget that was previously added to the instruction dialog. More... | |
bool | setSliderValue (QString, int) |
Sets the value of a slider that was previously added to the instruction dialog. More... | |
bool | setLabelText (QString, QString) |
Sets the text on the label that was previously added to the instruction dialog. More... | |
bool | setWidgetToolTip (QString, QString) |
Sets the tooltip for a widget that was previously added to the instruction dialog. More... | |
void | buttonClicked (QString) |
This event is emitted when a button that was previously added to the instruction dialog is clicked. More... | |
void | sliderValueChanged (QString, int) |
This event is emitted when the value of a slider that was previously added to the instruction dialog is changed. More... | |
InstructionDlg is the instruction dialog associated with activity files.
bool InstructionDlg::addButton | ( | QString | , |
QString | , | ||
HorizontalAlignment | , | ||
int | , | ||
int | |||
) |
Adds a button to the instruction dialog.
name,the | name of the widget |
label,the | label on the button |
alignment,HorizontalAlignment | enum: Left = 0x00000001, Right = 0x00000002 |
minWidth,the | minimum width of the widget |
maxWidth,the | maximum width of the widget |
bool InstructionDlg::addLabel | ( | QString | , |
QString | , | ||
HorizontalAlignment | |||
) |
Adds a label to the instruction dialog.
name,the | name of the widget |
text,the | text on the label |
alignment,HorizontalAlignment | enum: Left = 0x00000001, Right = 0x00000002 |
bool InstructionDlg::addSlider | ( | QString | , |
int | , | ||
int | , | ||
int | , | ||
HorizontalAlignment | , | ||
int | , | ||
int | |||
) |
Adds a slider to the instruction dialog.
name,the | name of the widget |
min,the | minimum value |
max,the | maximum value |
alignment,HorizontalAlignment | enum: Left = 0x00000001, Right = 0x00000002 |
minWidth,the | minimum width of the widget |
maxWidth,the | maximum width of the widget |
void InstructionDlg::alwaysOnTop | ( | bool | ) |
Enables or disables the always on top feature.
bOn,true | to enable the always on top feature, false to disable it. |
void InstructionDlg::buttonClicked | ( | QString | ) |
This event is emitted when a button that was previously added to the instruction dialog is clicked.
name,the | name of the widget |
IPC event.
void InstructionDlg::closeAnswerPage | ( | ) |
Closes the Check Results page.
void InstructionDlg::countdownExpired | ( | ) |
This event is emitted when countdown expires.
IPC event.
void InstructionDlg::dock | ( | ) |
Dock the instructions dialog to the left of the main window.
void InstructionDlg::dockChanged | ( | bool | ) |
This event is emitted when this window is docked or undocked.
IPC event.
int InstructionDlg::getHeight | ( | ) |
WebView InstructionDlg::getTabWebView | ( | int | ) |
Returns the web view in a tab.
WebView InstructionDlg::getWebView | ( | ) |
int InstructionDlg::getWidth | ( | ) |
int InstructionDlg::getX | ( | ) |
int InstructionDlg::getY | ( | ) |
bool InstructionDlg::isDocked | ( | ) |
Returns true if instructions dialog is docked, false otherwise.
bool InstructionDlg::isEditInstructionsLocked | ( | ) |
bool InstructionDlg::isShowCheckResultsLockMessage | ( | ) |
void InstructionDlg::next | ( | ) |
Shows the next instruction page.
void InstructionDlg::overrideInstructions | ( | ) |
Overrides the instructions and the system will not update instructions anymore.
void InstructionDlg::overrideProgressLabel | ( | QString | , |
QString | |||
) |
Overrides the progress label in the instruction box.
void InstructionDlg::overrideTimeLabel | ( | QString | , |
QString | |||
) |
Overrides the time label in the instruction box.
void InstructionDlg::prev | ( | ) |
Shows the previous instruction page.
void InstructionDlg::raise | ( | ) |
bool InstructionDlg::removeWidget | ( | QString | ) |
Removes a widget that was previously added to the instruction dialog.
name,the | name of the widget |
void InstructionDlg::resetActivity | ( | ) |
Resets the activity.
void InstructionDlg::setDisabled | ( | bool | ) |
Enables or disables input events to this widget.
bDisabled,true | to disable input events to this widget, false to enable input events. |
void InstructionDlg::setEditInstructionsLocked | ( | bool | ) |
bool InstructionDlg::setLabelText | ( | QString | , |
QString | |||
) |
Sets the text on the label that was previously added to the instruction dialog.
name,the | name of the widget |
text,the | text |
void InstructionDlg::setShowCheckResultsLockMessage | ( | bool | ) |
set to show check results lock message or not.
bShow,true | to show check result lock message, false to not show. |
bool InstructionDlg::setSliderValue | ( | QString | , |
int | |||
) |
Sets the value of a slider that was previously added to the instruction dialog.
name,the | name of the widget |
value,the | value |
void InstructionDlg::setTabVisible | ( | int | , |
bool | |||
) |
Shows or hides a tab.
void InstructionDlg::setVisible | ( | bool | ) |
Shows or hides this widget from view.
bVisible,true | to show this widget, false to hide it. |
void InstructionDlg::setWidgetDisable | ( | string | , |
bool | |||
) |
Enables or disables the specified child widget.
widgetName,where | widgetName can be one of the following: checkAnswerBtn, resetBtn, prevBtn, nextBtn, topCB, progressLbl, timeLbl. |
bDisabled,true | to disable input events to this child widget, false to enable input events. |
bool InstructionDlg::setWidgetToolTip | ( | QString | , |
QString | |||
) |
Sets the tooltip for a widget that was previously added to the instruction dialog.
name,the | name of the widget |
tooltip,the | tooltip |
void InstructionDlg::setWidgetVisible | ( | string | , |
bool | |||
) |
Shows or hides the specified child widget.
widgetName,where | widgetName can be one of the following: checkAnswerBtn, resetBtn, prevBtn, nextBtn, topCB, progressLbl, timeLbl. |
bVisible,true | to show this child widget, false to hide it. |
void InstructionDlg::setWindowGeometry | ( | int | , |
int | , | ||
int | , | ||
int | |||
) |
void InstructionDlg::showAnswerPage | ( | bool | ) |
Shows the Check Results page.
bResetOnClose,true | to reset the activity after closing the Check Results page, false to not reset the activity. |
void InstructionDlg::sliderValueChanged | ( | QString | , |
int | |||
) |
This event is emitted when the value of a slider that was previously added to the instruction dialog is changed.
name,the | name of the widget |
value,the | new value of the slider |
IPC event.
void InstructionDlg::undock | ( | ) |
Undock the instructions dialog.