![]() |
MAK RTIspy API Documentation for HLA 4
|
Qt widget that provides the GUI for a console display. More...
Inheritance diagram for DtConsoleWidget:
Collaboration diagram for DtConsoleWidget:Classes | |
| struct | DtTextAndColor |
Public Slots | |
| virtual void | processNotifyComboxBoxUpdate (int level) |
| Catches the notify level combo box update and emits the notifyLevelUpdated signal with the new notifyLevel. More... | |
| virtual void | processSave () |
| Processes the pressing of the save button. More... | |
| virtual void | processPause () |
| Processes the pressing of the pause button. More... | |
| virtual void | processResume () |
| Processes the pressing of the resume button. More... | |
| virtual void | processSearch () |
| Processes the pressing of the search button. More... | |
| virtual void | focusSearchEdit () |
| Focus on the search. More... | |
Signals | |
| void | notifyLevelUpdated (MAKRti::DtNotifyLevelType notifyLevel) |
| Signals that the notify level has been updated by the user. More... | |
Public Member Functions | |
| DtConsoleWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor. More... | |
| virtual | ~DtConsoleWidget () |
| Destructor. More... | |
| virtual void | writeText (const QString &st, QColor color=Qt::black) |
| Writes the text to the display in the specified color. More... | |
| virtual void | clear () |
| Clears all of the text from the display. More... | |
| virtual void | setNotifyLevel (MAKRti::DtNotifyLevelType notifyLevel) |
| Sets the notify level in the combo box. More... | |
| virtual void | setMaximumLines (int max) |
| Sets the maximum number of lines which can be in the buffer. More... | |
| virtual void | setDocument (QTextDocument *document) |
| Sets the given document to be the document of the text edit. More... | |
| virtual void | removeNotifyComboBox () |
| removes the notify level combo box More... | |
| virtual void | showToolBar (bool showBar=true) |
| Shows or hides the tool bar items. More... | |
| virtual void | showClearButton (bool showButton=true) |
| Shows or hides the tool bar items. More... | |
| virtual void | showSaveButton (bool showButton=true) |
| Shows or hides the tool bar items. More... | |
| virtual void | showPauseResumeButton (bool showButton=true) |
| Shows or hides the tool bar items. More... | |
| virtual void | showNotifyLevelBox (bool showBox=true) |
| Shows or hides the tool bar items. More... | |
Protected Types | |
| typedef std::list< DtTextAndColor > | DtTextAndColorList |
Protected Member Functions | |
| virtual void | saveToFile () |
| Saves the console output to a file. More... | |
Protected Attributes | |
| QToolBar * | myToolBar |
| The tool bar for a console widget. More... | |
| QAction * | myClearAction |
| The tool bar action which clears the console. More... | |
| QAction * | mySaveAction |
| The tool bar action which saves the full log to a file. More... | |
| QAction * | myPauseAction |
| The tool bar action which pauses the console, preventing it from updating and scrolling. More... | |
| QAction * | myResumeAction |
| The tool bar action which resumes the console after it has been paused. More... | |
| QComboBox * | myNotifyComboBox |
| The tool bar combo box which will update the notify level. More... | |
| QTextEdit * | myTextEdit |
| The text edit box which displays the log. More... | |
| QFrame * | myFrame |
| The frame of the widget. More... | |
| QGridLayout * | myLayout |
| The layout of the widget. More... | |
| QGridLayout * | myFrameLayout |
| The layout of the frame. More... | |
| QString | mySavedFile |
| The previously saved file. More... | |
| QLineEdit * | mySearchEdit |
| The search edit box. More... | |
| QPushButton * | mySearchPushButton |
| The search button. More... | |
| QSpacerItem * | mySpacer |
| Spacer item for the grid layout. More... | |
| QShortcut * | mySearchShortcut |
| Search edit shortcut. More... | |
| bool | myIsPaused |
| Indicates if the console is currently paused. More... | |
| DtTextAndColorList | myPauseText |
| Used to store text while pause is on. More... | |
Qt widget that provides the GUI for a console display.
|
protected |
| DtConsoleWidget::DtConsoleWidget | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Clears all of the text from the display.
Reimplemented in DtExecConsoleWidget.
|
virtualslot |
Focus on the search.
|
signal |
Signals that the notify level has been updated by the user.
DtConsoleWidget does not update the notify level. This signal should be attached to a slot which actually changes the notify level.
|
virtualslot |
Catches the notify level combo box update and emits the notifyLevelUpdated signal with the new notifyLevel.
|
virtualslot |
Processes the pressing of the pause button.
|
virtualslot |
Processes the pressing of the resume button.
|
virtualslot |
Processes the pressing of the save button.
|
virtualslot |
Processes the pressing of the search button.
|
virtual |
removes the notify level combo box
|
protectedvirtual |
Saves the console output to a file.
Prompts the user with a dialog to select or enter a file.
Reimplemented in DtFileConsoleWidget.
|
virtual |
Sets the given document to be the document of the text edit.
The document's parent will be reset to be the text edit.
|
virtual |
Sets the maximum number of lines which can be in the buffer.
When the limit is reached, the oldest lines will be discarded.
|
virtual |
Sets the notify level in the combo box.
Reimplemented in DtExecConsoleWidget.
|
virtual |
Shows or hides the tool bar items.
|
virtual |
Shows or hides the tool bar items.
|
virtual |
Shows or hides the tool bar items.
|
virtual |
Shows or hides the tool bar items.
|
virtual |
Shows or hides the tool bar items.
|
virtual |
Writes the text to the display in the specified color.
The default is black if no color is specified.
Reimplemented in DtExecConsoleWidget.
|
protected |
The tool bar action which clears the console.
|
protected |
The frame of the widget.
|
protected |
The layout of the frame.
|
protected |
Indicates if the console is currently paused.
|
protected |
The layout of the widget.
|
protected |
The tool bar combo box which will update the notify level.
|
protected |
The tool bar action which pauses the console, preventing it from updating and scrolling.
|
protected |
Used to store text while pause is on.
Will be written to the console when it resumes.
|
protected |
The tool bar action which resumes the console after it has been paused.
|
protected |
The tool bar action which saves the full log to a file.
|
protected |
The previously saved file.
|
protected |
The search edit box.
|
protected |
The search button.
|
protected |
Search edit shortcut.
|
protected |
Spacer item for the grid layout.
|
protected |
The text edit box which displays the log.
|
protected |
The tool bar for a console widget.