MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Signals | Public Member Functions | Protected Attributes | Private Member Functions

Provides the GUI for a console which displays the contents of an rtiexec log. More...

+ Inheritance diagram for DtExecConsoleWidget:
+ Collaboration diagram for DtExecConsoleWidget:

Signals

void loadLog ()
 Emitted when the user requests a load of the full log.
- Signals inherited from DtConsoleWidget
void notifyLevelUpdated (MAKRti::DtNotifyLevelType notifyLevel)
 Signals that the notify level has been updated by the user.

Public Member Functions

 DtExecConsoleWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor.
virtual ~DtExecConsoleWidget ()
 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 unsigned textSize () const
 Gets the size of the text which has been written to this console.
virtual void setNotifyLevel (MAKRti::DtNotifyLevelType notifyLevel)
 Sets the displayed notify level.
virtual void clearNotifyLevel ()
 Clears the displayed notify level.
- Public Member Functions inherited from DtConsoleWidget
 DtConsoleWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor.
virtual ~DtConsoleWidget ()
 Destructor.
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 Attributes

QAction * myLoadAction
 The tool bar action which loads the most recent rtiexec log entries to the console.
QLabelmyNotifyLevelHeaderLabel
 The header label for the notify level.
QLabelmyNotifyLevelLabel
 The label that indicates the notify level of the viewed rtiexec.
unsigned myTextSize
 Size of the currently displayed (and stored if paused) text in bytes.
- Protected Attributes inherited from DtConsoleWidget
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.

Private Member Functions

 DtExecConsoleWidget (DtExecConsoleWidget const &)
 Copy constructor not implemented.
DtExecConsoleWidgetoperator= (DtExecConsoleWidget const &)
 Assignment operator not implemented.

Additional Inherited Members

- Public Slots inherited from DtConsoleWidget
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.
- Protected Types inherited from DtConsoleWidget
typedef std::list< DtTextAndColorDtTextAndColorList
- Protected Member Functions inherited from DtConsoleWidget
virtual void saveToFile ()
 Saves the console output to a file.

Detailed Description

Provides the GUI for a console which displays the contents of an rtiexec log.

DtExecConsoleWidget is derived from DtConsoleWidget.

Constructor & Destructor Documentation

DtExecConsoleWidget::DtExecConsoleWidget ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
)
DtExecConsoleWidget::~DtExecConsoleWidget ( )
virtual

Destructor.

DtExecConsoleWidget::DtExecConsoleWidget ( DtExecConsoleWidget const &  )
private

Copy constructor not implemented.

Member Function Documentation

void DtExecConsoleWidget::clear ( )
virtual

Clears all of the text from the display.

Reimplemented from DtConsoleWidget.

References myTextSize.

void DtExecConsoleWidget::clearNotifyLevel ( )
virtual

Clears the displayed notify level.

References myNotifyLevelLabel.

void DtExecConsoleWidget::loadLog ( )
signal

Emitted when the user requests a load of the full log.

Referenced by DtExecConsoleWidget().

DtExecConsoleWidget& DtExecConsoleWidget::operator= ( DtExecConsoleWidget const &  )
private

Assignment operator not implemented.

void DtExecConsoleWidget::setNotifyLevel ( MAKRti::DtNotifyLevelType  notifyLevel)
virtual

Sets the displayed notify level.

Reimplemented from DtConsoleWidget.

References myNotifyLevelLabel.

unsigned DtExecConsoleWidget::textSize ( ) const
virtual

Gets the size of the text which has been written to this console.

References myTextSize.

void DtExecConsoleWidget::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 from DtConsoleWidget.

References myTextSize.

Member Data Documentation

QAction* DtExecConsoleWidget::myLoadAction
protected

The tool bar action which loads the most recent rtiexec log entries to the console.

Referenced by DtExecConsoleWidget().

QLabel* DtExecConsoleWidget::myNotifyLevelHeaderLabel
protected

The header label for the notify level.

Referenced by DtExecConsoleWidget().

QLabel* DtExecConsoleWidget::myNotifyLevelLabel
protected

The label that indicates the notify level of the viewed rtiexec.

Referenced by clearNotifyLevel(), DtExecConsoleWidget(), and setNotifyLevel().

unsigned DtExecConsoleWidget::myTextSize
protected

Size of the currently displayed (and stored if paused) text in bytes.

Referenced by clear(), textSize(), and writeText().


The documentation for this class was generated from the following files:

Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)