home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / lancelot / linfowin.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  4.0 KB  |  94 lines

  1. /******************************************************************************
  2. * .FILE:         linfowin.hpp                                                 *
  3. *                                                                             *
  4. * .DESCRIPTION:  Lancelot Sample Program:              Class Definition       *
  5. *                                                                             *
  6. * .CLASSES:      LInfoWindow                                                  *
  7. *                                                                             *
  8. * .COPYRIGHT:                                                                 *
  9. *    Licensed Material - Program-Property of IBM                              *
  10. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  11. *                                                                             *
  12. * .DISCLAIMER:                                                                *
  13. *   The following [enclosed] code is sample code created by IBM               *
  14. *   Corporation.  This sample code is not part of any standard IBM product    *
  15. *   and is provided to you solely for the purpose of assisting you in the     *
  16. *   development of your applications.  The code is provided 'AS IS',          *
  17. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  18. *   arising out of your use of the sample code, even if they have been        *
  19. *   advised of the possibility of such damages.                               *
  20. *                                                                             *
  21. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  22. *                                                                             *
  23. ******************************************************************************/
  24. #ifndef _LINFOWIN_
  25.   #define _LINFOWIN_
  26.  
  27. #include <iframe.hpp>
  28. #include <ititle.hpp>
  29. #include <ipoint.hpp>
  30. #include <icmdhdr.hpp>
  31. #include <ihelp.hpp>
  32. #include <ihelphdr.hpp>
  33. #include "linfowin.hpp"
  34. #include "linfonb.hpp"
  35. #include "lcnrobj.hpp"
  36.  
  37. class LMainCnr;
  38.  
  39. /******************************************************************************
  40. * Class LInfoWindow - LInfoWindow frame window                                *
  41. ******************************************************************************/
  42. class LInfoWindow : public IFrameWindow,
  43.                     protected ICommandHandler
  44. {
  45.    public:
  46. /*------------------------ Constructors/Destructor ----------------------------
  47. | Construct the object in one of two ways:                                    |
  48. | 1) ResourceId, parent, owner, location, cnr object, employee, isQuery flag. |
  49. | 2) ResourceId, parent, owner, location, cnr, cnr object, isQuery flag.      |
  50. -----------------------------------------------------------------------------*/
  51.       LInfoWindow( unsigned long id,
  52.                    IWindow* parent,
  53.                    IWindow* owner,
  54.                    IPoint bottomLeft,
  55.                    LCnrObject* object,
  56.                    LEmployeeData& employee,
  57.                    Boolean isQuery = true );
  58.  
  59.       LInfoWindow( unsigned long id,
  60.                    IWindow* parent,
  61.                    IWindow* owner,
  62.                    IPoint bottomLeft,
  63.                    LMainCnr* cnr,
  64.                    LCnrObject* object,
  65.                    IString queryName = NULL );
  66.       virtual
  67.         ~LInfoWindow();
  68.  
  69.     protected:
  70. /*----------------------------- Event Processing ------------------------------
  71. | Handle and process events:                                                  |
  72. |   systemCommand       - Handle system command events like 'close'.          |
  73. -----------------------------------------------------------------------------*/
  74.       Boolean
  75.          systemCommand( ICommandEvent& event );
  76.  
  77.    private:
  78.       ITitle
  79.          title;
  80.  
  81.       LInfoNotebook
  82.          notebook;
  83.  
  84.       IHelpWindow
  85.          help;
  86.  
  87.       LCnrObject
  88.         *pObject;
  89.  
  90.       Boolean
  91.          isAQuery;
  92. };
  93. #endif
  94.