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

  1. //================================================================
  2. //  vdrwapp.h:    Header file for V draw app
  3. //  Copyright (C) 1995,1996  Bruce E. Wampler
  4. //================================================================
  5. #ifndef DRAWAPP_H
  6. #define DRAWAPP_H
  7.  
  8. #include <v/vapp.h>
  9. #include <v/vawinfo.h>    // for app info
  10.  
  11. #include "vdrwcmdw.h"    // we user our cmdwin class
  12. #include "vdrwdlg.h"    // we have a draw dialog
  13.  
  14.     class drawApp : public vApp
  15.       {
  16.     friend int AppMain(int, char**);   // allow AppMain access
  17.  
  18.       public:        //--------------------------------- public
  19.     drawApp(char* name) : vApp(name) {_drawDialog = 0;}    // just call vApp
  20.     virtual ~drawApp() { if (_drawDialog != 0) delete _drawDialog;}
  21.  
  22.     // Routines from vApp that are normally overridden
  23.     virtual vWindow* NewAppWin(vWindow* win, char* name, int w,
  24.         int h, vAppWinInfo* winInfo);
  25.     void AppCommand(vWindow* win, ItemVal id, ItemVal val, CmdType cType);
  26.     virtual void Exit(void);
  27.     virtual int CloseAppWin(vWindow*);
  28.  
  29.       protected:    //------------------------------ protected
  30.  
  31.       private:        //-------------------------------- private
  32.  
  33.      vDrawDialog* _drawDialog;
  34.     myCmdWindow* _curWindow;    // newest window created
  35.  
  36.       };
  37. #endif
  38.