home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / SourceCode / MiscKit1.2.6 / Palettes / MiscCalendarPalette / MiscCalendarView.subproj / MiscCalendarView.h < prev    next >
Encoding:
Text File  |  1994-05-11  |  2.0 KB  |  90 lines

  1. #import <appkit/View.h>
  2.  
  3. #import "misckit/DateDelegateProtocol.h"
  4. #import "misckit/MiscCalendarViewConstants.h"
  5.  
  6. @class MiscCalendarMatrix;
  7. @class DateSelectionCell;
  8. @class TextField;
  9. @class List;
  10. @class Matrix;
  11. @class Box;
  12.  
  13. @interface MiscCalendarView : View
  14. {
  15.     id            monthField;
  16.     id            yearField;
  17.     id            dateField;
  18.     id            dateDelegate;
  19.     id            textDelegate;
  20.  
  21.     NXRect        defaultFrame;
  22.     MiscCalendarMatrix    *calendarMatrix;
  23.     DateSelectionCell    *previousDayCell;
  24.     TextField        *monthSubview,
  25.             *yearSubview,
  26.                 *inlineMonthSubview,
  27.             *inlineYearSubview;
  28.     List        *dowSubviewList;
  29.     int            titleDisplayMode;
  30.     BOOL        displayDOWHeader,
  31.             displayMonthAndYearHeader,
  32.             displayMonthHeader,
  33.             displayYearHeader,
  34.             colorDragAndDrop;
  35. }
  36.  
  37. - finishUnarchiving;
  38. - awakeFromNib;
  39.  
  40. - initFrame:(const NXRect *)frameRect;
  41.  
  42. - getMinSize:(NXSize *)minSize maxSize:(NXSize *)maxSize from:(int)where;
  43.  
  44. - calendarMatrix;
  45.  
  46. - preserveCellColors:(BOOL)yn;
  47. - (BOOL)cellColorsPreserved;
  48.  
  49. - setColorOf:(int)element to:(NXColor)aColor forCellAt:(int)xPos :(int)yPos;
  50. - (NXColor)colorOf:(int)element forCellAt:(int)xPos :(int)yPos;
  51.  
  52. - setColorOf:(int)element to:(NXColor)aColor;
  53. - (NXColor)colorOf:(int)element;
  54.  
  55. - cellAt:(int)xPos :(int)yPos lock:(BOOL)yn;
  56. - forRow:(int)row lock:(BOOL)yn;
  57. - forColumn:(int)col lock:(BOOL)yn;
  58.  
  59. - setHighlightMode:(int)mode;
  60. - (int)highlightMode;
  61.  
  62. - allowColorDragAndDrop:(BOOL)yn;
  63. - (BOOL)canDragAndDropColor;
  64.  
  65. - forHeader:(int)aHeader display:(BOOL)doDisplay;
  66. - (BOOL)isHeaderDisplayed:(int)aHeader;
  67.  
  68. - setColorTo:(NXColor)aColor forDay:(MiscCVDays)aDay;
  69. - (NXColor)colorForDay:(MiscCVDays)aDay;
  70.  
  71. - incrementMonth:sender;
  72. - decrementMonth:sender;
  73.  
  74. - incrementYear:sender;
  75. - decrementYear:sender;
  76.  
  77. - updateDate:sender;
  78. - displayDate:sender;
  79.  
  80. - setDateDelegate:(id <DateDelegate>)anObject;
  81. - (id <DateDelegate>)dateDelegate;
  82.  
  83. - (const char *)getInspectorClassName;
  84. - (const char *)getEditorClassName;
  85.  
  86. - read:(NXTypedStream *)aStream;
  87. - write:(NXTypedStream *)aStream;
  88.  
  89. @end
  90.