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

  1. //===============================================================
  2. // vrundlg.h - run modal dialog
  3. //
  4. // Copyright (C) 1995,1996  Bruce E. Wampler
  5. //
  6. // This file is part of the V C++ GUI Framework, and is covered
  7. // under the terms of the GNU Library General Public License,
  8. // Version 2. This library has NO WARRANTY. See the source file
  9. // vapp.cxx for more complete information about license terms.
  10. //===============================================================
  11.  
  12. #ifndef VRUNDLG_H
  13. #define VRUNDLG_H
  14. #include <v/vmodald.h>
  15.  
  16.     class vApp;
  17.     class vRunDialog : protected vModalDialog
  18.       {
  19.       public:        //---------------------------------------- public
  20.     vRunDialog(vBaseWindow* bw, char* title = "Run Program") : vModalDialog(bw, title)
  21.       {added = 0;}
  22.     vRunDialog(vApp *aw, char* title = "Run Program") : vModalDialog(aw, title)
  23.       {added = 0;}
  24.     ~vRunDialog() { }
  25.  
  26.     int Run(char *initialName = "");
  27.  
  28.       protected:    //--------------------------------------- protected
  29.  
  30.       private:        //--------------------------------------- private
  31.  
  32.     virtual void DialogDisplayed();
  33.     virtual void DialogCommand(ItemVal id, ItemVal val, CmdType ctype);
  34.     int added;
  35.       };
  36. #endif
  37.