home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tv20cpp.zip / demos / tvdemo.h < prev    next >
C/C++ Source or Header  |  1999-06-01  |  2KB  |  59 lines

  1. /*---------------------------------------------------------*/
  2. /*                                                         */
  3. /*   TVDemo.h : Header file for TVDemo.cpp                 */
  4. /*                                                         */
  5. /*---------------------------------------------------------*/
  6. /*
  7.  *      Turbo Vision - Version 2.0
  8.  *
  9.  *      Copyright (c) 1994 by Borland International
  10.  *      All Rights Reserved.
  11.  *
  12.  */
  13.  
  14. class TStatusLine;
  15. class TMenuBar;
  16. class TEvent;
  17. class TPalette;
  18. class THeapView;
  19. class TClockView;
  20. class fpstream;
  21.  
  22. class TVDemo : public TApplication 
  23. {
  24.  
  25. public:
  26.  
  27.     TVDemo( int argc, char **argv );
  28.     static TStatusLine *initStatusLine( TRect r );
  29.     static TMenuBar *initMenuBar( TRect r );
  30.     virtual void handleEvent(TEvent& Event);
  31.     virtual void getEvent(TEvent& event);
  32. //    virtual TPalette& getPalette() const;
  33.     virtual void idle();              // Updates heap and clock views
  34.     void aboutDlgBox();               // "About" box
  35.  
  36. private:
  37.  
  38.     THeapView *heap;                  // Heap view
  39.     TClockView *clock;                // Clock view
  40.  
  41.     void puzzle();                    // Puzzle
  42.     void calendar();                  // Calendar
  43.     void asciiTable();                // Ascii table
  44.     void calculator();                // Calculator
  45.     void openFile( char *fileSpec );  // File Viewer
  46.     void changeDir();                 // Change directory
  47.     void shell();                     // DOS shell
  48.     void tile();                      // Tile windows
  49.     void cascade();                   // Cascade windows
  50.     void mouse();                     // Mouse control dialog box
  51.     void colors();                    // Color control dialog box
  52.     void outOfMemory();               // For validView() function
  53.     void loadDesktop(fpstream& s);    // Load and restore the
  54.     void retrieveDesktop();           //  previously saved desktop
  55.     void storeDesktop(fpstream& s);   // Store the current desktop
  56.     void saveDesktop();               //  in a resource file
  57.  
  58. };
  59.