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