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

Monitor::BellMaster::App Class Reference

Bellmaster TurboVision application. More...

#include <bmapp.h>

List of all members.

Public Methods

 App ()
virtual ~App ()
virtual void handleEvent (TEvent &event)
 Override of inherited method to process application events. More...

void idle ()
 Override of inherited method invoked when no events pending. More...


Static Public Methods

TStatusLine * initStatusLine (TRect r)
 Application specific method to create status line contents and behaviour. More...

TMenuBar * initMenuBar (TRect r)
 Application specific method to create menu bar contents and behaviour. More...


Private Methods

void loadBellCodeFile ()
 Select a file to load bell codes from. More...

void loadBellCodesFromFile (const char *fileName)
 Load bell codes from named file. More...

BellCodeselectBellCode (BellCodeList &availableCodes)
 Select a bell code. More...

void beatBellCode (Tapper &tapper)
 Select and beat out a bell code. More...

void signalmanHearBell (TapperWin *tapperWindow)
 Select a signalman to listen to a bell being beaten out. More...

void signalmanRingCode (Tapper &tapper)
 Select a signalman and a bell code for them ring out. More...

void loadSignalmanFile ()
 Select a file to load signalman from. More...

void loadSignalmanFromFile (const char *fileName)
 Load signalman from named file. More...

void unloadSignalman ()
 Unload a signalman. More...

SignalmanselectSignalman (SignalmanList &availableSignalmen)
 Select a signalman. More...

void closeModal (TView *oldView)
 If the given view is currently being displayed modally then close it. More...

void showModal (TView *newView)
 Display given view modally. More...


Private Attributes

SignalmanListsignalmen
 List of signalmen currently available to application. More...

BellCodeListbellCodes
 List of bell codes currently being used by application. More...

SignalmanlisteningSignalman
 Signalman currently listening to bell. More...


Detailed Description

Bellmaster TurboVision application.

Definition at line 66 of file bmapp.h.


Constructor & Destructor Documentation

App::App  
 

Definition at line 163 of file bmapp.cpp.

References _USEMYTRACE_, applicationVersion, loadBellCodesFromFile, and loadSignalmanFromFile.

App::~App   [virtual]
 

Definition at line 195 of file bmapp.cpp.

References _USEMYTRACE_, bellCodes, and signalmen.


Member Function Documentation

void App::beatBellCode Tapper   tapper [private]
 

Select and beat out a bell code.

Parameters:
tapper  Tapper to be used to beat out code.

Definition at line 406 of file bmapp.cpp.

References _USEMYTRACE_, bellCodes, listeningSignalman, remoteBell, and remoteTapper.

Referenced by handleEvent.

void App::closeModal TView *    oldView [private]
 

If the given view is currently being displayed modally then close it.

Parameters:
oldView  View to be closed.

Definition at line 596 of file bmapp.cpp.

References _USEMYTRACE_.

void App::handleEvent TEvent &    event [virtual]
 

Override of inherited method to process application events.

Invoked from TurboVision application 'main loop'.

Definition at line 278 of file bmapp.cpp.

References applicationVersion, beatBellCode, loadBellCodeFile, loadSignalmanFile, localTapper, remoteTapper, showModal, signalmanRingCode, and unloadSignalman.

void App::idle  
 

Override of inherited method invoked when no events pending.

Invoked from TurboVision application 'main loop'. Runs any active timeouts.

Definition at line 317 of file bmapp.cpp.

TMenuBar * App::initMenuBar TRect    r [static]
 

Application specific method to create menu bar contents and behaviour.

Definition at line 221 of file bmapp.cpp.

References _USEMYTRACE_.

TStatusLine * App::initStatusLine TRect    r [static]
 

Application specific method to create status line contents and behaviour.

Definition at line 206 of file bmapp.cpp.

References _USEMYTRACE_.

void App::loadBellCodeFile   [private]
 

Select a file to load bell codes from.

Definition at line 327 of file bmapp.cpp.

References _USEMYTRACE_, and loadBellCodesFromFile.

Referenced by handleEvent.

void App::loadBellCodesFromFile const char *    fileName [private]
 

Load bell codes from named file.

Parameters:
fileName  Name of file to open and read.

Definition at line 352 of file bmapp.cpp.

References _USEMYTRACE_, and bellCodes.

Referenced by App, and loadBellCodeFile.

void App::loadSignalmanFile   [private]
 

Select a file to load signalman from.

Definition at line 497 of file bmapp.cpp.

References _USEMYTRACE_, and loadSignalmanFromFile.

Referenced by handleEvent.

void App::loadSignalmanFromFile const char *    fileName [private]
 

Load signalman from named file.

Parameters:
fileName  Name of file to open and read.

Definition at line 522 of file bmapp.cpp.

References _USEMYTRACE_, and signalmen.

Referenced by App, and loadSignalmanFile.

BellCode * App::selectBellCode BellCodeList   availableCodes [private]
 

Select a bell code.

Parameters:
availableCodes  List of codes from which to make selection.
Returns:
Pointer to selected bell code, 'null' if non selected.

Definition at line 374 of file bmapp.cpp.

References _USEMYTRACE_.

Referenced by signalmanRingCode.

Signalman * App::selectSignalman SignalmanList   availableSignalmen [private]
 

Select a signalman.

Parameters:
availableSignalmen  List of signalmen from which to make selection.
Returns:
Pointer to selected signalman, 'null' if non selected.

Definition at line 560 of file bmapp.cpp.

References _USEMYTRACE_.

Referenced by signalmanHearBell, signalmanRingCode, and unloadSignalman.

void App::showModal TView *    newView [private]
 

Display given view modally.

Parameters:
newView  View to be displayed.

Definition at line 610 of file bmapp.cpp.

References _USEMYTRACE_.

Referenced by handleEvent.

void App::signalmanHearBell TapperWin   tapperWindow [private]
 

Select a signalman to listen to a bell being beaten out.

Parameters:
tapperWindow  Window used to beat out code.

Definition at line 455 of file bmapp.cpp.

References _USEMYTRACE_, listeningSignalman, remoteBell, selectSignalman, and signalmen.

void App::signalmanRingCode Tapper   tapper [private]
 

Select a signalman and a bell code for them ring out.

Parameters:
tapper  Tapper to be used to ring out code.

Definition at line 476 of file bmapp.cpp.

References _USEMYTRACE_, bellCodes, selectBellCode, selectSignalman, and signalmen.

Referenced by handleEvent.

void App::unloadSignalman   [private]
 

Unload a signalman.

Definition at line 545 of file bmapp.cpp.

References _USEMYTRACE_, selectSignalman, and signalmen.

Referenced by handleEvent.


Member Data Documentation

BellCodeList* Monitor::BellMaster::App::bellCodes [private]
 

List of bell codes currently being used by application.

Definition at line 111 of file bmapp.h.

Referenced by beatBellCode, loadBellCodesFromFile, signalmanRingCode, and ~App.

Signalman* Monitor::BellMaster::App::listeningSignalman [private]
 

Signalman currently listening to bell.

Definition at line 116 of file bmapp.h.

Referenced by beatBellCode, and signalmanHearBell.

SignalmanList* Monitor::BellMaster::App::signalmen [private]
 

List of signalmen currently available to application.

Definition at line 106 of file bmapp.h.

Referenced by loadSignalmanFromFile, signalmanHearBell, signalmanRingCode, unloadSignalman, and ~App.


Generated on Wed Oct 29 20:55:44 2003 for Bellmaster BC Turbo Vision by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002