home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / cnr / uidate / developr.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  1.8 KB  |  74 lines

  1. #ifndef _DEVELOPR_
  2. #define _DEVELOPR_
  3. //************************************************************
  4. // Container Control - Dates and Times as IDate/ITime        
  5. //
  6. // Copyright (C) 1994, Law, Leong, Love, Olson, Tsuji.
  7. // Copyright (c) 1997 John Wiley & Sons, Inc. 
  8. // All Rights Reserved.
  9. //************************************************************
  10. #include <iframe.hpp>
  11. #include <icnrctl.hpp>
  12. #include <icnrcol.hpp>
  13. #include <icnrobj.hpp>
  14. #include <idate.hpp>
  15. #include <itime.hpp>
  16.  
  17. class Developer : public IContainerObject
  18. {
  19.   public:
  20.   Developer   ( IString       name,
  21.                 unsigned long iconId,
  22.                 IString       compuServeId = IString("?"),
  23.                 IString       age = IString("?"),
  24.                 const IDate&  birthDate =IDate(),
  25.                 const ITime&  quittingTime=ITime())
  26.      : IContainerObject(name, iconId),
  27.        fCompuServeId(compuServeId),
  28.        fAge(age),
  29.        fBirthDate(birthDate.asString()),
  30.        fQuittingTime(quittingTime.asString())
  31.  {}
  32. // Column Creation.
  33. enum Column 
  34. { kNameColumn, 
  35.   kIconColumn, 
  36.   kCompuServeIdColumn,
  37.   kAgeColumn,
  38.   kBirthDateColumn,
  39.   kQuittingTimeColumn
  40. };
  41. static IContainerColumn
  42.  *createAndOrphanColumnFor ( IContainerControl& container,
  43.                              Column             column);
  44. static void
  45.   createAllColumnsFor      ( IContainerControl&  container);
  46.  
  47. private:
  48.  
  49. IString
  50.   fCompuServeId,
  51.   fAge,
  52.   fBirthDate,
  53.   fQuittingTime;
  54.  
  55. };
  56.  
  57.  
  58. class DeveloperList : public IFrameWindow {
  59. public:
  60.  
  61.   DeveloperList ( const char* title);
  62.  
  63. IContainerControl
  64.  &container        ( );
  65.  
  66. private:
  67. IContainerControl
  68.   cnrctl;
  69. DeveloperList& operator=(const DeveloperList&);
  70. DeveloperList(const DeveloperList&);
  71. };
  72.  
  73. #endif // _DEVELOPR_
  74.