home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 9.ddi / TVSRC.ZIP / TAPPLICA.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.9 KB  |  61 lines

  1. /*-------------------------------------------------------------------*/
  2. /* filename -       tapplica.cpp                                     */
  3. /*                                                                   */
  4. /* function(s)                                                       */
  5. /*          TApplication member functions (constructor & destructor) */
  6. /*-------------------------------------------------------------------*/
  7.  
  8. /*-------------------------------------------------------------------*/
  9. /*                                                                   */
  10. /*    Turbo Vision -  Version 1.0                                    */
  11. /*                                                                   */
  12. /*                                                                   */
  13. /*    Copyright (c) 1987,1988,1990 by Borland International          */
  14. /*    All Rights Reserved.                                           */
  15. /*                                                                   */
  16. /*-------------------------------------------------------------------*/
  17.  
  18. #define Uses_TSystemError
  19. #define Uses_TEventQueue
  20. #define Uses_TScreen
  21. #define Uses_TObject
  22. #define Uses_TMouse
  23. #define Uses_TApplication
  24. #include <tv.h>
  25.  
  26. TMouse near TEventQueue::mouse;
  27. static TScreen tsc;
  28. static TEventQueue teq;
  29. static TSystemError sysErr;
  30.  
  31. void initHistory();
  32. void doneHistory();
  33.  
  34. TApplication::TApplication() :
  35.     TProgInit( &TApplication::initStatusLine,
  36.                   &TApplication::initMenuBar,
  37.                   &TApplication::initDeskTop
  38.                 )
  39. {
  40.     initHistory();
  41. }
  42.  
  43. TApplication::~TApplication()
  44. {
  45.     doneHistory();
  46. }
  47.  
  48. void TApplication::suspend()
  49. {
  50.     TSystemError::suspend();
  51.     TEventQueue::suspend();
  52.     TScreen::suspend();
  53. }
  54.  
  55. void TApplication::resume()
  56. {
  57.     TScreen::resume();
  58.     TEventQueue::resume();
  59.     TSystemError::resume();
  60. }
  61.