home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / CFGED1B.ZIP / CFGEDSRC.ZIP / LOADCFG.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. /* loadcfg.h
  3.  *
  4.  * Declaration of class LoadConfigDlg 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: loadcfg.h,v 1.2 1992/08/09 21:55:31 gruen Exp $
  12.  * $Log: loadcfg.h,v $
  13.  * Revision 1.2  1992/08/09  21:55:31  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:02  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 LOADCFG_H_INCLUDED
  38. #define LOADCFG_H_INCLUDED
  39.  
  40. #include "StrDLL.h"
  41.  
  42. class LoadConfigDlg : public Dialog {
  43. public:
  44.   StrDLList   strList;
  45.   String*     pSelected;
  46.  
  47.   ListBox     *plb;
  48.   CntrlWindow *pbtOK;
  49.  
  50.   LoadConfigDlg( HWND hwndOwnerNew, USHORT  idResNew,
  51.         HWND hwndParentNew=HWND_DESKTOP);
  52.   VOID    setState( int stateNew);
  53.   VOID    printToListBox( VOID);
  54.   String* retrieve( SHORT iItem);
  55.   Pix     retrievePix( SHORT iItem);
  56.  
  57.   virtual MRESULT msgInitDlg( HWND hwnd, USHORT msg, 
  58.                  MPARAM mp1, MPARAM mp2, BOOL *fDoDefault);
  59.   virtual MRESULT msgControl( HWND hwnd, USHORT msg, 
  60.                  MPARAM mp1, MPARAM mp2, BOOL *fDoDefault);
  61.   virtual MRESULT msgCommand( HWND hwnd, USHORT msg, 
  62.                  MPARAM mp1, MPARAM mp2, BOOL *fDoDefault);
  63. private:
  64.   VOID findConfigFiles( VOID);
  65. };
  66.  
  67. #endif /* LOADCFG_H_INCLUDED */
  68.  
  69.