home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / tvision / vlstde / demo.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-12  |  1.0 KB  |  41 lines

  1. // demo.hpp                DESKTOP FOR VIRTUAL LISTBOX DEMO
  2. //    written by Gregory K. Miskin
  3. //    COPYRIGHT (C) 1992.  All Rights Reserved.
  4. //    Gregory K. Miskin, Orem, Utah  USA
  5.  
  6.  
  7. #ifndef _demo_hpp_
  8. #define _demo_hpp_
  9.  
  10. extern unsigned _stklen = 10000;
  11.  
  12. class TStatusLine;
  13. class TMenuBar;
  14. class TEvent;
  15. class THeapView;
  16. class TClockView;
  17. class TBrowseNames;
  18. class TSelectIndex;
  19.  
  20. class BrowseDemo : public TApplication
  21. {
  22. public:
  23.     BrowseDemo( int argc, char **argv );
  24.     static TStatusLine *initStatusLine( TRect r );
  25.     static TMenuBar *initMenuBar( TRect r );
  26.     virtual void handleEvent(TEvent& Event);
  27.     virtual void idle();              // Updates heap and clock views
  28.  
  29. protected:
  30.     THeapView         *heap;            // Heap view
  31.     TClockView         *clock;            // Clock view
  32.     TBrowseNames    *browse_names;
  33.     TSelectIndex    *select_index;
  34.  
  35.     void About();
  36.     void Browse();
  37.     void ChangeDir();                 // Change directory
  38.     void Shell();                     // DOS Shell
  39.     void OutOfMemory();               // For validView() function
  40. };
  41. #endif