home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 2.ddi / TVDEMOS.ZIP / TVDEMO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  2.0 KB  |  54 lines

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