/*-------------------------------------------------------------------*/ /* filename - tapplica.cpp */ /* */ /* function(s) */ /* TApplication member functions (constructor & destructor) */ /*-------------------------------------------------------------------*/ /*-------------------------------------------------------------------*/ /* */ /* Turbo Vision - Version 1.0 */ /* */ /* */ /* Copyright (c) 1987,1988,1990 by Borland International */ /* All Rights Reserved. */ /* */ /*-------------------------------------------------------------------*/ #define Uses_TSystemError #define Uses_TEventQueue #define Uses_TScreen #define Uses_TObject #define Uses_TMouse #define Uses_TApplication #include TMouse near TEventQueue::mouse; static TScreen tsc; static TEventQueue teq; static TSystemError sysErr; void initHistory(); void doneHistory(); TApplication::TApplication() : TProgInit( TApplication::initStatusLine, TApplication::initMenuBar, TApplication::initDeskTop ) { initHistory(); } TApplication::~TApplication() { doneHistory(); } void TApplication::suspend() { #ifdef __MSDOS__ TSystemError::suspend(); TEventQueue::suspend(); TScreen::suspend(); #else TSystemInit::suspend(); #endif } void TApplication::resume() { #ifdef __MSDOS__ TScreen::resume(); TEventQueue::resume(); TSystemError::resume(); #else TSystemInit::resume(); #endif }