TApplication Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


The mother of all applications More...

#include <app.h>

Inherits: TScreen, TProgram

Public Members

Protected Members


Detailed Description

The mother of all applications.

TApplication is a shell around TProgram and differs from it mainly in constructor and destructor. TApplication provides the application with a standard menu bar, a standard desktop and a standard status bar. In any real application, you usually need to inherit TApplication and redefine some of its methods. For example to add custom menus you must redefine TProgram::initMenuBar(). To add a custom status line, you need to redefine TProgram::initStatusLine(). In the same way to add a custom desktop you need to redefine TProgram::initDeskTop().

See Also: TProgram


void suspend() [public virtual]

Stops the execution of the application.

Suspends the program, used usually before temporary exit. By default this function is called just after the user presses Ctrl-Z to suspend the program.

See Also:
TScreen::suspend

void resume() [public virtual]

Restores the execution of the application.

Resumes the normal program execution. By default it is called after the user recovers the execution of the program with `fg'.

See Also:
TScreen::resume

void getEvent(TEvent& event) [public]

Gets the next event from the event queue.

Simply calls TProgram::getEvent().

See Also:
TProgram::getEvent

TApplication() [protected]

Constructor.

Initializes the basics of the library.

~TApplication() [protected virtual]

Destructor.


Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999
Kdoc