home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / CFGED1B.ZIP / CFGEDSRC.ZIP / PROMPTER.H < prev    next >
C/C++ Source or Header  |  1992-08-09  |  2KB  |  69 lines

  1. // this might look like 'C', but it's really  -*-c++-*-
  2. /* prompter.h
  3.  *
  4.  * Declaration of class PrompterDlg for CFGED
  5.  *
  6.  * Language        : C++
  7.  * Operating System: OS/2 V2.0 and higher
  8.  * Compiler        : GNU GCC V2.1 and higher
  9.  *
  10.  *
  11.  * $Id: prompter.h,v 1.2 1992/08/09 21:55:38 gruen Exp $
  12.  * $Log: prompter.h,v $
  13.  * Revision 1.2  1992/08/09  21:55:38  gruen
  14.  * beta release 1.0 of cfged. Changed the architecture: now using a dialog
  15.  * box as main window. As an result the accelerators now work. As goodie
  16.  * there is a new special-browser for HELP and last but not least the
  17.  * warning at the end of the program occures only if there not saved
  18.  * changes to the configuration.
  19.  *
  20.  * Revision 1.1  1992/07/17  00:47:08  gruen
  21.  * Initial revision
  22.  *
  23.  *
  24.  * Copyright (c) 1992 Lutz Grueneberg
  25.  *
  26.  * This library is free software; you can redistribute it and/or modify
  27.  * it under the terms of the GNU Library General Public License as
  28.  * published by the Free Software Foundation; either version 2 of the
  29.  * License, or (at your option) any later version.  This library is
  30.  * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  31.  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  32.  * A PARTICULAR PURPOSE.  See the GNU Library General Public License for
  33.  * more details. You should have received a copy of the GNU Library
  34.  * General Public License along with this library; if not, write to the
  35.  * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  36.  */
  37. #ifndef PROMPTER_H_INCLUDED
  38. #define PROMPTER_H_INCLUDED
  39.  
  40. class PrompterDlg : public Dialog {
  41.   StaticText  *pComment;
  42.   EntryField  *pef;
  43.   CntrlWindow *pbtOK;
  44.   CntrlWindow *pbtCancel;
  45.   CntrlWindow *pbtHelp;
  46.   String      *pStrg;
  47.   CHAR        *pszComment;
  48.   CHAR        szBuf[256];
  49.  
  50. public:
  51.   BOOL        fChanged;        // change flag, TRUE signals a change
  52.  
  53.   PrompterDlg( HWND hwndOwnerNew, USHORT  idResNew);
  54.   VOID setString( String* pStrgNew){
  55.     pStrg = pStrgNew;
  56.   }
  57.   VOID setComment( CHAR *szText) {
  58.     pszComment=szText;
  59.   }
  60.   virtual MRESULT msgInitDlg( HWND hwnd, USHORT msg, 
  61.                  MPARAM mp1, MPARAM mp2, BOOL *fDoDefault);
  62.   virtual MRESULT msgCommand( HWND hwnd, USHORT msg, 
  63.                  MPARAM mp1, MPARAM mp2, BOOL *fDoDefault);
  64. };
  65.  
  66. #endif /* PROMPTER_H_INCLUDED */
  67.  
  68.  
  69.