home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / tutor / tcmdwin.h < prev    next >
C/C++ Source or Header  |  1998-07-03  |  2KB  |  55 lines

  1. //========================================================================
  2. //      tcmdwin.h:  Header file for tutorial V command window
  3. //
  4. //      Copyright 1995,1996  Bruce E. Wampler. All rights reserved.
  5. //========================================================================
  6. //
  7. // Derive a window from the vCmdWindow class
  8.  
  9. #ifndef TCMDWIN_H
  10. #define TCMDWIN_H
  11.  
  12. #include <v/vcmdwin.h>  // So we can use vCmdWindow
  13. #include <v/vmenu.h>    // For the menu pane
  14. #include <v/vstatusp.h> // For the status pane
  15. #include <v/vcmdpane.h> // command pane
  16.  
  17. #ifdef vDEBUG
  18. #include <v/vdebug.h>
  19. #endif
  20.  
  21. #include "tdialog.h"    // user defined: tDialog
  22. #include "tmodal.h"     // user defined: tModalDialog
  23. #include "tcanvas.h"    // user defined: tCanvasPane
  24.  
  25.     class tCmdWindow : public vCmdWindow
  26.       {
  27.         friend int AppMain(int, char**);        // allow AppMain access
  28.  
  29.       public:           //---------------------------------------- public
  30.         tCmdWindow(char*, int, int);    // Constructor with size
  31.         virtual ~tCmdWindow();          // Destructor
  32.         virtual void WindowCommand(ItemVal id,ItemVal val,CmdType cType);
  33.         virtual void KeyIn(vKey keysym, unsigned int shift);
  34.  
  35.       protected:        //------------------------------------- protected
  36.  
  37.       private:          //--------------------------------------- private
  38.  
  39.         // Each user CmdWindow should conform to a "Standard" window,
  40.         // which includes a menu bar, a canvas, an optional command bar,
  41.         // and an optional status bar.
  42.  
  43.         vMenuPane* myMenu;              // For the menu bar
  44.         tCanvasPane* myCanvas;          // For the canvas
  45.         vStatusPane* myStatus;          // For the status bar
  46.         vCommandPane* myCmdPane;        // for the command pane
  47.  
  48.         // Each user CmdWindow will probably have some dialogs and
  49.         // subwindows. Declare pointers to each instance here.
  50.  
  51.         tDialog* sampleDialog;
  52.         tModalDialog* sampleModalDialog;
  53.       };
  54. #endif
  55.