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

  1. //================================================================
  2. //  viedapp.h:  Header file for V Icon Editor application
  3. //
  4. // Copyright (C) 1996 Philip Eckenroth, Mike Tipping, Marilee Padilla,
  5. //                    John Fredric Jr. Masciantoni, and Bruce E. Wampler.
  6. //
  7. // This file is part of the V Icon Editor, and is covered
  8. // under the terms of the GNU General Public License,
  9. // Version 2. This program has NO WARRANTY. See the source file
  10. // viedapp.cpp for more complete information about license terms.
  11. //================================================================
  12. #ifndef VIEDAPP_H
  13. #define VIEDAPP_H
  14.  
  15. #include <v/vapp.h>
  16. #include <v/vawinfo.h>  // for app info
  17.  
  18. #define viedVers "1.01"
  19.    
  20. #include "viedcmdw.h"   // we user our cmdwin class
  21. #include "coldlg.h"     // we have a color dialog
  22. #include "brshdlg.h"    // we have a brushbox dialog
  23.  
  24.     class drawApp : public vApp
  25.       {
  26.         friend int AppMain(int, char**);   // allow AppMain access
  27.  
  28.       public:           //--------------------------------- public
  29.         drawApp(char* name) : vApp(name) {
  30.                                           _colorDialog = 0;
  31.                                           _brshDialog = 0;}
  32.                                         // just call vApp
  33.         virtual ~drawApp() { 
  34.                              if (_colorDialog != 0) delete _colorDialog;
  35.                              if (_brshDialog != 0) delete _brshDialog;}
  36.  
  37.         // Routines from vApp that are normally overridden
  38.         virtual vWindow* NewAppWin(vWindow* win, char* name, int w = 420,
  39.                 int h = 270 , vAppWinInfo* winInfo = 0);
  40.         void AppCommand(vWindow* win, ItemVal id, ItemVal val, CmdType cType);
  41.         virtual void Exit(void);
  42.         virtual int CloseAppWin(vWindow*);
  43.  
  44.       protected:        //------------------------------ protected
  45.  
  46.       private:          //-------------------------------- private
  47.  
  48.         vColorDialog* _colorDialog;
  49.         vBrshDialog* _brshDialog;
  50.         myCmdWindow* _curWindow;        // newest window created
  51.       };
  52. #endif
  53.