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

  1. // this might look like 'C', but it's really  -*-c++-*-
  2. /* sbrowser.h
  3.  *
  4.  * Declaration of class SingleBrowser 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: sbrowser.h,v 1.2 1992/08/09 21:55:42 gruen Exp $
  12.  * $Log: sbrowser.h,v $
  13.  * Revision 1.2  1992/08/09  21:55:42  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:10  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 SBROWSER_H_INCLUDED
  38. #define SBROWSER_H_INCLUDED
  39.  
  40. class SingleBrowser : public Dialog {
  41.   StaticText  *pComment;    // SB_TEXT
  42.   ListBox     *plb;        // SB_LB
  43.   CntrlWindow *pbtInsert;    // SB_INSERT_BUTT
  44.   CntrlWindow *pbtAppend;    // SB_APPEND_BUTT
  45.   CntrlWindow *pbtDelete;    // SB_DELETE_BUTT
  46.   CntrlWindow *pbtHelp;        // SB_HELP_BUTT
  47.   CntrlWindow *pbtCancel;    // SB_CANCEL_BUTT
  48.   CntrlWindow *pbtOK;        // SB_OK_BUTT
  49.  
  50.   StrDLList   *pList;        // Ptr to original browser list
  51.   StrDLList   strList;          // local list
  52.   CHAR        *pszTitle;    // Ptr to title of the box
  53.   CHAR        *pszComment;    // Ptr to the comment
  54.   CHAR        szBuf[256];
  55.  
  56.  
  57. public:
  58.   SingleBrowser( HWND hwndOwnerNew, USHORT  idResNew,
  59.         CHAR* pszTitleNew, CHAR *pszCommentNew,
  60.         StrDLList *pListNew);
  61.   virtual MRESULT msgInitDlg( HWND hwnd, USHORT msg, 
  62.                  MPARAM mp1, MPARAM mp2, BOOL *fDoDefault);
  63.   virtual MRESULT msgControl( HWND hwnd, USHORT msg, 
  64.                  MPARAM mp1, MPARAM mp2, BOOL *fDoDefault);
  65.   virtual MRESULT msgCommand( HWND hwnd, USHORT msg, 
  66.                  MPARAM mp1, MPARAM mp2, BOOL *fDoDefault);
  67.   // service methods
  68.   VOID    printToListBox( VOID);
  69.   String* retrieve( SHORT iItem);
  70.   Pix     retrievePix( SHORT iItem);
  71.   VOID    setState( SHORT sState);
  72.   VOID    editEntry( VOID);
  73. };
  74.  
  75. #endif /* SBROWSER_H_INCLUDED */
  76.  
  77.  
  78.