File: CalendarView.h

package info (click to toggle)
agenda.app 0.47-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,008 kB
  • sloc: objc: 8,103; makefile: 16; sh: 5
file content (45 lines) | stat: -rw-r--r-- 1,024 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* emacs objective-c mode -*- objc -*- */

#import <AppKit/AppKit.h>

typedef enum {
  CVEmptyCell = 0,
  CVHasDataCell
} CVCellStatus;

@interface CalendarView : NSView
{
  NSTextField *title;
  NSButton *obl;
  NSButton *tbl;
  NSButton *obr;
  NSButton *tbr;
  Date *date;
  Date *monthDisplayed;
  NSMatrix *matrix;
  NSFont *normalFont;
  NSFont *boldFont;
  IBOutlet id delegate;
  NSTimer *_dayTimer;
  int bezeledCell;
  id _dataSource;
  BOOL horizontalDisplay;
}

- (id)initWithFrame:(NSRect)frame;
- (Date *)date;
- (void)setDate:(Date *)date;
- (NSString *)dateAsString;
- (id)delegate;
- (void)setDelegate:(id)delegate;
- (id)dataSource;
- (void)setDataSource:(id)dataSource;
- (void)reloadData;
- (void)dataChanged:(NSNotification *)not;
@end

@interface NSObject(CalendarViewDelegate)
- (void)calendarView:(CalendarView *)cs selectedDateChanged:(Date *)date;
- (void)calendarView:(CalendarView *)cs currentDateChanged:(Date *)date;
- (void)calendarView:(CalendarView *)cs userActionForDate:(Date *)date;
@end