home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / test / testapp.h < prev    next >
C/C++ Source or Header  |  1998-11-20  |  2KB  |  76 lines

  1. //=======================================================================
  2. //  protoapp.h:    Header file for minimal prototype V application
  3. //  Copyright (C) 1995,1996  Bruce E. Wampler
  4. //
  5. //  This program is part of the V C++ GUI Framework example programs.
  6. //
  7. //  This program is free software; you can redistribute it and/or modify
  8. //  it under the terms of the GNU General Public License as published by
  9. //  the Free Software Foundation; either version 2 of the License, or
  10. //  (at your option) any later version.
  11. //
  12. //  This program is distributed in the hope that it will be useful,
  13. //  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. //  GNU General Public License for more details.
  16. //
  17. //  You should have received a copy of the GNU General Public License
  18. //  (see COPYING) along with this program; if not, write to the Free
  19. //  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. //=======================================================================
  21.  
  22. //
  23. //    mymodal.cxx    Soruce for sample modal dialog
  24. //
  25. //    While these files were generated by hand, they are intended to
  26. //    serve as an example of files that could have been generated by
  27. //    the V interface generator (Vigr)
  28. //
  29.  
  30. #ifndef TESTAPP_H
  31. #define TESTAPP_H
  32.  
  33. #ifdef vDEBUG
  34. #include <v/vdebug.h>
  35. #endif
  36.  
  37. #include <v/vapp.h>
  38. #include <v/vawinfo.h>    // for app info
  39.  
  40. #include "vtcmdwin.h"    // we user our cmdwin class
  41.  
  42.     class testApp : public vApp
  43.       {
  44.     friend int AppMain(int, char**);    // allow AppMain access
  45.  
  46.       public:        //---------------------------------------- public
  47.  
  48.     testApp(char* name, int simSDI = 0);
  49.  
  50.     virtual ~testApp();
  51.  
  52.     // Routines from vApp that are normally overridden
  53.  
  54.     virtual vWindow* NewAppWin(vWindow*, VCONST char*, int, int, 
  55.         vAppWinInfo* winInfo = 0);
  56.  
  57.     virtual void Exit(void);
  58.  
  59.     virtual void CloseLastCmdWindow(vWindow* win,int exitcode);
  60.     virtual int CloseAppWin(vWindow*);
  61.  
  62.     virtual void AppCommand(vWindow* win, ItemVal id, ItemVal val, CmdType cType);
  63.  
  64.     virtual void KeyIn(vWindow*, vKey, unsigned int);
  65.  
  66.     // New routines for this particular app
  67.  
  68.       protected:    //--------------------------------------- protected
  69.  
  70.       private:        //--------------------------------------- private
  71.       vWindow* _defWin;
  72.       vAppWinInfo* _defAppWinInfo;
  73.  
  74.       };
  75. #endif
  76.