home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tv20cpp.zip / src / TApplication.cpp < prev    next >
C/C++ Source or Header  |  1998-03-29  |  1KB  |  62 lines

  1. /*
  2.  * TApplication.cc
  3.  *
  4.  * Turbo Vision - Version 2.0
  5.  *
  6.  * Copyright (c) 1994 by Borland International
  7.  * All Rights Reserved.
  8.  *
  9.  * Modified by Sergio Sigala <ssigala@globalnet.it>
  10.  */
  11.  
  12. #define Uses_TEventQueue
  13. #define Uses_TScreen
  14. #define Uses_TObject
  15. #define Uses_TMouse
  16. #define Uses_TApplication
  17. #ifndef __UNPATCHED
  18. #define Uses_TVMemMgr
  19. #endif
  20. #include <tvision/tv.h>
  21.  
  22. //static TScreen tsc;
  23. //static TEventQueue teq;
  24.  
  25. void initHistory();
  26. void doneHistory();
  27.  
  28. TApplication::TApplication() :
  29.     TProgInit( &TApplication::initStatusLine,
  30.                   &TApplication::initMenuBar,
  31.                   &TApplication::initDeskTop
  32.                 )
  33. {
  34.     initHistory();
  35. }
  36.  
  37. TApplication::~TApplication()
  38. {
  39.     doneHistory();
  40. }
  41.  
  42. void TApplication::suspend()
  43. {
  44.     /* SS: changed */
  45.  
  46. //    TSystemError::suspend();
  47. //    TEventQueue::suspend();
  48.     TScreen::suspend();
  49. #ifndef __UNPATCHED
  50.     TVMemMgr::suspend();       // Release discardable memory.
  51. #endif
  52. }
  53.  
  54. void TApplication::resume()
  55. {
  56.     /* SS: changed */
  57.  
  58.     TScreen::resume();
  59. //    TEventQueue::resume();
  60. //    TSystemError::resume();
  61. }
  62.