SMILX  1.01
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
milxQtConsole Class Reference

A console (tabbed) widget class for displaying information such as logs, terminals and consoles. More...

#include <milxQtConsole.h>

Inheritance diagram for milxQtConsole:

Public Slots

void setDockDefaultArea (Qt::DockWidgetArea area)
 
void printError (QString msg)
 Error message wrapper for console.
 
void printWarning (QString msg)
 Warning message wrapper for console.
 
void printDebug (QString msg)
 Debug message wrapper for console.
 
void printInfo (QString msg)
 Info message wrapper for console.
 
void consoleWasModified ()
 Change the window title to show that the tab has been modified.
 
void consoleSwitched (int index)
 Update member for when the tab changes.
 

Public Member Functions

 milxQtConsole (QWidget *theParent=0)
 
virtual ~milxQtConsole ()
 
void setTimestamps (const bool timestamp)
 
void setTab (QWidget *newWidget)
 
void consoleMessage (const QString &message)
 output message
 
void consoleHTMLMessage (const QString &message)
 output message as HTML
 
QDockWidget * dockWidget ()
 Return the dock widget of the current tabs.
 
Qt::DockWidgetArea dockDefaultArea ()
 

Protected Member Functions

void createActions ()
 Create all the actions for the console.
 
void createConnections ()
 Create connections for the console.
 

Protected Attributes

bool timestamps
 Timestamp messages?
 
QAction * copyAct
 Copy action for text.
 
QAction * clearAct
 clear action for text
 
QPointer< QTextEdit > logWindow
 Log messages window.
 
QPointer< QDockWidget > dock
 Dock widget.
 
Qt::DockWidgetArea dockArea
 

Detailed Description

A console (tabbed) widget class for displaying information such as logs, terminals and consoles.

Author
Shekhar S. Chandra, 2013

Definition at line 34 of file milxQtConsole.h.

Constructor & Destructor Documentation

◆ milxQtConsole()

milxQtConsole::milxQtConsole ( QWidget *  theParent = 0)

Default constructor

Definition at line 22 of file milxQtConsole.cpp.

◆ ~milxQtConsole()

milxQtConsole::~milxQtConsole ( )
virtual

Default destructor

Definition at line 48 of file milxQtConsole.cpp.


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