home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / IOC / LANCELOT / LSTATUS.HPP < prev    next >
C/C++ Source or Header  |  1995-04-01  |  4KB  |  131 lines

  1. /*******************************************************************************
  2. * FILE NAME: lstatus.hpp                                                       *
  3. *                                                                              *
  4. * DESCRIPTION:                                                                 *
  5. *                                                                              *
  6. * Classes                                                                      *
  7. *   StatusCnrObj                                                               *
  8. *   StatusPage                                                                 *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   Licensed Materials - Property of IBM                                       *
  12. *   (C) Copyright IBM Corporation 1992, 1995                                   *
  13. *   All Rights Reserved                                                        *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. * CHANGE HISTORY:                                                              *
  18. *******************************************************************************/
  19. #ifndef _LSTATUS_
  20. #define _LSTATUS_
  21.  
  22. #include <iselhdr.hpp>   
  23. #include <imcelcv.hpp>   
  24. #include <icmdhdr.hpp>   
  25. #include <icheckbx.hpp>  
  26. #include <ientryfd.hpp>  
  27. #include <imsgbox.hpp>   
  28. #include <inotebk.hpp>   
  29. #include <iapp.hpp>      
  30.  
  31. #include "ldbase.hpp"    
  32. #include "lpagectl.hpp"  
  33. #include "lgeneric.hpp"  
  34.  
  35.  
  36. //**************************************************************************
  37. // Class StatusPage
  38. //**************************************************************************
  39. class StatusPage : public IMultiCellCanvas,
  40.                    public ICommandHandler
  41. {
  42. public: // ---------------------- PUBLIC -------------------------------------
  43.  
  44. friend class QueryStatus;
  45.  
  46. //----------------------- Contructor/Destructor ------------------------------
  47. // Class StatusPage  :: StatusPage()
  48. //----------------------------------------------------------------------------
  49.   StatusPage(IWindow* pParent,
  50.              const IString& aKey="");
  51.  
  52.   StatusPage(IWindow* pParent, LQueryData& qd);
  53.  
  54.   ~StatusPage();
  55.  
  56. //----------------------------------------------------------------------------
  57. // Class StatusPage  :: verifyAndSave()
  58. //----------------------------------------------------------------------------
  59. Boolean
  60.   verifyAndSave( IString& theString,
  61.                  IString& theEntry,
  62.                  const IString& saveName="");
  63.  
  64. INotebook::PageSettings
  65.   pageSettings();
  66.  
  67. protected: //----------------------- PROTECTED--------------------------------
  68.  
  69. Boolean
  70.   command( ICommandEvent& event );
  71.  
  72. StatusPage&
  73.   handleIt();
  74.  
  75. private: //----------------------- PRIVATE --------------------------------
  76.  
  77. StatusPage&
  78.   setCells();        
  79.  
  80. StatusPage&
  81.   displayData();
  82.  
  83. PageButtons
  84.   pageButtons;
  85.  
  86. IStaticText
  87.   statusText,
  88.   activeText,
  89.   startDateText,
  90.   endDateText,
  91.   rateText;
  92.  
  93. ICheckBox
  94.  *pActiveCheckBox,
  95.  *pQueryActive,
  96.  *pQueryInactive;
  97.  
  98. IEntryField
  99.   startDate,
  100.   endDate,
  101.   hourlyRate;
  102.  
  103. IString
  104.   Key;
  105.  
  106. LStatusData
  107.   statusData;
  108.  
  109. QueryRange
  110.  *pStartRange,
  111.  *pEndRange,
  112.  *pPayRange;
  113.  
  114. ACheckBoxHandler
  115.   checkBoxHandler;
  116.  
  117. INotebook::PageSettings
  118.   thePageSettings;
  119.  
  120. #ifdef IC_MOTIF
  121. LPictureVerifyHandler
  122.   dateHandler,
  123.   rateHandler;
  124. #endif
  125.  
  126. Boolean
  127.   isAquery;
  128. };
  129.  
  130. #endif
  131.