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

TxqMasterIoFrame Class Reference

A TxqFrame widget which provides help functions (About and an HTML browser), and stdout and stderr TxqLog widgets. More...

#include <TxqMasterIoFrame.h>

Inheritance diagram for TxqMasterIoFrame::

TxqFrame QFrame TxqConfigFrame TxqNewTrolFrame TxqVcrFrame TxqNldTrol TxqMovieFrame TxqAccelTrol List of all members.

Public Slots

virtual void startHtmlBrowser ()
 slot to start a software html browser. More...

virtual void startTxtBrowser ()
 slot to start a text browser. More...

void about ()
 slot to display about. More...

virtual void setNoLogMenu ()
 slot to set no logging. More...

virtual void setErrLogMenu ()
 slot to set error logging. More...

virtual void setOutLogMenu ()
 slot to set output logging. More...


Public Methods

 TxqMasterIoFrame (QWidget *parent=0, const char *nm=0, WFlags f=WType_TopLevel)
 The TxqMasterIoFrame constructor takes a reference to the parent QFrame, a name for the frame, and window flags. More...

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

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

void errlog (const QString &line)
 Write to the error log. More...

virtual void setOutThroughStream (TxqLog &t)
 Set the TxqLog for cout. More...

TxqLoggetOutThroughStream ()
 Get the TxqLog for cout. More...

virtual void setErrThroughStream (TxqLog &t)
 Set the TxqLog for cerr. More...

TxqLoggetErrThroughStream ()
 Get the TxqLog for cerr. More...

virtual void startBrowser (const QString &home, const QString &title)
 Start the HTML browser. More...

virtual void setAboutTitle (const QString &title)
 Set the About title. More...

void setAboutText (const QString &text)
 Set the About text. More...

QPopupMenu* getViewMenu ()
 Get the view popup menu. More...

QPopupMenu* getEditMenu ()
 Get the edit popup menu. More...

void createProgressDialog ()
 Create the QProgressDialog widget for use when desiring a progress meter. More...

TxqProgressDialoggetProgressDialog ()
 Return the progress dialog widget. More...

bool hasThreadSupport ()
 Return TRUE if this object has been compiled with Thread support. More...

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

void postOutlog (const QString s)
 Post a string to the outlog by a thread post event. More...

void postErrlog (const QString s)
 Post a string to the errlog by a thread post event. More...

void postProgress (const int index, const QString s)
 Post a message to the TxqProgressDialog by a thread post event. More...


Protected Methods

virtual void createWidgets ()
 Create the widgets. More...

void createParamsMenu ()
 Create the "Parameters" menu. More...

void createLogMenu ()
 Create the "Log" menu. More...

virtual void addMenuBarItems ()
 Add the default menu bar items. More...

virtual void addSubMenuBarItems ()
 Add the sub menu bar items The sub menubar items are any menus in the menubar that may need items inserted into it. More...

virtual void addWidgets ()
 Adds all the widgets to the layout This method is to be used in polish to add any created widgets to the layout manager. More...

virtual void addLogMenuItems ()
 Add items to the "Log" menu. More...

virtual void addViewMenuItems ()
 Add the view items. More...

virtual void addParamsMenuItems ()
 Add the parameters menu items. More...

virtual void createHelpMenu ()
 Create the help menu. More...

virtual void addHelpMenuItems ()
 Add the help menu items. More...

bool checkThread ()
 Check the status of the thread. More...


Protected Attributes

QPopupMenu* params
 params is the Parameters menubar command. More...

QPopupMenu* logging
 logging is the Logging menu item in view. More...

TxqLogtxcout
 The output TxqLog. More...

TxqLogtxcerr
 The error output TxqLog. More...

TxqTextViewout
 The stdout output log. More...

TxqTextViewerr
 The stderr output log. More...

int oline
 The current output line number. More...

int eline
 The current error output line number. More...

QPopupMenu* help
 help is the Help menubar command. More...

QString home
 The home directory. More...

TxqHelpWindowhw
 The help window. More...

QString aboutText
 The about text. More...

QString aboutTitle
 The about title. More...

int noLogId
 The view log menu id number for No logging. More...

int outLogId
 The view log menu id number for Output logging. More...

int errLogId
 The view log menu id number for Error logging. More...

bool errThruStrmOwner
 The bool which determines if the err TxThroughStream is created and owned by this class. More...

bool outThruStrmOwner
 The bool which determines if the out TxThroughStream is created and owned by this class. More...

TxqProgressDialogprogress
 The progress Dialog widget. More...

bool haveThread
 Flag to determine if thread has bee set. More...


Detailed Description

A TxqFrame widget which provides help functions (About and an HTML browser), and stdout and stderr TxqLog widgets.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

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

Definition at line 42 of file TxqMasterIoFrame.h.


Constructor & Destructor Documentation

TxqMasterIoFrame::TxqMasterIoFrame ( QWidget * parent = 0,
const char * nm = 0,
WFlags f = WType_TopLevel )
 

The TxqMasterIoFrame constructor takes a reference to the parent QFrame, a name for the frame, and window flags.

All other options must be set from member methods.

Parameters:
parent   The parent Qt widget.
nm   The name of the Qt widget.
f   The window flags defaulted to WTtype_TopLevel

TxqMasterIoFrame::~TxqMasterIoFrame ( ) [virtual]
 

The TxqMasterIoFrame destructor.


Member Function Documentation

void TxqMasterIoFrame::about ( ) [slot]
 

slot to display about.

void TxqMasterIoFrame::addHelpMenuItems ( ) [protected, virtual]
 

Add the help menu items.

Reimplemented in TxqNewTrolFrame, and TxqConfigFrame.

void TxqMasterIoFrame::addLogMenuItems ( ) [protected, virtual]
 

Add items to the "Log" menu.

void TxqMasterIoFrame::addMenuBarItems ( ) [protected, virtual]
 

Add the default menu bar items.

Reimplemented from TxqFrame.

Reimplemented in TxqConfigFrame, and TxqMovieFrame.

void TxqMasterIoFrame::addParamsMenuItems ( ) [protected, virtual]
 

Add the parameters menu items.

Reimplemented in TxqConfigFrame.

void TxqMasterIoFrame::addSubMenuBarItems ( ) [protected, virtual]
 

Add the sub menu bar items The sub menubar items are any menus in the menubar that may need items inserted into it.

Reimplemented from TxqFrame.

Reimplemented in TxqConfigFrame.

void TxqMasterIoFrame::addViewMenuItems ( ) [protected, virtual]
 

Add the view items.

Reimplemented from TxqFrame.

Reimplemented in TxqMovieFrame.

void TxqMasterIoFrame::addWidgets ( ) [protected, virtual]
 

Adds all the widgets to the layout This method is to be used in polish to add any created widgets to the layout manager.

Reimplemented from TxqFrame.

Reimplemented in TxqVcrFrame.

bool TxqMasterIoFrame::checkThread ( ) [protected]
 

Check the status of the thread.

void TxqMasterIoFrame::createHelpMenu ( ) [protected, virtual]
 

Create the help menu.

void TxqMasterIoFrame::createLogMenu ( ) [protected]
 

Create the "Log" menu.

void TxqMasterIoFrame::createParamsMenu ( ) [protected]
 

Create the "Parameters" menu.

void TxqMasterIoFrame::createProgressDialog ( )
 

Create the QProgressDialog widget for use when desiring a progress meter.

void TxqMasterIoFrame::createWidgets ( ) [protected, virtual]
 

Create the widgets.

Reimplemented from TxqFrame.

Reimplemented in TxqVcrFrame, and TxqConfigFrame.

void TxqMasterIoFrame::customEvent ( QCustomEvent * e ) [virtual]
 

Custom event to write to the log.

Parameters:
e   the QCustom event pointer.

Reimplemented in TxqAccelTrol, and TxqNldTrol.

void TxqMasterIoFrame::errlog ( const QString & line )
 

Write to the error log.

Parameters:
line   the QString line to output.

QPopupMenu * TxqMasterIoFrame::getEditMenu ( ) [inline]
 

Get the edit popup menu.

Returns:
the edit menu

Definition at line 129 of file TxqMasterIoFrame.h.

TxqLog * TxqMasterIoFrame::getErrThroughStream ( ) [inline]
 

Get the TxqLog for cerr.

Returns:
the class data member used for error output.

Definition at line 98 of file TxqMasterIoFrame.h.

TxqLog * TxqMasterIoFrame::getOutThroughStream ( ) [inline]
 

Get the TxqLog for cout.

Returns:
the class data member used for normal output.

Definition at line 86 of file TxqMasterIoFrame.h.

TxqProgressDialog * TxqMasterIoFrame::getProgressDialog ( )
 

Return the progress dialog widget.

QPopupMenu * TxqMasterIoFrame::getViewMenu ( ) [inline]
 

Get the view popup menu.

Returns:
the view menu

Definition at line 123 of file TxqMasterIoFrame.h.

bool TxqMasterIoFrame::hasThreadSupport ( )
 

Return TRUE if this object has been compiled with Thread support.

void TxqMasterIoFrame::outlog ( const QString & line )
 

Write to the output log.

Parameters:
line   the QString line to output.

void TxqMasterIoFrame::postErrlog ( const QString s )
 

Post a string to the errlog by a thread post event.

Parameters:
s   the errlog string

void TxqMasterIoFrame::postOutlog ( const QString s )
 

Post a string to the outlog by a thread post event.

Parameters:
s   the outlog string

void TxqMasterIoFrame::postProgress ( const int index,
const QString s )
 

Post a message to the TxqProgressDialog by a thread post event.

Parameters:
s   the errlog string
index   the index number

void TxqMasterIoFrame::setAboutText ( const QString & text )
 

Set the About text.

Parameters:
text   the QString text to use for the About box.

void TxqMasterIoFrame::setAboutTitle ( const QString & title ) [virtual]
 

Set the About title.

Parameters:
title   the About title desired.

void TxqMasterIoFrame::setErrLogMenu ( ) [virtual, slot]
 

slot to set error logging.

void TxqMasterIoFrame::setErrThroughStream ( TxqLog & t ) [virtual]
 

Set the TxqLog for cerr.

Parameters:
t   the TxqLog to use as the cerr representation.

void TxqMasterIoFrame::setNoLogMenu ( ) [virtual, slot]
 

slot to set no logging.

void TxqMasterIoFrame::setOutLogMenu ( ) [virtual, slot]
 

slot to set output logging.

void TxqMasterIoFrame::setOutThroughStream ( TxqLog & t ) [virtual]
 

Set the TxqLog for cout.

Parameters:
t   the TxqLog to use as the cout representation.

void TxqMasterIoFrame::startBrowser ( const QString & home,
const QString & title ) [virtual]
 

Start the HTML browser.

Parameters:
home   the HOME directory name to start the browswer.
title   the title for the browser widget.

Reimplemented in TxqConfigFrame, and TxqMovieFrame.

void TxqMasterIoFrame::startHtmlBrowser ( ) [virtual, slot]
 

slot to start a software html browser.

Reimplemented in TxqConfigFrame.

void TxqMasterIoFrame::startTxtBrowser ( ) [virtual, slot]
 

slot to start a text browser.


Member Data Documentation

QString TxqMasterIoFrame::aboutText [protected]
 

The about text.

Definition at line 364 of file TxqMasterIoFrame.h.

QString TxqMasterIoFrame::aboutTitle [protected]
 

The about title.

Definition at line 369 of file TxqMasterIoFrame.h.

int TxqMasterIoFrame::eline [protected]
 

The current error output line number.

Definition at line 344 of file TxqMasterIoFrame.h.

TxqTextView * TxqMasterIoFrame::err [protected]
 

The stderr output log.

Definition at line 334 of file TxqMasterIoFrame.h.

int TxqMasterIoFrame::errLogId [protected]
 

The view log menu id number for Error logging.

Definition at line 383 of file TxqMasterIoFrame.h.

bool TxqMasterIoFrame::errThruStrmOwner [protected]
 

The bool which determines if the err TxThroughStream is created and owned by this class.

Definition at line 389 of file TxqMasterIoFrame.h.

bool TxqMasterIoFrame::haveThread [protected]
 

Flag to determine if thread has bee set.

Definition at line 412 of file TxqMasterIoFrame.h.

QPopupMenu * TxqMasterIoFrame::help [protected]
 

help is the Help menubar command.

Definition at line 349 of file TxqMasterIoFrame.h.

QString TxqMasterIoFrame::home [protected]
 

The home directory.

Definition at line 354 of file TxqMasterIoFrame.h.

TxqHelpWindow * TxqMasterIoFrame::hw [protected]
 

The help window.

Definition at line 359 of file TxqMasterIoFrame.h.

QPopupMenu * TxqMasterIoFrame::logging [protected]
 

logging is the Logging menu item in view.

Definition at line 286 of file TxqMasterIoFrame.h.

int TxqMasterIoFrame::noLogId [protected]
 

The view log menu id number for No logging.

Definition at line 374 of file TxqMasterIoFrame.h.

int TxqMasterIoFrame::oline [protected]
 

The current output line number.

Definition at line 339 of file TxqMasterIoFrame.h.

TxqTextView * TxqMasterIoFrame::out [protected]
 

The stdout output log.

Definition at line 329 of file TxqMasterIoFrame.h.

int TxqMasterIoFrame::outLogId [protected]
 

The view log menu id number for Output logging.

Definition at line 379 of file TxqMasterIoFrame.h.

bool TxqMasterIoFrame::outThruStrmOwner [protected]
 

The bool which determines if the out TxThroughStream is created and owned by this class.

Definition at line 395 of file TxqMasterIoFrame.h.

QPopupMenu * TxqMasterIoFrame::params [protected]
 

params is the Parameters menubar command.

Definition at line 281 of file TxqMasterIoFrame.h.

TxqProgressDialog * TxqMasterIoFrame::progress [protected]
 

The progress Dialog widget.

Definition at line 400 of file TxqMasterIoFrame.h.

TxqLog * TxqMasterIoFrame::txcerr [protected]
 

The error output TxqLog.

To remove cerr's from the Standard Error Window txcerr->attachModel(model, TxThroughStream::TX_USER);

  • or - txcerr->setModelFilter(TxThroughStream::TX_USER);
To send standard error to the terminal/console add: txcerr->setFilter(TxThroughStream::TX_OUTPUT); or txcerr->attachModel(model, TxThroughStream::TX_OUTPUT);

To send all standard error to the error window, add: txcerr->attachModel(model); txcerr->setModelFilter(TxThroughStream::TX_ERRORS);

Definition at line 324 of file TxqMasterIoFrame.h.

TxqLog * TxqMasterIoFrame::txcout [protected]
 

The output TxqLog.

To remove cout's from the Standard Output Window txcout->attachModel(model, TxThroughStream::TX_USER);

  • or - txcout->setModelFilter(TxThroughStream::TX_USER);
To send standard output to the terminal/console add: txcout->setFilter(TxThroughStream::TX_OUTPUT); or txcout->attachModel(model, TxThroughStream::TX_OUTPUT);

To send all standard output to the error window, add: txcout->attachModel(model); txcout->setModelFilter(TxThroughStream::TX_ERRORS);

Definition at line 305 of file TxqMasterIoFrame.h.


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