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

  1. /******************************************************************************
  2. * .FILE:         lstatus.hpp                                                  *
  3. *                                                                             *
  4. * .DESCRIPTION:  Lancelot Sample Program:              Class Definition       *
  5. *                                                                             *
  6. * .CLASSES:      StatusPage                                                   *
  7. *                StatusCnrObj                                                 *
  8. *                                                                             *
  9. * .COPYRIGHT:                                                                 *
  10. *    Licensed Material - Program-Property of IBM                              *
  11. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  12. *                                                                             *
  13. * .DISCLAIMER:                                                                *
  14. *   The following [enclosed] code is sample code created by IBM               *
  15. *   Corporation.  This sample code is not part of any standard IBM product    *
  16. *   and is provided to you solely for the purpose of assisting you in the     *
  17. *   development of your applications.  The code is provided 'AS IS',          *
  18. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  19. *   arising out of your use of the sample code, even if they have been        *
  20. *   advised of the possibility of such damages.                               *
  21. *                                                                             *
  22. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  23. *                                                                             *
  24. ******************************************************************************/
  25. #ifndef _LSTATUS_
  26. #define _LSTATUS_
  27.  
  28. #include <iselhdr.hpp>
  29. #include <imcelcv.hpp>
  30. #include <icmdhdr.hpp>
  31. #include <icheckbx.hpp>
  32. #include <ientryfd.hpp>
  33. #include <imsgbox.hpp>
  34. #include <inotebk.hpp>
  35. #include <iapp.hpp>
  36.  
  37. #include "ldbase.hpp"
  38. #include "lpagectl.hpp"
  39. #include "lgeneric.hpp"
  40.  
  41.  
  42. //**************************************************************************
  43. // Class StatusPage
  44. //**************************************************************************
  45. class StatusPage : public IMultiCellCanvas,
  46.                    public ICommandHandler
  47. {
  48. public: // ---------------------- PUBLIC -------------------------------------
  49.  
  50. friend class QueryStatus;
  51.  
  52. //----------------------- Contructor/Destructor ------------------------------
  53. // Class StatusPage  :: StatusPage()
  54. //----------------------------------------------------------------------------
  55.   StatusPage(IWindow* pParent,
  56.              const IString& aKey="");
  57.  
  58.   StatusPage(IWindow* pParent, LQueryData& qd);
  59.  
  60.   ~StatusPage();
  61.  
  62. //----------------------------------------------------------------------------
  63. // Class StatusPage  :: verifyAndSave()
  64. //----------------------------------------------------------------------------
  65. Boolean
  66.   verifyAndSave( IString& theString,
  67.                  IString& theEntry,
  68.                  const IString& saveName="");
  69.  
  70. INotebook::PageSettings
  71.   pageSettings();
  72.  
  73. protected: //----------------------- PROTECTED--------------------------------
  74.  
  75. Boolean
  76.   command( ICommandEvent& event );
  77.  
  78. StatusPage&
  79.   handleIt();
  80.  
  81. private: //----------------------- PRIVATE --------------------------------
  82.  
  83. StatusPage&
  84.   setCells();
  85.  
  86. StatusPage&
  87.   displayData();
  88.  
  89. PageButtons
  90.   pageButtons;
  91.  
  92. IStaticText
  93.   statusText,
  94.   activeText,
  95.   startDateText,
  96.   endDateText,
  97.   rateText;
  98.  
  99. ICheckBox
  100.  *pActiveCheckBox,
  101.  *pQueryActive,
  102.  *pQueryInactive;
  103.  
  104. IEntryField
  105.   startDate,
  106.   endDate,
  107.   hourlyRate;
  108.  
  109. IString
  110.   Key;
  111.  
  112. LStatusData
  113.   statusData;
  114.  
  115. QueryRange
  116.  *pStartRange,
  117.  *pEndRange,
  118.  *pPayRange;
  119.  
  120. ACheckBoxHandler
  121.   checkBoxHandler;
  122.  
  123. INotebook::PageSettings
  124.   thePageSettings;
  125.  
  126. #ifdef IC_MOTIF
  127. LPictureVerifyHandler
  128.   dateHandler,
  129.   rateHandler;
  130. #endif
  131.  
  132. Boolean
  133.   isAquery;
  134. };
  135.  
  136. #endif
  137.