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

  1. /*******************************************************************************
  2. * FILE NAME: lbadge.hpp                                                        *
  3. *                                                                              *
  4. * DESCRIPTION:                                                                 *
  5. *                                                                              *
  6. * Classes                                                                      *
  7. *   BadgeCnrObj                                                                *
  8. *   BadgePage                                                                  *
  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 _LBADGE_
  20. #define _LBADGE_
  21.  
  22. #include <imcelcv.hpp>    
  23. #include <ientryfd.hpp>   
  24. #include <icmdhdr.hpp>    
  25. #include <imsgbox.hpp>    
  26. #include <istring.hpp>    
  27. #include <inotebk.hpp>    
  28. #include <iapp.hpp>       
  29.  
  30. #include "ldbase.hpp"     
  31. #include "lgeneric.hpp"   
  32. #include "lpagectl.hpp"   
  33.  
  34.  
  35. //----------------------------------------------------------------------------
  36. // class BadgePage
  37. //----------------------------------------------------------------------------
  38. class BadgePage : public IMultiCellCanvas,
  39.                   public ICommandHandler
  40. {
  41.  
  42. public: // ---------------------- PUBLIC -------------------------------------
  43.  
  44. friend class QueryBadge;
  45.  
  46. //----------------------- Contructor/Destructor ------------------------------
  47. // Class BadgePage :: BadgePage()
  48. //----------------------------------------------------------------------------
  49.   BadgePage(IWindow* pParent,
  50.             const IString& aKey= "") ;
  51.  
  52.   BadgePage(IWindow* pParent, LQueryData& qd);
  53.  
  54.   ~BadgePage();
  55.  
  56. //----------------------------------------------------------------------------
  57. // Class BadgePage :: verifyAndSave()
  58. //----------------------------------------------------------------------------
  59. Boolean
  60.   verifyAndSave( IString& theString,
  61.                  IString& theEntry ,
  62.                  const IString& saveName="");
  63.  
  64. //----------------------------------------------------------------------------
  65. // Class BadgePage :: badgeNumber() - return the badge number
  66. //----------------------------------------------------------------------------
  67. inline IString
  68.   badgeNumber() const { return BadgeNumber.text(); };
  69.  
  70. //----------------------------------------------------------------------------
  71. // Class BadgePage :: badgeNumber() - return the badge number
  72. //----------------------------------------------------------------------------
  73. inline IString
  74.   issueDate()   const { return IssueDate.text(); };
  75.  
  76. //----------------------------------------------------------------------------
  77. // Class BadgePage :: expDate() - return the expiration date
  78. //----------------------------------------------------------------------------
  79. inline IString
  80.   expDate()     const { return ExpDate.text(); };
  81.  
  82. //----------------------------------------------------------------------------
  83. // Class BadgePage :: expDate() - return the expiration date
  84. //----------------------------------------------------------------------------
  85. INotebook::PageSettings
  86.     pageSettings();
  87.  
  88. protected: //----------------------- PROTECTED --------------------------------
  89.  
  90. //----------------------------------------------------------------------------
  91. // Class BadgePage :: command()
  92. //----------------------------------------------------------------------------
  93. Boolean
  94.   command( ICommandEvent& event );
  95.  
  96. BadgePage&
  97.   handleIt();
  98.  
  99. private: //------------- PRIVATE ------------------------------------------
  100.  
  101. //----------------------------------------------------------------------------
  102. // Class BadgePage :: setCells()
  103. //----------------------------------------------------------------------------
  104. BadgePage&
  105.     setCells();       // build multi-cell canvas
  106.  
  107.  
  108. //----------------------------------------------------------------------------
  109. // Class BadgePage :: displayData()
  110. //----------------------------------------------------------------------------
  111. BadgePage&
  112.   displayData();
  113.  
  114. LBadgeData
  115.   badgeData;
  116.  
  117. PageButtons
  118.   pageButtons;
  119.  
  120. QueryRange
  121.  *pIssueRange;
  122.  
  123. QueryRange
  124.  *pExpRange;
  125.  
  126. IStaticText
  127.   badgeNumberText,
  128.   issueDateText,
  129.   expDateText;
  130.  
  131. IEntryField
  132.   BadgeNumber,
  133.   IssueDate,
  134.   ExpDate;
  135.  
  136. IString
  137.   Key;
  138.  
  139. INotebook::PageSettings
  140.   thePageSettings;
  141.  
  142. #ifdef IC_MOTIF
  143. LPictureVerifyHandler
  144.   dateHandler;
  145. #endif
  146.  
  147. Boolean
  148.   isAquery;
  149.  
  150. };
  151.  
  152. #endif
  153.