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

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

+ Inheritance diagram for DtFileConsoleWidget:
+ Collaboration diagram for DtFileConsoleWidget:

Public Slots

virtual void updateConsole ()
 Reads the latest data from the log file and outputs to the console. More...
 
virtual void updateNotifyLevel (MAKRti::DtNotifyLevelType level)
 Emits a signal when the notify level is updated with the new level and the name of this console widget. More...
 
- 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. 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 (int id, MAKRti::DtNotifyLevelType level)
 Signal emitted when the notify level is updated. More...
 
- Signals inherited from DtConsoleWidget
void notifyLevelUpdated (MAKRti::DtNotifyLevelType notifyLevel)
 Signals that the notify level has been updated by the user. More...
 

Public Member Functions

 DtFileConsoleWidget (int updateInterval=400, QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor. More...
 
virtual ~DtFileConsoleWidget ()
 Destructor. More...
 
virtual void setLogFile (const QString &logFileName)
 Closes the current log file and opens the new one. More...
 
virtual QString logFileName ()
 Returns the name and path of the log file. More...
 
virtual void setName (const QString &name)
 Sets the name of this console widget, which will be used to create the window title. More...
 
virtual QString name ()
 Gets the name of this console widget. More...
 
virtual void setId (int id)
 Sets the ID of this console widget, which is used in the console's emitted signals to uniquely identify it. More...
 
virtual int id ()
 Gets the ID of this console widget. More...
 
virtual void setUpdateInterval (int interval)
 Changes the update interval to the new value (in msecs). More...
 
- Public Member Functions inherited from DtConsoleWidget
 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 Member Functions

virtual void hideEvent (QHideEvent *event)
 Handles hide events. More...
 
virtual void showEvent (QShowEvent *event)
 Handles show events. More...
 
virtual void saveToFile ()
 Copies the log file to the user designated file. More...
 

Protected Attributes

QFile * myLogFile
 The log file used as input to the console display. More...
 
QString myName
 Name given to this console. More...
 
int myId
 ID used to identify this console in its emitted signals. More...
 
QTimer * myUpdateTimer
 Console display refresh timer. More...
 
int myUpdateInterval
 The interval, in msecs, at which the console will be refreshed. More...
 
- Protected Attributes inherited from DtConsoleWidget
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...
 

Private Member Functions

 DtFileConsoleWidget (DtFileConsoleWidget const &)
 Copy constructor not implemented. More...
 
DtFileConsoleWidgetoperator= (DtFileConsoleWidget const &)
 Assignment operator not implemented. More...
 

Additional Inherited Members

- Protected Types inherited from DtConsoleWidget
typedef std::list< DtTextAndColorDtTextAndColorList
 

Detailed Description

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

DtFileConsoleWidget is derived from DtConsoleWidget. It updates the console display from a log file which is continuously updated.

Constructor & Destructor Documentation

DtFileConsoleWidget::DtFileConsoleWidget ( int  updateInterval = 400,
QWidget parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

The log file will be opened and used as input for the console display.

virtual DtFileConsoleWidget::~DtFileConsoleWidget ( )
virtual

Destructor.

DtFileConsoleWidget::DtFileConsoleWidget ( DtFileConsoleWidget const &  )
private

Copy constructor not implemented.

Member Function Documentation

virtual void DtFileConsoleWidget::hideEvent ( QHideEvent *  event)
protectedvirtual

Handles hide events.

virtual int DtFileConsoleWidget::id ( )
virtual

Gets the ID of this console widget.

virtual QString DtFileConsoleWidget::logFileName ( )
virtual

Returns the name and path of the log file.

virtual QString DtFileConsoleWidget::name ( )
virtual

Gets the name of this console widget.

void DtFileConsoleWidget::notifyLevelUpdated ( int  id,
MAKRti::DtNotifyLevelType  level 
)
signal

Signal emitted when the notify level is updated.

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

Assignment operator not implemented.

virtual void DtFileConsoleWidget::saveToFile ( )
protectedvirtual

Copies the log file to the user designated file.

Reimplemented from DtConsoleWidget.

virtual void DtFileConsoleWidget::setId ( int  id)
virtual

Sets the ID of this console widget, which is used in the console's emitted signals to uniquely identify it.

virtual void DtFileConsoleWidget::setLogFile ( const QString &  logFileName)
virtual

Closes the current log file and opens the new one.

virtual void DtFileConsoleWidget::setName ( const QString &  name)
virtual

Sets the name of this console widget, which will be used to create the window title.

virtual void DtFileConsoleWidget::setUpdateInterval ( int  interval)
virtual

Changes the update interval to the new value (in msecs).

virtual void DtFileConsoleWidget::showEvent ( QShowEvent *  event)
protectedvirtual

Handles show events.

virtual void DtFileConsoleWidget::updateConsole ( )
virtualslot

Reads the latest data from the log file and outputs to the console.

virtual void DtFileConsoleWidget::updateNotifyLevel ( MAKRti::DtNotifyLevelType  level)
virtualslot

Emits a signal when the notify level is updated with the new level and the name of this console widget.

Member Data Documentation

int DtFileConsoleWidget::myId
protected

ID used to identify this console in its emitted signals.

QFile* DtFileConsoleWidget::myLogFile
protected

The log file used as input to the console display.

QString DtFileConsoleWidget::myName
protected

Name given to this console.

int DtFileConsoleWidget::myUpdateInterval
protected

The interval, in msecs, at which the console will be refreshed.

QTimer* DtFileConsoleWidget::myUpdateTimer
protected

Console display refresh timer.


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

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)