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

  1. //=======================================================================
  2. //    vgapp.h:    Header for vgApp class
  3. //=======================================================================
  4.  
  5. #ifndef VGAPP_H
  6. #define VGAPP_H
  7.  
  8. // Include standard V files as needed
  9.  
  10. #ifdef vDEBUG
  11. #include <v/vdebug.h>
  12. #endif
  13.  
  14. #include <v/vapp.h>
  15. #include <v/vawinfo.h>
  16.  
  17. #include "vgdefs.h"
  18. #include "vgcmdw.h"
  19.  
  20.     class vgApp : public vApp
  21.       {
  22.     friend int AppMain(int, char**);    // allow AppMain access
  23.  
  24.       public:        //---------------------------------------- public
  25.  
  26.     vgApp(char* name, int sdi = 0);
  27.     virtual ~vgApp();
  28.  
  29.     // Routines from vApp that are normally overridden
  30.  
  31.     virtual vWindow* NewAppWin(vWindow* win, char* name, int w, int h,
  32.         vAppWinInfo* winInfo);
  33.  
  34.     virtual void Exit(void);
  35.  
  36.     virtual int CloseAppWin(vWindow*);
  37.  
  38.     virtual void AppCommand(vWindow* win, ItemVal id, ItemVal val, CmdType cType);
  39.  
  40.     virtual void KeyIn(vWindow*, vKey, unsigned int);
  41.  
  42.     // New routines for this particular app
  43.  
  44.       protected:    //--------------------------------------- protected
  45.  
  46.       private:        //--------------------------------------- private
  47.  
  48.     vgCmdWindow* _vgCmdWin;        // Pointer to instance of first window
  49.  
  50.       };
  51. #endif
  52.