home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / listctls / spinbut / datectrl.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-29  |  1.2 KB  |  53 lines

  1. #ifndef _DATECTRL_
  2. #define _DATECTRL_
  3. /************************************************************
  4. / List Controls - Spin Button Date Control
  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 <imcelcv.hpp>
  11. #include <idate.hpp>
  12. #include <ipoint.hpp>
  13.  
  14. class ITextSpinButton;
  15. class INumericSpinButton;
  16. class DateSpinHandler;
  17.  
  18. class DateControl : public IMultiCellCanvas
  19. {
  20. public:
  21.   DateControl ( unsigned long id,
  22.                 IWindow*      parent,
  23.                 IWindow*      owner,
  24.                 const IDate&  = IDate::today(),
  25.                 const IRange& = IRange(1970,2000));
  26. DateControl
  27.  &setDate       ( const IDate& aDate),
  28.  &setYearRange  ( const IRange& aRange);
  29.  
  30. IString
  31.   dateAsString ( ) const;
  32.  
  33. ITextSpinButton
  34.  &month  (  );
  35.  
  36. INumericSpinButton
  37.  &day    (  ),
  38.  &year   (  );
  39.  
  40. private:
  41. ITextSpinButton
  42.  *_month;
  43. INumericSpinButton
  44.  *_day,
  45.  *_year;
  46. DateSpinHandler
  47.  *_spinHandler;
  48. DateControl ( const DateControl&);
  49. DateControl& operator= ( const DateControl&);
  50. };
  51.  
  52. #endif // _DATECTRL_
  53.