Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqTextView Class Reference

This class creates a logger for output of standard output and standard error log messages. More...

#include <TxqTextView.h>

Inheritance diagram for TxqTextView::

QTextView List of all members.

Public Methods

 TxqTextView (const QString &text, const QString &context=QString::null, QWidget *parent=0, const char *name=0)
 The TxqTextView constructor takes a QWidget w a name nm and uses those to build the QWidget base class. More...

virtual ~TxqTextView ()
 The TxqTextView destructor. More...

void outlog (const QString &line)
 output the log. More...

void setBold (bool b)
 set to bold for a bold font. More...

void setTextColor (QColor c)
 Set the text color. More...

void setLogEnabled (bool b)
 Set the log output flag if the output flag is set, output is allowed to the window the default is true. More...

void customEvent (QCustomEvent *e)
 Custom event to write to the log. More...


Protected Slots

void copySelection (bool y)
 Copy the selected text to the clipboard. More...


Protected Methods

void timerEvent (QTimerEvent *t)
 The timer event will append a line. More...

void start ()
 Start the timer. More...

void stop ()
 Stop the timer. More...


Protected Attributes

int timer_id
 The timer id. More...

QString outLine
 The output line. More...

QString cacheLine
bool outFlag
 The output flag. More...

int oline
 The output line counter. More...

int cacheNumber
 The output line when caching. More...

int lineNumber
 The current line number. More...

bool boldFlag
 The font boldFlag if true a bold font is desired. More...

bool colorFlag
 The color flag if true, color has been set. More...

QColor textColor
 The text color the default is black if not set. More...

bool logFlag
 The log flag. More...

QString logText
 The log text. More...


Detailed Description

This class creates a logger for output of standard output and standard error log messages.

Copyright 2001 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
TxqTextView.h,v 1.9 2002/02/08 23:28:26 kgl Exp

Definition at line 33 of file TxqTextView.h.


Constructor & Destructor Documentation

TxqTextView::TxqTextView ( const QString & text,
const QString & context = QString::null,
QWidget * parent = 0,
const char * name = 0 )
 

The TxqTextView constructor takes a QWidget w a name nm and uses those to build the QWidget base class.

All other options must be set from member methods. The text and context are passed to the QTextView parent.

Parameters:
text   the text to pass to QTextView
consext   the context to pass to QTextView
parent   the parent Qt widget.
nm   the name of the Qt widget.

TxqTextView::~TxqTextView ( ) [virtual]
 

The TxqTextView destructor.


Member Function Documentation

void TxqTextView::copySelection ( bool y ) [protected, slot]
 

Copy the selected text to the clipboard.

void TxqTextView::customEvent ( QCustomEvent * e )
 

Custom event to write to the log.

Parameters:
e   the QCustom event pointer.

void TxqTextView::outlog ( const QString & line )
 

output the log.

Parameters:
line   the QString to output

void TxqTextView::setBold ( bool b )
 

set to bold for a bold font.

Parameters:
b   the bool to determine if bold is desired.

void TxqTextView::setLogEnabled ( bool b )
 

Set the log output flag if the output flag is set, output is allowed to the window the default is true.

void TxqTextView::setTextColor ( QColor c )
 

Set the text color.

Parameters:
c   the color for the text

void TxqTextView::start ( ) [protected]
 

Start the timer.

void TxqTextView::stop ( ) [protected]
 

Stop the timer.

void TxqTextView::timerEvent ( QTimerEvent * t ) [protected]
 

The timer event will append a line.


Member Data Documentation

bool TxqTextView::boldFlag [protected]
 

The font boldFlag if true a bold font is desired.

Definition at line 151 of file TxqTextView.h.

QString TxqTextView::cacheLine [protected]
 

Definition at line 125 of file TxqTextView.h.

int TxqTextView::cacheNumber [protected]
 

The output line when caching.

Definition at line 140 of file TxqTextView.h.

bool TxqTextView::colorFlag [protected]
 

The color flag if true, color has been set.

Definition at line 157 of file TxqTextView.h.

int TxqTextView::lineNumber [protected]
 

The current line number.

Definition at line 145 of file TxqTextView.h.

bool TxqTextView::logFlag [protected]
 

The log flag.

Definition at line 168 of file TxqTextView.h.

QString TxqTextView::logText [protected]
 

The log text.

Definition at line 173 of file TxqTextView.h.

int TxqTextView::oline [protected]
 

The output line counter.

Definition at line 135 of file TxqTextView.h.

bool TxqTextView::outFlag [protected]
 

The output flag.

Definition at line 130 of file TxqTextView.h.

QString TxqTextView::outLine [protected]
 

The output line.

Definition at line 124 of file TxqTextView.h.

QColor TxqTextView::textColor [protected]
 

The text color the default is black if not set.

Definition at line 163 of file TxqTextView.h.

int TxqTextView::timer_id [protected]
 

The timer id.

Definition at line 119 of file TxqTextView.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.