home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / Includes_and_Autodocs_3.5 / include / gadgets / datebrowser.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-19  |  3.4 KB  |  107 lines

  1. #ifndef GADGETS_DATEBROWSER_H
  2. #define GADGETS_DATEBROWSER_H
  3. /*
  4. **    $VER: datebrowser.h 44.1 (19.10.1999)
  5. **    Includes Release 44.1
  6. **
  7. **  Definitions for the datebrowser.gadget BOOPSI class
  8. **
  9. **    (C) Copyright 1987-1999 Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. /*****************************************************************************/
  14.  
  15. #ifndef REACTION_REACTION_H
  16. #include <reaction/reaction.h>
  17. #endif
  18.  
  19. #ifndef INTUITION_GADGETCLASS_H
  20. #include <intuition/gadgetclass.h>
  21. #endif
  22.  
  23. /*****************************************************************************/
  24.  
  25. /* Object creation macro to ease readability of layout groups, etc.
  26.  */
  27. #ifndef DateBrowserObject
  28. #define DateBrowserObject NewObject( DATEBROWSER_GetClass(), NULL
  29. #endif
  30. #ifndef EndDateBrowser
  31. #define EndDateBrowser    TAG_DONE)
  32. #endif
  33.  
  34. /* Additional attributes defined by the datebrowser.gadget class
  35.  */
  36. #define DATEBROWSER_Dummy            (REACTION_Dummy+0x61000)
  37.  
  38. #define DATEBROWSER_Day                (DATEBROWSER_Dummy)
  39.     /* (UWORD) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  40.      * Selected/Current day of the month. Defaults to 1, which
  41.      * is the first of the current month.
  42.      */
  43.  
  44. #define DATEBROWSER_Month            (DATEBROWSER_Dummy + 1)
  45.     /* (UWORD) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  46.      * Calendar month to display. Defaults to 1, which is January.
  47.      */
  48.  
  49. #define DATEBROWSER_Year            (DATEBROWSER_Dummy + 2)
  50.     /* (LONG) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  51.      * Calendar year to display. Defaults to 1978, which is
  52.      * a long time ago now, back when dinosaurs walked the earth.
  53.      */
  54.  
  55. #define DATEBROWSER_SelectedDays    (DATEBROWSER_Dummy + 3)
  56.     /* (ULONG) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  57.      * A 32 bit value, each bit represents a day of the month,
  58.      * if set, the corrisponding calendar day is selected.
  59.      * This is useful for multi-select mode to find out what
  60.      * days are selected via one packed return value.
  61.      */
  62.  
  63. #define DATEBROWSER_WeekDay            (DATEBROWSER_Dummy + 4)
  64.     /* (UWORD) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  65.      * Returns the day of the week for the currently
  66.      * selected 'DATEBROWSER_Day'. A better solution may be
  67.      * using datebrowser's public julian date functions.
  68.      */
  69.  
  70. #define DATEBROWSER_FirstWDay        (DATEBROWSER_Dummy + 5)
  71.     /* (UWORD) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  72.      * Returns the day of the week the first of the month
  73.      * will fall on with the julian calendar.
  74.      * Starting with 0 for Sunday, and 6 for Saterday.
  75.      */
  76.  
  77. #define DATEBROWSER_NumDays            (DATEBROWSER_Dummy + 6)
  78.     /* (UWORD) OM_GET
  79.      * Returns the number of days in the currently set month.
  80.      * A better solution may be using datebrowser's public
  81.      * julian date functions.
  82.      */
  83.  
  84. #define DATEBROWSER_ShowTitle        (DATEBROWSER_Dummy + 7)
  85.     /* (BOOL) OM_NEW,OM_SET,OM_GET
  86.      * Enables display of the week-day title bar.
  87.      * NOTE: If turned ON after layout group creation, you must be sure
  88.      * to FlushLayoutDomainCache() and RethinkLayout(), and potentially
  89.      * increase the window size to accomodate the possibly larger layout.
  90.      * Simply toggling iconify on/off, or close & open of the window
  91.      * class will achieve simular results.
  92.      * NOTE: If using a recent window.class you should use WM_RETHINK!!
  93.      */
  94.  
  95. #define DATEBROWSER_MultiSelect        (DATEBROWSER_Dummy + 8)
  96.     /* (BOOL) OM_NEW,OM_SET,OM_UPDATE,OM_GET
  97.      * Enables multi-selection of calendar days.
  98.      */
  99.  
  100. #define DATEBROWSER_DayTitles        (DATEBROWSER_Dummy + 9)
  101.     /* (STRPTR *) OM_NEW,OM_SET,OM_UPDATE
  102.      * Pointer to an array of STRPTR containing day titles.
  103.      * Defaults to non-localized internal "Mon", "Tue", etc.
  104.      */
  105.  
  106. #endif /* GADGETS_DATEBROWSER_H */
  107.