#include <bmapp.h>
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... | |
| BellCode * | selectBellCode (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... | |
| Signalman * | selectSignalman (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 | |
| SignalmanList * | signalmen |
| List of signalmen currently available to application. More... | |
| BellCodeList * | bellCodes |
| List of bell codes currently being used by application. More... | |
| Signalman * | listeningSignalman |
| Signalman currently listening to bell. More... | |
Definition at line 66 of file bmapp.h.
|
|
Definition at line 163 of file bmapp.cpp. References _USEMYTRACE_, applicationVersion, loadBellCodesFromFile, and loadSignalmanFromFile. |
|
|
Definition at line 195 of file bmapp.cpp. References _USEMYTRACE_, bellCodes, and signalmen. |
|
|
Select and beat out a bell code.
Definition at line 406 of file bmapp.cpp. References _USEMYTRACE_, bellCodes, listeningSignalman, remoteBell, and remoteTapper. Referenced by handleEvent. |
|
|
If the given view is currently being displayed modally then close it.
Definition at line 596 of file bmapp.cpp. References _USEMYTRACE_. |
|
|
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. |
|
|
Override of inherited method invoked when no events pending. Invoked from TurboVision application 'main loop'. Runs any active timeouts. |
|
|
Application specific method to create menu bar contents and behaviour.
Definition at line 221 of file bmapp.cpp. References _USEMYTRACE_. |
|
|
Application specific method to create status line contents and behaviour.
Definition at line 206 of file bmapp.cpp. References _USEMYTRACE_. |
|
|
Select a file to load bell codes from.
Definition at line 327 of file bmapp.cpp. References _USEMYTRACE_, and loadBellCodesFromFile. Referenced by handleEvent. |
|
|
Load bell codes from named file.
Definition at line 352 of file bmapp.cpp. References _USEMYTRACE_, and bellCodes. Referenced by App, and loadBellCodeFile. |
|
|
Select a file to load signalman from.
Definition at line 497 of file bmapp.cpp. References _USEMYTRACE_, and loadSignalmanFromFile. Referenced by handleEvent. |
|
|
Load signalman from named file.
Definition at line 522 of file bmapp.cpp. References _USEMYTRACE_, and signalmen. Referenced by App, and loadSignalmanFile. |
|
|
Select a bell code.
Definition at line 374 of file bmapp.cpp. References _USEMYTRACE_. Referenced by signalmanRingCode. |
|
|
Select a signalman.
Definition at line 560 of file bmapp.cpp. References _USEMYTRACE_. Referenced by signalmanHearBell, signalmanRingCode, and unloadSignalman. |
|
|
Display given view modally.
Definition at line 610 of file bmapp.cpp. References _USEMYTRACE_. Referenced by handleEvent. |
|
|
Select a signalman to listen to a bell being beaten out.
Definition at line 455 of file bmapp.cpp. References _USEMYTRACE_, listeningSignalman, remoteBell, selectSignalman, and signalmen. |
|
|
Select a signalman and a bell code for them ring out.
Definition at line 476 of file bmapp.cpp. References _USEMYTRACE_, bellCodes, selectBellCode, selectSignalman, and signalmen. Referenced by handleEvent. |
|
|
Unload a signalman.
Definition at line 545 of file bmapp.cpp. References _USEMYTRACE_, selectSignalman, and signalmen. Referenced by handleEvent. |
|
|
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 currently listening to bell.
Definition at line 116 of file bmapp.h. Referenced by beatBellCode, and signalmanHearBell. |
|
|
List of signalmen currently available to application.
Definition at line 106 of file bmapp.h. Referenced by loadSignalmanFromFile, signalmanHearBell, signalmanRingCode, unloadSignalman, and ~App. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002