home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / os2 / cfgedit / source / lbmain.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-29  |  2.9 KB  |  79 lines

  1. // this might look like 'C', but it's really  -*-c++-*-
  2. /* lbmain.h
  3.  *
  4.  * Declaration of class MainBrowserDlg 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: lbmain.h,v 1.3 1992/08/29 16:12:05 gruen Exp $
  12.  * $Log: lbmain.h,v $
  13.  * Revision 1.3  1992/08/29  16:12:05  gruen
  14.  * Fixed several bugs. This will become the official beta-release.
  15.  *
  16.  * Revision 1.2  1992/08/09  21:55:27  gruen
  17.  * beta release 1.0 of cfged. Changed the architecture: now using a dialog
  18.  * box as main window. As an result the accelerators now work. As goodie
  19.  * there is a new special-browser for HELP and last but not least the
  20.  * warning at the end of the program occures only if there not saved
  21.  * changes to the configuration.
  22.  *
  23.  * Revision 1.1  1992/07/17  00:46:59  gruen
  24.  * Initial revision
  25.  *
  26.  *
  27.  * Copyright (c) 1992 Lutz Grueneberg
  28.  *
  29.  * This library is free software; you can redistribute it and/or modify
  30.  * it under the terms of the GNU Library General Public License as
  31.  * published by the Free Software Foundation; either version 2 of the
  32.  * License, or (at your option) any later version.  This library is
  33.  * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  34.  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  35.  * A PARTICULAR PURPOSE.  See the GNU Library General Public License for
  36.  * more details. You should have received a copy of the GNU Library
  37.  * General Public License along with this library; if not, write to the
  38.  * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  39.  */
  40. #ifndef LBMAIN_H_INCLUDED
  41. #define LBMAIN_H_INCLUDED
  42.  
  43. #include "loadcfg.h"
  44.  
  45. class MainBrowserDlg : public Dialog {
  46. public:
  47.   LoadConfigDlg* pLdCfgDlg;
  48.   CfgFile        cfile;
  49.   ListBox        *plbMain;
  50.   CntrlWindow    *pbtEdit;
  51.   CntrlWindow    *pbtBrowse;
  52.   CntrlWindow    *pbtInsert;
  53.   CntrlWindow    *pbtAppend;
  54.   CntrlWindow    *pbtDelete;
  55.   static BOOL    fChanged;    // signals a change of the contents
  56.  
  57.   MainBrowserDlg( HWND hwndOwnerNew, USHORT  idResNew,
  58.                   HWND hwndParentNew=HWND_DESKTOP);
  59.   VOID setState( int stateNew);
  60.   VOID loadCfgList( VOID);
  61.   VOID saveCfgList( VOID);
  62.   VOID editEntry( VOID);
  63.   VOID browseEntry( SHORT iItem);
  64.   virtual MRESULT msgInitDlg( HWND hwnd, USHORT msg, 
  65.                  MPARAM mp1, MPARAM mp2, BOOL *fDoDefault);
  66.   virtual MRESULT msgControl( HWND hwnd, USHORT msg, 
  67.                  MPARAM mp1, MPARAM mp2, BOOL *fDoDefault);
  68.   virtual MRESULT msgCommand( HWND hwnd, USHORT msg, 
  69.                  MPARAM mp1, MPARAM mp2, BOOL *fDoDefault);
  70.   virtual MRESULT msgActivate(HWND hwnd, USHORT msg,
  71.                   MPARAM  mp1, MPARAM  mp2, BOOL *fDoDefault);
  72.   virtual MRESULT msgClose( HWND hwnd, USHORT msg, 
  73.                MPARAM mp1, MPARAM mp2, BOOL *fDoDefault);
  74.   VOID browseVariable( Regex *pr);
  75. };
  76. #endif /* LBMAIN_H_INCLUDED */
  77.  
  78.  
  79.