home *** CD-ROM | disk | FTP | other *** search
/ BBS 1 / BBS#1.iso / for-dos / turboc.arj / GADGETS.H < prev    next >
C/C++ Source or Header  |  1991-08-16  |  1KB  |  53 lines

  1. /*---------------------------------------------------------*/
  2. /*                                                         */
  3. /*   Turbo Vision 1.0                                      */
  4. /*   Copyright (c) 1991 by Borland International           */
  5. /*                                                         */
  6. /*   Gadgets.h : Header file for gadgets.cpp               */
  7. /*---------------------------------------------------------*/
  8.  
  9. #if !defined( __GADGETS_H )
  10. #define __GADGETS_H
  11.  
  12. #define Uses_TEvent
  13. #define Uses_TRect
  14. #define Uses_TView
  15. #include <tv.h>
  16.  
  17.  
  18. class THeapView : public TView
  19. {
  20.  
  21. public:
  22.  
  23.     THeapView( TRect& r );
  24.     virtual void update();
  25.     virtual void draw();
  26.     virtual long heapSize();
  27.  
  28. private:
  29.  
  30.     long oldMem, newMem;
  31.     char heapStr[16];
  32.  
  33. };
  34.  
  35.  
  36. class TClockView : public TView
  37. {
  38.  
  39. public:
  40.  
  41.     TClockView( TRect& r );
  42.     virtual void draw();
  43.     virtual void update();
  44.  
  45. private:
  46.  
  47.     char lastTime[9];
  48.     char curTime[9];
  49.  
  50. };
  51.  
  52. #endif      // __GADGETS_H
  53.