pax_global_header00006660000000000000000000000064132046132530014511gustar00rootroot0000000000000052 comment=595f7114f7470ac176330da62e5324ae46b6de5b simpleagenda-0.44/000077500000000000000000000000001320461325300140715ustar00rootroot00000000000000simpleagenda-0.44/.gitignore000066400000000000000000000001071320461325300160570ustar00rootroot00000000000000SimpleAgenda.app/* obj/* config.h config.log config.status local.make simpleagenda-0.44/ABStore.m000066400000000000000000000043421320461325300155510ustar00rootroot00000000000000#import #import #import #import "MemoryStore.h" #import "ConfigManager.h" #import "StoreManager.h" #import "Event.h" #import "RecurrenceRule.h" #import "defines.h" @interface ABStore : MemoryStore { } @end @implementation ABStore - (NSDictionary *)defaults { return [NSDictionary dictionaryWithObjectsAndKeys:[[NSColor purpleColor] description], ST_COLOR, [[NSColor whiteColor] description], ST_TEXT_COLOR, [NSNumber numberWithBool:NO], ST_RW, [NSNumber numberWithBool:YES], ST_DISPLAY, [NSNumber numberWithBool:YES], ST_ENABLED, nil, nil]; } + (NSString *)storeName { return _(@"My address book"); } + (NSString *)storeTypeName { return @"Address book store"; } - (void)loadData { ADPerson *person; NSEnumerator *enumerator; id value; Date *date; Event *event; RecurrenceRule *rrule; enumerator = [[[ADAddressBook sharedAddressBook] people] objectEnumerator]; rrule = [[RecurrenceRule alloc] initWithFrequency:recurrenceFrequenceYearly]; while ((person = [enumerator nextObject])) { value = [person valueForProperty:ADBirthdayProperty]; if (value && [value isMemberOfClass:[NSCalendarDate class]]) { date = [Date today]; [date setYear:[value yearOfCommonEra]]; [date setMonth:[(NSCalendarDate *)value monthOfYear]]; [date setDay:[(NSCalendarDate *)value dayOfMonth]]; event = [[Event alloc] initWithStartDate:date duration:0 title:[person screenName]]; [event setAllDay:YES]; [event setRRule:rrule]; [event setText:AUTORELEASE([[NSAttributedString alloc] initWithString:_(@"Birthday")])]; [self add:event]; [event release]; } } NSLog(@"ABStore : found %d contact(s) with a birthdate", [[self events] count]); [rrule release]; } - (id)initWithName:(NSString *)name { self = [super initWithName:name]; if (self) { [self loadData]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(databaseChanged:) name:ADDatabaseChangedExternallyNotification object:nil]; } return self; } - (void)databaseChanged:(NSNotification *)not { [_data removeAllObjects]; [self loadData]; } - (BOOL)writable { return NO; } @end simpleagenda-0.44/AgendaStore.h000066400000000000000000000006541320461325300164430ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "MemoryStore.h" @protocol StoreBackend - (void)read; - (void)write; @end @protocol PeriodicRefresh - (BOOL)periodicRefresh; - (void)setPeriodicRefresh:(BOOL)periodic; - (NSTimeInterval)refreshInterval; - (void)setRefreshInterval:(NSTimeInterval)interval; @end @protocol AgendaStore @end @protocol SharedStore @end simpleagenda-0.44/Alarm.h000066400000000000000000000022761320461325300153050ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import "config.h" @class Date; @class Element; @interface Alarm : NSObject { icalcomponent *_ic; Element *_element; } + (id)alarm; - (NSAttributedString *)desc; - (void)setDesc:(NSAttributedString *)desc; - (NSString *)summary; - (void)setSummary:(NSString *)summary; - (BOOL)isAbsoluteTrigger; - (Date *)absoluteTrigger; - (void)setAbsoluteTrigger:(Date *)trigger; - (NSTimeInterval)relativeTrigger; - (void)setRelativeTrigger:(NSTimeInterval)trigger; - (enum icalproperty_action)action; - (void)setAction:(enum icalproperty_action)action; - (NSString *)emailAddress; - (void)setEmailAddress:(NSString *)emailAddress; - (NSString *)sound; - (void)setSound:(NSString *)sound; - (NSURL *)url; - (void)setUrl:(NSURL *)url; - (int)repeatCount; - (void)setRepeatCount:(int)count; - (NSTimeInterval)repeatInterval; - (void)setRepeatInterval:(NSTimeInterval)interval; - (Element *)element; - (void)setElement:(Element *)element; - (Date *)triggerDateRelativeTo:(Date *)date; - (NSString *)shortDescription; - (id)initWithICalComponent:(icalcomponent *)ic; - (icalcomponent *)asICalComponent; - (int)iCalComponentType; @end simpleagenda-0.44/Alarm.m000066400000000000000000000171211320461325300153050ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "Alarm.h" #import "Date.h" #import "Element.h" #import "HourFormatter.h" @implementation Alarm - (void)deleteProperty:(icalproperty_kind)kind fromComponent:(icalcomponent *)ic { icalproperty *prop = icalcomponent_get_first_property(ic, kind); if (prop) icalcomponent_remove_property(ic, prop); } - (void)encodeWithCoder:(NSCoder *)coder { [coder encodeObject:[NSString stringWithCString:icalcomponent_as_ical_string(_ic)] forKey:@"alarmComponent"]; } - (id)initWithCoder:(NSCoder *)coder { _ic = icalcomponent_new_from_string([[coder decodeObjectForKey:@"alarmComponent"] cString]); return self; } - (void)dealloc { icalcomponent_free(_ic); [super dealloc]; } - (id)init { self = [super init]; if (self) { _element = nil; _ic = icalcomponent_new([self iCalComponentType]); if (!_ic) { NSLog(@"Error while creating an VALARM component"); DESTROY(self); } } return self; } + (id)alarm { return AUTORELEASE([[Alarm alloc] init]); } - (NSAttributedString *)desc { icalproperty *prop = icalcomponent_get_first_property(_ic, ICAL_DESCRIPTION_PROPERTY); if (prop) return AUTORELEASE([[NSAttributedString alloc] initWithString:[NSString stringWithUTF8String:icalproperty_get_description(prop)]]); return nil; } - (void)setDesc:(NSAttributedString *)desc { [self deleteProperty:ICAL_DESCRIPTION_PROPERTY fromComponent:_ic]; if (desc) icalcomponent_add_property(_ic, icalproperty_new_description([[desc string] UTF8String])); } - (NSString *)summary { icalproperty *prop = icalcomponent_get_first_property(_ic, ICAL_SUMMARY_PROPERTY); if (!prop) { NSLog(@"Error : no summary property"); return nil; } return [NSString stringWithUTF8String:icalproperty_get_summary(prop)]; } - (void)setSummary:(NSString *)summary { [self deleteProperty:ICAL_SUMMARY_PROPERTY fromComponent:_ic]; if (summary) icalcomponent_add_property(_ic, icalproperty_new_summary([summary UTF8String])); } - (BOOL)isAbsoluteTrigger { struct icaltriggertype trigger; icalproperty *prop = icalcomponent_get_first_property(_ic, ICAL_TRIGGER_PROPERTY); if (!prop) { NSLog(@"Error : no trigger property"); return NO; } trigger = icalproperty_get_trigger(prop); if (icaltime_is_null_time(trigger.time)) return NO; return YES; } - (Date *)absoluteTrigger { struct icaltriggertype trigger; icalproperty *prop = icalcomponent_get_first_property(_ic, ICAL_TRIGGER_PROPERTY); if (!prop) { NSLog(@"Error : no trigger property"); return nil; } trigger = icalproperty_get_trigger(prop); return AUTORELEASE([[Date alloc] initWithICalTime:trigger.time]); } - (void)setAbsoluteTrigger:(Date *)date { struct icaltriggertype trigger; [self deleteProperty:ICAL_TRIGGER_PROPERTY fromComponent:_ic]; memset(&trigger, 0, sizeof(trigger)); trigger.time = [date UTCICalTime]; icalcomponent_add_property(_ic, icalproperty_new_trigger(trigger)); } - (NSTimeInterval)relativeTrigger { struct icaltriggertype trigger; icalproperty *prop = icalcomponent_get_first_property(_ic, ICAL_TRIGGER_PROPERTY); if (!prop) { NSLog(@"Error : no trigger property"); return -1; } trigger = icalproperty_get_trigger(prop); return icaldurationtype_as_int(trigger.duration); } - (void)setRelativeTrigger:(NSTimeInterval)duration { struct icaltriggertype trigger; [self deleteProperty:ICAL_TRIGGER_PROPERTY fromComponent:_ic]; memset(&trigger, 0, sizeof(trigger)); trigger.duration = icaldurationtype_from_int(duration); icalcomponent_add_property(_ic, icalproperty_new_trigger(trigger)); } - (enum icalproperty_action)action { icalproperty *prop = icalcomponent_get_first_property(_ic, ICAL_ACTION_PROPERTY); if (!prop) { NSLog(@"Error : no ACTION property"); return -1; } return icalproperty_get_action(prop); } - (void)setAction:(enum icalproperty_action)action { [self deleteProperty:ICAL_ACTION_PROPERTY fromComponent:_ic]; icalcomponent_add_property(_ic, icalproperty_new_action(action)); } - (NSString *)emailAddress { icalproperty *prop = icalcomponent_get_first_property(_ic, ICAL_ATTENDEE_PROPERTY); if (prop) return [NSString stringWithUTF8String:icalproperty_get_attendee(prop)]; return nil; } - (void)setEmailAddress:(NSString *)emailAddress { [self deleteProperty:ICAL_ATTENDEE_PROPERTY fromComponent:_ic]; if (emailAddress) { icalcomponent_add_property(_ic, icalproperty_new_attendee([emailAddress UTF8String])); [self setAction:ICAL_ACTION_EMAIL]; } } - (NSString *)sound { /* FIXME */ return nil; } - (void)setSound:(NSString *)sound { /* FIXME */ if (sound) { [self setAction:ICAL_ACTION_AUDIO]; } } - (NSURL *)url { /* FIXME */ return nil; } - (void)setUrl:(NSURL *)url { /* FIXME */ if (url) { [self setAction:ICAL_ACTION_PROCEDURE]; } } - (int)repeatCount { icalproperty *prop = icalcomponent_get_first_property(_ic, ICAL_REPEAT_PROPERTY); if (prop) return icalproperty_get_repeat(prop); return 0; } - (void)setRepeatCount:(int)count { [self deleteProperty:ICAL_REPEAT_PROPERTY fromComponent:_ic]; if (count > 0) icalcomponent_add_property(_ic, icalproperty_new_repeat(count)); } - (NSTimeInterval)repeatInterval { icalproperty *prop = icalcomponent_get_first_property(_ic, ICAL_DURATION_PROPERTY); if (prop) return icaldurationtype_as_int(icalproperty_get_duration(prop)); return 0; } - (void)setRepeatInterval:(NSTimeInterval)interval { [self deleteProperty:ICAL_DURATION_PROPERTY fromComponent:_ic]; if (interval > 0) icalcomponent_add_property(_ic, icalproperty_new_duration(icaldurationtype_from_int(interval))); } - (Element *)element { return _element; } - (void)setElement:(Element *)element { _element = element; NSDebugLLog(@"SimpleAgenda", @"Added %@ to element %@", [self description], [element UID]); } - (Date *)triggerDateRelativeTo:(Date *)date { return [Date dateWithTimeInterval:[self relativeTrigger] sinceDate:date]; } - (NSString *)description { if ([self isAbsoluteTrigger]) return [NSString stringWithFormat:@"Absolute trigger set to %@ repeat %d interval %f description <%@>", [[self absoluteTrigger] description], [self repeatCount], [self repeatInterval], [self desc]]; return [NSString stringWithFormat:@"Relative trigger delay %f repeat %d interval %f description <%@>", [self relativeTrigger], [self repeatCount], [self repeatInterval], [self desc]]; } - (NSString *)shortDescription { NSTimeInterval trigger; if ([self isAbsoluteTrigger]) return [NSString stringWithFormat:_(@"Trigger on %@"), [[[self absoluteTrigger] calendarDate] descriptionWithCalendarFormat:[[NSUserDefaults standardUserDefaults] objectForKey:NSShortTimeDateFormatString]]]; trigger = [self relativeTrigger]; if (trigger >= 0) return [NSString stringWithFormat:_(@"Trigger %@ after the event"), [HourFormatter stringForObjectValue:[NSNumber numberWithInt:trigger]]]; return [NSString stringWithFormat:_(@"Trigger %@ before the event"), [HourFormatter stringForObjectValue:[NSNumber numberWithInt:-trigger]]]; } - (id)copyWithZone:(NSZone *)zone { return [[Alarm allocWithZone:zone] initWithICalComponent:[self asICalComponent]]; } - (id)initWithICalComponent:(icalcomponent *)ic { if ((self = [super init])) { _element = nil; _ic = icalcomponent_new_clone(ic); if (!_ic) { NSLog(@"Error creating Alarm from iCal component"); NSLog(@"\n\n%s", icalcomponent_as_ical_string(ic)); DESTROY(self); } } return self; } - (icalcomponent *)asICalComponent { return icalcomponent_new_clone(_ic); } - (int)iCalComponentType { return ICAL_VALARM_COMPONENT; } @end simpleagenda-0.44/AlarmBackend.h000066400000000000000000000003121320461325300165420ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "Alarm.h" @interface AlarmBackend : NSObject + (NSString *)backendName; - (enum icalproperty_action)backendType; - (void)display:(Alarm *)alarm; @end simpleagenda-0.44/AlarmEditor.h000066400000000000000000000012111320461325300164400ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import @class Element; @class Alarm; @interface AlarmEditor : NSObject { id window; id panel; id type; id action; id table; id add; id remove; id relativeSlider; id relativeText; id radio; id date; id time; NSMutableArray *_alarms; Alarm *_current; Alarm *_simple; } + (NSArray *)editAlarms:(NSArray *)alarms; - (void)addAlarm:(id)sender; - (void)removeAlarm:(id)sender; - (void)changeDelay:(id)sender; - (void)selectType:(id)sender; - (void)switchBeforeAfter:(id)sender; - (void)tableViewSelectionDidChange:(NSNotification *)aNotification; @end simpleagenda-0.44/AlarmEditor.m000066400000000000000000000122701320461325300164540ustar00rootroot00000000000000#import #import "AlarmEditor.h" #import "Element.h" #import "Alarm.h" #import "HourFormatter.h" @implementation AlarmEditor - (void)setupForSelection { NSTimeInterval relativeTrigger; Date *d; if ([_alarms count] == 0) { [action setEnabled:NO]; [type setEnabled:NO]; [relativeSlider setEnabled:NO]; [radio setEnabled:NO]; [date setEnabled:NO]; [time setEnabled:NO]; [date setObjectValue:nil]; [date setObjectValue:nil]; [remove setEnabled:NO]; _current = nil; return; } [action setEnabled:YES]; [type setEnabled:YES]; [remove setEnabled:YES]; _current = [_alarms objectAtIndex:[table selectedRow]]; if ([_current isAbsoluteTrigger]) { [relativeSlider setEnabled:NO]; [radio setEnabled:NO]; [date setEnabled:YES]; [time setEnabled:YES]; d = [_current absoluteTrigger]; [date setObjectValue:[d calendarDate]]; [time setIntValue:[d hourOfDay] * 3600 + [d minuteOfHour] * 60]; [type selectItemAtIndex:1]; } else { [relativeSlider setEnabled:YES]; [radio setEnabled:YES]; [date setEnabled:NO]; [time setEnabled:NO]; [date setObjectValue:nil]; [date setObjectValue:nil]; [type selectItemAtIndex:0]; relativeTrigger = [_current relativeTrigger]; if (relativeTrigger >= 0) { [radio selectCellWithTag:1]; [relativeSlider setFloatValue:relativeTrigger]; } else { [radio selectCellWithTag:0]; [relativeSlider setFloatValue:-relativeTrigger]; } [relativeText setFloatValue:[relativeSlider floatValue]]; } } - (id)init { HourFormatter *formatter; NSDateFormatter *dateFormatter; if (![NSBundle loadNibNamed:@"Alarm" owner:self]) return nil; if ((self = [super init])) { _current = nil; _simple = RETAIN([Alarm alarm]); [_simple setRelativeTrigger:-15*60]; [_simple setAction:ICAL_ACTION_DISPLAY]; [table setDelegate:self]; [type removeAllItems]; [type addItemsWithTitles:[NSArray arrayWithObjects:_(@"Relative"), _(@"Absolute"), nil]]; [action removeAllItems]; [action addItemsWithTitles:[NSArray arrayWithObjects:_(@"Display"), _(@"Sound"), _(@"Email"), _(@"Procedure"), nil]]; [table setUsesAlternatingRowBackgroundColors:YES]; [table sizeLastColumnToFit]; formatter = AUTORELEASE([[HourFormatter alloc] init]); dateFormatter = AUTORELEASE([[NSDateFormatter alloc] initWithDateFormat:[[NSUserDefaults standardUserDefaults] objectForKey:NSShortDateFormatString] allowNaturalLanguage:NO]); [[relativeText cell] setFormatter:formatter]; [time setFormatter:formatter]; [date setFormatter:dateFormatter]; } return self; } - (id)initWithAlarms:(NSArray *)alarms { if ((self = [self init])) { _alarms = [[NSMutableArray alloc] initWithArray:alarms copyItems:YES]; [table reloadData]; [self setupForSelection]; } return self; } - (NSArray *)run { [NSApp runModalForWindow:window]; return [NSArray arrayWithArray:_alarms]; } + (NSArray *)editAlarms:(NSArray *)alarms { AlarmEditor *editor; NSArray *modified; if ((editor = [[AlarmEditor alloc] initWithAlarms:alarms])) { modified = [editor run]; [editor release]; return modified; } return nil; } - (void)dealloc { DESTROY(_simple); DESTROY(_alarms); [super dealloc]; } - (void)addAlarm:(id)sender { [_alarms addObject:AUTORELEASE([_simple copy])]; [table reloadData]; [table selectRow:[_alarms count]-1 byExtendingSelection:NO]; } - (void)removeAlarm:(id)sender { [_alarms removeObjectAtIndex:[table selectedRow]]; [table reloadData]; [self tableViewSelectionDidChange:nil]; } - (void)selectType:(id)sender { Date *d; if ([type indexOfSelectedItem] == 1) { d = [Date now]; [d changeDayBy:7]; [date setObjectValue:[d calendarDate]]; [time setFloatValue:([d hourOfDay]*60 + [d minuteOfHour]) / 60.0]; [_current setAbsoluteTrigger:d]; [table reloadData]; } else { [self changeDelay:nil]; } [self setupForSelection]; } - (void)changeDelay:(id)sender { [relativeText setIntValue:[relativeSlider intValue]]; if ([[radio selectedCell] tag] == 0) [_current setRelativeTrigger:-[relativeSlider intValue]]; else [_current setRelativeTrigger:[relativeSlider intValue]]; [table reloadData]; } - (void)switchBeforeAfter:(id)sender { [self changeDelay:self]; } - (void)tableViewSelectionDidChange:(NSNotification *)aNotification { [self setupForSelection]; } - (void)controlTextDidEndEditing:(NSNotification *)aNotification { Date *d; if (_current && [date objectValue] && [time objectValue]) { d = [Date dateWithCalendarDate:[date objectValue] withTime:NO]; d = [Date dateWithTimeInterval:[time intValue] sinceDate:d]; [_current setAbsoluteTrigger:d]; [table reloadData]; } } @end @implementation AlarmEditor(NSTableViewDataSource) - (int)numberOfRowsInTableView:(NSTableView *)aTableView { return [_alarms count]; } - (BOOL)tableView:(NSTableView *)tableView acceptDrop:(id)info row:(int)row dropOperation:(NSTableViewDropOperation)operation { return NO; } - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex { return [[_alarms objectAtIndex:rowIndex] shortDescription]; } @end simpleagenda-0.44/AlarmManager.h000066400000000000000000000010001320461325300165600ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import "ConfigManager.h" extern NSString * const SAEventReminderWillRun; @interface AlarmManager : NSObject { NSMutableDictionary *_activeAlarms; id _defaultBackend; } + (NSArray *)backends; + (id)backendForName:(NSString *)name; + (AlarmManager *)globalManager; - (id)defaultBackend; - (NSString *)defaultBackendName; - (void)setDefaultBackend:(NSString *)name; - (BOOL)alarmsEnabled; - (void)setAlarmsEnabled:(BOOL)value; @end simpleagenda-0.44/AlarmManager.m000066400000000000000000000173661320461325300166130ustar00rootroot00000000000000#import #import "AlarmManager.h" #import "StoreManager.h" #import "ConfigManager.h" #import "MemoryStore.h" #import "Element.h" #import "Alarm.h" #import "AlarmBackend.h" NSString * const ACTIVATE_ALARMS = @"activateAlarms"; NSString * const DEFAULT_ALARM_BACKEND = @"defaultAlarmBackend"; NSString * const SAEventReminderWillRun = @"SAEventReminderWillRun"; static NSMutableDictionary *backendsArray; static AlarmManager *singleton; @interface AlarmManager(Private) + (void)addBackendClass:(Class)class; - (void)removeAlarms; - (void)createAlarms; @end @implementation AlarmManager(Private) + (void)addBackendClass:(Class)class { id backend; backend = [class new]; if (backend) { [backendsArray setObject:backend forKey:[class backendName]]; [backend release]; NSLog(@"Alarm backend %@ registered", [class backendName]); } } - (void)runAlarm:(Alarm *)alarm { [[NSNotificationCenter defaultCenter] postNotificationName:SAEventReminderWillRun object:alarm]; if (_defaultBackend) [_defaultBackend display:alarm]; } - (void)addAlarm:(Alarm *)alarm forUID:(NSString *)uid { NSMutableArray *alarms = [_activeAlarms objectForKey:uid]; if (!alarms) { alarms = [NSMutableArray arrayWithCapacity:2]; [_activeAlarms setObject:alarms forKey:uid]; } [alarms addObject:alarm]; } - (void)removeAlarmsforUID:(NSString *)uid { NSMutableArray *alarms = [_activeAlarms objectForKey:uid]; NSEnumerator *enumerator; Alarm *alarm; if (alarms) { enumerator = [alarms objectEnumerator]; while ((alarm = [enumerator nextObject])) [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(runAlarm:) object:alarm]; [_activeAlarms removeObjectForKey:uid]; } } - (BOOL)addAbsoluteAlarm:(Alarm *)alarm { NSTimeInterval delay; delay = [[alarm absoluteTrigger] timeIntervalSinceNow]; if (delay < 0) return NO; [self performSelector:@selector(runAlarm:) withObject:alarm afterDelay:delay]; return YES; } - (BOOL)addRelativeAlarm:(Alarm *)alarm { Date *activation = [[alarm element] nextActivationDate]; NSTimeInterval delay; if (!activation) return NO; if ([[Date now] compare:activation withTime:YES] == NSOrderedDescending) return NO; activation = [Date dateWithTimeInterval:[alarm relativeTrigger] sinceDate:activation]; delay = [activation timeIntervalSinceNow]; if (delay < 1 && delay > -600) delay = 1; if (delay < 0) return NO; [self performSelector:@selector(runAlarm:) withObject:alarm afterDelay:delay]; return YES; } - (void)setAlarmsForElement:(Element *)element { NSEnumerator *enumAlarm; Alarm *alarm; BOOL added; if (![[element store] displayed] || ![element hasAlarms]) return; enumAlarm = [[element alarms] objectEnumerator]; while ((alarm = [enumAlarm nextObject])) { NSAssert([alarm element] != nil, @"Alarm is not linked with an element"); if ([alarm isAbsoluteTrigger]) added = [self addAbsoluteAlarm:alarm]; else added = [self addRelativeAlarm:alarm]; if (added) [self addAlarm:alarm forUID:[element UID]]; } } - (void)setAlarmsForElements:(NSArray *)elements { NSEnumerator *enumerator = [elements objectEnumerator]; Element *element; while ((element = [enumerator nextObject])) [self setAlarmsForElement:element]; } - (void)dataChanged:(NSNotification *)not { [self createAlarms]; } - (void)elementAdded:(NSNotification *)not { if ([self alarmsEnabled]) { MemoryStore *store = [not object]; NSString *uid = [[not userInfo] objectForKey:@"UID"]; [self setAlarmsForElement:[store elementWithUID:uid]]; } } - (void)elementRemoved:(NSNotification *)not { if ([self alarmsEnabled]) [self removeAlarmsforUID:[[not userInfo] objectForKey:@"UID"]]; } - (void)elementUpdated:(NSNotification *)not { if ([self alarmsEnabled]) { MemoryStore *store = [not object]; NSString *uid = [[not userInfo] objectForKey:@"UID"]; [self removeAlarmsforUID:uid]; [self setAlarmsForElement:[store elementWithUID:uid]]; } } - (NSDictionary *)defaults { return [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects: [NSNumber numberWithBool:NO], [AlarmBackend backendName], nil] forKeys:[NSArray arrayWithObjects: ACTIVATE_ALARMS, DEFAULT_ALARM_BACKEND, nil]]; } /* FIXME : what happens when a store is reloaded ? */ - (id)init { NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; ConfigManager *cm = [ConfigManager globalConfig]; self = [super init]; if (self) { [cm registerDefaults:[self defaults]]; [self setDefaultBackend:[cm objectForKey:DEFAULT_ALARM_BACKEND]]; _activeAlarms = [[NSMutableDictionary alloc] initWithCapacity:32]; [nc addObserver:self selector:@selector(dataChanged:) name:SADataChangedInStore object:nil]; [nc addObserver:self selector:@selector(elementAdded:) name:SAElementAddedToStore object:nil]; [nc addObserver:self selector:@selector(elementRemoved:) name:SAElementRemovedFromStore object:nil]; [nc addObserver:self selector:@selector(elementUpdated:) name:SAElementUpdatedInStore object:nil]; [self createAlarms]; NSLog(@"Alarms are %@", [self alarmsEnabled] ? @"enabled" : @"disabled"); } return self; } - (void)dealloc { NSDebugLLog(@"SimpleAgenda", @"Releasing AlarmManager"); [[NSNotificationCenter defaultCenter] removeObserver:self]; RELEASE(_activeAlarms); RELEASE(backendsArray); [super dealloc]; } - (void)createAlarms { StoreManager *sm = [StoreManager globalManager]; [self removeAlarms]; if ([self alarmsEnabled]) { [self setAlarmsForElements:[sm allEvents]]; [self setAlarmsForElements:[sm allTasks]]; } } - (void)removeAlarms { [NSObject cancelPreviousPerformRequestsWithTarget:self]; [_activeAlarms removeAllObjects]; } @end @implementation AlarmManager + (void)initialize { NSArray *classes; NSEnumerator *enumerator; Class backendClass; if ([AlarmManager class] == self) { classes = GSObjCAllSubclassesOfClass([AlarmBackend class]); backendsArray = [[NSMutableDictionary alloc] initWithCapacity:[classes count]+1]; enumerator = [classes objectEnumerator]; while ((backendClass = [enumerator nextObject])) [self addBackendClass:backendClass]; [self addBackendClass:[AlarmBackend class]]; singleton = [[AlarmManager alloc] init]; } } + (NSArray *)backends { return [backendsArray allValues]; } + (id)backendForName:(NSString *)name { return [backendsArray objectForKey:name]; } + (AlarmManager *)globalManager { return singleton; } - (id)defaultBackend { return _defaultBackend; } - (NSString *)defaultBackendName { return [[_defaultBackend class] backendName]; } - (void)setDefaultBackend:(NSString *)name { id bck = [AlarmManager backendForName:name]; if (bck != nil) { _defaultBackend = bck; [[ConfigManager globalConfig] setObject:name forKey:DEFAULT_ALARM_BACKEND]; NSLog(@"Default alarm backend is %@", name); } } - (BOOL)alarmsEnabled { return [[[ConfigManager globalConfig] objectForKey:ACTIVATE_ALARMS] boolValue]; } - (void)setAlarmsEnabled:(BOOL)value { if (value) [self createAlarms]; else [self removeAlarms]; [[ConfigManager globalConfig] setInteger:value forKey:ACTIVATE_ALARMS]; NSLog(@"Alarms are %@", value ? @"enabled" : @"disabled"); } @end @implementation AlarmBackend + (NSString *)backendName { return @"Log backend"; } - (void)dealloc { NSDebugLLog(@"SimpleAgenda", @"Alarm backend %@ released", [[self class] backendName]); [super dealloc]; } - (enum icalproperty_action)backendType { return ICAL_ACTION_DISPLAY; } - (void)display:(Alarm *)alarm { NSLog(@"%@", [alarm description]); } @end simpleagenda-0.44/AppController.h000066400000000000000000000030611320461325300170260ustar00rootroot00000000000000/* emacs objective-c mode -*- objc -*- */ #import "AgendaStore.h" #import "CalendarView.h" #import "DayView.h" #import "WeekView.h" #import "Element.h" #import "Event.h" #import "PreferencesController.h" #import "DataTree.h" #import "SelectionManager.h" #import "ConfigManager.h" #import "AlarmManager.h" @interface AppController : NSObject { IBOutlet CalendarView *calendar; IBOutlet DayView *dayView; IBOutlet WeekView *weekView; IBOutlet NSOutlineView *summary; IBOutlet NSTextField *search; IBOutlet NSTableView *taskView; IBOutlet NSWindow *window; IBOutlet NSTabView *tabs; PreferencesController *_pc; StoreManager *_sm; SelectionManager *_selm; AlarmManager *_am; Date *_selectedDay; DataTree *_summaryRoot; DataTree *_today; DataTree *_tomorrow; DataTree *_soon; DataTree *_results; DataTree *_tasks; } - (void)copy:(id)sender; - (void)cut:(id)sender; - (void)paste:(id)sender; - (void)editAppointment:(id)sender; - (void)delAppointment:(id)sender; - (void)exportAppointment:(id)sender; - (void)saveAll:(id)sender; - (void)reloadAll:(id)sender; - (void)showPrefPanel:(id)sender; - (void)addAppointment:(id)sender; - (void)addTask:(id)sender; - (void)editAppointment:(id)sender; - (void)delAppointment:(id)sender; - (void)exportAppointment:(id)sender; - (void)doSearch:(id)sender; - (void)clearSearch:(id)sender; - (void)today:(id)sender; - (void)nextDay:(id)sender; - (void)previousDay:(id)sender; - (void)nextWeek:(id)sender; - (void)previousWeek:(id)sender; - (void)updateSummaryData; - (void)dataChanged:(NSNotification *)not; @end simpleagenda-0.44/AppController.m000066400000000000000000000624401320461325300170410ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import "AppointmentEditor.h" #import "TaskEditor.h" #import "StoreManager.h" #import "AppController.h" #import "Event.h" #import "Task.h" #import "PreferencesController.h" #import "iCalTree.h" #import "SelectionManager.h" #import "AlarmManager.h" #import "Alarm.h" #import "defines.h" @interface AppIcon : NSView { ConfigManager *_cm; NSDictionary *_attrs; NSTimer *_timer; BOOL _showDate; BOOL _showTime; } @end @implementation AppIcon - (void)setup { _showDate = [[_cm objectForKey:APPICON_DATE] boolValue]; _showTime = [[_cm objectForKey:APPICON_TIME] boolValue]; if (_showTime) { if (_timer == nil) _timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(secondChanged:) userInfo:nil repeats:YES]; } else { [_timer invalidate]; _timer = nil; } [self setNeedsDisplay:YES]; } - (void)dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; [_attrs release]; [_timer invalidate]; [super dealloc]; } - (id)initWithFrame:(NSRect)frame { if ((self = [super initWithFrame:frame])) { _attrs = [[NSDictionary alloc] initWithObjectsAndKeys:[NSFont systemFontOfSize:8],NSFontAttributeName,nil]; _cm = [ConfigManager globalConfig]; [self setup]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(configChanged:) name:SAConfigManagerValueChanged object:_cm]; } return self; } - (void)configChanged:(NSNotification *)not { NSString *key = [[not userInfo] objectForKey:@"key"]; if ([key isEqualToString:APPICON_DATE] || [key isEqualToString:APPICON_TIME]) [self setup]; } - (BOOL)acceptsFirstMouse:(NSEvent *)theEvent { return YES; } - (void)secondChanged:(NSTimer *)timer { [self setNeedsDisplay:YES]; } - (void)drawRect:(NSRect)rect { NSUserDefaults *def = [NSUserDefaults standardUserDefaults]; NSCalendarDate *now = [[Date now] calendarDate]; NSString *aString; if (_showDate) { aString = [now descriptionWithCalendarFormat:[def objectForKey:NSShortDateFormatString]]; [aString drawAtPoint:NSMakePoint(8, 3) withAttributes:_attrs]; } if (_showTime) { aString = [now descriptionWithCalendarFormat:[def objectForKey:NSTimeFormatString]]; [aString drawAtPoint:NSMakePoint(11, 49) withAttributes:_attrs]; } } @end NSComparisonResult compareDataTreeElements(id a, id b, void *context) { return [[[a valueForKey:@"object"] startDate] compare:[[b valueForKey:@"object"] startDate] withTime:YES]; } @implementation AppController - (void)registerForServices { [NSApp registerServicesMenuSendTypes: [NSArray arrayWithObjects:NSStringPboardType, NSFilenamesPboardType, nil] returnTypes: [NSArray arrayWithObjects:nil]]; } - (void)initSummary { _today = [DataTree dataTreeWithAttributes:[NSDictionary dictionaryWithObject:_(@"Today") forKey:@"title"]]; _tomorrow = [DataTree dataTreeWithAttributes:[NSDictionary dictionaryWithObject:_(@"Tomorrow") forKey:@"title"]]; _soon = [DataTree dataTreeWithAttributes:[NSDictionary dictionaryWithObject:_(@"Soon") forKey:@"title"]]; _results = [DataTree dataTreeWithAttributes:[NSDictionary dictionaryWithObject:_(@"Search results") forKey:@"title"]]; _tasks = [DataTree dataTreeWithAttributes:[NSDictionary dictionaryWithObject:_(@"Open tasks") forKey:@"title"]]; _summaryRoot = [DataTree new]; [_summaryRoot addChild:_today]; [_summaryRoot addChild:_tomorrow]; [_summaryRoot addChild:_soon]; [_summaryRoot addChild:_results]; [_summaryRoot addChild:_tasks]; } - (NSDictionary *)attributesFrom:(Event *)event and:(Date *)date { Date *today = [Date today]; Date *copy = AUTORELEASE([date copy]); NSMutableDictionary *attributes = [NSMutableDictionary new]; NSString *details; NSString *title; [copy setIsDate:NO]; [copy setMinute:[[event startDate] minuteOfDay]]; [attributes setValue:event forKey:@"object"]; [attributes setValue:copy forKey:@"date"]; if ([today timeIntervalSinceDate:copy] > 86400 || [today timeIntervalSinceDate:copy] < -86400) details = [[copy calendarDate] descriptionWithCalendarFormat:[[NSUserDefaults standardUserDefaults] objectForKey:NSShortDateFormatString]]; else details = [[copy calendarDate] descriptionWithCalendarFormat:@"%H:%M"]; title = [NSString stringWithFormat:@"%@ : %@", details, [event summary]]; [attributes setValue:title forKey:@"title"]; return AUTORELEASE(attributes); } - (NSDictionary *)attributesFromTask:(Task *)task { return [NSMutableDictionary dictionaryWithObjectsAndKeys:task, @"object", [task summary], @"title", nil, nil]; } - (void)updateSummaryData { Date *today = [Date today]; Date *tomorrow = [Date today]; Date *soonStart = [Date today]; Date *soonEnd = [Date today]; NSEnumerator *enumerator = [[_sm allEvents] objectEnumerator]; NSEnumerator *dayEnumerator; Event *event; Date *day; Task *task; [_today removeChildren]; [_tomorrow removeChildren]; [_soon removeChildren]; [tomorrow incrementDay]; [soonStart changeDayBy:2]; [soonEnd changeDayBy:5]; while ((event = [enumerator nextObject])) { if (![[event store] displayed]) continue; if ([event isScheduledForDay:today]) [_today addChild:[DataTree dataTreeWithAttributes:[self attributesFrom:event and:today]]]; if ([event isScheduledForDay:tomorrow]) [_tomorrow addChild:[DataTree dataTreeWithAttributes:[self attributesFrom:event and:tomorrow]]]; dayEnumerator = [soonStart enumeratorTo:soonEnd]; while ((day = [dayEnumerator nextObject])) { if ([event isScheduledForDay:day]) [_soon addChild:[DataTree dataTreeWithAttributes:[self attributesFrom:event and:day]]]; } } [_today sortChildrenUsingFunction:compareDataTreeElements context:nil]; [_tomorrow sortChildrenUsingFunction:compareDataTreeElements context:nil]; [_soon sortChildrenUsingFunction:compareDataTreeElements context:nil]; [_tasks removeChildren]; enumerator = [[_sm visibleTasks] objectEnumerator]; while ((task = [enumerator nextObject])) { if ([task state] != TK_COMPLETED) [_tasks addChild:[DataTree dataTreeWithAttributes:[self attributesFromTask:task]]]; } [_tasks setValue:[NSString stringWithFormat:_(@"Open tasks (%d)"), [[_tasks children] count]] forKey:@"title"]; [summary reloadData]; } - (void)setWindowTitle { NSTabViewItem *dayTab = [tabs tabViewItemAtIndex:[tabs indexOfTabViewItemWithIdentifier:@"Day"]]; NSTabViewItem *weekTab = [tabs tabViewItemAtIndex:[tabs indexOfTabViewItemWithIdentifier:@"Week"]]; if ([tabs selectedTabViewItem] == dayTab) [window setTitle:[NSString stringWithFormat:@"SimpleAgenda - %@", [calendar dateAsString]]]; else if ([tabs selectedTabViewItem] == weekTab) [window setTitle:[@"SimpleAgenda - " stringByAppendingString:[NSString stringWithFormat:_(@"Week %d"), [_selectedDay weekOfYear]]]]; else [window setTitle:[@"SimpleAgenda - " stringByAppendingString:_(@"Tasks")]]; } - (NSDictionary *)defaults { return [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:[NSNumber numberWithBool:YES], [NSNumber numberWithBool:YES], [NSNumber numberWithBool:NO], nil] forKeys:[NSArray arrayWithObjects:APPICON_DATE, APPICON_TIME, TOOLTIP, nil]]; } - (id)init { if (!(self = [super init])) return self; [self initSummary]; [[ConfigManager globalConfig] registerDefaults:[self defaults]]; return self; } - (void)applicationWillFinishLaunching:(NSNotification *)aNotification { NSPopUpButtonCell *cell = [NSPopUpButtonCell new]; [cell addItemsWithTitles:[Task stateNamesArray]]; [[taskView tableColumnWithIdentifier:@"state"] setDataCell:cell]; [[taskView tableColumnWithIdentifier:@"state"] setMaxWidth:128]; [taskView setAutoresizesAllColumnsToFit:YES]; [taskView setUsesAlternatingRowBackgroundColors:YES]; [taskView setTarget:self]; [taskView setDoubleAction:@selector(editAppointment:)]; [summary sizeLastColumnToFit]; [summary setTarget:self]; [summary setDoubleAction:@selector(editAppointment:)]; [window setFrameAutosaveName:@"mainWindow"]; } - (void)applicationDidFinishLaunching:(NSNotification *)not { NSWindow *win; unsigned int width, height; win = [NSApp iconWindow]; width = [[win contentView] bounds].size.width; height = [[win contentView] bounds].size.height; [[win contentView] addSubview:AUTORELEASE([[AppIcon alloc] initWithFrame: NSMakeRect(1, 1, width - 2, height - 2)])]; [self registerForServices]; [NSApp setServicesProvider: self]; /* Set the selected day : this will update all views and titles (but not the summary) */ [calendar setDataSource:self]; /* * FIXME : this has to be called before the StoreManager is setup * so that the calendar date is setup when -dataChanged is called * and the view redrawn by calling -reloadData */ /* * FIXME : setting the calendar date ends up calling -calendarView:selectedDateChanged * then [DayView -setDate:] which calls [DayView -reloadData] where we find * [StoreManager globalManager] => the StoreManager is hiddenly initialized * * This is all too complex and should be redone maybe based on notifications */ [calendar setDate:[Date today]]; _sm = [StoreManager globalManager]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dataChanged:) name:SADataChangedInStoreManager object:nil]; /* FIXME : this is overkill, we should only refresh the views for visual changes */ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dataChanged:) name:SAStatusChangedForStore object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reminderWillRun:) name:SAEventReminderWillRun object:nil]; /* This will init the alarms for all loaded elements needing one */ _am = [AlarmManager globalManager]; _selm = [SelectionManager globalManager]; _pc = [PreferencesController new]; } - (void)applicationWillTerminate:(NSNotification *)aNotification { [[NSNotificationCenter defaultCenter] removeObserver:self]; RELEASE(_am); RELEASE(_sm); RELEASE(_summaryRoot); RELEASE(_pc); RELEASE(_selectedDay); } - (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)app { return YES; } /* Called when user opens an .ics file in GWorkspace */ - (BOOL)application:(NSApplication *)sender openFile:(NSString *)filename { NSFileManager *fm = [NSFileManager defaultManager]; NSEnumerator *eventEnum; id store; Element *elt; iCalTree *tree; if ([fm isReadableFileAtPath:filename]) { tree = [iCalTree new]; [tree parseString:[NSString stringWithContentsOfFile:filename]]; eventEnum = [[tree components] objectEnumerator]; while ((elt = [eventEnum nextObject])) { store = [_sm storeContainingElement:elt]; if (store) [store update:elt]; else [[_sm defaultStore] add:elt]; } [tree release]; return YES; } return NO; } - (void)showPrefPanel:(id)sender { [_pc showPreferences]; } NSComparisonResult compareEventTime(id a, id b, void *context) { return [[a startDate] compare:[b startDate] withTime:YES]; } - (int)_sensibleStartForDuration:(int)duration { int minute = [dayView firstHour] * 60; NSEnumerator *enumerator = [[[[_sm visibleAppointmentsForDay:_selectedDay] allObjects] sortedArrayUsingFunction:compareEventTime context:nil] objectEnumerator]; Event *apt; while ((apt = [enumerator nextObject])) { if (minute + duration <= [[apt startDate] minuteOfDay]) return minute; minute = [[apt startDate] minuteOfDay] + [apt duration]; } if (minute < [dayView lastHour] * 60) return minute; return [dayView firstHour] * 60; } - (void)addAppointment:(id)sender { Event *apt; Date *date; date = [[calendar date] copy]; [date setIsDate:NO]; [date setMinute:[self _sensibleStartForDuration:60]]; apt = [[Event alloc] initWithStartDate:date duration:60 title:_(@"edit title...")]; [AppointmentEditor editorForEvent:apt]; [date release]; [apt release]; } - (void)addTask:(id)sender { Task *task = [[Task alloc] initWithSummary:_(@"edit summary...")]; if (task && [TaskEditor editorForTask:task]) [tabs selectTabViewItemWithIdentifier:@"Tasks"]; [task release]; } - (void)newTask:(NSPasteboard *)pboard userData:(NSString *)userData error:(NSString **)error { NSString *aString; NSArray *allTypes; Task *task; allTypes = [pboard types]; if (![allTypes containsObject: NSStringPboardType]) { *error = @"No string type supplied on pasteboard"; return; } aString = [pboard stringForType: NSStringPboardType]; if (aString == nil) { *error = @"No string value supplied on pasteboard"; return; } task = [Task new]; if ([aString length] > 40) { [task setSummary:_(@"New task")]; [task setText:AUTORELEASE([[NSAttributedString alloc ] initWithString:aString])]; } else [task setSummary:aString]; if (task && [TaskEditor editorForTask:task]) [tabs selectTabViewItemWithIdentifier:@"Tasks"]; [task release]; } - (void)editAppointment:(id)sender { id lastSelection = [_selm lastObject]; if (lastSelection) { if ([lastSelection isKindOfClass:[Event class]]) [AppointmentEditor editorForEvent:(Event *)lastSelection]; else if ([lastSelection isKindOfClass:[Task class]]) [TaskEditor editorForTask:(Task *)lastSelection]; else NSLog(@"We should never come here..."); } } - (void)delAppointment:(id)sender { NSEnumerator *enumerator = [_selm enumerator]; Element *el; while ((el = [enumerator nextObject])) [[el store] remove:el]; [_selm clear]; } - (void)exportAppointment:(id)sender; { NSEnumerator *enumerator = [_selm enumerator]; NSSavePanel *panel = [NSSavePanel savePanel]; NSString *str; iCalTree *tree; Element *el; if ([_selm count] > 0) { [panel setRequiredFileType:@"ics"]; [panel setTitle:_(@"Export as")]; if ([panel runModalForDirectory:nil file:[[_selm lastObject] summary]] == NSOKButton) { tree = [iCalTree new]; while ((el = [enumerator nextObject])) [tree add:el]; str = [tree iCalTreeAsString]; if (![str writeToFile:[panel filename] atomically:NO]) NSLog(@"Unable to write to file %@", [panel filename]); [tree release]; } } } - (void)saveAll:(id)sender { [_sm synchronise]; } - (void)reloadAll:(id)sender { [_sm refresh]; } - (void)copy:(id)sender { [_selm copySelection]; } - (void)cut:(id)sender { [_selm cutSelection]; } - (void)paste:(id)sender { if ([_selm copiedCount] > 0) { NSEnumerator *enumerator = [[_selm paste] objectEnumerator]; Date *date = [[calendar date] copy]; Event *el; id store; int start; [date setIsDate:NO]; while ((el = [enumerator nextObject])) { /* FIXME : store property could be handled by Event:copy ? */ store = [el store]; /* FIXME : this isn't enough : we have to find a writable store or error out */ if (![store writable]) store = [_sm defaultStore]; start = [[el startDate] minuteOfDay]; if ([_selm lastOperation] == SMCopy) el = [el copy]; [date setMinute:start]; [el setStartDate:date]; if ([_selm lastOperation] == SMCopy) { [store add:el]; /* * FIXME : the new event is now in store's dictionary, we * should be able to release it. If we do, the application * crashes when we delete this event, trying to release it * one time too many. I can't find the bug * [el release]; */ } else { [store update:el]; } } [date release]; } } - (void)today:(id)sender { [calendar setDate:[Date today]]; } - (void)nextDay:(id)sender { [calendar setDate:[Date dateWithTimeInterval:86400 sinceDate:[calendar date]]]; } - (void)previousDay:(id)sender { [calendar setDate:[Date dateWithTimeInterval:-86400 sinceDate:[calendar date]]]; } - (void)nextWeek:(id)sender { [calendar setDate:[Date dateWithTimeInterval:86400*7 sinceDate:[calendar date]]]; } - (void)previousWeek:(id)sender { [calendar setDate:[Date dateWithTimeInterval:86400*-7 sinceDate:[calendar date]]]; } - (void)performSearch { NSEnumerator *enumerator; Event *event; [_results removeChildren]; if ([[search stringValue] length] > 0) { enumerator = [[_sm allEvents] objectEnumerator]; while ((event = [enumerator nextObject])) { if ([event contains:[search stringValue]]) [_results addChild:[DataTree dataTreeWithAttributes:[self attributesFrom:event and:[event startDate]]]]; } [_results sortChildrenUsingFunction:compareDataTreeElements context:nil]; [summary expandItem:_results]; [_results setValue:[NSString stringWithFormat:_(@"Search results (%d items)"), [[_results children] count]] forKey:@"title"]; } else [_results setValue:_(@"Search results") forKey:@"title"]; } - (void)doSearch:(id)sender { [self performSearch]; [summary reloadData]; [window makeFirstResponder:search]; } - (void)clearSearch:(id)sender { [search setStringValue:@""]; [self performSearch]; [summary reloadData]; [window makeFirstResponder:search]; } - (BOOL)validateMenuItem:(id )menuItem { SEL action = [menuItem action]; NSEnumerator *enumerator; Element *el; if (sel_isEqual(action, @selector(copy:))) return [_selm count] > 0; if (sel_isEqual(action, @selector(cut:))) { if ([_selm count] == 0) return NO; enumerator = [[_selm selection] objectEnumerator]; while ((el = [enumerator nextObject])) { if (![[el store] writable]) return NO; } return YES; } if (sel_isEqual(action, @selector(editAppointment:))) return [_selm count] == 1; if (sel_isEqual(action, @selector(delAppointment:))) return [_selm count] > 0; if (sel_isEqual(action, @selector(exportAppointment:))) return [_selm count] > 0; if (sel_isEqual(action, @selector(paste:))) return [_selm copiedCount] > 0; return YES; } - (void)dataChanged:(NSNotification *)not { /* * FIXME : if a selected event was deleted by another application, * the selection will reference a non existing object */ [calendar reloadData]; [dayView reloadData]; [weekView reloadData]; [taskView reloadData]; [self performSearch]; [self updateSummaryData]; } - (BOOL)showElement:(Element *)element onDay:(Date *)day { NSString *tabIdentifier = [[tabs selectedTabViewItem] identifier]; NSAssert(element != nil, @"An object must be passed"); NSAssert([day isDate], @"This method uses a day, not a date"); if ([element isKindOfClass:[Event class]]) { [calendar setDate:day]; if (![tabIdentifier isEqualToString:@"Day"] && ![tabIdentifier isEqualToString:@"Week"]) [tabs selectTabViewItemWithIdentifier:@"Day"]; [_selm select:element]; return YES; } if ([element isKindOfClass:[Task class]]) { if (![tabIdentifier isEqualToString:@"Tasks"]) [tabs selectTabViewItemWithIdentifier:@"Tasks"]; [_selm select:element]; return YES; } return NO; } - (void)reminderWillRun:(NSNotification *)not { Alarm *alarm = [not object]; [self showElement:[alarm element] onDay:[Date today]]; } - (id)validRequestorForSendType:(NSString *)sendType returnType:(NSString *)returnType { if ([_selm count] && (!sendType || [sendType isEqual:NSFilenamesPboardType] || [sendType isEqual:NSStringPboardType])) return self; return nil; } - (BOOL)writeSelectionToPasteboard:(NSPasteboard *)pboard types:(NSArray *)types { NSEnumerator *enumerator = [_selm enumerator]; Element *el; NSString *ical; NSString *filename; iCalTree *tree; NSFileWrapper *fw; BOOL written; if ([_selm count] == 0) return NO; NSAssert([types count] == 1, @"It seems our assumption was wrong"); tree = AUTORELEASE([iCalTree new]); while ((el = [enumerator nextObject])) [tree add:el]; ical = [tree iCalTreeAsString]; if ([types containsObject:NSFilenamesPboardType]) { fw = [[NSFileWrapper alloc] initRegularFileWithContents:[ical dataUsingEncoding:NSUTF8StringEncoding]]; if (!fw) { NSLog(@"Unable to encode into NSFileWrapper"); return NO; } filename = [NSString stringWithFormat:@"%@/%@.ics", NSTemporaryDirectory(), [[_selm lastObject] summary]]; written = [fw writeToFile:filename atomically:YES updateFilenames:YES]; [fw release]; if (!written) { NSLog(@"Unable to write to file %@", filename); return NO; } [pboard declareTypes:[NSArray arrayWithObject:NSFilenamesPboardType] owner:nil]; return [pboard setPropertyList:[NSArray arrayWithObject:filename] forType:NSFilenamesPboardType]; } if ([types containsObject:NSStringPboardType]) { [pboard declareTypes:[NSArray arrayWithObject:NSStringPboardType] owner:nil]; return [pboard setString:ical forType:NSStringPboardType]; } return NO; } @end @implementation AppController(NSOutlineViewDataSource) - (int)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item { if (item == nil) return [[_summaryRoot children] count]; return [[item children] count]; } - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item { if (item == nil) return YES; return [[item children] count] > 0; } - (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item { if (item == nil) return [[_summaryRoot children] objectAtIndex:index]; return [[item children] objectAtIndex:index]; } - (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item { return [item valueForKey:[tableColumn identifier]]; } @end @implementation AppController(NSOutlineViewDelegate) - (BOOL)outlineView:(NSOutlineView *)outlineView shouldSelectItem:(id)item { id object = [item valueForKey:@"object"]; if (object && [object isKindOfClass:[Event class]]) return [self showElement:object onDay:[Date dayWithDate:[item valueForKey:@"date"]]]; if (object && [object isKindOfClass:[Task class]]) return [self showElement:object onDay:[calendar date]]; return NO; } @end @implementation AppController(CalendarViewDataSource) - (CVCellStatus)calendarView:(CalendarView *)view cellStatusForDate:(Date *)date { if ([[_sm visibleAppointmentsForDay:date] count] > 0) return CVHasDataCell; return CVEmptyCell; } @end @implementation AppController(CalendarViewDelegate) - (void)calendarView:(CalendarView *)cs selectedDateChanged:(Date *)date { NSTabViewItem *dayTab = [tabs tabViewItemAtIndex:[tabs indexOfTabViewItemWithIdentifier:@"Day"]]; NSTabViewItem *weekTab = [tabs tabViewItemAtIndex:[tabs indexOfTabViewItemWithIdentifier:@"Week"]]; NSTabViewItem *taskTab = [tabs tabViewItemAtIndex:[tabs indexOfTabViewItemWithIdentifier:@"Tasks"]]; ASSIGNCOPY(_selectedDay, date); [dayView setDate:date]; [weekView setDate:date]; /* Hack to enable translation of this tab's label */ [taskTab setLabel:_(@"Tasks")]; [dayTab setLabel:[[_selectedDay calendarDate] descriptionWithCalendarFormat:@"%e %b"]]; [weekTab setLabel:[NSString stringWithFormat:_(@"Week %d"), [_selectedDay weekOfYear]]]; if ([tabs selectedTabViewItem] != dayTab && [tabs selectedTabViewItem] != weekTab) [tabs selectTabViewItem:dayTab]; [tabs setNeedsDisplay:YES]; [self setWindowTitle]; } - (void)calendarView:(CalendarView *)cs currentDateChanged:(Date *)date { [self updateSummaryData]; [[[NSApp iconWindow] contentView] setNeedsDisplay:YES]; } - (void)calendarView:(CalendarView *)cs userActionForDate:(Date *)date { [self addAppointment:self]; } @end @implementation AppController(AppointmentViewDelegate) - (void)viewEditEvent:(Event *)event; { [AppointmentEditor editorForEvent:event]; } - (void)viewModifyEvent:(Event *)event { [[event store] update:event]; } - (void)viewCreateEventFrom:(int)start to:(int)end { Date *date = [[calendar date] copy]; [date setIsDate:NO]; [date setMinute:start]; Event *apt = [[Event alloc] initWithStartDate:date duration:end - start title:_(@"edit title...")]; if (apt) [AppointmentEditor editorForEvent:apt]; [date release]; [apt release]; } - (void)viewSelectEvent:(Event *)event { } - (void)viewSelectDate:(Date *)date { [calendar setDate:date]; } @end @implementation AppController(NSTableDataSource) - (int)numberOfRowsInTableView:(NSTableView *)aTableView { return [[_sm visibleTasks] count]; } - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex { Task *task = [[_sm visibleTasks] objectAtIndex:rowIndex]; if ([[aTableColumn identifier] isEqualToString:@"summary"]) return [task summary]; return [NSNumber numberWithInt:[task state]]; } - (void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex { Task *task = [[_sm visibleTasks] objectAtIndex:rowIndex]; if ([[task store] writable]) { [task setState:[anObject intValue]]; [[task store] update:task]; } } - (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex { Task *task; if ([[aTableColumn identifier] isEqualToString:@"state"]) { task = [[_sm visibleTasks] objectAtIndex:rowIndex]; [aCell setEnabled:[[task store] writable]]; } } - (void)tableViewSelectionDidChange:(NSNotification *)aNotification { int index = [taskView selectedRow]; if (index > -1) [_selm select:[[_sm visibleTasks] objectAtIndex:index]]; } @end @implementation AppController(NSTabViewDelegate) - (void)tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem *)tabViewItem { [self setWindowTitle]; } @end simpleagenda-0.44/AppointmentEditor.h000066400000000000000000000011721320461325300177100ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "Event.h" #import "StoreManager.h" @interface AppointmentEditor : NSObject { id window; id description; id title; id duration; id durationText; id repeat; id endDate; id location; id store; id allDay; id ok; id until; id time; id timeText; Date *startDate; Event *_event; NSArray *_modifiedAlarms; } + (AppointmentEditor *)editorForEvent:(Event *)event; - (void)validate:(id)sender; - (void)cancel:(id)sender; - (void)selectFrequency:(id)sender; - (void)toggleUntil:(id)sender; - (void)toggleAllDay:(id)sender; - (void)editAlarms:(id)sender; @end simpleagenda-0.44/AppointmentEditor.m000066400000000000000000000154531320461325300177240ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import "AppointmentEditor.h" #import "HourFormatter.h" #import "AgendaStore.h" #import "ConfigManager.h" #import "AlarmEditor.h" #import "defines.h" static NSMutableDictionary *editors; @implementation AppointmentEditor - (BOOL)canBeModified { id selectedStore = [[StoreManager globalManager] storeForName:[store titleOfSelectedItem]]; return [selectedStore enabled] && [selectedStore writable]; } - (id)init { HourFormatter *formatter; NSDateFormatter *dateFormatter; if (![NSBundle loadNibNamed:@"Appointment" owner:self]) { NSLog(@"Unable to load Appointment.gorm"); return nil; } self = [super init]; if (self) { formatter = AUTORELEASE([[HourFormatter alloc] init]); dateFormatter = AUTORELEASE([[NSDateFormatter alloc] initWithDateFormat:[[NSUserDefaults standardUserDefaults] objectForKey:NSShortDateFormatString] allowNaturalLanguage:NO]); [durationText setFormatter:formatter]; [timeText setFormatter:formatter]; [endDate setFormatter:dateFormatter]; [endDate setObjectValue:[NSDate date]]; } return self; } - (id)document { return nil; } - (id)initWithEvent:(Event *)event { StoreManager *sm = [StoreManager globalManager]; NSEnumerator *list = [sm storeEnumerator]; id aStore; id originalStore; self = [self init]; if (self) { ASSIGN(_event , event); ASSIGNCOPY(_modifiedAlarms, [event alarms]); [title setStringValue:[event summary]]; [duration setIntValue:[event duration] * 60]; [durationText setIntValue:[event duration] * 60]; [location setStringValue:[event location]]; [allDay setState:[event allDay]]; [time setIntValue:[[event startDate] minuteOfDay] * 60]; [timeText setIntValue:[[event startDate] minuteOfDay] * 60]; if (![event rrule]) [repeat selectItemAtIndex:0]; else [repeat selectItemAtIndex:[[event rrule] frequency] - 2]; [[description textStorage] deleteCharactersInRange:NSMakeRange(0, [[description textStorage] length])]; [[description textStorage] appendAttributedString:[event text]]; [window makeFirstResponder:title]; originalStore = [event store]; [store removeAllItems]; while ((aStore = [list nextObject])) { if ([aStore enabled] && ([aStore writable] || aStore == originalStore)) [store addItemWithTitle:[aStore description]]; } if ([event store]) [store selectItemWithTitle:[[event store] description]]; else [store selectItemWithTitle:[[sm defaultStore] description]]; startDate = [event startDate]; [until setEnabled:([event rrule] != nil)]; if ([event rrule] && [[event rrule] until]) { [until setState:YES]; [endDate setObjectValue:[[[event rrule] until] calendarDate]]; } else { [until setState:NO]; [endDate setObjectValue:nil]; } [endDate setEnabled:[until state]]; [ok setEnabled:[self canBeModified]]; [window makeKeyAndOrderFront:self]; } return self; } - (void)dealloc { RELEASE(_event); RELEASE(_modifiedAlarms); [super dealloc]; } + (void)initialize { editors = [[NSMutableDictionary alloc] initWithCapacity:2]; } + (AppointmentEditor *)editorForEvent:(Event *)event { AppointmentEditor *editor; if ((editor = [editors objectForKey:[event UID]])) { [editor->window makeKeyAndOrderFront:self]; return editor; } editor = [[AppointmentEditor alloc] initWithEvent:event]; [editors setObject:editor forKey:[event UID]]; return AUTORELEASE(editor); } - (void)validate:(id)sender { StoreManager *sm = [StoreManager globalManager]; id aStore; Date *date; [_event setSummary:[title stringValue]]; [_event setDuration:[duration intValue] / 60]; if (![repeat indexOfSelectedItem]) { [_event setRRule:nil]; } else { RecurrenceRule *rule; if ([until state] && [endDate objectValue]) rule = [[RecurrenceRule alloc] initWithFrequency:[repeat indexOfSelectedItem]+2 until:[Date dateWithCalendarDate:[endDate objectValue] withTime:NO]]; else rule = [[RecurrenceRule alloc] initWithFrequency:[repeat indexOfSelectedItem]+2]; [_event setRRule:AUTORELEASE(rule)]; } [_event setText:[description textStorage]]; [_event setLocation:[location stringValue]]; [_event setAllDay:[allDay state]]; if (![_event allDay]) { date = [[_event startDate] copy]; [date setIsDate:NO]; [date setMinute:[time intValue] / 60]; [_event setStartDate:date]; [date release]; } [_event setAlarms:_modifiedAlarms]; aStore = [sm storeForName:[store titleOfSelectedItem]]; [sm moveElement:_event toStore:aStore]; [window close]; [editors removeObjectForKey:[_event UID]]; /* After this point the panel instance is released */ } - (void)cancel:(id)sender { [window close]; [editors removeObjectForKey:[_event UID]]; } - (void)controlTextDidEndEditing:(NSNotification *)aNotification { id end = [endDate objectValue]; [ok setEnabled: ([self canBeModified] && (end != nil))]; } - (void)selectFrequency:(id)sender { int index = [repeat indexOfSelectedItem]; [until setEnabled:!!index]; if (!index) [until setState:NO]; [self toggleUntil:nil]; } - (void)toggleUntil:(id)sender { [endDate setEnabled:[until state]]; if ([until state]) { Date *futur = [startDate copy]; int selected = [repeat indexOfSelectedItem]; switch (selected) { case 1: case 2: /* Daily and weekly : 1 month by default */ [futur changeDayBy:[futur numberOfDaysInMonth]]; break; case 3: /* Monthly : 1 year */ [futur changeYearBy:1]; break; case 4: /* Yearly : 10 years */ [futur changeYearBy:10]; break; } [endDate setObjectValue:[futur calendarDate]]; [futur release]; } else [endDate setObjectValue:nil]; } - (void)toggleAllDay:(id)sender { if ([allDay state]) { [duration setEnabled:NO]; [duration setFloatValue:0]; [durationText setFloatValue:0]; [time setEnabled:NO]; [time setFloatValue:0]; [timeText setFloatValue:0]; } else { [duration setEnabled:YES]; [duration setFloatValue:1]; [durationText setFloatValue:1]; [time setEnabled:YES]; [time setFloatValue:[[ConfigManager globalConfig] integerForKey:FIRST_HOUR]]; [timeText setFloatValue:[[ConfigManager globalConfig] integerForKey:FIRST_HOUR]]; } } - (void)editAlarms:(id)sender { NSArray *alarms; alarms = [AlarmEditor editAlarms:_modifiedAlarms]; if (alarms) ASSIGN(_modifiedAlarms, alarms); [window makeKeyAndOrderFront:self]; } - (BOOL)textView:(NSTextView *)aTextView doCommandBySelector:(SEL)aSelector { if ([NSStringFromSelector(aSelector) isEqualToString:@"insertTab:"]) { [[description window] selectNextKeyView:self]; return YES; } return [description tryToPerform:aSelector with:aTextView]; } @end simpleagenda-0.44/AppointmentView.h000066400000000000000000000011211320461325300173660ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import "Event.h" #import "ConfigManager.h" @interface NSObject(AppointmentViewDelegate) - (void)viewEditEvent:(Event *)event; - (void)viewModifyEvent:(Event *)event; - (void)viewCreateEventFrom:(int)start to:(int)end; - (void)viewSelectEvent:(Event *)event; - (void)viewSelectDate:(Date *)date; @end @interface AppointmentView : NSView { Event *_apt; } - (NSImage *)repeatImage; - (NSImage *)alarmImage; - (id)initWithFrame:(NSRect)frameRect appointment:(Event *)apt; - (Event *)appointment; - (void)tooltipSetup; @end simpleagenda-0.44/AppointmentView.m000066400000000000000000000055261320461325300174100ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "AppointmentView.h" #import "StoreManager.h" #import "defines.h" static NSImage *_repeatImage; static NSImage *_alarmImage; static NSImage *_checkMark; @implementation AppointmentView + (void)initialize { _repeatImage = [NSImage imageNamed:@"repeat.tiff"]; _alarmImage = [NSImage imageNamed:@"small-bell.tiff"]; _checkMark = [NSImage imageNamed:@"NSMenuCheckmark"]; } - (NSImage *)repeatImage { return _repeatImage; } - (NSImage *)alarmImage { return _alarmImage; } - (id)initWithFrame:(NSRect)frameRect appointment:(Event *)apt { if ((self = [super initWithFrame:frameRect])) { ASSIGN(_apt, apt); [self tooltipSetup]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(configChanged:) name:SAConfigManagerValueChanged object:nil]; } return self; } - (void)dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; RELEASE(_apt); [super dealloc]; } - (Event *)appointment { return _apt; } - (BOOL)acceptsFirstResponder { return YES; } - (NSMenu *)menuForEvent:(NSEvent *)event { NSEnumerator *enm; MemoryStore *store; NSMenu *menu, *calendars; id item; int index = 0; if ([event type] != NSRightMouseDown) return nil; calendars = [[NSMenu alloc] initWithTitle:_(@"Calendars")]; [calendars setAutoenablesItems:NO]; enm = [[StoreManager globalManager] storeEnumerator]; while ((store = [enm nextObject])) { if ([store enabled] && [store writable]) { item = [calendars insertItemWithTitle:[store description] action:@selector(setStore:) keyEquivalent:nil atIndex:index++]; [item setTarget:self]; [item setRepresentedObject:store]; if (store == [_apt store]) { [item setImage:_checkMark]; [item setEnabled:NO]; } } } menu = [[NSMenu alloc] initWithTitle:_(@"Appointment")]; item = [menu insertItemWithTitle:_(@"Calendars") action:NULL keyEquivalent:nil atIndex:0]; [menu setSubmenu:calendars forItem:item]; [calendars autorelease]; return [menu autorelease]; } - (void)setStore:(id)sender { [[StoreManager globalManager] moveElement:_apt toStore:[sender representedObject]]; } - (void)changeSticky:(id)sender { [_apt setSticky:![_apt sticky]]; [[_apt store] update:_apt]; [self setNeedsDisplay:YES]; } - (void)tooltipSetup { NSAttributedString *as = [_apt text]; if ([[ConfigManager globalConfig] integerForKey:TOOLTIP] && as && [as length] > 0) [self setToolTip:[as string]]; else [self setToolTip:nil]; } - (void)configChanged:(NSNotification *)not { NSString *key = [[not userInfo] objectForKey:@"key"]; if ([key isEqualToString:TOOLTIP]) [self tooltipSetup]; else if ([key isEqualToString:ST_COLOR] || [key isEqualToString:ST_TEXT_COLOR]) [self setNeedsDisplay:YES]; } @end simpleagenda-0.44/COPYING000066400000000000000000000430761320461325300151360ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02111, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02111, USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. simpleagenda-0.44/CalendarView.h000066400000000000000000000020771320461325300166140ustar00rootroot00000000000000/* emacs objective-c mode -*- objc -*- */ #import 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; } - (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; @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 @interface NSObject(CalendarViewDataSource) - (CVCellStatus)calendarView:(CalendarView *)view cellStatusForDate:(Date *)date; @end simpleagenda-0.44/CalendarView.m000066400000000000000000000212551320461325300166200ustar00rootroot00000000000000#import #import "Date.h" #import "CalendarView.h" @interface DayFormatter : NSFormatter @end @implementation DayFormatter - (NSString *)stringForObjectValue:(id)anObject { NSAssert([anObject isKindOfClass:[Date class]], @"Needs a Date as input"); return [NSString stringWithFormat:@"%2d", [(Date *)anObject dayOfMonth]]; } - (BOOL)getObjectValue:(id *)anObject forString:(NSString *)string errorDescription:(NSString **)error { return NO; } - (NSAttributedString *)attributedStringForObjectValue:(id)anObject withDefaultAttributes:(NSDictionary *)attributes { return nil; } @end @implementation CalendarView static NSImage *_1left; static NSImage *_2left; static NSImage *_1right; static NSImage *_2right; + (void)initialize { _1left = [NSImage imageNamed:@"1left.tiff"]; _2left = [NSImage imageNamed:@"2left.tiff"]; _1right = [NSImage imageNamed:@"1right.tiff"]; _2right = [NSImage imageNamed:@"2right.tiff"]; } - (void)dealloc { [_dayTimer invalidate]; RELEASE(date); RELEASE(monthDisplayed); RELEASE(_dayTimer); RELEASE(delegate); RELEASE(_dataSource); RELEASE(boldFont); RELEASE(normalFont); RELEASE(title); RELEASE(matrix); RELEASE(obl); RELEASE(tbl); RELEASE(obr); RELEASE(tbr); [super dealloc]; } - (id)initWithFrame:(NSRect)frame { int i; int j; int tag; Date *now; DayFormatter *formatter; self = [super initWithFrame:frame]; if (self) { NSArray *days = [[NSUserDefaults standardUserDefaults] objectForKey:NSShortWeekDayNameArray]; boldFont = RETAIN([NSFont boldSystemFontOfSize:11]); normalFont = RETAIN([NSFont systemFontOfSize:11]); title = [[NSTextField alloc] initWithFrame: NSMakeRect(32, 125, 168, 20)]; [title setEditable:NO]; [title setDrawsBackground:NO]; [title setBezeled:NO]; [title setBordered:NO]; [title setSelectable:NO]; [title setFont:normalFont]; [title setAlignment: NSCenterTextAlignment]; [self addSubview: title]; tbl = [[NSButton alloc] initWithFrame:NSMakeRect(9, 128, 12, 20)]; [tbl setImage:_2left]; [tbl setBordered:NO]; [tbl setTarget:self]; [tbl setAction:@selector(previousYear:)]; [self addSubview:tbl]; obl = [[NSButton alloc] initWithFrame:NSMakeRect(22, 128, 12, 20)]; [obl setImage:_1left]; [obl setBordered:NO]; [obl setTarget:self]; [obl setAction:@selector(previousMonth:)]; [self addSubview:obl]; obr = [[NSButton alloc] initWithFrame:NSMakeRect(201, 128, 12, 20)]; [obr setButtonType:NSMomentaryPushInButton]; [obr setImage:_1right]; [obr setBordered:NO]; [obr setTarget:self]; [obr setAction:@selector(nextMonth:)]; [self addSubview:obr]; tbr = [[NSButton alloc] initWithFrame:NSMakeRect(214, 128, 12, 20)]; [tbr setImage:_2right]; [tbr setBordered:NO]; [tbr setTarget:self]; [tbr setAction:@selector(nextYear:)]; [self addSubview:tbr]; NSTextFieldCell *cell = [NSTextFieldCell new]; [cell setEditable: NO]; [cell setSelectable: NO]; [cell setAlignment: NSRightTextAlignment]; [cell setFont:normalFont]; matrix = [[NSMatrix alloc] initWithFrame: NSMakeRect(9, 6, 220, 128) mode: NSListModeMatrix prototype: cell numberOfRows: 7 numberOfColumns: 8]; [matrix setIntercellSpacing: NSZeroSize]; [matrix setDelegate:self]; [matrix setAction: @selector(selectDay:)]; [matrix setDoubleAction: @selector(doubleClick:)]; NSColor *orange = [NSColor orangeColor]; NSColor *white = [NSColor whiteColor]; for (i = 0; i < 8; i++) { cell = [matrix cellAtRow: 0 column: i]; [cell setBackgroundColor: orange]; [cell setTextColor: white]; [cell setDrawsBackground: YES]; if (i < 7 && i > 0) [cell setStringValue: [[days objectAtIndex: i] substringToIndex:1]]; else if (i == 7) [cell setStringValue: [[days objectAtIndex: 0] substringToIndex:1]]; } for (i = 0; i < 7; i++) { cell = [matrix cellAtRow: i column: 0]; [cell setBackgroundColor: orange]; [cell setTextColor: white]; [cell setDrawsBackground: YES]; } formatter = [DayFormatter new]; for (i = 1, tag = 1; i < 8; i++) { for (j = 1; j < 7; j++) { [[matrix cellAtRow: j column: i] setFormatter:formatter]; [[matrix cellAtRow: j column: i] setTag:tag++]; } } [formatter release]; [self addSubview: matrix]; now = [Date today]; [self setDate:now]; [now incrementDay]; _dayTimer = [[NSTimer alloc] initWithFireDate:[now calendarDate] interval:86400 target:self selector:@selector(dayChanged:) userInfo:nil repeats:YES]; [[NSRunLoop currentRunLoop] addTimer:_dayTimer forMode:NSDefaultRunLoopMode]; } return self; } - (void)updateTitle { [title setStringValue:[self dateAsString]]; } - (void)clearSelectedDay { [[matrix cellWithTag:bezeledCell] setBezeled:NO]; } - (void)setSelectedDay { NSCell *cell; int i, j; id object; for (i = 1; i < 8; i++) { for (j = 1; j < 7; j++) { cell = [matrix cellAtRow:j column:i]; object = [cell objectValue]; if (object != nil && ![date compare:object withTime:NO]) { bezeledCell = [cell tag]; [cell setBezeled:YES]; [self updateTitle]; return; } } } } - (void)updateView { int row, column, week; Date *day, *today; NSTextFieldCell *cell; NSColor *clear = [NSColor clearColor]; NSColor *white = [NSColor whiteColor]; NSColor *black = [NSColor blackColor]; [self clearSelectedDay]; today = [Date today]; day = [monthDisplayed copy]; [day setDay: 1]; column = [day weekday]; [day changeDayBy:1-column]; for (row = 1; row < 7; row++) { week = [day weekOfYear]; [[matrix cellAtRow:row column:0] setStringValue:[NSString stringWithFormat:@"%d ", week]]; for (column = 1; column < 8; column++, [day incrementDay]) { cell = [matrix cellAtRow: row column: column]; if ([day compare:today withTime:NO] == 0) { [cell setBackgroundColor:[NSColor yellowColor]]; [cell setDrawsBackground:YES]; } else { [cell setBackgroundColor:clear]; [cell setDrawsBackground:NO]; } [cell setObjectValue:AUTORELEASE([day copy])]; if (_dataSource && [_dataSource respondsToSelector:@selector(calendarView:cellStatusForDate:)] && [_dataSource calendarView:self cellStatusForDate:day] & CVHasDataCell) [cell setFont:boldFont]; else [cell setFont: normalFont]; if ([day monthOfYear] == [monthDisplayed monthOfYear]) [cell setTextColor:black]; else [cell setTextColor:white]; } } [self setSelectedDay]; [day release]; } - (void)dayChanged:(NSTimer *)timer { [self updateView]; if ([delegate respondsToSelector:@selector(calendarView:currentDateChanged:)]) [delegate calendarView:self currentDateChanged:[Date today]]; } - (void)previousYear:(id)sender { Date *cdate = AUTORELEASE([date copy]); [cdate setYear:[cdate year]-1]; [self setDate:cdate]; } - (void)previousMonth:(id)sender { Date *cdate = AUTORELEASE([monthDisplayed copy]); [cdate setMonth:[cdate monthOfYear]-1]; [self setDate:cdate]; } - (void)nextMonth:(id)sender { Date *cdate = AUTORELEASE([monthDisplayed copy]); [cdate setMonth:[cdate monthOfYear]+1]; [self setDate:cdate]; } - (void)nextYear:(id)sender { Date *cdate = AUTORELEASE([date copy]); [cdate setYear:[cdate year]+1]; [self setDate:cdate]; } - (void)selectDay:(id)sender { id day = [[matrix selectedCell] objectValue]; if ([day isKindOfClass:[Date class]]) { [self clearSelectedDay]; ASSIGNCOPY(date, day); [self setSelectedDay]; if ([delegate respondsToSelector:@selector(calendarView:selectedDateChanged:)]) [delegate calendarView:self selectedDateChanged:date]; } } - (void)doubleClick:(id)sender { if ([[matrix selectedCell] tag] > 0 && [delegate respondsToSelector:@selector(calendarView:userActionForDate:)]) [delegate calendarView:self userActionForDate:date]; } - (void)setDelegate:(id)aDelegate { ASSIGN(delegate, aDelegate); } - (id)delegate { return delegate; } - (id)dataSource { return _dataSource; } - (void)setDataSource:(id)dataSource { ASSIGN(_dataSource, dataSource); [self updateView]; } - (void)reloadData { [self updateView]; } - (void)setDate:(Date *)nDate { NSAssert([nDate isDate], @"Calender expects a date"); ASSIGNCOPY(date, nDate); ASSIGNCOPY(monthDisplayed, nDate); [self updateView]; if ([delegate respondsToSelector:@selector(calendarView:selectedDateChanged:)]) [delegate calendarView:self selectedDateChanged:date]; } - (Date *)date { return date; } - (NSString *)dateAsString { return [[date calendarDate] descriptionWithCalendarFormat:[[NSUserDefaults standardUserDefaults] objectForKey:NSDateFormatString]]; } @end simpleagenda-0.44/ConfigManager.h000066400000000000000000000013061320461325300167420ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import @class ConfigManager; @class NSColor; extern NSString * const SAConfigManagerValueChanged; @interface ConfigManager : NSObject { NSString *_key; NSMutableDictionary *_defaults; } + (ConfigManager *)globalConfig; - (id)initForKey:(NSString *)key; - (void)registerDefaults:(NSDictionary *)defaults; - (id)objectForKey:(NSString *)key; - (void)removeObjectForKey:(NSString *)key; - (void)setObject:(id)value forKey:(NSString *)key; - (int)integerForKey:(NSString *)key; - (void)setInteger:(int)value forKey:(NSString *)key; - (NSColor *)colorForKey:(NSString *)key; - (void)setColor:(NSColor *)value forKey:(NSString *)key; @end simpleagenda-0.44/ConfigManager.m000066400000000000000000000053341320461325300167540ustar00rootroot00000000000000#import #import "NSColor+SimpleAgenda.h" #import "ConfigManager.h" NSString * const SAConfigManagerValueChanged = @"SAConfigManagerValueChanged"; static ConfigManager *singleton; static NSUserDefaults *appDefaults; @implementation ConfigManager + (void)initialize { if ([ConfigManager class] == self) { singleton = [ConfigManager new]; appDefaults = [NSUserDefaults standardUserDefaults]; } } + (ConfigManager *)globalConfig { return singleton; } - (id)init { if ((self = [super init])) _defaults = [NSMutableDictionary new]; return self; } - (id)initForKey:(NSString *)key { if ((self = [self init])) ASSIGNCOPY(_key, key); return self; } - (void)dealloc { DESTROY(_defaults); DESTROY(_key); [super dealloc]; } - (void)registerDefaults:(NSDictionary *)defaults { [_defaults addEntriesFromDictionary:defaults]; } - (id)objectForKey:(NSString *)key { id value = _key ? [[appDefaults dictionaryForKey:_key] objectForKey:key] : [appDefaults objectForKey:key]; return value ? value : [_defaults objectForKey:key]; } - (void)removeObjectForKey:(NSString *)key { NSMutableDictionary *mdict; if (_key) { mdict = [NSMutableDictionary dictionaryWithDictionary:[appDefaults objectForKey:_key]]; [mdict removeObjectForKey:key]; [appDefaults setObject:mdict forKey:_key]; [[NSNotificationCenter defaultCenter] postNotificationName:SAConfigManagerValueChanged object:self userInfo:[NSDictionary dictionaryWithObject:_key forKey:@"key"]]; } else [appDefaults removeObjectForKey:key]; [appDefaults synchronize]; } - (void)setObject:(id)value forKey:(NSString *)key { NSMutableDictionary *mdict; if (_key) { mdict = [NSMutableDictionary dictionaryWithDictionary:[appDefaults objectForKey:_key]]; [mdict setObject:value forKey:key]; [appDefaults setObject:mdict forKey:_key]; } else [appDefaults setObject:value forKey:key]; [[NSNotificationCenter defaultCenter] postNotificationName:SAConfigManagerValueChanged object:self userInfo:[NSDictionary dictionaryWithObject:key forKey:@"key"]]; [appDefaults synchronize]; } - (int)integerForKey:(NSString *)key { id object = [self objectForKey:key]; if (object != nil) return [object intValue]; return 0; } - (void)setInteger:(int)value forKey:(NSString *)key { [self setObject:[NSNumber numberWithInt:value] forKey:key]; } - (NSColor *)colorForKey:(NSString *)key { id obj = [self objectForKey:key]; if ([obj isKindOfClass:[NSData class]]) return [NSUnarchiver unarchiveObjectWithData:obj]; return [NSColor colorFromString:obj]; } - (void)setColor:(NSColor *)value forKey:(NSString *)key { [self setObject:[value description] forKey:key]; } @end simpleagenda-0.44/DBusBackend.m000066400000000000000000000050471320461325300163620ustar00rootroot00000000000000#import #import #import "AlarmBackend.h" #import "Alarm.h" #import "Element.h" @protocol Notifications - (NSArray *)GetCapabilities; - (NSNumber *)Notify:(NSString *)appname :(uint)replaceid :(NSString *)appicon :(NSString *)summary :(NSString *)body :(NSArray *)actions :(NSDictionary *)hints :(int)expires; @end @interface DBusBackend : AlarmBackend @end static NSString * const DBUS_BUS = @"org.freedesktop.Notifications"; static NSString * const DBUS_PATH = @"/org/freedesktop/Notifications"; @implementation DBusBackend + (NSString *)backendName { return @"DBus desktop notification"; } - (enum icalproperty_action)backendType { return ICAL_ACTION_DISPLAY; } - (id)init { NSConnection *c; id remote; NSArray *caps; self = [super init]; if (self) { NS_DURING { c = [NSConnection connectionWithReceivePort:[DKPort port] sendPort:AUTORELEASE([[DKPort alloc] initWithRemote:DBUS_BUS])]; if (!c) { NSLog(@"Unable to create a connection to %@", DBUS_BUS); DESTROY(self); } remote = (id )[c proxyAtPath:DBUS_PATH]; if (!remote) { NSLog(@"Unable to create a proxy for %@", DBUS_PATH); DESTROY(self); } caps = [remote GetCapabilities]; if (!caps) { NSLog(@"No response to GetCapabilities method"); DESTROY(self); } [c invalidate]; } NS_HANDLER { NSLog([localException description]); NSLog(@"Exception during DBus backend setup, backend disabled"); DESTROY(self); } NS_ENDHANDLER } return self; } - (void)display:(Alarm *)alarm { NSConnection *c; id remote; Element *el = [alarm element]; NSString *desc; c = [NSConnection connectionWithReceivePort:[DKPort port] sendPort:[[DKPort alloc] initWithRemote:DBUS_BUS]]; remote = (id )[c proxyAtPath:DBUS_PATH]; if ([el text]) desc = [NSString stringWithFormat:@"%@\n\n%@ : %@", [[[el nextActivationDate] calendarDate] descriptionWithCalendarFormat:[[NSUserDefaults standardUserDefaults] objectForKey:NSShortTimeDateFormatString]], [el summary], [[el text] string]]; else desc = [NSString stringWithFormat:@"%@\n\n%@", [[[el nextActivationDate] calendarDate] descriptionWithCalendarFormat:[[NSUserDefaults standardUserDefaults] objectForKey:NSShortTimeDateFormatString]], [el summary]]; [remote Notify:@"SimpleAgenda" :0 :@"" :_(@"SimpleAgenda Reminder !") :desc :[NSArray array] :[NSDictionary dictionary] :-1]; [c invalidate]; } @end simpleagenda-0.44/DataTree.h000066400000000000000000000011301320461325300157260ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import @interface DataTree : NSObject { NSMutableArray *_children; NSMutableDictionary *_attributes; } + (id)dataTreeWithAttributes:(NSDictionary *)attributes; - (void)setChildren:(NSArray *)children; - (void)addChild:(id)child; - (void)removeChildren; - (NSArray *)children; - (void)setAttributes:(NSDictionary *)attributes; - (void)setValue:(id)value forKey:(NSString *)key; - (id)valueForKey:(NSString *)key; - (void)sortChildrenUsingFunction:(NSComparisonResult (*)(id, id, void *))compare context:(void *)context; @end simpleagenda-0.44/DataTree.m000066400000000000000000000023401320461325300157370ustar00rootroot00000000000000#import "DataTree.h" @implementation DataTree - (id)init { if ((self = [super init])) { _children = [NSMutableArray new]; _attributes = [NSMutableDictionary new]; } return self; } - (void)dealloc { [_attributes release]; [_children release]; [super dealloc]; } - (id)initWithAttributes:(NSDictionary *)attributes { if ((self = [self init])) [self setAttributes:attributes]; return self; } + (id)dataTreeWithAttributes:(NSDictionary *)attributes { return [[[DataTree alloc] initWithAttributes:attributes] autorelease]; } - (void)setChildren:(NSArray *)children { [_children setArray:children]; } - (void)addChild:(id)child { [_children addObject:child]; } - (void)removeChildren { [_children removeAllObjects]; } - (NSArray *)children { return _children; } - (void)setAttributes:(NSDictionary *)attributes { [_attributes setDictionary:attributes]; } - (void)setValue:(id)value forKey:(NSString *)key { [_attributes setValue:value forKey:key]; } - (id)valueForKey:(NSString *)key { return [_attributes valueForKey:key]; } - (void)sortChildrenUsingFunction:(NSComparisonResult (*)(id, id, void *))compare context:(void *)context { [_children sortUsingFunction:compare context:context]; } @end simpleagenda-0.44/Date.h000066400000000000000000000025071320461325300151230ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "config.h" #import @interface Date : NSObject { struct icaltimetype _time; } + (id)now; + (id)today; + (id)dateWithTimeInterval:(NSTimeInterval)seconds sinceDate:(Date *)refDate; + (id)dateWithCalendarDate:(NSCalendarDate *)cd withTime:(BOOL)time; + (id)dayWithDate:(Date *)date; - (NSCalendarDate *)calendarDate; - (NSComparisonResult)compare:(id)aTime withTime:(BOOL)time; - (int)year; - (int)monthOfYear; - (int)hourOfDay; - (int)secondOfMinute; - (int)minuteOfHour; - (int)minuteOfDay; - (int)dayOfMonth; - (int)weekday; - (int)weekOfYear; - (int)numberOfDaysInMonth; - (void)setSecondOfMinute:(int)second; - (void)setMinute:(int)minute; - (void)setDay:(int)day; - (void)setMonth:(int)month; - (void)setYear:(int)year; - (void)incrementDay; - (void)changeYearBy:(int)diff; - (void)changeDayBy:(int)diff; - (void)changeMinuteBy:(int)diff; - (NSEnumerator *)enumeratorTo:(Date *)end; - (BOOL)isDate; - (void)setIsDate:(BOOL)date; - (NSTimeInterval)timeIntervalSince1970; - (NSTimeInterval)timeIntervalSinceDate:(Date *)anotherDate; - (NSTimeInterval)timeIntervalSinceNow; - (BOOL)belongsToDay:(Date *)day; @end @interface Date(iCalendar) - (id)initWithICalTime:(struct icaltimetype)time; - (struct icaltimetype)UTCICalTime; - (struct icaltimetype)localICalTime; @end simpleagenda-0.44/Date.m000066400000000000000000000165751320461325300151420ustar00rootroot00000000000000#import "Date.h" @interface NSDateEnumerator : NSEnumerator { Date *_start; Date *_end; } - (id)initWithStart:(Date *)start end:(Date *)end; @end @implementation NSDateEnumerator - (id)initWithStart:(Date *)start end:(Date *)end { self = [super init]; if (self != nil) { _start = [start copy]; _end = [end copy]; [_start setIsDate:YES]; [_end setIsDate:YES]; [_start changeDayBy:-1]; } return self; } - (id)nextObject { [_start incrementDay]; if ([_end timeIntervalSinceDate:_start] < 0) return nil; return _start; } - (void)dealloc { [_start release]; [_end release]; [super dealloc]; } @end @implementation Date(NSCoding) - (void)encodeWithCoder:(NSCoder *)coder { [coder encodeObject:[NSString stringWithCString:icaltime_as_ical_string(_time)] forKey:@"icalTime"]; } - (id)initWithCoder:(NSCoder *)coder { _time = icaltime_from_string([[coder decodeObjectForKey:@"icalTime"] cString]); return self; } @end /* * Based on ChronographerSource Appointment class */ @implementation Date static icaltimezone *gl_tz = NULL; static icaltimezone *gl_utc = NULL; static NSTimeZone *gl_nstz = nil; + (void)initialize { const char *tzone; if (!gl_tz) { gl_nstz = RETAIN([[NSCalendarDate calendarDate] timeZone]); tzone = [[gl_nstz description] cString]; gl_utc = icaltimezone_get_utc_timezone(); gl_tz = icaltimezone_get_builtin_timezone(tzone); if (!gl_tz) NSLog(@"Couldn't get a timezone corresponding to %s", tzone); } } - (id)copyWithZone:(NSZone *)zone { Date *new = [Date allocWithZone:zone]; new->_time = _time; return new; } /* * This method shouldn't be used as it's not * clear if it should compare Dates or DateTimes */ - (NSComparisonResult)compare:(id)aDate { [self notImplemented:_cmd]; return NSOrderedSame; } - (BOOL)isEqual:(id)aDate { return icaltime_as_timet(_time) == icaltime_as_timet(((Date *)aDate)->_time); } - (NSUInteger)hash { return icaltime_as_timet(_time); } /* * This is a bit convoluted because icaltime_compare * creates two dates in utc timezone to do the comparison. * The conversion to utc means a datetime will be modified * (up or down, depending on the local time zone) and a * date won't. */ - (NSComparisonResult)compare:(id)aDate withTime:(BOOL)time { if (!time) return icaltime_compare_date_only(_time, ((Date *)aDate)->_time); NSComparisonResult res; int a_isdate = _time.is_date; int b_isdate = ((Date *)aDate)->_time.is_date; _time.is_date = 0; ((Date *)aDate)->_time.is_date = 0; res = icaltime_compare(_time, ((Date *)aDate)->_time); _time.is_date = a_isdate; ((Date *)aDate)->_time.is_date = b_isdate; return res; } - (NSString *)description { return [NSString stringWithCString:icaltime_as_ical_string(_time)]; } - (id)init { self = [super init]; if (self) { _time = icaltime_current_time_with_zone(gl_tz); _time = icaltime_set_timezone(&_time, gl_tz); } return self; } + (id)now { return AUTORELEASE([[Date alloc] init]); } + (id)today { Date *d = [[Date alloc] init]; [d setIsDate:YES]; return AUTORELEASE(d); } + (id)dateWithTimeInterval:(NSTimeInterval)seconds sinceDate:(Date *)refDate { Date *d = [[Date alloc] init]; d->_time = refDate->_time; /* To be able to add hours and minutes, it has to be a datetime */ d-> _time.is_date = 0; d->_time = icaltime_add(d->_time, icaldurationtype_from_int(seconds)); if (!d->_time.hour && !d->_time.minute && !d->_time.second) d->_time.is_date = 1; else d->_time.is_date = 0; return AUTORELEASE(d); } + (id)dateWithCalendarDate:(NSCalendarDate *)cd withTime:(BOOL)time { Date *d = [[Date alloc] init]; d->_time.is_date = !time; d->_time.year = [cd yearOfCommonEra]; d->_time.month = [cd monthOfYear]; d->_time.day = [cd dayOfMonth]; if (time) { d->_time.hour = [cd hourOfDay]; d->_time.minute = [cd minuteOfHour]; d->_time.second = [cd secondOfMinute]; } else { d->_time.hour = 0; d->_time.minute = 0; d->_time.second = 0; } return AUTORELEASE(d); } + (id)dayWithDate:(Date *)date { Date *d = [date copy]; [d setIsDate:YES]; return AUTORELEASE(d); } - (NSCalendarDate *)calendarDate { return [NSCalendarDate dateWithYear:_time.year month:_time.month day:_time.day hour:_time.hour minute:_time.minute second:_time.second timeZone:gl_nstz]; } - (int)year { return _time.year; } - (int)monthOfYear { return _time.month; } - (int)hourOfDay { return _time.hour; } - (int)secondOfMinute { return _time.second; } - (int)minuteOfHour { return _time.minute; } - (int)minuteOfDay { return _time.hour * 60 + _time.minute; } - (int)dayOfMonth { return _time.day; } /* * 1 : Monday * ... * 7 : Sunday */ - (int)weekday { int dow = icaltime_day_of_week(_time) - 1; return dow ? dow : 7; } - (int)weekOfYear { char week[3]; time_t tmt = icaltime_as_timet(_time); struct tm *tm = gmtime(&tmt); strftime(week, sizeof(week), "%V", tm); return atoi(week); } - (int)numberOfDaysInMonth { return icaltime_days_in_month(_time.month, _time.year); } - (void)setSecondOfMinute:(int)second { NSAssert(!_time.is_date, @"Works only with datetimes"); _time.second = second; _time = icaltime_normalize(_time); } - (void)setMinute:(int)minute { NSAssert(!_time.is_date, @"Works only with datetimes"); struct icaldurationtype dt = {0, 0, 0, 0, minute - [self minuteOfDay], 0}; _time = icaltime_add(_time, dt); } - (void)setDay:(int)day { _time.day = day; _time = icaltime_normalize(_time); } - (void)setMonth:(int)month { _time.month = month; _time = icaltime_normalize(_time); } - (void)setYear:(int)year { _time.year = year; } - (void)incrementDay { struct icaldurationtype dt = {0, 1, 0, 0, 0, 0}; _time = icaltime_add(_time, dt); } - (void)changeYearBy:(int)diff { _time.year += diff; } - (void)changeDayBy:(int)diff { struct icaldurationtype dt = {diff < 0, ABS(diff), 0, 0, 0, 0}; _time = icaltime_add(_time, dt); } - (void)changeMinuteBy:(int)diff { struct icaldurationtype dt = {diff < 0, 0, 0, 0, ABS(diff), 0}; _time = icaltime_add(_time, dt); } - (NSEnumerator *)enumeratorTo:(Date *)end { id e; e = [NSDateEnumerator allocWithZone:NSDefaultMallocZone()]; e = [e initWithStart:self end:end]; return AUTORELEASE(e); } - (BOOL)isDate { return _time.is_date; } - (void)setIsDate:(BOOL)date { _time.is_date = date; if (date) { _time.hour = 0; _time.minute = 0; _time.second = 0; } } - (NSTimeInterval)timeIntervalSince1970 { return icaltime_as_timet(_time); } - (NSTimeInterval)timeIntervalSinceDate:(Date *)anotherDate { return icaldurationtype_as_int(icaltime_subtract(_time, anotherDate->_time)); } - (NSTimeInterval)timeIntervalSinceNow { return [self timeIntervalSinceDate:[Date now]]; } - (BOOL)belongsToDay:(Date *)day { NSAssert([day isDate], @"This method expects a date, not a datetime"); return _time.year == day->_time.year && _time.month == day->_time.month && _time.day == day->_time.day; } @end /* * Dates are stored in the local timezone in memory * and in utc in iCalTree. These methods do the * necessary conversions */ @implementation Date(iCalendar) - (id)initWithICalTime:(struct icaltimetype)time { self = [super init]; if (self) _time = icaltime_convert_to_zone(time, gl_tz); return self; } - (struct icaltimetype)UTCICalTime { return icaltime_convert_to_zone(_time, gl_utc); } - (struct icaltimetype)localICalTime { return _time; } @end simpleagenda-0.44/DateRange.h000066400000000000000000000010501320461325300160700ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import "Date.h" @interface DateRange : NSObject { Date *_start; NSTimeInterval _length; } - (id)initWithStart:(Date *)date duration:(NSTimeInterval)seconds; - (id)initWithDay:(Date *)day; - (void)setStart:(Date *)start; - (void)setLength:(NSTimeInterval)seconds; - (Date *)start; - (NSTimeInterval)length; - (BOOL)contains:(Date *)date; - (BOOL)intersectsWith:(DateRange *)range; - (BOOL)intersectsWithDay:(Date *)day; - (NSRange)intersectionWithDay:(Date *)day; @end simpleagenda-0.44/DateRange.m000066400000000000000000000042521320461325300161040ustar00rootroot00000000000000#import #import "DateRange.h" @implementation DateRange - (id)initWithStart:(Date *)date duration:(NSTimeInterval)seconds { self = [super init]; if (self) { _length = seconds; _start = [date retain]; } return self; } - (id)initWithDay:(Date *)day { NSAssert([day isDate], @"This method expects a date, not a datetime"); return [self initWithStart:day duration:86400]; } - (void)dealloc { [_start release]; [super dealloc]; } - (Date *)start { return _start; } - (void)setStart:(Date *)start { ASSIGN(_start, start); } - (NSTimeInterval)length { return _length; } - (void)setLength:(NSTimeInterval)length { _length = length; } - (BOOL)contains:(Date *)date { if ([_start compare:date withTime:YES] > 0) return NO; if ([date timeIntervalSinceDate:_start] > _length) return NO; return YES; } - (BOOL)intersectsWith:(DateRange *)range { NSTimeInterval s1 = [_start timeIntervalSince1970]; NSTimeInterval e1 = s1 + _length; NSTimeInterval s2 = [[range start] timeIntervalSince1970]; NSTimeInterval e2 = s2 + [range length]; NSTimeInterval s = MAX(s1, s2); NSTimeInterval e = MIN(e1, e2); if (e <= s) return NO; return YES; } - (BOOL)intersectsWithDay:(Date *)day { NSAssert([day isDate], @"This method expects a date, not a datetime"); NSTimeInterval s1 = [_start timeIntervalSince1970]; NSTimeInterval e1 = s1 + _length; NSTimeInterval s2 = [day timeIntervalSince1970]; NSTimeInterval e2 = s2 + 86400; NSTimeInterval s = MAX(s1, s2); NSTimeInterval e = MIN(e1, e2); if (e <= s) return NO; return YES; } - (NSRange)intersectionWithDay:(Date *)day { NSAssert([day isDate], @"This method expects a date, not a datetime"); NSTimeInterval s1 = [_start timeIntervalSince1970]; NSTimeInterval e1 = s1 + _length; NSTimeInterval s2 = [day timeIntervalSince1970]; NSTimeInterval e2 = s2 + 86400; NSTimeInterval s = MAX(s1, s2); NSTimeInterval e = MIN(e1, e2); if (e <= s) return NSMakeRange(0, 0); return NSMakeRange(s - s2, e - s); } - (NSString *)description { return [NSString stringWithFormat:@"DateRange starting %@ for %d seconds", [_start description], (int)_length]; } @end simpleagenda-0.44/DayView.h000066400000000000000000000012121320461325300156060ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import "ConfigManager.h" #import "Event.h" #import "StoreManager.h" #import "AppointmentView.h" #import "Date.h" @interface DayView : NSView { IBOutlet id delegate; int _firstH; int _lastH; int _minStep; NSPoint _startPt; NSPoint _endPt; NSDictionary *_textAttributes; AppointmentView *_selected; NSColor *_backgroundColor; NSColor *_alternateBackgroundColor; Date *_date; } - (void)selectAppointmentView:(AppointmentView *)aptv; - (id)delegate; - (void)reloadData; - (int)firstHour; - (int)lastHour; - (int)minimumStep; - (void)setDate:(Date *)date; @end simpleagenda-0.44/DayView.m000066400000000000000000000410221320461325300156160ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import "AgendaStore.h" #import "DayView.h" #import "ConfigManager.h" #import "iCalTree.h" #import "AppointmentView.h" #import "SelectionManager.h" #import "NSColor+SimpleAgenda.h" #import "defines.h" #define RedimRect(frame) NSMakeRect(frame.origin.x, frame.origin.y, frame.size.width, 10) #define TextRect(rect) NSMakeRect(rect.origin.x + 4, rect.origin.y, rect.size.width - 8, rect.size.height - 2) @interface DayView(Private) - (NSRect)frameForAppointment:(Event *)apt; - (int)minuteToPosition:(int)minutes; - (int)positionToMinute:(float)position; - (int)roundMinutes:(int)minutes; - (int)distanceToDuration:(int)distance; @end @interface AppDayView : AppointmentView { } @end @implementation AppDayView #define CEC_BORDERSIZE 1 #define RADIUS 5 - (void)drawRect:(NSRect)rect { NSPoint point; NSString *title; NSString *label; Date *start = [_apt startDate]; NSColor *color = [[_apt store] eventColor]; NSColor *darkColor = [color colorModifiedWithDeltaRed:-0.3 green:-0.3 blue:-0.3 alpha:-0.3]; NSDictionary *textAttributes = [NSDictionary dictionaryWithObject:[[_apt store] textColor] forKey:NSForegroundColorAttributeName]; if ([_apt allDay]) title = [NSString stringWithFormat:_(@"All day : %@"), [_apt summary]]; else title = [NSString stringWithFormat:@"%2dh%0.2d : %@", [start hourOfDay], [start minuteOfHour], [_apt summary]]; if ([_apt text]) label = [NSString stringWithFormat:@"%@\n\n%@", title, [[_apt text] string]]; else label = [NSString stringWithString:title]; PSnewpath(); PSmoveto(RADIUS + CEC_BORDERSIZE, CEC_BORDERSIZE); PSrcurveto(-RADIUS, 0, -RADIUS, RADIUS, -RADIUS, RADIUS); PSrlineto(0, NSHeight(rect) + rect.origin.y - 2 * (RADIUS + CEC_BORDERSIZE)); PSrcurveto( 0, RADIUS, RADIUS, RADIUS, RADIUS, RADIUS); PSrlineto(NSWidth(rect) - 2 * (RADIUS + CEC_BORDERSIZE),0); PSrcurveto( RADIUS, 0, RADIUS, -RADIUS, RADIUS, -RADIUS); PSrlineto(0, -NSHeight(rect) - rect.origin.y + 2 * (RADIUS + CEC_BORDERSIZE)); PSrcurveto(0, -RADIUS, -RADIUS, -RADIUS, -RADIUS, -RADIUS); PSclosepath(); PSgsave(); [color set]; PSsetalpha(0.7); PSfill(); PSgrestore(); if ([[[SelectionManager globalManager] selection] containsObject:_apt]) [[NSColor whiteColor] set]; else [darkColor set]; PSsetalpha(0.7); PSsetlinewidth(CEC_BORDERSIZE); PSstroke(); if (![_apt allDay] && ![_apt sticky]) { NSRect rd = RedimRect(rect); PSnewpath(); PSmoveto(RADIUS + CEC_BORDERSIZE, rd.origin.y); PSrcurveto( -RADIUS, 0, -RADIUS, RADIUS, -RADIUS, RADIUS); PSrlineto(0,NSHeight(rd) - 2 * (RADIUS + CEC_BORDERSIZE)); PSrcurveto( 0, RADIUS, RADIUS, RADIUS, RADIUS, RADIUS); PSrlineto(NSWidth(rd) - 2 * (RADIUS + CEC_BORDERSIZE),0); PSrcurveto( RADIUS, 0, RADIUS, -RADIUS, RADIUS, -RADIUS); PSrlineto(0, -NSHeight(rd) + 2 * (RADIUS + CEC_BORDERSIZE)); PSrcurveto( 0, -RADIUS, -RADIUS, -RADIUS, -RADIUS, -RADIUS); PSclosepath(); [darkColor set]; PSsetalpha(0.7); PSfill(); } [label drawInRect:TextRect(rect) withAttributes:textAttributes]; point = NSMakePoint(rect.size.width - 18, rect.size.height - 16); if ([_apt rrule]) { [[self repeatImage] compositeToPoint:NSMakePoint(rect.size.width - 18, rect.size.height - 18) operation:NSCompositeSourceOver]; point = NSMakePoint(rect.size.width - 30, rect.size.height - 16); } if ([_apt hasAlarms]) [[self alarmImage] compositeToPoint:point operation:NSCompositeSourceOver]; } - (void)mouseDown:(NSEvent *)theEvent { DayView *parent = (DayView *)[self superview]; id delegate = [parent delegate]; NSPoint mouseLoc = [self convertPoint:[theEvent locationInWindow] fromView:nil]; int minutes; BOOL keepOn = YES; BOOL modified = NO; BOOL inResize; if ([theEvent clickCount] > 1) { if ([delegate respondsToSelector:@selector(viewEditEvent:)]) [delegate viewEditEvent:_apt]; return; } [self becomeFirstResponder]; [parent selectAppointmentView:self]; if (![[_apt store] writable] || [_apt allDay] || [_apt sticky]) return; inResize = [self mouse:mouseLoc inRect:RedimRect([self bounds])]; if (inResize) { int startduration = [_apt duration]; int starty = [self convertPoint:[theEvent locationInWindow] fromView:self].y; int minStep = [parent minimumStep]; int diffduration; int newy; [[NSCursor resizeUpDownCursor] push]; while (keepOn) { theEvent = [[self window] nextEventMatchingMask: NSLeftMouseUpMask | NSLeftMouseDraggedMask]; newy = [self convertPoint:[theEvent locationInWindow] fromView:self].y; switch ([theEvent type]) { case NSLeftMouseDragged: diffduration = [parent distanceToDuration:starty-newy]; minutes = [parent roundMinutes:startduration+diffduration]; if (minutes < minStep) minutes = minStep; if (minutes != [_apt duration]) { [_apt setDuration:minutes]; modified = YES; [self setFrame:[parent frameForAppointment:_apt]]; [parent setNeedsDisplay:YES]; } break; case NSLeftMouseUp: keepOn = NO; break; default: break; } } } else { int startM, currentM, roundedDiffM; Date *date = [[_apt startDate] copy]; [[NSCursor openHandCursor] push]; startM = [parent positionToMinute:[theEvent locationInWindow].y]; while (keepOn) { theEvent = [[self window] nextEventMatchingMask: NSLeftMouseUpMask | NSLeftMouseDraggedMask]; switch ([theEvent type]) { case NSLeftMouseDragged: currentM = [parent positionToMinute:[theEvent locationInWindow].y]; roundedDiffM = [parent roundMinutes:currentM-startM]; if (roundedDiffM != 0) { modified = YES; [_apt setStartDate:[Date dateWithTimeInterval:roundedDiffM*60 sinceDate:date]]; [self setFrame:[parent frameForAppointment:_apt]]; [parent setNeedsDisplay:YES]; } break; case NSLeftMouseUp: keepOn = NO; break; default: break; } } [date release]; } [NSCursor pop]; if (modified && [delegate respondsToSelector:@selector(viewModifyEvent:)]) [delegate viewModifyEvent:_apt]; } - (void)resizeWithOldSuperviewSize:(NSSize)oldBoundsSize { DayView *parent = (DayView *)[self superview]; [self setFrame:[parent frameForAppointment:_apt]]; } - (NSMenu *)menuForEvent:(NSEvent *)event { NSMenu *menu; id item; if ((menu = [super menuForEvent:event])) { item = [menu insertItemWithTitle:[_apt sticky] ? _(@"Unset sticky") : _(@"Set sticky") action:@selector(changeSticky:) keyEquivalent:nil atIndex:1]; [item setTarget:self]; } return menu; } @end NSComparisonResult compareAppointmentViews(id a, id b, void *data) { return [[[a appointment] startDate] compare:[[b appointment] startDate] withTime:YES]; } @implementation DayView - (NSDictionary *)defaults { return [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"9", @"18", @"15", nil] forKeys:[NSArray arrayWithObjects:FIRST_HOUR, LAST_HOUR, MIN_STEP, nil]]; } - (void)colorsDidChanged:(NSNotification *)not { DESTROY(_backgroundColor); DESTROY(_alternateBackgroundColor); _backgroundColor = [[[NSColor controlBackgroundColor] colorUsingColorSpaceName:NSCalibratedRGBColorSpace] retain]; _alternateBackgroundColor = [[_backgroundColor colorModifiedWithDeltaRed:0.05 green:0.05 blue:0.05 alpha:0] retain]; [self setNeedsDisplay:YES]; } - (id)initWithFrame:(NSRect)frameRect { if ((self = [super initWithFrame:frameRect])) { ConfigManager *config = [ConfigManager globalConfig]; [config registerDefaults:[self defaults]]; _firstH = [config integerForKey:FIRST_HOUR]; _lastH = [config integerForKey:LAST_HOUR]; _minStep = [config integerForKey:MIN_STEP]; _textAttributes = [[NSDictionary dictionaryWithObject:[NSColor textColor] forKey:NSForegroundColorAttributeName] retain]; _backgroundColor = [[[NSColor controlBackgroundColor] colorUsingColorSpaceName:NSCalibratedRGBColorSpace] retain]; _alternateBackgroundColor = [[_backgroundColor colorModifiedWithDeltaRed:0.05 green:0.05 blue:0.05 alpha:0] retain]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(configChanged:) name:SAConfigManagerValueChanged object:config]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(colorsDidChanged:) name:NSSystemColorsDidChangeNotification object:nil]; } return self; } - (void)dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; [_backgroundColor release]; [_alternateBackgroundColor release]; [_textAttributes release]; RELEASE(_date); [super dealloc]; } - (int)minuteToSize:(int)minutes { return minutes * [self frame].size.height / ((_lastH - _firstH + 1) * 60); } - (int)minuteToPosition:(int)minutes { return [self frame].size.height - [self minuteToSize:minutes - (_firstH * 60)] - 1; } - (int)positionToMinute:(float)position { return ((_lastH + 1) * 60) - ((_lastH - _firstH + 1) * 60) * position / [self frame].size.height; } - (int)distanceToDuration:(int)distance { return ((_lastH - _firstH + 1) * 60) * distance / [self frame].size.height; } - (void)fixFrames { int i, j, k, n; NSArray *subviews; AppointmentView *view, *next; NSRect fview, fnext, frame; float width, x; subviews = [[self subviews] sortedArrayUsingFunction:compareAppointmentViews context:NULL]; if ([subviews count] < 2) return; for (i = 0; i < [subviews count] - 1; i++) { view = [subviews objectAtIndex:i]; fview = [view frame]; for (j = i + 1, n = 1; j < [subviews count]; j++) { next = [subviews objectAtIndex:j]; fnext = [next frame]; if (!NSIntersectsRect(fview, fnext)) break; n++; fview = NSUnionRect(fview, fnext); } if (n != 1) { frame = [self frameForAppointment:[view appointment]]; width = frame.size.width / n; x = frame.origin.x; for (k = i; k < i + n; k++) { view = [subviews objectAtIndex:k]; fview = [view frame]; fview.size.width = width; fview.origin.x = x; x += width; [view setFrame:fview]; } } } } - (NSRect)frameForAppointment:(Event *)apt { NSRange range; int size, start; if ([apt allDay]) return NSMakeRect(40, 0, [self frame].size.width - 48, [self frame].size.height); range = [apt intersectionWithDay:_date]; start = [self minuteToPosition:range.location/60]; size = [self minuteToSize:range.length/60]; return NSMakeRect(40, start - size, [self frame].size.width - 48, size); } - (int)roundMinutes:(int)minutes { return minutes / _minStep * _minStep; } - (void)drawRect:(NSRect)rect { NSSize size; NSString *hour; int h, start; int hrow; float miny, maxy; [self fixFrames]; /* * FIXME : if we draw the string in the same * loop it doesn't appear on the screen. */ hrow = [self minuteToSize:60]; for (h = _firstH; h <= _lastH + 1; h++) { start = [self minuteToPosition:h * 60]; if (h % 2) [_backgroundColor set]; else [_alternateBackgroundColor set]; NSRectFill(NSMakeRect(0, start, rect.size.width, hrow + 1)); } for (h = _firstH; h <= _lastH; h++) { hour = [NSString stringWithFormat:@"%d h", h]; start = [self minuteToPosition:h * 60]; size = [hour sizeWithAttributes:_textAttributes]; [hour drawAtPoint:NSMakePoint(4, start - hrow / 2 - size.height / 2) withAttributes:_textAttributes]; } if (_startPt.x != _endPt.x && _startPt.y != _endPt.y) { miny = MIN(_startPt.y, _endPt.y); maxy = MAX(_startPt.y, _endPt.y); [[NSColor grayColor] set]; NSFrameRect(NSMakeRect(40, miny, rect.size.width - 48, maxy - miny)); } } - (id)delegate { return delegate; } - (void)setDelegate:(id)theDelegate { delegate = theDelegate; } - (void)selectAppointmentView:(AppointmentView *)aptv { _selected = aptv; [[SelectionManager globalManager] select:[aptv appointment]]; if ([delegate respondsToSelector:@selector(viewSelectEvent:)]) [delegate viewSelectEvent:[aptv appointment]]; [self setNeedsDisplay:YES]; } - (void)reloadData { NSEnumerator *enumerator, *enm; AppointmentView *aptv; Event *apt; NSSet *events; BOOL found; events = [[StoreManager globalManager] visibleAppointmentsForDay:_date]; enumerator = [[self subviews] objectEnumerator]; while ((aptv = [enumerator nextObject])) { if (![events containsObject:[aptv appointment]] || ![[[aptv appointment] store] displayed]) { if (aptv == _selected) _selected = nil; [aptv removeFromSuperviewWithoutNeedingDisplay]; } } enumerator = [events objectEnumerator]; while ((apt = [enumerator nextObject])) { found = NO; enm = [[self subviews] objectEnumerator]; while ((aptv = [enm nextObject])) { [aptv setFrame:[self frameForAppointment:[aptv appointment]]]; if ([apt isEqual:[aptv appointment]]) { found = YES; break; } } if (found == NO) { if ([[apt store] displayed]) [self addSubview:AUTORELEASE([[AppDayView alloc] initWithFrame:[self frameForAppointment:apt] appointment:apt])]; } } [self setNeedsDisplay:YES]; } - (void)mouseDown:(NSEvent *)theEvent { int start; int end; BOOL keepOn = YES; NSPoint mouseLoc = [self convertPoint:[theEvent locationInWindow] fromView:nil]; [[self window] makeFirstResponder:self]; _startPt = _endPt = mouseLoc; [[NSCursor crosshairCursor] push]; while (keepOn) { theEvent = [[self window] nextEventMatchingMask: NSLeftMouseUpMask | NSLeftMouseDraggedMask]; _endPt = [self convertPoint:[theEvent locationInWindow] fromView:nil]; switch ([theEvent type]) { case NSLeftMouseUp: keepOn = NO; break; default: break; } [self setNeedsDisplay:YES]; } [NSCursor pop]; if (ABS(_startPt.y - _endPt.y) > 7 && [self mouse:_endPt inRect:[self bounds]]) { start = [self positionToMinute:MAX(_startPt.y, _endPt.y)]; end = [self positionToMinute:MIN(_startPt.y, _endPt.y)]; if ([delegate respondsToSelector:@selector(viewCreateEventFrom:to:)]) [delegate viewCreateEventFrom:[self roundMinutes:start] to:[self roundMinutes:end]]; } _startPt = _endPt = NSMakePoint(0, 0); [self setNeedsDisplay:YES]; } - (void)keyDown:(NSEvent *)theEvent { NSString *characters = [theEvent characters]; unichar character = 0; if ([characters length] > 0) character = [characters characterAtIndex: 0]; switch (character) { case '\r': case NSEnterCharacter: if (_selected != nil) { if ([delegate respondsToSelector:@selector(viewEditEvent:)]) [delegate viewEditEvent:[_selected appointment]]; } break; case NSUpArrowFunctionKey: [self moveUp:self]; break; case NSDownArrowFunctionKey: [self moveDown:self]; break; case NSTabCharacter: if (_selected != nil) { NSUInteger index = [[self subviews] indexOfObject:_selected]; if (index != NSNotFound) { if ([theEvent modifierFlags] & NSShiftKeyMask) { if (index == 0) index = [[self subviews] count] - 1; else index--; } else { index++; if (index >= [[self subviews] count]) index = 0; } [self selectAppointmentView:[[self subviews] objectAtIndex:index]]; } } else { [self selectAppointmentView:[[self subviews] lastObject]]; } break; default: [super keyDown:theEvent]; } } - (void)moveUp:(id)sender { if (_selected != nil) { [[[_selected appointment] startDate] changeMinuteBy:-_minStep]; [_selected setFrame:[self frameForAppointment:[_selected appointment]]]; if ([delegate respondsToSelector:@selector(viewModifyEvent:)]) [delegate viewModifyEvent:[_selected appointment]]; } } - (void)moveDown:(id)sender { if (_selected != nil) { [[[_selected appointment] startDate] changeMinuteBy:_minStep]; [_selected setFrame:[self frameForAppointment:[_selected appointment]]]; if ([delegate respondsToSelector:@selector(viewModifyEvent:)]) [delegate viewModifyEvent:[_selected appointment]]; } } - (BOOL)acceptsFirstResponder { return YES; } - (void)configChanged:(NSNotification *)not { NSString *key = [[not userInfo] objectForKey:@"key"]; ConfigManager *config = [ConfigManager globalConfig]; if ([key isEqualToString:MIN_STEP]) _minStep = [config integerForKey:MIN_STEP]; else if ([key isEqualToString:FIRST_HOUR] || [key isEqualToString:LAST_HOUR]) { _firstH = [config integerForKey:FIRST_HOUR]; _lastH = [config integerForKey:LAST_HOUR]; /* FIXME : this should use a -refreshView method instead */ [self reloadData]; } } - (int)firstHour { return _firstH; } - (int)lastHour { return _lastH; } - (int)minimumStep { return _minStep; } - (void)setDate:(Date *)date { ASSIGNCOPY(_date, date); [self reloadData]; } @end simpleagenda-0.44/Element.h000066400000000000000000000032241320461325300156340ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "config.h" #import "MemoryStore.h" #import "Date.h" /* icalproperty_class ICAL_CLASS_X = 10006, ICAL_CLASS_PUBLIC = 10007, ICAL_CLASS_PRIVATE = 10008, ICAL_CLASS_CONFIDENTIAL = 10009, ICAL_CLASS_NONE = 10010 */ @class Alarm; @interface Element : NSObject { id _store; NSString *_uid; NSString *_summary; NSAttributedString *_text; icalproperty_class _classification; Date *_stamp; NSMutableArray *_alarms; NSMutableArray *_categories; } + (NSArray *)availableCategories; - (id)initWithSummary:(NSString *)summary; - (void)generateUID; - (id )store; - (NSAttributedString *)text; - (NSString *)summary; - (NSString *)UID; - (icalproperty_class)classification; - (Date *)dateStamp; - (void)setStore:(id )store; - (void)setText:(NSAttributedString *)text; - (void)setSummary:(NSString *)summary; - (void)setUID:(NSString *)uid; - (void)setClassification:(icalproperty_class)classification; - (void)setDateStamp:(Date *)stamp; - (BOOL)hasAlarms; - (NSArray *)alarms; - (void)setAlarms:(NSArray *)alarms; - (void)addAlarm:(Alarm *)alarm; - (void)removeAlarm:(Alarm *)alarm; - (Date *)nextActivationDate; - (NSArray *)categories; - (void)setCategories:(NSArray *)categories; - (void)addCategory:(NSString *)category; - (void)removeCategory:(NSString *)category; - (BOOL)inCategory:(NSString *)category; - (id)initWithICalComponent:(icalcomponent *)ic; - (icalcomponent *)asICalComponent; - (void)deleteProperty:(icalproperty_kind)kind fromComponent:(icalcomponent *)ic; - (BOOL)updateICalComponent:(icalcomponent *)ic; - (int)iCalComponentType; @end simpleagenda-0.44/Element.m000066400000000000000000000211171320461325300156420ustar00rootroot00000000000000#import #import "Date.h" #import "Element.h" #import "Alarm.h" #import "NSString+SimpleAgenda.h" static NSArray *availableCategories; @implementation Element + (void)initialize { if (self == [Element class]) { availableCategories = [[NSArray alloc] initWithObjects:_(@"None"), _(@"Anniversary"), _(@"Appointment"), _(@"Business"), _(@"Congress"), _(@"Education"), _(@"Holiday"), _(@"Idea"), _(@"Meeting"), _(@"Miscellaneous"), _(@"Personal"), _(@"Phone call"), _(@"Sick day"), _(@"Travel"), _(@"Vacation"), nil]; } } + (NSArray *)availableCategories { return availableCategories; } - (void)encodeWithCoder:(NSCoder *)coder { [coder encodeObject:_summary forKey:@"title"]; if (_text) [coder encodeObject:[_text string] forKey:@"descriptionText"]; [coder encodeObject:_uid forKey:@"uid"]; [coder encodeInt:_classification forKey:@"classification"]; if (_stamp) [coder encodeObject:_stamp forKey:@"dtstamp"]; [coder encodeObject:_categories forKey:@"categories"]; [coder encodeObject:_alarms forKey:@"alarms"]; } - (id)initWithCoder:(NSCoder *)coder { _summary = [[coder decodeObjectForKey:@"title"] retain]; if ([coder containsValueForKey:@"descriptionText"]) _text = [[NSAttributedString alloc] initWithString:[coder decodeObjectForKey:@"descriptionText"]]; else _text = nil; if ([coder containsValueForKey:@"uid"]) _uid = [[coder decodeObjectForKey:@"uid"] retain]; else [self generateUID]; if ([coder containsValueForKey:@"classification"]) _classification = [coder decodeIntForKey:@"classification"]; else _classification = ICAL_CLASS_PUBLIC; if ([coder containsValueForKey:@"dtstamp"]) _stamp = [[coder decodeObjectForKey:@"dtstamp"] retain]; else _stamp = nil; if ([coder containsValueForKey:@"categories"]) _categories = [[coder decodeObjectForKey:@"categories"] retain]; else _categories = [NSMutableArray new]; [self setAlarms:[coder decodeObjectForKey:@"alarms"]]; return self; } - (id)init { if (!(self = [super init])) return nil; _alarms = [NSMutableArray new]; _categories = [NSMutableArray new]; _classification = ICAL_CLASS_PUBLIC; _text = nil; ASSIGNCOPY(_stamp, [Date now]); return self; } - (id)initWithSummary:(NSString *)summary { if ((self = [self init])) [self setSummary:summary]; return self; } - (void)dealloc { RELEASE(_summary); RELEASE(_text); RELEASE(_uid); RELEASE(_stamp); RELEASE(_alarms); RELEASE(_categories); [super dealloc]; } - (id )store { return _store; } - (void)setStore:(id )store { _store = store; } - (NSAttributedString *)text { return _text; } - (void)setText:(NSAttributedString *)text { ASSIGN(_text, text); } - (NSString *)summary { return _summary; } - (void)setSummary:(NSString *)summary { ASSIGN(_summary, summary); } - (void)generateUID { [self setUID:[NSString stringWithFormat:@"SimpleAgenda-%@", [NSString uuid]]]; } - (NSString *)UID { if (!_uid) [self generateUID]; return _uid; } - (void)setUID:(NSString *)aUid; { ASSIGN(_uid, aUid); } - (icalproperty_class)classification { return _classification; } - (void)setClassification:(icalproperty_class)classification { if (classification < ICAL_CLASS_X || classification > ICAL_CLASS_NONE) { NSLog(@"Wrong classification value %d, change it to ICAL_CLASS_PUBLIC", classification); _classification = ICAL_CLASS_PUBLIC; } _classification = classification; } - (Date *)dateStamp { return _stamp; } - (void)setDateStamp:(Date *)stamp; { ASSIGNCOPY(_stamp, stamp); } - (BOOL)hasAlarms { return [_alarms count] > 0; } - (NSArray *)alarms { return [NSArray arrayWithArray:_alarms]; } - (void)setAlarms:(NSArray *)alarms { NSEnumerator *enumerator; Alarm *alarm; DESTROY(_alarms); ASSIGNCOPY(_alarms, alarms); enumerator = [_alarms objectEnumerator]; while ((alarm = [enumerator nextObject])) [alarm setElement:self]; } - (void)addAlarm:(Alarm *)alarm { [alarm setElement:self]; [_alarms addObject:alarm]; } - (void)removeAlarm:(Alarm *)alarm { /* FIXME : do something */ } - (Date *)nextActivationDate { return nil; } - (NSArray *)categories { return [NSArray arrayWithArray:_categories]; } - (void)setCategories:(NSArray *)categories { [_categories setArray:categories]; } - (void)addCategory:(NSString *)category { if (![_categories containsObject:category]) [_categories addObject:category]; } - (void)removeCategory:(NSString *)category { if ([_categories containsObject:category]) [_categories removeObject:category]; } - (BOOL)inCategory:(NSString *)category { return [_categories containsObject:category]; } - (id)initWithICalComponent:(icalcomponent *)ic { icalproperty *prop; icalcomponent *subc; Alarm *alarm; self = [self init]; if (self == nil) return nil; prop = icalcomponent_get_first_property(ic, ICAL_UID_PROPERTY); if (!prop) { NSLog(@"No UID"); goto init_error; } [self setUID:[NSString stringWithCString:icalproperty_get_uid(prop)]]; prop = icalcomponent_get_first_property(ic, ICAL_SUMMARY_PROPERTY); if (!prop) { NSLog(@"No summary"); goto init_error; } [self setSummary:[NSString stringWithUTF8String:icalproperty_get_summary(prop)]]; prop = icalcomponent_get_first_property(ic, ICAL_DESCRIPTION_PROPERTY); if (prop) [self setText:AUTORELEASE([[NSAttributedString alloc] initWithString:[NSString stringWithUTF8String:icalproperty_get_description(prop)]])]; prop = icalcomponent_get_first_property(ic, ICAL_DTSTAMP_PROPERTY); if (prop) [self setDateStamp:AUTORELEASE([[Date alloc] initWithICalTime:icalproperty_get_dtstamp(prop)])]; prop = icalcomponent_get_first_property(ic, ICAL_CLASS_PROPERTY); if (prop) [self setClassification:icalproperty_get_class(prop)]; prop = icalcomponent_get_first_property(ic, ICAL_CATEGORIES_PROPERTY); if (prop) [self setCategories:[[NSString stringWithUTF8String:icalproperty_get_categories(prop)] componentsSeparatedByString:@","]]; subc = icalcomponent_get_first_component(ic, ICAL_VALARM_COMPONENT); for (; subc != NULL; subc = icalcomponent_get_next_component(ic, ICAL_VALARM_COMPONENT)) { alarm = [[Alarm alloc] initWithICalComponent:subc]; if (alarm) { [self addAlarm:alarm]; RELEASE(alarm); } } return self; init_error: NSLog(@"Error creating Element from iCal component"); [self release]; return nil; } - (icalcomponent *)asICalComponent { icalcomponent *ic = icalcomponent_new([self iCalComponentType]); if (!ic) { NSLog(@"Couldn't create iCalendar component"); return NULL; } if (![self updateICalComponent:ic]) { icalcomponent_free(ic); return NULL; } return ic; } - (void)deleteProperty:(icalproperty_kind)kind fromComponent:(icalcomponent *)ic { icalproperty *prop = icalcomponent_get_first_property(ic, kind); if (prop) icalcomponent_remove_property(ic, prop); } - (BOOL)updateICalComponent:(icalcomponent *)ic { NSEnumerator *enumerator; Alarm *alarm; icalcomponent *subc; [self deleteProperty:ICAL_UID_PROPERTY fromComponent:ic]; icalcomponent_add_property(ic, icalproperty_new_uid([[self UID] cString])); [self deleteProperty:ICAL_SUMMARY_PROPERTY fromComponent:ic]; if ([self summary]) icalcomponent_add_property(ic, icalproperty_new_summary([[self summary] UTF8String])); [self deleteProperty:ICAL_DESCRIPTION_PROPERTY fromComponent:ic]; if ([self text]) icalcomponent_add_property(ic, icalproperty_new_description([[[self text] string] UTF8String])); [self deleteProperty:ICAL_DTSTAMP_PROPERTY fromComponent:ic]; icalcomponent_add_property(ic, icalproperty_new_dtstamp([_stamp UTCICalTime])); [self deleteProperty:ICAL_CLASS_PROPERTY fromComponent:ic]; icalcomponent_add_property(ic, icalproperty_new_class([self classification])); [self deleteProperty:ICAL_CATEGORIES_PROPERTY fromComponent:ic]; if ([[self categories] count] > 0) icalcomponent_add_property(ic, icalproperty_new_categories([[[self categories] componentsJoinedByString:@","] UTF8String])); subc = icalcomponent_get_first_component(ic, ICAL_VALARM_COMPONENT); for (; subc != NULL; subc = icalcomponent_get_next_component(ic, ICAL_VALARM_COMPONENT)) icalcomponent_remove_component(ic, subc); enumerator = [[self alarms] objectEnumerator]; while ((alarm = [enumerator nextObject])) { subc = [alarm asICalComponent]; icalcomponent_add_component(ic, subc); icalcomponent_free(subc); } return YES; } - (int)iCalComponentType { NSLog(@"Shouldn't be used"); return -1; } @end simpleagenda-0.44/English.lproj/000077500000000000000000000000001320461325300166075ustar00rootroot00000000000000simpleagenda-0.44/English.lproj/Localizable.strings000066400000000000000000000030571320461325300224500ustar00rootroot00000000000000/*** English.lproj/Localizable.strings updated by make_strings 2010-03-11 10:46:44 +0100 add comments above this one ***/ /*** Keys found in multiple places ***/ /* File: DayView.m:42 */ /* File: WeekView.m:32 */ "All day : %@" = "All day : %@"; /*** Strings from ABStore.m ***/ /* File: ABStore.m:58 */ "Birthday" = "Birthday"; /* File: ABStore.m:29 */ "my address book" = "my address book"; /*** Strings from AppController.m ***/ /* File: AppController.m:406 */ "Export as" = "Export as"; /* File: AppController.m:363 */ "New task" = "New task"; /* File: AppController.m:82 */ "Open tasks" = "Open tasks"; /* File: AppController.m:155 */ "Open tasks (%d)" = "Open tasks (%d)"; /* File: AppController.m:514 */ /* File: AppController.m:81 */ "Search results" = "Search results"; /* File: AppController.m:512 */ "Search results (%d items)" = "Search results (%d items)"; /* File: AppController.m:80 */ "Soon" = "Soon"; /* File: AppController.m:680 */ /* File: AppController.m:169 */ "Tasks" = "Tasks"; /* File: AppController.m:78 */ "Today" = "Today"; /* File: AppController.m:79 */ "Tomorrow" = "Tomorrow"; /* File: AppController.m:682 */ /* File: AppController.m:167 */ "Week %d" = "Week %d"; /* File: AppController.m:339 */ "edit summary..." = "edit summary..."; /* File: AppController.m:715 */ /* File: AppController.m:331 */ "edit title..." = "edit title..."; /*** Strings from Task.m ***/ /* File: Task.m:30 */ "Canceled" = "Canceled"; /* File: Task.m:30 */ "Completed" = "Completed"; /* File: Task.m:30 */ "None" = "None"; /* File: Task.m:30 */ "Started" = "Started"; simpleagenda-0.44/Event.h000066400000000000000000000020241320461325300153210ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "Date.h" #import "Element.h" #import "RecurrenceRule.h" @interface Event : Element { NSString *_location; BOOL _allDay; Date *_startDate; int _duration; BOOL _sticky; RecurrenceRule *_rrule; } - (id)initWithStartDate:(Date *)start duration:(int)minutes title:(NSString *)aTitle; - (BOOL)isScheduledForDay:(Date *)day; - (NSRange)intersectionWithDay:(Date *)day; - (NSString *)details; - (BOOL)contains:(NSString *)text; - (NSString *)location; - (BOOL)allDay; - (int)duration; - (Date *)startDate; - (RecurrenceRule *)rrule; - (BOOL)sticky; - (void)setLocation:(NSString *)aLocation; - (void)setAllDay:(BOOL)allDay; - (void)setDuration:(int)duration; - (void)setStartDate:(Date *)startDate; - (void)setRRule:(RecurrenceRule *)rrule; - (void)setSticky:(BOOL)sticky; - (NSEnumerator *)dateEnumerator; - (NSEnumerator *)dateRangeEnumerator; @end @interface Event(iCalendar) - (id)initWithICalComponent:(icalcomponent *)ic; - (BOOL)updateICalComponent:(icalcomponent *)ic; @end simpleagenda-0.44/Event.m000066400000000000000000000177571320461325300153510ustar00rootroot00000000000000#import #import #import "Event.h" #import "DateRange.h" @implementation Event(NSCoding) - (void)encodeWithCoder:(NSCoder *)coder { [super encodeWithCoder:coder]; [coder encodeObject:_startDate forKey:@"sdate"]; [coder encodeInt:_duration forKey:@"duration"]; [coder encodeObject:_location forKey:@"location"]; [coder encodeBool:_allDay forKey:@"allDay"]; [coder encodeObject:_rrule forKey:@"rrule"]; [coder encodeBool:_sticky forKey:@"sticky"]; } - (id)initWithCoder:(NSCoder *)coder { [super initWithCoder:coder]; _startDate = [[coder decodeObjectForKey:@"sdate"] retain]; _duration = [coder decodeIntForKey:@"duration"]; _location = [[coder decodeObjectForKey:@"location"] retain]; if ([coder containsValueForKey:@"allDay"]) _allDay = [coder decodeBoolForKey:@"allDay"]; else _allDay = NO; if ([coder containsValueForKey:@"rrule"]) _rrule = [[coder decodeObjectForKey:@"rrule"] retain]; if ([coder containsValueForKey:@"sticky"]) _sticky = [coder decodeBoolForKey:@"sticky"]; else _sticky = NO; return self; } @end @implementation Event - (id)copy { Event *new = [NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:self]]; [new generateUID]; return new; } - (id)initWithStartDate:(Date *)start duration:(int)minutes title:(NSString *)aTitle { self = [super initWithSummary:aTitle]; if (self) { [self setStartDate:start]; [self setDuration:minutes]; [self setSticky:NO]; } return self; } - (void)dealloc { RELEASE(_location); RELEASE(_startDate); RELEASE(_rrule); [super dealloc]; } - (BOOL)isScheduledForDay:(Date *)day { return [self intersectionWithDay:day].length > 0; } /* * Values are in seconds whereas time granularity in * all other Event methods is minute. * Worth changing ? */ - (NSRange)intersectionWithDay:(Date *)day { NSEnumerator *enumerator; DateRange *range = AUTORELEASE([[DateRange alloc] initWithStart:_startDate duration:[self duration]*60]); if (!_rrule) return [range intersectionWithDay:day]; enumerator = [_rrule enumeratorFromDate:_startDate length:[self duration]*60]; while ((range = [enumerator nextObject])) { if ([range intersectsWithDay:day]) return [range intersectionWithDay:day]; if ([[range start] compare:day withTime:NO] > 0) break; } return NSMakeRange(0, 0); } - (Date *)nextActivationDate { if (!_rrule) return _startDate; return nil; } - (NSString *)location { return _location; } - (void)setLocation:(NSString *)location { ASSIGN(_location, location); } - (BOOL)allDay { return _allDay; } - (void)setAllDay:(BOOL)allDay { /* * FIXME : why do we force startDate to being a date ? * What is the relation with the appointment being an * all day one ? */ [_startDate setIsDate:allDay]; _allDay = allDay; } - (NSString *)description { return [NSString stringWithFormat:@"<%@> from <%@> for <%d>", [self summary], [_startDate description], [self duration]]; } - (NSString *)details { if (_allDay) return @"all day"; int minute = [_startDate minuteOfDay]; return [NSString stringWithFormat:@"%dh%02d", minute / 60, minute % 60]; } - (BOOL)contains:(NSString *)text { if ([self summary] && [[self summary] rangeOfString:text options:NSCaseInsensitiveSearch].length > 0) return YES; if (_location && [_location rangeOfString:text options:NSCaseInsensitiveSearch].length > 0) return YES; if ([self text] && [[[self text] string] rangeOfString:text options:NSCaseInsensitiveSearch].length > 0) return YES; return NO; } - (int)duration { if (_allDay) return 1440; return _duration; } - (Date *)startDate { return _startDate; } - (RecurrenceRule *)rrule { return _rrule; } - (BOOL)sticky { return _sticky; } - (void)setDuration:(int)newDuration { _duration = newDuration; } - (void)setStartDate:(Date *)newStartDate { ASSIGNCOPY(_startDate, newStartDate); } - (void)setRRule:(RecurrenceRule *)arule { ASSIGN(_rrule, arule); } - (void)setSticky:(BOOL)sticky { _sticky = sticky; } - (NSEnumerator *)dateEnumerator { return [_rrule enumeratorFromDate:_startDate]; } - (NSEnumerator *)dateRangeEnumerator { return [_rrule enumeratorFromDate:_startDate length:_allDay?86400:_duration*60]; } @end @implementation Event(iCalendar) - (id)initWithICalComponent:(icalcomponent *)ic { icalproperty *prop; icalproperty *pstart; icalproperty *pend; icalproperty *pdur; struct icaltimetype start; struct icaltimetype end; struct icaldurationtype diff; Date *date; const char *location; self = [super initWithICalComponent:ic]; if (self == nil) return nil; pstart = icalcomponent_get_first_property(ic, ICAL_DTSTART_PROPERTY); if (!pstart) { NSLog(@"No start date"); goto init_error; } start = icalproperty_get_dtstart(pstart); date = [[Date alloc] initWithICalTime:start]; [self setStartDate:date]; pend = icalcomponent_get_first_property(ic, ICAL_DTEND_PROPERTY); pdur = icalcomponent_get_first_property(ic, ICAL_DURATION_PROPERTY); if ((!pend && !pdur) || [date isDate]) [self setAllDay:YES]; else { if (!pend) diff = icalproperty_get_duration(pdur); else { end = icalproperty_get_dtend(pend); diff = icaltime_subtract(end, start); } [self setDuration:icaldurationtype_as_int(diff) / 60]; } prop = icalcomponent_get_first_property(ic, ICAL_RRULE_PROPERTY); if (prop) _rrule = [[RecurrenceRule alloc] initWithICalRRule:icalproperty_get_rrule(prop)]; [date release]; location = icalcomponent_get_location(ic); if (location) [self setLocation:[NSString stringWithUTF8String:location]]; prop = icalcomponent_get_first_property(ic, ICAL_X_PROPERTY); while (prop) { if (!strcmp(icalproperty_get_x_name(prop), "X-SIMPLEAGENDA-STICKY")) { [self setSticky:strcmp("YES", icalproperty_get_value_as_string(prop))]; } prop = icalcomponent_get_next_property(ic, ICAL_X_PROPERTY); } return self; init_error: NSLog(@"Error creating Event from iCal component"); [self release]; return nil; } - (BOOL)updateICalComponent:(icalcomponent *)ic { Date *end; icalproperty *prop; if (![super updateICalComponent:ic]) return NO; [self deleteProperty:ICAL_LOCATION_PROPERTY fromComponent:ic]; if ([self location]) icalcomponent_add_property(ic, icalproperty_new_location([[self location] UTF8String])); [self deleteProperty:ICAL_DTSTART_PROPERTY fromComponent:ic]; icalcomponent_add_property(ic, icalproperty_new_dtstart([_startDate UTCICalTime])); [self deleteProperty:ICAL_DTEND_PROPERTY fromComponent:ic]; [self deleteProperty:ICAL_DURATION_PROPERTY fromComponent:ic]; if (![self allDay]) icalcomponent_add_property(ic, icalproperty_new_dtend(icaltime_add([_startDate UTCICalTime], icaldurationtype_from_int(_duration * 60)))); else { end = [_startDate copy]; [end incrementDay]; icalcomponent_add_property(ic, icalproperty_new_dtend([end UTCICalTime])); [end release]; /* OGo workaround ? */ prop = icalcomponent_get_first_property(ic, ICAL_X_PROPERTY); while (prop) { if (!strcmp(icalproperty_get_x_name(prop), "X-MICROSOFT-CDO-ALLDAYEVENT")) icalcomponent_remove_property(ic, prop); prop = icalcomponent_get_next_property(ic, ICAL_X_PROPERTY); } prop = icalproperty_new_from_string("X-MICROSOFT-CDO-ALLDAYEVENT:TRUE"); icalcomponent_add_property(ic, prop); } prop = icalcomponent_get_first_property(ic, ICAL_X_PROPERTY); while (prop) { if (!strcmp(icalproperty_get_x_name(prop), "X-SIMPLEAGENDA-STICKY")) icalcomponent_remove_property(ic, prop); prop = icalcomponent_get_next_property(ic, ICAL_X_PROPERTY); } if ([self sticky]) { prop = icalproperty_new_from_string("X-SIMPLEAGENDA-STICKY:TRUE"); icalcomponent_add_property(ic, prop); } [self deleteProperty:ICAL_RRULE_PROPERTY fromComponent:ic]; if (_rrule) icalcomponent_add_property(ic, icalproperty_new_rrule([_rrule iCalRRule])); return YES; } - (int)iCalComponentType { return ICAL_VEVENT_COMPONENT; } @end simpleagenda-0.44/French.lproj/000077500000000000000000000000001320461325300164235ustar00rootroot00000000000000simpleagenda-0.44/French.lproj/Localizable.strings000066400000000000000000000051771320461325300222710ustar00rootroot00000000000000/*** French.lproj/Localizable.strings updated by make_strings 2011-01-28 11:25:26 +0100 add comments above this one ***/ /*** Keys found in multiple places ***/ /* File: DayView.m:43 */ /* File: WeekView.m:33 */ "All day : %@" = "Toute la journ\U00E9e : %@"; /* File: Alarm.m:271 */ /* File: SAAlarm.m:271 */ /* Flag: unmatched */ "Trigger %@ after the event" = "Se d\U00E9clenche %@ apr\U00E8s l'\U00E9v\U00E9nement"; /* File: Alarm.m:272 */ /* File: SAAlarm.m:272 */ /* Flag: unmatched */ "Trigger %@ before the event" = "Se d\U00E9clenche %@ avant l'\U00E9v\U00E9nement"; /* File: Alarm.m:268 */ /* File: SAAlarm.m:268 */ /* Flag: unmatched */ "Trigger on %@" = "Se d\U00E9clenche le %@"; /*** Strings from ABStore.m ***/ /* File: ABStore.m:58 */ "Birthday" = "Anniversaire"; /* File: ABStore.m:29 */ "My address book" = "Mon carnet d'adresses"; /*** Strings from AlarmEditor.m ***/ /* File: AlarmEditor.m:75 */ "Absolute" = "Absolue"; /* File: AlarmEditor.m:77 */ "Display" = "Affichage"; /* File: AlarmEditor.m:77 */ "Email" = "Email"; /* File: AlarmEditor.m:77 */ "Procedure" = "Action"; /* File: AlarmEditor.m:75 */ "Relative" = "Relative"; /* File: AlarmEditor.m:77 */ "Sound" = "Son"; /*** Strings from AppController.m ***/ /* File: AppController.m:475 */ "Export as" = "Exporter sous"; /* File: AppController.m:432 */ "New task" = "Nouvelle t\U00E2che"; /* File: AppController.m:155 */ "Open tasks" = "T\U00E2ches en cours"; /* File: AppController.m:230 */ "Open tasks (%d)" = "T\U00E2ches en cours (%d)"; /* File: AppController.m:588 */ /* File: AppController.m:154 */ "Search results" = "R\U00E9sultats recherche"; /* File: AppController.m:586 */ "Search results (%d items)" = "R\U00E9sultats (%d \U00E9l\U00E9ments)"; /* File: AppController.m:153 */ "Soon" = "Bient\U00F4t"; /* File: AppController.m:784 */ /* File: AppController.m:244 */ "Tasks" = "T\U00E2ches"; /* File: AppController.m:151 */ "Today" = "Aujourd'hui"; /* File: AppController.m:152 */ "Tomorrow" = "Demain"; /* File: AppController.m:786 */ /* File: AppController.m:242 */ "Week %d" = "Semaine %d"; /* File: AppController.m:408 */ "edit summary..." = "modifier le r\U00E9sum\U00E9..."; /* File: AppController.m:400 */ /* File: AppController.m:819 */ "edit title..." = "modifier le titre..."; /*** Strings from DBusBackend.m ***/ /* File: DBusBackend.m:84 */ "SimpleAgenda Reminder !" = "Rappel SimpleAgenda !"; /*** Strings from Task.m ***/ /* File: Task.m:30 */ "Canceled" = "Annul\U00E9"; /* File: Task.m:30 */ "Completed" = "Termin\U00E9"; /* File: Task.m:30 */ "Needs action" = "En attente"; /* File: Task.m:30 */ "None" = "Aucun"; /* File: Task.m:30 */ "Started" = "D\U00E9marr\U00E9"; simpleagenda-0.44/GNUmakefile000066400000000000000000000033301320461325300161420ustar00rootroot00000000000000include $(GNUSTEP_MAKEFILES)/common.make include local.make # # Application # VERSION = 0.44 PACKAGE_NAME = SimpleAgenda APP_NAME = SimpleAgenda SimpleAgenda_APPLICATION_ICON = Calendar.tiff # # Resource files # SimpleAgenda_RESOURCE_FILES = \ Resources/Agenda.gorm \ Resources/Appointment.gorm \ Resources/Preferences.gorm \ Resources/iCalendar.gorm \ Resources/Task.gorm \ Resources/GroupDAV.gorm \ Resources/Alarm.gorm \ Resources/Calendar.tiff \ Resources/ical-file.tiff \ Resources/repeat.tiff \ Resources/1left.tiff \ Resources/1right.tiff \ Resources/2left.tiff \ Resources/2right.tiff \ Resources/bell.tiff \ Resources/small-bell.tiff SimpleAgenda_LANGUAGES = English French Italian SimpleAgenda_LOCALIZED_RESOURCE_FILES = Localizable.strings # # Class files # SimpleAgenda_OBJC_FILES = \ AppController.m \ LocalStore.m \ AppointmentEditor.m \ CalendarView.m \ StoreManager.m \ DayView.m \ Event.m \ PreferencesController.m \ HourFormatter.m \ iCalStore.m \ ConfigManager.m \ Date.m \ iCalTree.m \ DataTree.m \ Element.m \ Task.m \ TaskEditor.m \ MemoryStore.m \ GroupDAVStore.m \ WebDAVResource.m \ WeekView.m \ AppointmentView.m \ SelectionManager.m \ RecurrenceRule.m \ NSColor+SimpleAgenda.m \ DateRange.m \ Alarm.m \ AlarmManager.m \ NSString+SimpleAgenda.m \ AlarmEditor.m \ SoundBackend.m \ InvocationOperation.m ifeq ($(ADDRESSES),yes) SimpleAgenda_OBJC_FILES += ABStore.m endif ifeq ($(DBUSKIT),yes) SimpleAgenda_OBJC_FILES += DBusBackend.m endif # # Other sources # SimpleAgenda_OBJC_FILES += \ SimpleAgenda.m ifeq ($(tests),yes) SUBPROJECTS = tests endif # # Makefiles # -include GNUmakefile.preamble include $(GNUSTEP_MAKEFILES)/application.make include $(GNUSTEP_MAKEFILES)/aggregate.make -include GNUmakefile.postamble simpleagenda-0.44/GNUmakefile.postamble000066400000000000000000000014711320461325300201330ustar00rootroot00000000000000# # GNUmakefile.postamble - Generated by ProjectCenter # # Things to do before compiling before-all:: config.h local.make config.h: config.h.in ./configure local.make: local.make.in ./configure # Things to do after compiling # after-all:: # Things to do before installing # before-install:: # Things to do after installing # after-install:: # Things to do before uninstalling # before-uninstall:: # Things to do after uninstalling # after-uninstall:: # Things to do before cleaning # before-clean:: # Things to do after cleaning # after-clean:: # Things to do before distcleaning # before-distclean:: # Things to do after distcleaning after-distclean:: -rm -f config.h config.log config.status local.make # Things to do before checking # before-check:: # Things to do after checking # after-check:: simpleagenda-0.44/GNUmakefile.preamble000066400000000000000000000013201320461325300177250ustar00rootroot00000000000000# # GNUmakefile.preamble - Generated by ProjectCenter # # Additional flags to pass to the preprocessor ADDITIONAL_CPPFLAGS += # Additional flags to pass to Objective C compiler ADDITIONAL_OBJCFLAGS += # Additional flags to pass to C compiler ADDITIONAL_CFLAGS += # Additional flags to pass to the linker ADDITIONAL_TOOL_LIBS += -lical ifeq ($(ADDRESSES),yes) ADDITIONAL_TOOL_LIBS += -lAddresses endif ifeq ($(DBUSKIT),yes) ADDITIONAL_TOOL_LIBS += -lDBusKit endif # Additional include directories the compiler should search ADDITIONAL_INCLUDE_DIRS += # Additional library directories the linker should search ADDITIONAL_LIB_DIRS += -L/usr/local/lib # Additional GUI libraries to link ADDITIONAL_GUI_LIBS += simpleagenda-0.44/GroupDAVStore.m000066400000000000000000000321431320461325300167160ustar00rootroot00000000000000#import #import #import "Event.h" #import "Task.h" #import "AgendaStore.h" #import "WebDAVResource.h" #import "iCalTree.h" #import "NSString+SimpleAgenda.h" #import "InvocationOperation.h" #import "StoreManager.h" #import "defines.h" @interface GroupDAVStore : MemoryStore { NSURL *_url; WebDAVResource *_calendar; WebDAVResource *_task; NSMutableDictionary *_uidhref; NSMutableDictionary *_hreftree; NSMutableDictionary *_hrefresource; NSMutableArray *_modifiedhref; } @end @interface GroupDAVDialog : NSObject { IBOutlet id panel; IBOutlet id name; IBOutlet id url; IBOutlet id cancel; IBOutlet id ok; IBOutlet id check; IBOutlet id calendar; IBOutlet id task; } - (BOOL)show; - (NSString *)url; - (NSString *)calendar; - (NSString *)task; - (void)selectItem:(id)sender; @end @implementation GroupDAVDialog - (void)clearPopUps { [calendar removeAllItems]; [task removeAllItems]; [calendar addItemWithTitle:@"None"]; [task addItemWithTitle:@"None"]; } - (id)initWithName:(NSString *)storeName { self = [super init]; if (self) { if (![NSBundle loadNibNamed:@"GroupDAV" owner:self]) return nil; [name setStringValue:storeName]; [url setStringValue:@"http://"]; [self clearPopUps]; } return self; } - (void)dealloc { [panel close]; [super dealloc]; } - (BOOL)show { [ok setEnabled:NO]; return [NSApp runModalForWindow:panel]; } - (void)buttonClicked:(id)sender { if (sender == cancel) [NSApp stopModalWithCode:0]; else if (sender == ok) [NSApp stopModalWithCode:1]; else if (sender == check) [self controlTextDidEndEditing:nil]; } - (void)updateOK { if ([calendar indexOfSelectedItem] > 0 || [task indexOfSelectedItem] > 0) [ok setEnabled:YES]; else [ok setEnabled:NO]; } - (void)selectItem:(id)sender { [self updateOK]; } - (void)controlTextDidEndEditing:(NSNotification *)aNotification { int i; WebDAVResource *resource; GSXMLParser *parser; NSString *body = @""; GSXPathContext *xpc; GSXPathNodeSet *set; [self clearPopUps]; if ([[url stringValue] isValidURL]) { resource = [[WebDAVResource alloc] initWithURL:[NSURL URLWithString:[url stringValue]]]; if ([resource propfind:[body dataUsingEncoding:NSUTF8StringEncoding] attributes:[NSDictionary dictionaryWithObject:@"Infinity" forKey:@"Depth"]]) { parser = [GSXMLParser parserWithData:[resource data]]; if ([parser parse]) { xpc = [[GSXPathContext alloc] initWithDocument:[[parser document] strippedDocument]]; set = (GSXPathNodeSet *)[xpc evaluateExpression:@"//response[propstat/prop/resourcetype/vevent-collection]/href/text()"]; for (i = 0; i < [set count]; i++) [calendar addItemWithTitle:[[set nodeAtIndex:i] content]]; set = (GSXPathNodeSet *)[xpc evaluateExpression:@"//response[propstat/prop/resourcetype/vtodo-collection]/href/text()"]; for (i = 0; i < [set count]; i++) [task addItemWithTitle:[[set nodeAtIndex:i] content]]; RELEASE(xpc); if ([calendar numberOfItems] > 0) [calendar selectItemAtIndex:1]; if ([task numberOfItems] > 0) [task selectItemAtIndex:1]; } } [resource release]; } [self updateOK]; } - (NSString *)url { return [url stringValue]; } - (NSString *)calendar { if ([calendar indexOfItem:[calendar selectedItem]] == 0) return nil; return [calendar titleOfSelectedItem]; } - (NSString *)task { if ([task indexOfItem:[task selectedItem]] == 0) return nil; return [task titleOfSelectedItem];; } @end @interface GroupDAVStore(Private) - (void)doRead; - (void)doWrite; @end @implementation GroupDAVStore - (NSDictionary *)defaults { return [NSDictionary dictionaryWithObjectsAndKeys:[[NSColor redColor] description], ST_COLOR, [[NSColor whiteColor] description], ST_TEXT_COLOR, [NSNumber numberWithBool:NO], ST_RW, [NSNumber numberWithBool:YES], ST_DISPLAY, [NSNumber numberWithBool:YES], ST_ENABLED, nil, nil]; } - (id)initWithName:(NSString *)name { self = [super initWithName:name]; if (self) { _uidhref = [[NSMutableDictionary alloc] initWithCapacity:512]; _hreftree = [[NSMutableDictionary alloc] initWithCapacity:512]; _hrefresource = [[NSMutableDictionary alloc] initWithCapacity:512]; _modifiedhref = [NSMutableArray new]; _url = [[NSURL alloc] initWithString:[[self config] objectForKey:ST_URL]]; _calendar = nil; _task = nil; if ([[self config] objectForKey:ST_CALENDAR_URL]) _calendar = [[WebDAVResource alloc] initWithURL:[[NSURL alloc] initWithString:[[self config] objectForKey:ST_CALENDAR_URL]] authFromURL:_url]; if ([[self config] objectForKey:ST_TASK_URL]) _task = [[WebDAVResource alloc] initWithURL:[[NSURL alloc] initWithString:[[self config] objectForKey:ST_TASK_URL]] authFromURL:_url]; [self read]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(configChanged:) name:SAConfigManagerValueChanged object:[self config]]; } return self; } + (BOOL)isUserInstanciable { return YES; } + (BOOL)registerWithName:(NSString *)name { ConfigManager *cm; GroupDAVDialog *dialog; NSURL *calendarURL = nil; NSURL *taskURL = nil; NSURL *baseURL; dialog = [[GroupDAVDialog alloc] initWithName:name]; if ([dialog show] == YES) { baseURL = [NSURL URLWithString:[dialog url]]; if ([dialog calendar]) calendarURL = [NSURL URLWithString:[dialog calendar] possiblyRelativeToURL:baseURL]; if ([dialog task]) taskURL = [NSURL URLWithString:[dialog task] possiblyRelativeToURL:baseURL]; [dialog release]; cm = [[ConfigManager alloc] initForKey:name]; [cm setObject:[dialog url] forKey:ST_URL]; if (calendarURL) [cm setObject:[calendarURL absoluteString] forKey:ST_CALENDAR_URL]; if (taskURL) [cm setObject:[taskURL absoluteString] forKey:ST_TASK_URL]; [cm setObject:[[self class] description] forKey:ST_CLASS]; [cm setObject:[NSNumber numberWithBool:YES] forKey:ST_RW]; return YES; } [dialog release]; return NO; } + (NSString *)storeTypeName { return @"GroupDAV"; } - (void)dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; [_url release]; [_calendar release]; [_task release]; [_uidhref release]; [_hreftree release]; [_hrefresource release]; [_modifiedhref release]; [super dealloc]; } - (void)refreshData:(NSTimer *)timer { [self read]; } - (void)add:(Element *)elt { NSURL *url; WebDAVResource *resource; iCalTree *tree; if ([elt isKindOfClass:[Event class]]) url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/%@", [[_calendar url] absoluteString], [elt UID]]]; else url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/%@", [[_task url] absoluteString], [elt UID]]]; resource = [[WebDAVResource alloc] initWithURL:url authFromURL:_url]; tree = [iCalTree new]; if ([tree add:elt]) { [resource put:[tree iCalTreeAsData] attributes:[NSDictionary dictionaryWithObjectsAndKeys:@"text/calendar; charset=utf-8", @"Content-Type", @"*", @"If-None-Match", nil, nil]]; if ([resource httpStatus] > 199 && [resource httpStatus] < 300) /* FIXME : this is extremely slow. We should only load attributes and fetch new or modified elements */ /* Reloading all data is a way to handle href and uid modification done by the server */ [self doRead]; else NSLog(@"Error %d writing event to %@", [resource httpStatus], [url anonymousAbsoluteString]); } [tree release]; [resource release]; } - (void)remove:(Element *)elt { NSURL *href = [_uidhref objectForKey:[elt UID]]; WebDAVResource *resource = [_hrefresource objectForKey:href]; [resource delete]; if ([resource httpStatus] == 412) { /* FIXME : force a visual refresh ? */ [resource updateAttributes]; NSLog(@"Couldn't delete item, it has changed on the server"); } else { [_hrefresource removeObjectForKey:href]; [_uidhref removeObjectForKey:[elt UID]]; [super remove:elt]; } } /* FIXME : update the iCal tree iif data was written succesfully */ - (void)update:(Element *)elt { NSString *href = [_uidhref objectForKey:[elt UID]]; iCalTree *tree = [_hreftree objectForKey:href]; if ([tree update:(Event *)elt]) { [super update:elt]; [_modifiedhref addObject:href]; [self write]; } } - (void)read { if ([self enabled]) [[[StoreManager globalManager] operationQueue] addOperation:[[[InvocationOperation alloc] initWithTarget:self selector:@selector(doRead) object:nil] autorelease]]; } - (void)write { if (![self enabled] || ![self writable]) return; [[[StoreManager globalManager] operationQueue] addOperation:[[[InvocationOperation alloc] initWithTarget:self selector:@selector(doWrite) object:nil] autorelease]]; } - (void)configChanged:(NSNotification *)not { NSString *key = [[not userInfo] objectForKey:@"key"]; if ([key isEqualToString:ST_ENABLED]) { if ([self enabled]) [self read]; } } @end @implementation GroupDAVStore(Private) static NSString * const PROPFINDGETETAG = @""; static NSString * const EXPRGETHREF = @"//response[propstat/prop/getetag]/href/text()"; - (NSArray *)itemsUnderRessource:(WebDAVResource *)ressource { int i; GSXMLParser *parser; NSMutableArray *result; GSXPathContext *xpc; GSXPathNodeSet *set; NSURL *elementURL; if (![ressource propfind:[PROPFINDGETETAG dataUsingEncoding:NSUTF8StringEncoding] attributes:[NSDictionary dictionaryWithObject:@"1" forKey:@"Depth"]]) return nil; result = [NSMutableArray arrayWithCapacity:256]; parser = [GSXMLParser parserWithData:[ressource data]]; if ([parser parse]) { xpc = [[GSXPathContext alloc] initWithDocument:[[parser document] strippedDocument]]; set = (GSXPathNodeSet *)[xpc evaluateExpression:EXPRGETHREF]; for (i = 0; i < [set count]; i++) { elementURL = [NSURL URLWithString:[[set nodeAtIndex:i] content] possiblyRelativeToURL:[ressource url]]; if (elementURL) [result addObject:elementURL]; } RELEASE(xpc); } return result; } - (void)add:(NSArray *)items toSet:(NSMutableSet *)loadedData { WebDAVResource *element; iCalTree *tree; NSEnumerator *enumerator; NSURL *href; NSSet *components; enumerator = [items objectEnumerator]; while ((href = [enumerator nextObject])) { element = [[WebDAVResource alloc] initWithURL:href authFromURL:_url]; tree = [iCalTree new]; if ([element get] && [tree parseData:[element data]]) { components = [tree components]; if ([components count] > 0) { [loadedData unionSet:components]; [_hreftree setObject:tree forKey:href]; [_hrefresource setObject:element forKey:href]; [_uidhref setObject:href forKey:[[components anyObject] UID]]; } } [tree release]; [element release]; } } - (void)doRead { NSMutableSet *loadedData = [[NSMutableSet alloc] initWithCapacity:512]; BOOL error = NO; NSArray *items; if (_calendar) { items = [self itemsUnderRessource:_calendar]; if (items) [self add:items toSet:loadedData]; else error = YES; } if (_task && !error) { items = [self itemsUnderRessource:_task]; if (items) [self add:items toSet:loadedData]; else error = YES; } if (error) { NSLog(@"Error while reading %@", [self description]); [[NSNotificationCenter defaultCenter] postNotificationName:SAErrorReadingStore object:self userInfo:[NSDictionary dictionary]]; } else { [self performSelectorOnMainThread:@selector(fillWithElements:) withObject:loadedData waitUntilDone:YES]; NSLog(@"GroupDAVStore from %@ : loaded %d appointment(s)", [_url anonymousAbsoluteString], [[self events] count]); NSLog(@"GroupDAVStore from %@ : loaded %d tasks(s)", [_url anonymousAbsoluteString], [[self tasks] count]); } [loadedData release]; } - (void)doWrite { NSDictionary *attr = [NSDictionary dictionaryWithObject:@"text/calendar; charset=utf-8" forKey:@"Content-Type"]; NSEnumerator *enumerator; WebDAVResource *element; iCalTree *tree; NSURL *href; NSArray *copy; BOOL error = NO; copy = [_modifiedhref copy]; enumerator = [copy objectEnumerator]; while ((href = [enumerator nextObject])) { element = [_hrefresource objectForKey:href]; tree = [_hreftree objectForKey:href]; if ([element put:[tree iCalTreeAsData] attributes:attr]) { /* Read it back to update the attributes */ /* FIXME : RFC says we should update the list instead */ [element updateAttributes]; [_modifiedhref removeObject:href]; NSLog(@"Written %@", [href anonymousAbsoluteString]); } else { NSLog(@"Unable to write to %@", [href anonymousAbsoluteString]); error = YES; } } if (error) { NSLog(@"Calendar %@ will be made read only and data reread", [self description]); [[NSNotificationCenter defaultCenter] postNotificationName:SAErrorWritingStore object:self userInfo:[NSDictionary dictionary]]; } [copy release]; } @end simpleagenda-0.44/HourFormatter.h000066400000000000000000000002531320461325300170430ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import @interface HourFormatter : NSFormatter + (NSString *)stringForObjectValue:(id)anObject; @end simpleagenda-0.44/HourFormatter.m000066400000000000000000000035211320461325300170510ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "HourFormatter.h" @implementation HourFormatter + (NSString *)stringForObjectValue:(id)anObject { int hours; int minutes; if (![anObject isKindOfClass:[NSNumber class]]) return nil; hours = [anObject intValue] / 3600; minutes = [anObject intValue] / 60 - hours * 60; return [NSString stringWithFormat:@"%dh%02d", hours, minutes]; } - (NSString *)stringForObjectValue:(id)anObject { return [HourFormatter stringForObjectValue:anObject]; } - (BOOL)getObjectValue:(id *)anObject forString:(NSString *)string errorDescription:(NSString **)error { NSNumberFormatter *nf; NSNumber *hours; NSNumber *minutes; NSArray *components = [string componentsSeparatedByString:@"h"]; if (!components || [components count] != 2) { if (error) *error = [[NSString alloc] initWithString:@"Bad time formatting : cannot find hours and minutes separated by h"]; return NO; } nf = AUTORELEASE([[NSNumberFormatter alloc] init]); hours = [nf numberFromString:[components objectAtIndex:0]]; minutes = [nf numberFromString:[components objectAtIndex:1]]; if (!hours || !minutes) { if (error) *error = [[NSString alloc] initWithString:@"Bad time formatting"]; return NO; } if ([hours intValue] < 0 || [hours intValue] > 23) { if (error) *error = [[NSString alloc] initWithString:@"Hours must be between 0 and 23"]; return NO; } if ([minutes intValue] < 0 || [minutes intValue] > 59) { if (error) *error = [[NSString alloc] initWithString:@"Minutes must be between 0 and 59"]; return NO; } *anObject = [[NSNumber alloc] initWithInt:[hours intValue] * 3600 + [minutes intValue] * 60.0]; return YES; } - (NSAttributedString *)attributedStringForObjectValue:(id)anObject withDefaultAttributes:(NSDictionary *)attributes { return nil; } @end simpleagenda-0.44/InvocationOperation.h000066400000000000000000000004621320461325300202360ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import @interface InvocationOperation : NSOperation { NSInvocation *_invocation; } - (id)initWithInvocation:(NSInvocation *)inv; - (id)initWithTarget:(id)target selector:(SEL)sel object:(id)arg; @end simpleagenda-0.44/InvocationOperation.m000066400000000000000000000014331320461325300202420ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import "InvocationOperation.h" @implementation InvocationOperation - (id)initWithInvocation:(NSInvocation *)inv { if ((self = [super init])) _invocation = [inv retain]; return self; } - (id)initWithTarget:(id)target selector:(SEL)sel object:(id)arg { NSInvocation *inv; inv = [NSInvocation invocationWithMethodSignature:[target methodSignatureForSelector:sel]]; [inv setTarget:target]; [inv setSelector:sel]; if (arg) [inv setArgument:&arg atIndex:2]; return [[InvocationOperation alloc] initWithInvocation:inv]; } - (void)dealloc { [_invocation release]; [super dealloc]; } - (void)main { NSDebugLLog(@"SimpleAgenda", @"%@", [_invocation description]); [_invocation invoke]; } @end simpleagenda-0.44/Italian.lproj/000077500000000000000000000000001320461325300165775ustar00rootroot00000000000000simpleagenda-0.44/Italian.lproj/Localizable.strings000066400000000000000000000032141320461325300224330ustar00rootroot00000000000000/*** English.lproj/Localizable.strings updated by make_strings 2010-03-11 10:46:44 +0100 add comments above this one Localization by Bertalan Ivan bertalan.ivan@gmailc.om ***/ /*** Keys found in multiple places ***/ /* File: DayView.m:42 */ /* File: WeekView.m:32 */ "All day : %@" = "Tutto il giorno : %@"; /*** Strings from ABStore.m ***/ /* File: ABStore.m:58 */ "Birthday" = "Compleanno"; /* File: ABStore.m:29 */ "my address book" = "mia rubrica"; /*** Strings from AppController.m ***/ /* File: AppController.m:406 */ "Export as" = "Esporta come"; /* File: AppController.m:363 */ "New task" = "Nuovo evento"; /* File: AppController.m:82 */ "Open tasks" = "Apri evento"; /* File: AppController.m:155 */ "Open tasks (%d)" = "Apri evento (%d)"; /* File: AppController.m:514 */ /* File: AppController.m:81 */ "Search results" = "Cerca risultati"; /* File: AppController.m:512 */ "Search results (%d items)" = "Cerca risultati (%d elementi)"; /* File: AppController.m:80 */ "Soon" = "Tra poco"; /* File: AppController.m:680 */ /* File: AppController.m:169 */ "Tasks" = "Eventi"; /* File: AppController.m:78 */ "Today" = "Oggi"; /* File: AppController.m:79 */ "Tomorrow" = "Domani"; /* File: AppController.m:682 */ /* File: AppController.m:167 */ "Week %d" = "Settimana %d"; /* File: AppController.m:339 */ "edit summary..." = "modifica sommario..."; /* File: AppController.m:715 */ /* File: AppController.m:331 */ "edit title..." = "modifica titolo..."; /*** Strings from Task.m ***/ /* File: Task.m:30 */ "Canceled" = "Cancellato"; /* File: Task.m:30 */ "Completed" = "Completato"; /* File: Task.m:30 */ "None" = "No"; /* File: Task.m:30 */ "Started" = "Iniziato"; simpleagenda-0.44/LocalStore.m000066400000000000000000000057701320461325300163270ustar00rootroot00000000000000#import #import "AgendaStore.h" #import "Event.h" #import "Task.h" #import "defines.h" @interface LocalStore : MemoryStore { NSString *_globalPath; NSString *_globalFile; NSString *_globalTaskFile; } @end @implementation LocalStore - (NSDictionary *)defaults { return [NSDictionary dictionaryWithObjectsAndKeys:[[NSColor yellowColor] description], ST_COLOR, [[NSColor darkGrayColor] description], ST_TEXT_COLOR, [NSNumber numberWithBool:YES], ST_RW, [NSNumber numberWithBool:YES], ST_DISPLAY, [NSNumber numberWithBool:YES], ST_ENABLED, nil, nil]; } - (id)initWithName:(NSString *)name { self = [super initWithName:name]; if (self) { _globalPath = [[[NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"SimpleAgenda"] retain]; _globalFile = [[_globalPath stringByAppendingPathComponent:[[self config] objectForKey:ST_FILE]] retain]; _globalTaskFile = [[NSString stringWithFormat:@"%@.tasks", _globalFile] retain]; [self read]; } return self; } + (BOOL)isUserInstanciable { return YES; } + (BOOL)registerWithName:(NSString *)name { ConfigManager *cm; cm = [[ConfigManager alloc] initForKey:name]; [cm setObject:[name copy] forKey:ST_FILE]; [cm setObject:[[self class] description] forKey:ST_CLASS]; [cm release]; return YES; } + (NSString *)storeTypeName { return @"Local file"; } - (void)dealloc { [_globalFile release]; [_globalTaskFile release]; [_globalPath release]; [super dealloc]; } - (void)read { NSFileManager *fm = [NSFileManager defaultManager]; NSSet *savedData; BOOL isDir; if (![fm fileExistsAtPath:_globalPath]) { if (![fm createDirectoryAtPath:_globalPath attributes:nil]) { NSLog(@"Error creating dir %@", _globalPath); return; } NSLog(@"Created directory %@", _globalPath); } if ([fm fileExistsAtPath:_globalFile isDirectory:&isDir] && !isDir) { savedData = [NSKeyedUnarchiver unarchiveObjectWithFile:_globalFile]; if (savedData) { [self fillWithElements:savedData]; NSLog(@"LocalStore from %@ : loaded %d appointment(s)", _globalFile, [[self events] count]); } } if ([fm fileExistsAtPath:_globalTaskFile isDirectory:&isDir] && !isDir) { savedData = [NSKeyedUnarchiver unarchiveObjectWithFile:_globalTaskFile]; if (savedData) { [self fillWithElements:savedData]; NSLog(@"LocalStore from %@ : loaded %d tasks(s)", _globalTaskFile, [[self tasks] count]); } } } - (void)write { if (![self modified]) return; if ([NSKeyedArchiver archiveRootObject:[NSSet setWithArray:[self events]] toFile:_globalFile] && [NSKeyedArchiver archiveRootObject:[NSSet setWithArray:[self tasks]] toFile:_globalTaskFile]) { NSLog(@"LocalStore written to %@", _globalFile); [self setModified:NO]; } else { NSLog(@"Unable to write to %@, make this store read only", _globalFile); [self setWritable:NO]; } } @end simpleagenda-0.44/MemoryStore.h000066400000000000000000000031121320461325300165240ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import "ConfigManager.h" extern NSString * const SADataChangedInStore; extern NSString * const SAStatusChangedForStore; extern NSString * const SAEnabledStatusChangedForStore; extern NSString * const SAElementAddedToStore; extern NSString * const SAElementRemovedFromStore; extern NSString * const SAElementUpdatedInStore; extern NSString * const SAErrorReadingStore; extern NSString * const SAErrorWritingStore; @class Element; @class NSColor; @protocol MemoryStore + (BOOL)registerWithName:(NSString *)name; + (id)storeNamed:(NSString *)name; + (BOOL)isUserInstanciable; + (NSString *)storeName; + (NSString *)storeTypeName; - (id)initWithName:(NSString *)name; - (ConfigManager *)config; - (NSArray *)events; - (NSArray *)tasks; - (Element *)elementWithUID:(NSString *)uid; - (void)fillWithElements:(NSSet *)set; - (void)add:(Element *)evt; - (void)remove:(Element *)elt; - (void)update:(Element *)evt; - (BOOL)contains:(Element *)elt; - (BOOL)modified; - (void)setModified:(BOOL)modified; - (BOOL)writable; - (void)setWritable:(BOOL)writable; - (NSColor *)eventColor; - (void)setEventColor:(NSColor *)color; - (NSColor *)textColor; - (void)setTextColor:(NSColor *)color; - (BOOL)displayed; - (void)setDisplayed:(BOOL)state; - (BOOL)enabled; - (void)setEnabled:(BOOL)state; @end @interface MemoryStore : NSObject { ConfigManager *_config; NSMutableDictionary *_data; NSMutableDictionary *_tasks; BOOL _modified; NSString *_name; BOOL _displayed; BOOL _writable; BOOL _enabled; } @end simpleagenda-0.44/MemoryStore.m000066400000000000000000000127141320461325300165410ustar00rootroot00000000000000#import #import "MemoryStore.h" #import "Event.h" #import "Task.h" #import "defines.h" NSString * const SADataChangedInStore = @"SADataDidChangedInStore"; NSString * const SAStatusChangedForStore = @"SAStatusChangedForStore"; NSString * const SAEnabledStatusChangedForStore = @"SAEnabledStatusChangedForStore"; NSString * const SAElementAddedToStore = @"SAElementAddedToStore"; NSString * const SAElementRemovedFromStore = @"SAElementRemoveFromStore"; NSString * const SAElementUpdatedInStore = @"SAElementUpdatedInStore"; NSString * const SAErrorReadingStore = @"SAErrorReadingStore"; NSString * const SAErrorWritingStore = @"SAErrorWritingStore"; @implementation MemoryStore + (BOOL)registerWithName:(NSString *)name { return NO; } + (id)storeNamed:(NSString *)name { return AUTORELEASE([[self allocWithZone: NSDefaultMallocZone()] initWithName:name]); } + (BOOL)isUserInstanciable { return NO; } + (NSString *)storeName { [self subclassResponsibility:_cmd]; return nil; } + (NSString *)storeTypeName { [self subclassResponsibility:_cmd]; return nil; } - (NSDictionary *)defaults { [self subclassResponsibility:_cmd]; return nil; } - (id)initWithName:(NSString *)name { self = [super init]; if (self) { _name = [name copy]; _config = [[ConfigManager alloc] initForKey:name]; /* * Don't remove this even if it's seems silly : it will * call the subclass's -defaults method which will have * values */ [_config registerDefaults:[self defaults]]; _modified = NO; _data = [[NSMutableDictionary alloc] initWithCapacity:512]; _tasks = [[NSMutableDictionary alloc] initWithCapacity:128]; _writable = [[_config objectForKey:ST_RW] boolValue]; _displayed = [[_config objectForKey:ST_DISPLAY] boolValue]; _enabled = [[_config objectForKey:ST_ENABLED] boolValue]; } return self; } - (void)dealloc { NSDebugLLog(@"SimpleAgenda", @"Releasing store %@", _name); [_data release]; [_tasks release]; [_name release]; [_config release]; [super dealloc]; } - (ConfigManager *)config { return _config; } - (NSArray *)events { return [_data allValues]; } - (NSArray *)tasks { return [_tasks allValues]; } - (Element *)elementWithUID:(NSString *)uid { if ([_data objectForKey:uid] != nil) return [_data objectForKey:uid]; if ([_tasks objectForKey:uid] != nil) return [_tasks objectForKey:uid]; return nil; } /* Should be used only when loading data */ - (void)fillWithElements:(NSSet *)set { NSEnumerator *enumerator = [set objectEnumerator]; Element *elt; while ((elt = [enumerator nextObject])) { [elt setStore:self]; if ([elt isKindOfClass:[Event class]]) [_data setValue:elt forKey:[elt UID]]; else [_tasks setValue:elt forKey:[elt UID]]; } [[NSNotificationCenter defaultCenter] postNotificationName:SADataChangedInStore object:self]; } - (void)add:(Element *)elt { NSString *uid = [elt UID]; [elt setStore:self]; if ([elt isKindOfClass:[Event class]]) [_data setValue:elt forKey:uid]; else [_tasks setValue:elt forKey:uid]; _modified = YES; [[NSNotificationCenter defaultCenter] postNotificationName:SAElementAddedToStore object:self userInfo:[NSDictionary dictionaryWithObject:uid forKey:@"UID"]]; } - (void)remove:(Element *)elt { NSString *uid = [elt UID]; if ([elt isKindOfClass:[Event class]]) [_data removeObjectForKey:uid]; else [_tasks removeObjectForKey:uid]; _modified = YES; [[NSNotificationCenter defaultCenter] postNotificationName:SAElementRemovedFromStore object:self userInfo:[NSDictionary dictionaryWithObject:uid forKey:@"UID"]]; } - (void)update:(Element *)elt; { [elt setDateStamp:[Date now]]; _modified = YES; [[NSNotificationCenter defaultCenter] postNotificationName:SAElementUpdatedInStore object:self userInfo:[NSDictionary dictionaryWithObject:[elt UID] forKey:@"UID"]]; } - (BOOL)contains:(Element *)elt { if ([elt isKindOfClass:[Event class]]) return [_data objectForKey:[elt UID]] != nil; return [_tasks objectForKey:[elt UID]] != nil; } - (BOOL)writable { return _writable; } - (void)setWritable:(BOOL)writable { _writable = writable; [_config setObject:[NSNumber numberWithBool:_writable] forKey:ST_RW]; [[NSNotificationCenter defaultCenter] postNotificationName:SAStatusChangedForStore object:self]; } - (BOOL)modified { return _modified; } - (void)setModified:(BOOL)modified { _modified = modified; } - (NSString *)description { return _name; } - (NSColor *)eventColor { return [_config colorForKey:ST_COLOR]; } - (void)setEventColor:(NSColor *)color { [_config setColor:color forKey:ST_COLOR]; } - (NSColor *)textColor { return [_config colorForKey:ST_TEXT_COLOR]; } - (void)setTextColor:(NSColor *)color { [_config setColor:color forKey:ST_TEXT_COLOR]; } - (BOOL)displayed { return _displayed; } - (void)setDisplayed:(BOOL)state { _displayed = state; [_config setObject:[NSNumber numberWithBool:_displayed] forKey:ST_DISPLAY]; [[NSNotificationCenter defaultCenter] postNotificationName:SAStatusChangedForStore object:self]; } - (BOOL)enabled { return _enabled; } - (void)setEnabled:(BOOL)state { _enabled = state; NSLog(@"Store %@ %@", _name, state ? @"enabled" : @"disabled"); [_config setObject:[NSNumber numberWithBool:_enabled] forKey:ST_ENABLED]; [[NSNotificationCenter defaultCenter] postNotificationName:SAEnabledStatusChangedForStore object:self]; } @end simpleagenda-0.44/NEWS000066400000000000000000000203731320461325300145750ustar00rootroot00000000000000version 0.44 (2017/11/20) * Fix missing -document methods in appointment and tasks editor * Compilation warnings fixes from Yavor Doganov * autoconf & co fixes also from Yavor Doganov * Change main window geometry (make all views visible) version 0.43 (2012/09/15) * Fix ticket #19 : preface.h doesn't exist anymore in GNUstep so stop including it just for the MAX macro * Fix ticket #18 with a patch from Sebastian (note to self : learn shell syntax) * Fix ticket #20 with a patch from Sebastian * Add Italian translation from Bertalan Ivan * Start conversion from badly written threaded code to NSOperation * New implementation of ConfigManager (again...) * Make the main window closable * Fix race between store loading and window first display * Implement an old feature request from Dennis Leeuw : in the day view you can right click on an appointment and make it sticky. You won't be able to mistakenly move it or resize it. * Add a contextual menu to move an appointment from a calendar to another * Type 'make tests=yes' to build and run the 'testsuite' version 0.42 (2011/04/27) * Bug fixes and code cleanups * Handle read only stores when cut & pasting elements * Simple reminders/alarms handling with multiple backends * Alarm editor for events and tasks with basic functionalities * New images from OpenClipArt (bell_gold.svg) * Fix ticket #12 : timezone problems with recurrent events * Use calendar instead of store and agenda in the ui * Handle due date in tasks * Fix URL handling for GroupDAV calendars, tested against Citadel and OGO * Enable copy/paste on multiple elements (select with control key) * Don't write authentication informations on the stdout (see ticket #17) version 0.41 (2010/03/15) * Threads/memory pools/notifications fixes * Fix silly bugs in the makefile when using conditions : we always tried to link with libuuid and Addresses even when configure didn't detect them * Big changes in ConfigManager : it doesn't retain its listeners anymore and listeners are now global. It means that you can register for any key with any ConfigManager instance. * New ABStore that creates birthday events from Addresses contacts if the Addresses framework is available. * New application icon from OpenClipArt version 0.40 (2010/03/05) * Display tooltips over appointments if the user want them * Use libuuid to generate unique event ids if available * Fix ticket #13 : iCalendar stores can use local files * The appointment editor becomes non modal * The task editor becomes non modal * Internationalization infrastructure and beginning of a french translation * Set application title from the selected date and tab * Show today's date in the appicon * Use a human readable description for colors in defaults * Show time in the appicon * Add a new UI Preferences panel and use it for tooltips and date and time in the appicon * Full keyboard navigation in appointment and task dialogs (you can use the Tab key in the description fields, yeah !) * Better navigation performances with lots of appointments * Bug fixes thanks to Fred Kiefer, James Jordan, Sergey Golovin and Sebastian Reitenbach version 0.39 (2009/09/20) * Code cleanups (as always) * Fix empty Task tab on startup bug * Add configure step to locate libical header and clean the makefile while we're at it * Allow event selection and edition in the week view * Fix ticket #10 (appointment going past midnight not shown in the second day view) * Add a slider in the appointment editor to modify the start time * Use a bigger step in the appointment editor sliders when holding the alt key * Various bug fixes version 0.38 (2009/03/18) * Fix tickets #6 and #7 * Add a preliminary week view * Use a SelectionManager instead of various workarounds * Various code cleanups * Asynchronous load for distant stores on startup (try #3) * Add a tests/ folder with what should become a test suite * Automatic refresh and refresh interval in the preferences panel, enabled only for the backends that support it * Fix ticket #8 * Use libical recurrence handling and remove our old junk * Add menu entries to quickly change the selected date * Change date navigation in the calendar and reduce its size version 0.37 (2008/11/02) * Fix buglets uncovered by libical 0.41 * Fix summary view size on startup * Fix method used to compare dates. Should fix multiple bugs with recurrent events * Better error handling on webdav resources * Fix week number calculation (ticket #3) version 0.36 (2008/01/20) * Calendar UI changes : to reduce calendar size, use different visual hints. Today has a yellow background (unchanged), the selected day cell is bezeled/pushed (was a bold font) and busy days use a bold font (instead of a tick mark). Always show six weeks with black text for the chosen month and white text for the previous and next ones. Use a defined font size so that it all fits whatever the user choose as a default size. * Day view : circle through appointments with TAB and edit the selected one with enter * Day view : no more appointments overlapping. The algorithm is not 100% correct, we might want to change that in the future * Change license for future GNUstep GPLv3 release compatibility Thanks to Yavor Doganov for pointing out the issue. * Use ETags to prevent overwriting distant modifications * Add a menu item to force agendas to reload their data * Bug fixes and various improvements * Experimental GroupDAV support : some things work but use with care. Feedback appreciated version 0.35 (2007/12/31) * Fix (fingers crossed) timezone bugs and current day timer * New website at http://coyote.octets.fr/simpleagenda version 0.34 (2007/12/13) * Fix loading and saving logic : when loading an iCalendar, we used to refresh the view for each appointment and task. Should be quite faster when loading a big calendar. Also, stop saving unmodified local calendars on exit. * Fix position for appointments going outside the day view * Show abbreviated date in day view tab * Double click on the calendar to add an appointment * Fix iCalendar stores data refresh timer * Workaround for the element selection problem. Needs a far better solution. version 0.33 (2007/12/08) * Fix dates of summary events * Add a visual hint for recurrent events * Fix iCalendar date and duration encoding * Fix pasteboard interaction * Draw appointments with transparency (code from old http://www.linuks.mine.nu/agenda/agenda-0.1.tar.gz) version 0.32 (2007/12/07) * Add 'SimpleAgenda/Create Task' service * Internal modifications and refactoring * Add Open tasks category to summary view * Enable 24 hours DayView * Change iCalStore creation to set store writable flag if possible without erasing existing data * Show days with appointments in MonthView. * Real asynchronous startup for remote stores. Thanks to Dennis Leeuw for this bug report (and many others) * Fix end date processing for recurrent events : events can repeat for ever or until a specified date version 0.31 (2007/11/21) * Bug fixes * Appointments sorted by date in the summary * Deleted code to read old Date objects encoding * Update search results when store data change version 0.30 (2007/11/12) * Refactor code to handle multiple kinds of events * Add simple task (iCalendar VTODO) support * Add a task view * Coherent ui : in summary, day view and task view, simple click to select and double click to edit * Make calendar view smaller * Fix appointment resize bug in day view version 0.29 (2007/11/02) * Preferences dialog uses a popup to select categories (r276) * Events text color selectable in store preferences * Fix time zone bugs * Fix iCal authenticated loading version 0.28 * Simple text search version 0.27 (2007/09/18) * Fix keyboard handling in the day view * Add store creation in preferences dialog * Load iCal stores asynchronously * Fix keyboard navigation in preferences dialog version 0.26 (2007/08/16) * Save main window geometry * Add a 'Save all' item menu to fsync data * Register SimpleAgenda as an application handling .ics files and import events when user open one * Add a NEWS file * Fix compilation with gcc 3.3 * Fix events dates in the summary * Selecting an event in the summary shows it in the day view simpleagenda-0.44/NSColor+SimpleAgenda.h000066400000000000000000000006361320461325300201130ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import /* * This method is available but not defined. Avoid * a compilation warning by declaring it here. */ @interface NSColor(NotDefinedMethods) + (NSColor *)colorFromString:(NSString *)string; @end @interface NSColor(SimpleAgenda) - (NSColor *)colorModifiedWithDeltaRed:(float)red green:(float)green blue:(float)blue alpha:(float)alpha; @end simpleagenda-0.44/NSColor+SimpleAgenda.m000066400000000000000000000006671320461325300201240ustar00rootroot00000000000000#import "NSColor+SimpleAgenda.h" @implementation NSColor(SimpleAgenda) - (NSColor *)colorModifiedWithDeltaRed:(float)red green:(float)green blue:(float)blue alpha:(float)alpha; { return [NSColor colorWithCalibratedRed:[self redComponent] + red green:[self greenComponent] + green blue:[self blueComponent] + blue alpha:[self alphaComponent] + alpha]; } @end simpleagenda-0.44/NSString+SimpleAgenda.h000066400000000000000000000002351320461325300202760ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import @interface NSString(SimpleAgenda) + (NSString *)uuid; - (BOOL)isValidURL; @end simpleagenda-0.44/NSString+SimpleAgenda.m000066400000000000000000000021221320461325300203000ustar00rootroot00000000000000#import #import "NSString+SimpleAgenda.h" #import "config.h" #ifdef HAVE_UUID_UUID_H #include #else #import "Date.h" #endif @implementation NSString(SimpleAgenda) + (NSString *)uuid { #ifdef HAVE_LIBUUID uuid_t uuid; char uuid_str[37]; uuid_generate(uuid); uuid_unparse(uuid, uuid_str); return [NSString stringWithCString:uuid_str]; #else Date *now = [Date now]; static Date *lastDate; static int counter; if (!lastDate) ASSIGNCOPY(lastDate, now); else { if (![lastDate compare:now withTime:YES]) counter++; else { ASSIGNCOPY(lastDate, now); counter = 0; } } return [NSString stringWithFormat:@"%@-%d-%@", [now description], counter, [[NSHost currentHost] address]]; #endif } - (BOOL)isValidURL { BOOL valid = NO; NSURL *url; NS_DURING { /* We want an absolute URL */ if ((url = [NSURL URLWithString:self]) && [url scheme]) valid = YES; } NS_HANDLER { NSDebugLLog(@"SimpleAgenda", @"<%@> isn't a valid URL", self); } NS_ENDHANDLER return valid; } @end simpleagenda-0.44/PreferencesController.h000066400000000000000000000034331320461325300205520ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import "AgendaStore.h" #import "StoreManager.h" @interface PreferencesController : NSObject { IBOutlet id panel; IBOutlet id dayStart; IBOutlet id dayEnd; IBOutlet id minStep; IBOutlet id dayStartText; IBOutlet id dayEndText; IBOutlet id minStepText; IBOutlet id storePopUp; IBOutlet id storeColor; IBOutlet id storeTextColor; IBOutlet id defaultStorePopUp; IBOutlet id storeDisplay; IBOutlet id storeWritable; IBOutlet id storeRefresh; IBOutlet id storeEnabled; IBOutlet id refreshInterval; IBOutlet id refreshIntervalText; IBOutlet id removeButton; IBOutlet id storeClass; IBOutlet id storeName; IBOutlet id createButton; IBOutlet NSBox *slot; IBOutlet id globalPreferences; IBOutlet id storePreferences; IBOutlet id storeFactory; IBOutlet id itemPopUp; IBOutlet id showTooltip; IBOutlet id uiPreferences; IBOutlet id showDateAppIcon; IBOutlet id showTimeAppIcon; IBOutlet id alarmPreferences; IBOutlet id alarmEnabled; IBOutlet id alarmBackendPopUp; StoreManager *_sm; } - (void)showPreferences; - (void)selectStore:(id)sender; - (void)changeColor:(id)sender; - (void)changeTextColor:(id)sender; - (void)changeStart:(id)sender; - (void)changeEnd:(id)sender; - (void)changeStep:(id)sender; - (void)changeInterval:(id)sender; - (void)selectDefaultStore:(id)sender; - (void)toggleDisplay:(id)sender; - (void)toggleWritable:(id)sender; - (void)toggleRefresh:(id)sender; - (void)toggleEnabled:(id)sender; - (void)removeStore:(id)sender; - (void)createStore:(id)sender; - (void)selectItem:(id)sender; - (void)toggleTooltip:(id)sender; - (void)toggleShowDate:(id)sender; - (void)toggleShowTime:(id)sender; - (void)toggleAlarms:(id)sender; - (void)selectAlarmBackend:(id)sender; @end simpleagenda-0.44/PreferencesController.m000066400000000000000000000242521320461325300205610ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "PreferencesController.h" #import "HourFormatter.h" #import "ConfigManager.h" #import "AlarmManager.h" #import "AlarmBackend.h" #import "defines.h" @implementation PreferencesController - (id)init { self = [super init]; if (self) { if (![NSBundle loadNibNamed:@"Preferences" owner:self]) return nil; _sm = [StoreManager globalManager]; HourFormatter *formatter = [[[HourFormatter alloc] init] autorelease]; [[dayStartText cell] setFormatter:formatter]; [[dayEndText cell] setFormatter:formatter]; [[minStepText cell] setFormatter:formatter]; [[refreshIntervalText cell] setFormatter:formatter]; RETAIN(globalPreferences); RETAIN(storePreferences); RETAIN(storeFactory); RETAIN(uiPreferences); RETAIN(alarmPreferences); [self selectItem:itemPopUp]; [panel setFrameAutosaveName:@"preferencesPanel"]; /* FIXME : could we call setupDefaultStore directly ? */ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(storeStateChanged:) name:SAStatusChangedForStore object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(storeStateChanged:) name:SAEnabledStatusChangedForStore object:nil]; } return self; } - (void)dealloc { RELEASE(globalPreferences); RELEASE(storePreferences); RELEASE(storeFactory); RELEASE(uiPreferences); RELEASE(alarmPreferences); [super dealloc]; } - (void)setupDefaultStore { NSString *defaultStore = [[ConfigManager globalConfig] objectForKey:ST_DEFAULT]; NSEnumerator *list = [_sm storeEnumerator]; id aStore; [defaultStorePopUp removeAllItems]; while ((aStore = [list nextObject])) { if ([aStore writable] && [aStore enabled]) [defaultStorePopUp addItemWithTitle:[aStore description]]; } if ([defaultStorePopUp numberOfItems] > 0) { if ([defaultStorePopUp itemWithTitle:defaultStore]) [defaultStorePopUp selectItemWithTitle:defaultStore]; else { [defaultStorePopUp selectItemAtIndex:0]; [self selectDefaultStore:self]; } } } - (void)setupStores { NSEnumerator *list; id aStore; [self setupDefaultStore]; list = [_sm storeEnumerator]; [storePopUp removeAllItems]; while ((aStore = [list nextObject])) [storePopUp addItemWithTitle:[aStore description]]; [storePopUp selectItemAtIndex:0]; [self selectStore:self]; } - (void)storeStateChanged:(NSNotification *)notification { [self setupDefaultStore]; [self selectStore:nil]; } - (void)showPreferences { ConfigManager *config = [ConfigManager globalConfig]; NSEnumerator *backends; int start = [config integerForKey:FIRST_HOUR]; int end = [config integerForKey:LAST_HOUR]; int step = [config integerForKey:MIN_STEP]; Class backend; NSString *name; [dayStart setIntValue:start*3600]; [dayEnd setIntValue:end*3600]; [dayStartText setIntValue:start*3600]; [dayEndText setIntValue:end*3600]; [minStep setIntValue:step * 60]; [minStepText setIntValue:step * 60]; [showTooltip setState:[config integerForKey:TOOLTIP]]; [showDateAppIcon setState:[config integerForKey:APPICON_DATE]]; [showTimeAppIcon setState:[config integerForKey:APPICON_TIME]]; [alarmEnabled setState:[[AlarmManager globalManager] alarmsEnabled]]; [alarmBackendPopUp removeAllItems]; backends = [[AlarmManager backends] objectEnumerator]; while ((backend = [backends nextObject])) [alarmBackendPopUp addItemWithTitle:[[backend class] backendName]]; name = [[AlarmManager globalManager] defaultBackendName]; if ([alarmBackendPopUp itemWithTitle:name]) [alarmBackendPopUp selectItemWithTitle:name]; [self setupStores]; [storeClass removeAllItems]; backends = [[StoreManager backends] objectEnumerator]; while ((backend = [backends nextObject])) if ([backend isUserInstanciable]) [storeClass addItemWithTitle:[backend storeTypeName]]; [storeClass selectItemAtIndex:0]; [createButton setEnabled:NO]; [panel makeKeyAndOrderFront:self]; } - (void)periodicSetupForStore:(id)store { if ([store conformsToProtocol:@protocol(PeriodicRefresh)]) { [storeRefresh setEnabled:YES]; [storeRefresh setState:[store periodicRefresh]]; [refreshInterval setEnabled:[store periodicRefresh]]; [refreshIntervalText setEnabled:[store periodicRefresh]]; [refreshIntervalText setIntValue:[store refreshInterval]]; [refreshInterval setIntValue:[store refreshInterval]]; } else { [storeRefresh setEnabled:NO]; [storeRefresh setState:NO]; [refreshInterval setEnabled:NO]; [refreshIntervalText setEnabled:NO]; [refreshIntervalText setIntValue:0]; [refreshInterval setIntValue:0]; } } - (void)selectStore:(id)sender { id store = [_sm storeForName:[storePopUp titleOfSelectedItem]]; [storeColor setColor:[store eventColor]]; [storeTextColor setColor:[store textColor]]; [storeDisplay setState:[store displayed]]; [storeWritable setState:[store writable]]; [storeEnabled setState:[store enabled]]; if ([[defaultStorePopUp titleOfSelectedItem] isEqual:[store description]]) [removeButton setEnabled:NO]; else [removeButton setEnabled:YES]; [self periodicSetupForStore:store]; } - (void)changeColor:(id)sender { NSColor *rgb = [[storeColor color] colorUsingColorSpaceName:NSCalibratedRGBColorSpace]; id store = [_sm storeForName:[storePopUp titleOfSelectedItem]]; [store setEventColor:rgb]; } - (void)changeTextColor:(id)sender { NSColor *rgb = [[storeTextColor color] colorUsingColorSpaceName:NSCalibratedRGBColorSpace]; id store = [_sm storeForName:[storePopUp titleOfSelectedItem]]; [store setTextColor:rgb]; } - (void)changeStart:(id)sender { int value = [dayStart intValue] / 3600; if (value != [[ConfigManager globalConfig] integerForKey:FIRST_HOUR]) { [dayStartText setIntValue:value * 3600]; [[ConfigManager globalConfig] setInteger:value forKey:FIRST_HOUR]; } } - (void)changeEnd:(id)sender { int value = [dayEnd intValue] / 3600; if (value != [[ConfigManager globalConfig] integerForKey:LAST_HOUR]) { [dayEndText setIntValue:value * 3600]; [[ConfigManager globalConfig] setInteger:value forKey:LAST_HOUR]; } } - (void)changeStep:(id)sender { int value = [minStep intValue] / 60; if (value != [[ConfigManager globalConfig] integerForKey:MIN_STEP]) { [minStepText setIntValue:value * 60]; [[ConfigManager globalConfig] setInteger:value forKey:MIN_STEP]; } } - (void)changeInterval:(id)sender { int value = [refreshInterval intValue]; id store = (id )[_sm storeForName:[storePopUp titleOfSelectedItem]]; [store setRefreshInterval:value]; [refreshIntervalText setIntValue:value]; [refreshInterval setIntValue:value]; } - (void)selectDefaultStore:(id)sender { [_sm setDefaultStore:[defaultStorePopUp titleOfSelectedItem]]; [self selectStore:nil]; } - (void)toggleDisplay:(id)sender { id store = [_sm storeForName:[storePopUp titleOfSelectedItem]]; [store setDisplayed:[storeDisplay state]]; } - (void)toggleWritable:(id)sender { id store = [_sm storeForName:[storePopUp titleOfSelectedItem]]; [store setWritable:[storeWritable state]]; } - (void)toggleRefresh:(id)sender { id store = (id )[_sm storeForName:[storePopUp titleOfSelectedItem]]; [store setPeriodicRefresh:[storeRefresh state]]; [self periodicSetupForStore:store]; } - (void)toggleEnabled:(id)sender { id store = [_sm storeForName:[storePopUp titleOfSelectedItem]]; [store setEnabled:[storeEnabled state]]; } - (void)toggleTooltip:(id)sender { [[ConfigManager globalConfig] setInteger:[showTooltip state] forKey:TOOLTIP]; } - (void)toggleShowDate:(id)sender { [[ConfigManager globalConfig] setInteger:[showDateAppIcon state] forKey:APPICON_DATE]; } - (void)toggleShowTime:(id)sender { [[ConfigManager globalConfig] setInteger:[showTimeAppIcon state] forKey:APPICON_TIME]; } - (void)toggleAlarms:(id)sender { [[AlarmManager globalManager] setAlarmsEnabled:[alarmEnabled state]]; } - (void)selectAlarmBackend:(id)sender { [[AlarmManager globalManager] setDefaultBackend:[alarmBackendPopUp titleOfSelectedItem]]; } /* We only allow the removal of non-default stores */ - (void)removeStore:(id)sender { id store = [_sm storeForName:[storePopUp titleOfSelectedItem]]; ConfigManager *config = [ConfigManager globalConfig]; NSMutableArray *storeArray = [NSMutableArray arrayWithArray:[config objectForKey:STORES]]; [storeArray removeObject:[store description]]; [config setObject:storeArray forKey:STORES]; [config removeObjectForKey:[store description]]; [_sm removeStoreNamed:[store description]]; /* FIXME : This could be done by registering STORES key */ [self setupStores]; } - (void)createStore:(id)sender { ConfigManager *config = [ConfigManager globalConfig]; NSMutableArray *storeArray = [NSMutableArray arrayWithArray:[config objectForKey:STORES]]; Class backend; backend = [StoreManager backendForName:[storeClass titleOfSelectedItem]]; if (backend && [backend registerWithName:[storeName stringValue]]) { [_sm addStoreNamed:[storeName stringValue]]; [storeArray addObject:[storeName stringValue]]; [config setObject:storeArray forKey:STORES]; [self setupStores]; } [storeName setStringValue:@""]; [createButton setEnabled:NO]; } - (void)setContent:(id)content { id old = [slot contentView]; if (old == content) return; [slot setContentView: content]; [itemPopUp setNextKeyView:[slot contentView]]; } - (void)selectItem:(id)sender { switch ([sender indexOfSelectedItem]) { case 0: [self setContent:globalPreferences]; break; case 1: [self setContent:storePreferences]; break; case 2: [self setContent:storeFactory]; break; case 3: [self setContent:uiPreferences]; break; case 4: [self setContent:alarmPreferences]; break; } } - (void)controlTextDidChange:(NSNotification *)notification { if ([notification object] == storeName) { if ([_sm storeForName:[storeName stringValue]] || ![[storeName stringValue] length]) [createButton setEnabled:NO]; else [createButton setEnabled:YES]; } } @end simpleagenda-0.44/README000066400000000000000000000015401320461325300147510ustar00rootroot00000000000000About ===== SimpleAgenda is an easy to use agenda and calendar application supporting events/appointments and tasks. It is written in Objective-C and uses the GNUstep frameworks. Its major features are: * multiple agendas with text and background colors * support local and iCalendar data sources * calendar, day view, week view, summary and tasks view * create, resize and move appointments easily * export individual elements as files and to pasteboard * import .ics files * simple text search * alarms with multiples backends Dependencies ============ GNUstep stable version released on 2011/04/14 (make 2.6.0, base 1.22.0, gui 0.20.0, back 0.20.0) libical 0.27 or later libuuid (optional) Addresses framework (optional) DBusKit 0.1 (optional) Author ===== Philippe Roussel Contact ======= mailto:p.o.roussel@free.fr simpleagenda-0.44/RecurrenceRule.h000066400000000000000000000021111320461325300171620ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "config.h" #import #import "Date.h" typedef enum { /* Simple recurrence rules handled by AppointmentEditor */ recurrenceFrequenceDaily = 3, recurrenceFrequenceWeekly, recurrenceFrequenceMonthly, recurrenceFrequenceYearly, /* Other, more complex, rrules, handled only by libical */ recurrenceFrequenceOther, } recurrenceFrequency; @interface RecurrenceRule : NSObject { struct icalrecurrencetype recur; } - (id)initWithFrequency:(recurrenceFrequency)frequency; - (id)initWithFrequency:(recurrenceFrequency)frequency until:(Date *)endDate; - (id)initWithFrequency:(recurrenceFrequency)frequency count:(int)count; - (NSEnumerator *)enumeratorFromDate:(Date *)start; - (NSEnumerator *)enumeratorFromDate:(Date *)start length:(NSTimeInterval)length; - (recurrenceFrequency)frequency; - (Date *)until; - (int)count; @end @interface RecurrenceRule(iCalendar) - (id)initWithICalRRule:(struct icalrecurrencetype)rrule; - (id)initWithICalString:(NSString *)rrule; - (struct icalrecurrencetype)iCalRRule; @end simpleagenda-0.44/RecurrenceRule.m000066400000000000000000000101321320461325300171710ustar00rootroot00000000000000#import "RecurrenceRule.h" #import "DateRange.h" @interface DateRecurrenceEnumerator : NSEnumerator { icalrecur_iterator *_iterator; } - (id)initWithRule:(RecurrenceRule *)rule start:(Date *)start; @end @implementation DateRecurrenceEnumerator - (id)initWithRule:(RecurrenceRule *)rule start:(Date *)start; { if ((self = [super init])) _iterator = icalrecur_iterator_new([rule iCalRRule], [start localICalTime]); return self; } - (id)nextObject { struct icaltimetype next; next = icalrecur_iterator_next(_iterator); if (icaltime_is_null_time(next)) return nil; return AUTORELEASE([[Date alloc] initWithICalTime:next]); } - (void)dealloc { icalrecur_iterator_free(_iterator); [super dealloc]; } @end @interface DateRangeRecurrenceEnumerator : NSEnumerator { icalrecur_iterator *_iterator; NSTimeInterval _length; } - (id)initWithRule:(RecurrenceRule *)rule start:(Date *)start length:(NSTimeInterval)length; @end @implementation DateRangeRecurrenceEnumerator - (id)initWithRule:(RecurrenceRule *)rule start:(Date *)start length:(NSTimeInterval)length; { if ((self = [super init])) { _iterator = icalrecur_iterator_new([rule iCalRRule], [start localICalTime]); _length = length; } return self; } - (id)nextObject { Date *date; struct icaltimetype next; next = icalrecur_iterator_next(_iterator); if (icaltime_is_null_time(next)) return nil; date = AUTORELEASE([[Date alloc] initWithICalTime:next]); return AUTORELEASE([[DateRange alloc] initWithStart:date duration:_length]); } - (void)dealloc { icalrecur_iterator_free(_iterator); [super dealloc]; } @end @implementation RecurrenceRule - (id)init { self = [super init]; if (self) icalrecurrencetype_clear(&recur); return self; } - (id)initWithFrequency:(recurrenceFrequency)frequency { NSAssert(frequency < recurrenceFrequenceOther, @"Wrong frequency"); if ((self = [self init])) recur.freq = frequency; return self; } - (id)initWithFrequency:(recurrenceFrequency)frequency until:(Date *)endDate { NSAssert(frequency < recurrenceFrequenceOther, @"Wrong frequency"); NSAssert([endDate isDate], @"Works on dates"); if ((self = [self init])) { /* * It's OK to use Date iCaltime: here as timezone modifications * only affect datetimes, not dates */ recur.until = [endDate UTCICalTime]; recur.freq = frequency; } return self; } - (id)initWithFrequency:(recurrenceFrequency)frequency count:(int)count { NSAssert(frequency < recurrenceFrequenceOther, @"Wrong frequency"); if ((self = [self init])) { recur.count = count; recur.freq = frequency; } return self; } /* FIXME : this one expect a day */ - (NSEnumerator *)enumeratorFromDate:(Date *)start { NSAssert([start isDate], @"Works on dates"); return AUTORELEASE([[DateRecurrenceEnumerator alloc] initWithRule:self start:start]); } /* * FIXME : and this one a datetime * We have to now if using datetimes will generate timezone problems * See DateRecurrenceEnumerator */ - (NSEnumerator *)enumeratorFromDate:(Date *)start length:(NSTimeInterval)length { return AUTORELEASE([[DateRangeRecurrenceEnumerator alloc] initWithRule:self start:start length:length]); } - (recurrenceFrequency)frequency { return recur.freq; } - (Date *)until { if (icaltime_is_null_time(recur.until)) return nil; return AUTORELEASE([[Date alloc] initWithICalTime:recur.until]); } - (int)count { return recur.count; } @end @implementation RecurrenceRule(iCalendar) - (id)initWithICalRRule:(struct icalrecurrencetype)rrule { if ((self = [super init])) recur = rrule; return self; } - (id)initWithICalString:(NSString *)rrule { if ((self = [super init])) recur = icalrecurrencetype_from_string([rrule cString]); return self; } - (struct icalrecurrencetype)iCalRRule { return recur; } @end @implementation RecurrenceRule(NSCoding) - (void)encodeWithCoder:(NSCoder *)coder { [coder encodeObject:[NSString stringWithCString:icalrecurrencetype_as_string(&recur)] forKey:@"rrule"]; } - (id)initWithCoder:(NSCoder *)coder { recur = icalrecurrencetype_from_string([[coder decodeObjectForKey:@"rrule"] cString]); return self; } @end simpleagenda-0.44/Resources/000077500000000000000000000000001320461325300160435ustar00rootroot00000000000000simpleagenda-0.44/Resources/1left.tiff000066400000000000000000000011361320461325300177310ustar00rootroot00000000000000II*<©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿ÿ©¿©¿©¿©¿©¿ÿÿ©¿©¿©¿©¿ÿÿÿ©¿©¿©¿ÿÿÿÿ©¿©¿©¿©¿ÿÿÿ©¿©¿©¿©¿©¿ÿÿ©¿©¿©¿©¿©¿©¿ÿ©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿þ  7@4NV(R/home/philou/sources/SimpleAgenda/Resources/1left.tiffHHsimpleagenda-0.44/Resources/1right.tiff000066400000000000000000000011361320461325300201140ustar00rootroot00000000000000II*<©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿ÿ©¿©¿©¿©¿©¿©¿ÿÿ©¿©¿©¿©¿©¿ÿÿÿ©¿©¿©¿©¿ÿÿÿÿ©¿©¿©¿ÿÿÿ©¿©¿©¿©¿ÿÿ©¿©¿©¿©¿©¿ÿ©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿þ  8@4NV(R/home/philou/sources/SimpleAgenda/Resources/1right.tiffHHsimpleagenda-0.44/Resources/2left.tiff000066400000000000000000000012661320461325300177360ustar00rootroot00000000000000II*”©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿ÿ©¿©¿©¿ÿ©¿©¿©¿©¿©¿ÿÿ©¿©¿ÿÿ©¿©¿©¿©¿ÿÿÿ©¿ÿÿÿ©¿©¿©¿ÿÿÿÿÿÿÿÿ©¿©¿©¿©¿ÿÿÿ©¿ÿÿÿ©¿©¿©¿©¿©¿ÿÿ©¿©¿ÿÿ©¿©¿©¿©¿©¿©¿ÿ©¿©¿©¿ÿ©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿þ  f 7n@Œ¦®(R/home/philou/sources/SimpleAgenda/Resources/2left.tiffHHsimpleagenda-0.44/Resources/2right.tiff000066400000000000000000000012661320461325300201210ustar00rootroot00000000000000II*”©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿ÿ©¿©¿©¿ÿ©¿©¿©¿©¿©¿©¿ÿÿ©¿©¿ÿÿ©¿©¿©¿©¿©¿ÿÿÿ©¿ÿÿÿ©¿©¿©¿©¿ÿÿÿÿÿÿÿÿ©¿©¿©¿ÿÿÿ©¿ÿÿÿ©¿©¿©¿©¿ÿÿ©¿©¿ÿÿ©¿©¿©¿©¿©¿ÿ©¿©¿©¿ÿ©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿©¿þ  f 8n@Œ¦®(R/home/philou/sources/SimpleAgenda/Resources/2right.tiffHHsimpleagenda-0.44/Resources/Agenda.gorm/000077500000000000000000000000001320461325300201655ustar00rootroot00000000000000simpleagenda-0.44/Resources/Agenda.gorm/data.classes000066400000000000000000000031421320461325300224550ustar00rootroot00000000000000{ "## Comment" = "Do NOT change this file, Gorm maintains it"; AppController = { Actions = ( "copy:", "cut:", "paste:", "editAppointment:", "delAppointment:", "exportAppointment:", "saveAll:", "showPrefPanel:", "addAppointment:", "addTask:", "editAppointment:", "delAppointment:", "exportAppointment:", "doSearch:", "clearSearch:", "reloadAll:", "previousWeek:", "nextDay:", "nextWeek:", "previousDay:", "today:" ); Outlets = ( calendar, dayView, summary, search, taskView, window, tabs, weekView ); Super = NSObject; }; CalendarView = { Actions = ( "setDelegate:" ); Outlets = ( delegate ); Super = NSBox; }; DayView = { Actions = ( ); Outlets = ( delegate ); Super = NSView; }; DayViewController = { Actions = ( "setDelegate:" ); Outlets = ( delegate ); Super = NSObject; }; FirstResponder = { Actions = ( "addAppointment:", "addTask:", "clearSearch:", "createOrEditAnAppointment:", "delAppointment:", "doSearch:", "editAppointment:", "exportAppointment:", "previousWeek:", "nextDay:", "nextWeek:", "orderFrontFontPanel:", "previousDay:", "reloadAll:", "saveAll:", "setDataSource:", "setDelegate:", "showPrefPanel:", "today:", "updateDate:", "updateView:" ); Super = NSObject; }; WeekView = { Actions = ( "deselectAll:" ); Outlets = ( delegate ); Super = NSView; }; }simpleagenda-0.44/Resources/Agenda.gorm/data.info000066400000000000000000000002701320461325300217520ustar00rootroot00000000000000GNUstep archive000f4240:00000003:00000003:00000000:01GormFilePrefsManager1NSObject%01NSString&%Latest Version0±& % Typed Streamsimpleagenda-0.44/Resources/Agenda.gorm/objects.gorm000066400000000000000000001060101320461325300225020ustar00rootroot00000000000000GNUstep archive000f4240:00000031:000002f2:00000001:01GSNibContainer1NSObject01 NSMutableSet1NSSet&01NSMenu01NSString& % SimpleAgenda01NSMutableArray1NSArray&01 NSMenuItem0±&%Info0±&JJÿI0 1 NSImage0 1 NSMutableString&%GSMenuSelected0 ± 0 ± & % GSMenuMixed2submenuAction:I0 ±°0±&0± 0±& % Info Panel...°JJÿI° ° ’I0± 0±&%Preferences...°JJÿI° ° ’I°0± 0±&%Events°JJÿI° ° ²I0±°0±&0± 0±&%New appointment0±&%nJJÿI° ° ’I0± 0±&%New task0±&%tJJÿI° ° ’I0± 0±&%Edit0±&%eJJÿI° ° ’I0 ± 0!±&%Delete0"±&%dJJÿI° ° ’I0#± 0$±& % Export as...0%±&%EJJÿI° ° ’I0&± 0'±&%Save all0(±&%sJJÿI° ° ’I0)± 0*±& % Reload all0+±&%rJJÿI° ° ’I°0,± 0-±&%Edit°JJÿI° ° ²I0.±°-0/±&00± 01±&%Cut02±&%xJJÿI° ° ’I03± 04±&%Copy05±&%cJJÿI° ° ’I06± 07±&%Paste08±&%vJJÿI° ° ’I°09± 0:±&%Go to°JJÿI° ° ’I0;±°:0<±&0=± 0>±&%Today0?±&%tJJÿI° ° ’I0@± 0A±& % Previous day0B±&%pJJÿI° ° ’I0C± 0D±&%Next day0E±&%nJJÿI° ° ’I0F± 0G±& % Previous week0H±&%PJJÿI° ° ’I0I± 0J±& % Next week0K±&%NJJÿI° ° ’I°0L± 0M±&%Windows°JJÿI° ° ²I0N±°M0O±&0P± 0Q±&%Arrange In Front°JJÿI° ° ’I0R± 0S±&%Miniaturize Window0T±&%mJJÿI° ° ’I°0U± 0V±&%Services°JJÿI° ° ²I0W±°V0X±&°0Y± 0Z±&%Hide0[±&%hJJÿI° ° ’I0\± 0]±&%Quit0^±&%qJJÿI° ° ’I0_1 GSNibItem0`±& % AppController  &0a1 GSWindowTemplate1GSClassSwapper0b±&% NSWindow1NSWindow1 NSResponder%  @¸ @{pJI @€ @„à0c1NSView%  @¸ @{p  @¸ @{pJ0d±&0e1 NSScrollView% @sð @  @n @hÀ  @n @hÀJ0f±&0g1 NSClipView% @5 @8 @k @e€  @k @e€J0h1 NSOutlineView1 NSTableView1 NSControl%  @I @e€  @I @e€J°h°h0i±&%0j1NSCell°0k1NSFont%&&&&&&JJ&&&&&&0l±&0m1 NSTableColumn0n±&%title BH A  GÃP0o1NSTableHeaderCell1NSTextFieldCell1 NSActionCell0p±&% 0q±% °p&&&&&&JJ&&&&&&I’0r1NSColor0s±&% NSNamedColorSpace0t±&% System0u±&% controlShadowColor0v±°s°t0w±&% windowFrameTextColor0x±°k&&&&&&JJ&&&&&&I’0y±°s0z±&%System0{±&%textBackgroundColor0|±°s°z0}±& % textColor0~±°s°t0±& %  gridColor0€±°s°t0±&% controlBackgroundColor0‚1NSTableHeaderView%  @I @6  @I @6J°‚°‚0ƒ±&0„1GSTableCornerView% @ @ @3 @6  @3 @6J0…±&%% A€’ @ @0†±& A °m0‡±&°h°€0ˆ±% @5 @ @k @6  @k @6J°‚0‰±&°‚°€0Š1 NSScroller% @ @8 @2 @e€  @2 @e€J0‹±&%0Œ±°°k&&&&&&JJ&&&&&&J’°„°gI A A A A °Š°ˆ01! NSTextField% @sð @j  @e @5  @e @5J 0ޱ&%0±°0±% A@°&&&&&&JJ&&&&&&I’°y°|’0‘1"NSButton% @~À @j` @2 @5  @2 @5J 0’±&%0“1# NSButtonCell°0”± 0•±&%NSStopProgressTemplate°k°&&&&&&JJ&&&&&&I’°°&&& &&0–1$NSBox% @sð @n  @n @d   @n @d J 0—±&0˜±% @ @ @l@ @b`  @l@ @b`J0™±&0š1% GSCustomView0›±& % CalendarView À ¿ð @l  @b€&0œ±0±&%Box°k&&&&&&JJ&&&&&& @ @%%0ž1& NSTabView% @ @  @s0 @x   @s0 @x J0Ÿ±&0 ±% ?ð @2 @s @wp  @s @wpJ0¡±%0¢±&%DayView @ À5 @r @x@&°¡0£±&°¡0¤±&0¥1' NSTabViewItem0¦±&%Day0§±&%Day° 0¨±°s°t0©±&% windowBackgroundColor%° °ž0ª±'0«±&%Week0¬±&%Week0­±% ?à ?ð @s @yH  @s @yHJ0®±&0¯±%0°±&%WeekView @ @  @r @xH&°¨%°ž0±±'0²±&%Tasks0³±&%Tasks0´±% ?à ?ð @s @yH  @s @yHJ0µ±&0¶±% @ @  @r @xH  @r @xHJ0·±&0¸±% @ @8 @qÐ @v¨  @qÐ @v¨J0¹±%  @Z@ @k   @Z@ @k J°¹°¹0º±&%0»±°°k&&&&&&JJ&&&&&&0¼±&0½±0¾±&%state BP A  GÃP0¿±0À±&%State°q°À&&&&&&JJ&&&&&&I’°r°v0Á1(NSPopUpButtonCell1)NSMenuItemCell°°k&&&&&&JJ0±°0ñ&&&&&&&I’°°&&& >ÌÌÍ =™™š&&°Â%%%%%0ı0ű&%summary BT A  GÃP0Ʊ0DZ&%Summary °q°Ç&&&&&&JJ&&&&&&I’°r°v0ȱ0ɱ&%nine°k°É&&&&&&JJ&&&&&&I’°y°|°~°€0ʱ%  @Z@ @6  @Z@ @6J°Ê°Ê0˱&0̱% @ @ @3 @6  @3 @6J0ͱ&%% A°’ @ @0α&0ϱ&°¹°€0б% @ @ @qÐ @6  @qÐ @6J°Ê0ѱ&°Ê°€°¸I A A A A °Ð°¨%°ž°k%J°¨0Ò±&%Window0Ó±& % SimpleAgenda°Ó @@ @y @È @ÈI0Ô±  0Õ±0Ö±&% NSCalibratedWhiteColorSpace 0×±&0Ø1*NSBitmapImageRep1+ NSImageRep0Ù±&% NSDeviceRGBColorSpace @H @HII0I00Ú1,NSData&$š$šII*$ÿÿÿÿÿÿUÿÿÿUÿÿÿUÿÿÿUÿÿÿÿÿÿªÿÿÿªÿÿÿªÿÿÿªÿÿÿÆÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÆýýý«ýýý«ýýý«ÿÿÿªüüürüüüVüüüVüüüVüüüVöööÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿI=MaK?O`OCT\ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ´®¸dÿÿÿÿÿÿÿÿËËËÿÆÆÆÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ>6EÿG;LÿNBSÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿåÉÐÿâÍÐÿëëëÿ¢¢¢ÿ¹¹¹ÿæææÿÿÿÿÿƒ{„ÿC8Eÿ WKaÿ‡•ÿÿÿÿÿÝÝÝÿžžžÿÓÓÓÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿº»¹ÿ£££ÿ–––ÿ00/ÿ%&%ÿZZYÿ¶¶´ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿùíòÿ³Wrÿ÷òóÿÿÿÿÿµµµÿÈÈÈÿÿÿÿÿ••ÿ>3?ÿ3*5€#UI`9WKaÿ¡š§ÿÿÿÿÿÿÿÿÿËËËÿ¨¨¨ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ”•‘ÿšššÿrrrÿVRXÿ90<ÿbZeÿjihÿÿxxvÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿד¬ÿµHnÿÒŒ¦ÿŒWbÿÁ›ÿÿÿÿÿ¿¼Àÿ<2=ÿ)"*žH% UJ_VWKaÿÇÃÊÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿòñóÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþþþÿ&'%ÿƒƒƒÿ¸¶ºÿ)"-ÿ4,8ÿG>ÿWWVÿŽÿñññÿøøøÿÿÿÿÿÿÿÿÿÿÿÿÿüüüÿõõõÿðððÿçççÿâââÿäääÿçççÿäääÿæææÿÿÿÿÿ:1:ÿ3*2ál6UH]WWJ`ÿÇÂÉÿÿÿÿÿëëëÿëëëÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¯¯®ÿòòòÿÌÌËÿ•••ÿURSÿ$$$ÿ! ÿÿROQÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ<1<ÿ5,5ìs?TG\XWJ`ÿÇÂÉÿÿÿÿÿ¡¡¡ÿ¨¨¨ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿêêêÿ®¯­ÿ¥¤£ÿYTZÿ0)4ÿd]eÿighÿ,+,ÿÿywyÿÿÿÿÿÿÿÿÿÿÿÿÿýüýÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿªªªÿäääÿ×××ÿÿÿÿÿ}u}ÿ<1;ÿzHUI^¬WJ_ÿëêìÿÿÿÿÿëëëÿ°°°ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþþþÿŒŠÿ¥¦¤ÿúúúÿojqÿ&'ÿ1)3ÿD8Gÿ…|‡ÿæææÿ968ÿ@>?ÿýýýÿÿÿÿÿÿÿÿÿõôõÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÎÎÎÿÞÞÞÿ½½½ÿÿÿÿÿ“Œ’ÿ:/9ÿ¢R UI]¬WJ_ÿÿÿÿÿÿÿÿÿ¤¤¤ÿ•••ÿÓÓÓÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþþþÿæææÿ\]\ÿ¶¶¶ÿîîîÿojpÿ& 'ÿ2*4ÿD:Gÿ‚y„ÿÍÍÍÿWVVÿÿ———ÿëëëÿÿÿÿÿïîñÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ¢¢¢ÿÿÿÿÿÿÿÿÿ¿»¾ÿ:/9ÿ""·Z' VI^ãWJ_ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÝÝÝÿ111ÿÿ222ÿÑÑÑÿmhnÿ& (ÿ2*4ÿE8Gÿyƒÿ¼¼¼ÿ***ÿÿFFFÿðððÿýýýÿíìîÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÔÑÔÿ;09ÿ.&-Ôd/WJ_ÿ†”ÿÿÿÿÿÿÿÿÿèæéÿêéìÿûúûÿòñóÿ÷÷øÿúúúÿÿÿÿÿÿÿÿÿÿÿÿÿúúúÿÆÆÆÿvuuÿ£££ÿÔÔÔÿkhmÿ&(ÿ2)4ÿD8Gÿ€xÿ´´´ÿ‘‘‘ÿIHIÿ¢¢¢ÿòòòÿüüüÿàÞâÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ;0:ÿ2)1âl8WJ_ÿ†“ÿÿÿÿÿúúúÿÓÏÖÿØÕÛÿõôõÿÓÏÖÿèæéÿÝÛàÿÝÛàÿõôõÿÿÿÿÿýýýÿöööÿéééÿÞÞÞÿäääÿ>8?ÿ& (ÿ3*4ÿF8FÿbUcÿ­­­ÿ¢¢¢ÿ´´´ÿÕÕÕÿðððÿüüüÿÝÛàÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿg_fÿ9.7ötBUI]VWJ^ÿ³®·ÿÿÿÿÿàÞâÿèæéÿàÞâÿïîñÿ³®¹ÿõôõÿÿÿÿÿØÕÛÿÿÿÿÿÿÿÿÿÿÿÿÿýýýÿöööÿòòòÿôôôÿ*"*ÿ,&.ÿ5,6ÿJ>KÿRDTÿµµµÿ¯¯¯ÿÄÄÄÿáááÿöööÿþþþÿêéìÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ}w}ÿ;08ÿ{ITG[XWJ^ÿÇÂÉÿÿÿÿÿÍÊÑÿïîñÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýýýÿýýýÿüüüÿ*#+ÿ)"+ÿ6-7ÿG:HÿRDTÿ×××ÿÒÒÒÿßßßÿðððÿþþþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ©£§ÿ9/7ÿ¤OUH\VI]ÿÙÖÚÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,#-ÿ,%-ÿ8.:ÿILÿRDTÿTFVÿSETÿOBPÿ†~‡ÿƒ{„ÿwÿ}v}ÿ}u}ÿ|u|ÿ½º½ÿ½º½ÿ½º½ÿ¾º¾ÿ¿»¾ÿ¿»¾ÿÿÿÿÿÿÿÿÿÿÿÿÿ8.6ÿ2)/ß\%QEXÊPDWÿL@SÿJ>OÿGLÿG:Hÿ@6@ÿ>3>ÿ<2<ÿ<0;ÿ:09ÿ9.8ÿ8.7ÿ8.7ÿ9/7ÿ:/9ÿ:/8ÿ9/7ÿ6,3ÿ6-4ÿ2)0àd* PDVÿL@RÿI=Oÿ:0?Ù7/;à5-8â4,8â4,8â/(2×"$¿"$¾"$¾#$½#$½¯’‘«6.7Þ6.8ß:0;ß>3?Ý@6BÜ8/:Ñ ¢  & '¸&&¸$$¹$$»##º##»*")È5+4á4*3á4+3â4*2â2)1ã1)1ã5,3í9/7ÿ9.7ÿ@4>ÿk1  (Tx††…ƒƒ~{xxvtqmknt}‚ytqsuvvwy}€ƒƒ„„†ˆ…g3 AZa^[ZYWRMJHHE@:7;EPWXWSLD@CEGGHKPVYZZ[^abO* !-0-+**($!#'((% #&)***,.0)      þ00’$$R&  @” @0Û±&°a0ܱ&0Ý1-NSMutableDictionary1. NSDictionary&V0Þ±& % MenuItem(117)°R0ß±& % MenuItem(228)°0à±& % MenuItem(21)°0á±& % MenuItem(210)°0â±& % MenuItem(87)°0ã±& % MenuItem(165)°0ä±& % GormNSMenu1°W0å±& % TabView(0)°ž0æ±& % CustomView(0)°š0ç±&%Menu(13)°W0è±& % MenuItem(152)°U0é±& % MenuItem(49)°30ê±&% NSOwner0ë±& % NSApplication0ì±&%TableColumn(2)0í±0î±&%actions BT A  GÃP0ï±°p°q°p&&&&&&JJ&&&&&&I’°r°v0ð±0ñ±&%0°k°ñ&&&&&&JJ&&&&&&I’°y°|0ò±& % MenuItem(31)°0ó±& % MenuItem(114)°0ô±& % MenuItem(225)°60õ±& % MenuItem(84)°0ö±& % MenuItem(162)°\0÷±&%Menu(28)°N0ø±&%Menu(10)°N0ù±& % MenuItem(46)°C0ú±& % MenuItem(129)°0û±& % MenuItem(111)°\0ü±& % MenuItem(222)°,0ý±& % MenuItem21°0þ±& % MenuItem(99)°R0ÿ±& % MenuItem(177)°PP±& % MenuItem(81)°YP±& % Button(1)°‘P±&%Menu(25)°WP±& % MenuItem(43)°FP±& % MenuItem1°\P±& % MenuItem(126)°,P±& % MenuItem15°LP±& % MenuItem(96)°P±&%Menu(4)°P ±& % MenuItem(174)°P ±&%Menu(22)° P ±& % GormNSMenu2°NP ±& % MenuItem(40)°@P ±&%NSServicesMenu°WP±& % MenuItem(123)°P±& % MenuItem(93)°P±& % MenuItem(189)°\P±&%Menu(1)°P±& % MenuItem(171)°\P±&%Menu(37)°WP±& % MenuItem(138)°P±& % MenuItem(120)°P±&%Menu(47)°P±& % MenuItem22°P±& % MenuItem(90)P± P±& % Close WindowP±&%wJJÿI° ° ’IP±& % MenuItem(186)°PP±&%Menu(34)° P±&%View(5)°­P±& % MenuItem(52)°&P ±& % MenuItem2°P!±& % MenuItem(135)°P"±& % MenuItem16°PP#±&%Menu(44)°NP$±& % MenuItem(183)°P%±& % MenuItem(19)°P&±&%Menu(31)°P'±& % GormNSMenu3° P(±& % MenuItem(67)°P)±&%View(2)°˜P*±& % MenuItem(132)°P+±&%Menu(41)°WP,±& % MenuItem(198)°\P-±& % MenuItem(180)°\P.±& % MenuItem(16)°UP/±& % MenuItem(64)°PP0±& % MenuItem(8)°P1±& % MenuItem(147)°P2±&%Menu(56)°.P3±& % MenuItem(195)°PP4±& % MenuItem(13)°PP5±& % MenuItem(109)ÐP6±& % MenuItem(79)°RP7±& % MenuItem(61)°\P8±& % MenuItem(207)°\P9±& % MenuItem(5)°)P:±& % MenuItem(144)°\P;±& % MenuItem3°P<±&%Menu(53)°P=±& % MenuItem17°RP>±& % MenuItem(192)°P?±& % MenuItem(28)°P@±& % ClipView(2)°¸PA±& % MenuItem(10)°PB±& % MenuItem(106)°PC±& % MenuItem(217)°0PD±& % MenuItem(76)°PE±& % MenuItem(204)°PPF±& % MenuItem(2)°PG±& % MenuItem(159)°PPH±& % MenuItem(141)°PPI±& % MenuItem(38)°PPJ±&%Menu(50)°PK±& % MenuItem(25)ÐPL±& % MenuItem(103)°PM±& % MenuItem(214)°RPN±& % MainWindow°aPO±& % MenuItem(73)°PP±& % MenuItem(169)°RPQ±& % MenuItem(201)°PR±&%Menu(17)°WPS±& % MenuItem(156)°PT±& % MenuItem(35)°PU±& % MenuItem24°UPV±& % MenuItem(22)°PW±& % MenuItem(118)ÐPX±& % MenuItem(211)° PY±& % MenuItem(88)° PZ±& % MenuItem(70)°PP[±& % MenuItem(166)° P\±& % CustomView(1)°¡P]±&%Menu(14)°NP^±& % MenuItem(153)°\P_±&%TableColumn(3)°½P`±& % MenuItem4°Pa±& % MenuItem(32)°Pb±& % ScrollView(0)°ePc±& % MenuItem(115)°Pd±& % MenuItem(226)°#Pe±& % MenuItem(85)°Pf±& % MenuItem(163)°Pg±&%Menu(29)°WPh±&%Menu(11)°WPi±& % MenuItem(150)°PPj±&%TabViewItem(0)°¥Pk±&%TableColumn(0)°mPl±& % MenuItem(47)°FPm±& % MenuItem(112)°Pn±& % MenuItem(223)°6Po±& % MenuItem(178)°RPp±& % MenuItem(82)°\Pq±&%Menu(8)°Pr±& % MenuItem(160)°RPs±&%Menu(26)° Pt±& % MenuItem(44)°IPu±& % NSWindowsMenu°NPv±& % MenuItem(127)°YPw±& % MenuItem25°\Px±& % MenuItem(220)°,Py±& % MenuItem(97)°Pz±&%Menu(5)°;P{±& % MenuItem(175)° P|±&%Menu(23)°P}±& % MenuItem(41)°UP~±& % MenuItem19°YP±& % MenuItem(124)°P€±&%TableHeaderView(0)°‚P±& % MenuItem(94)°P‚±&%Menu(2)°Pƒ±& % MenuItem(172)°P„±&%Menu(38)° P…±&%Menu(20)°WP†±& % MenuItem(139)° P‡±& % MenuItem(121)°Pˆ±&%Menu(48)°NP‰±& % MenuItem(187)°RPб& % MenuItem(91)°YP‹±&%Menu(35)°PŒ±& % MenuItem(53)°=P±& % MenuItem(136)°Pޱ& % MenuItem26°P±&%Menu(45)°WP±& % MenuItem(184)° P‘±&%Box(1)°–P’±&%Menu(32)°NP“±& % MenuItem(68)°P”±& % MenuItem(50)°9P•±&%View(3)P–±% ?à ?ð @s @yH  @s @yHJP—±&P˜±& % MenuItem6°UP™±&%Menu(42)° Pš±& % MenuItem(199)°P›±& % MenuItem(181)°Pœ±& % MenuItem(17)°YP±& % Scroller(0)°ŠPž±&%View(0)°cPŸ±& % MenuItem(9)°P ±& % MenuItem(148)° P¡±& % MenuItem(130)°P¢±&%Menu(57)°.P£±& % MenuItem(196)°RP¤±& % MenuItem(14)°RP¥±& % MenuItem(62)°P¦±& % MenuItem(208)°P§±&%NSMenu°P¨±& % MenuItem(6)°P©±& % MenuItem(145)°Pª±&%MenuItem°YP«±&%Menu(54)°NP¬±& % MenuItem(193)° P­±& % MenuItem(29)°P®±& % ClipView(3)°ÐP¯±& % MenuItem(107)°P°±& % MenuItem(218)°3P±±& % MenuItem(11)°P²±& % MenuItem(77)° P³±& % MenuItem(205)°RP´±& % MenuItem(3)° Pµ±& % MenuItem(142)°RP¶±& % MenuItem7°LP·±& % MenuItem(39)°RP¸±&%Menu(51)°NP¹±& % MenuItem(190)°Pº±& % MenuItem(26)°UP»±& % ClipView(0)°gP¼±& % GormNSMenu° P½±&%OutlineView(0)°hP¾±& % MenuItem(104)°P¿±& % MenuItem(215)°UPÀ±& % MenuItem(74)°PÁ±& % MenuItem(202)° P±&%Menu(18)°NPñ& % MenuItem(0)°Pı& % MenuItem(157)° Pű& % MenuItem(36)°°`°_PƱ& % MenuItem(23)°LPDZ& % MenuItem(119)°YPȱ& % MenuItem(101)°YPɱ& % MenuItem(212)°LPʱ& % MenuItem(89)°RP˱& % MenuItem(167)°LP̱& % MenuItem(71)ÐPͱ& % CustomView(2)°¯Pα&%Menu(15)°WPϱ& % MenuItem(154)°Pб&%TableColumn(4)°ÄPѱ& % MenuItem(33)°=PÒ±& % ScrollView(1)°¶PÓ±& % MenuItem(116)°PÔ±& % MenuItem(227)°&PÕ±& % MenuItem(20)°PÖ±& % MenuItem(86)°P×±& % MenuItem(164)°Pر&%Menu(12)°NPÙ±& % MenuItem(151)°RPÚ±&%TableColumn(1)PÛ±Pܱ&%outlets BT A  GÃPPݱ°p°q°p&&&&&&JJ&&&&&&I’°r°vPÞ±°ñ°k°ñ&&&&&&JJ&&&&&&I’°y°|Pß±& % MenuItem8°PPà±& % MenuItem(48)°&Pá±&%TabViewItem(1)Pâ±'Pã±&%item 2Pä±&%Item 2Ж°¨%°žPå±& % MenuItem(30)°Pæ±& % TableView(0)°¹Pç±& % MenuItem(113)°Pè±& % MenuItem(224)°,Pé±& % MenuItem(83)°Pê±&%Menu(9)° Pë±& % MenuItem(179)°UPì±& % MenuItem(161)°UPí±&%Menu(27)°Pî±& % MenuItem(45)°@Pï±& % MenuItem(128)°Pð±& % MenuItem11°LPñ±& % MenuItem(110)°YPò±& % MenuItem(221)°6Pó±& % MenuItem(98)° Pô±& % MenuItem(80)ÐPõ±&%Menu(6)°;Pö±& % MenuItem(176)°LP÷±&%Menu(24)°NPø±& % MenuItem(42)°CPù±& % MenuItem(125)°RPú±&%TableHeaderView(1)°ÊPû±& % MenuItem(95)°Pü±&%Menu(3)°Pý±& % MenuItem(173)°Pþ±&%Menu(39)°Pÿ±&%Menu(21)°WP±& % TextField(1)°P±& % MenuItem9°RP±& % MenuItem(122)°P±&%Menu(49)° P±& % MenuItem(92)°\P±& % MenuItem(188)°UP±&%Menu(0)°P±& % MenuItem(170)°UP±&%Menu(36)°NP ±&%TableCornerView(0)°„P ±& % MenuItem(137)°P ±& % MenuItem12°YP ±&%Menu(46)° P ±& % MenuItem(185)°LP±&%Menu(33)°WP±& % MenuItem(69)°LP±& % MenuItem(51)°=P±&%View(4)°´P±& % MenuItem(134)°YP±&%Menu(43)°P±& % MenuItem(182)°P±& % MenuItem(18)°P±&%Menu(30)° P±& % MenuItem(66)°P±&%View(1)° P±& % MenuItem(149)°LP±& % MenuItem(131)°P±&%Menu(40)°NP±& % MenuItem(197)°UP±& % MenuItem(15)ÐP±& % MenuItem(63)°LP±& % MenuItem(209)°P ±& % MenuItem(7)°9P!±& % MenuItem(146)°P"±&%Menu(55)°.P#±& % MenuItem(194)°LP$±& % MenuItem13°LP%±& % MenuItem(108)°RP&±& % MenuItem(12)°LP'±& % MenuItem(219)°6P(±& % MenuItem(78)°LP)±& % MenuItem(60)°YP*±& % MenuItem(206)°UP+±& % MenuItem(4)° P,±& % MenuItem(143)°UP-±&%Menu(52)° P.±& % MenuItem(191)°P/±& % ClipView(1)°ˆP0±& % MenuItem(27)°P1±& % MenuItem(105)°P2±& % MenuItem(216)°\P3±& % MenuItem(75)°P4±& % MenuItem(203)°LP5±&%Menu(19)°WP6±& % MenuItem(158)°LP7±& % MenuItem(1)°P8±& % MenuItem(140)°LP9±& % MenuItem(37)°LP:±& % MenuItem(24)°PP;±& % MenuItem20°P<±& % MenuItem(213)°PP=±& % MenuItem(102)°\P>±& % MenuItem(72)°P?±& % MenuItem(168)°PP@±& % MenuItem(200)°PA±&%Menu(16)°NPB±& % MenuItem(155)°PC±& % MenuItem(34)°PD±& % MenuItem14°YPE±&wwPF1/NSNibConnectorЧ°êPG±/ÐDЧPH±/Ð=ЧPI±/Ð>ЧPJ±/Ð-Ð>PK±/ÐBÐ-PL±/Ð1Ð-PM±/Ð,ЧPN±/Ð5Ð,PO±/Ð9ЧPP±/ÐAÐ9PQ±/Ð?ÐAPR±/Ð%ÐAPS10NSNibControlConnectorÐ>ЧPT±&%submenuAction:PU±0Ð9ЧPV±&%submenuAction:PW±0Ð,ЧPX±&%submenuAction:PY±0ÐDPZ±&% NSFirstP[±&%hide:P\±0Ð=ÐZP]±& % terminate:P^±0ÐBÐZP_±&%orderFrontStandardInfoPanel:P`±0Ð?ÐZPa±&%arrangeInFront:Pb±0Ð%ÐZPc±&%performMiniaturize:Pd±/°`°êPe±0Ð1°`Pf±&%showPrefPanel:Pg11NSNibOutletConnector°ê°`Ph± &%delegatePi±/ÐN°êPj±/ОÐNPk±/ÐCЧPl±/ÐÐCPm±/Ð7ÐPn±0ÐCЧPo±&%submenuAction:Pp±/ÐÓÐPq±/Ð+ÐPr±0Ð7°`Ps± &%addAppointment:Pt±/ÐèЧPu±/Ð"ÐèPv±/ÐCÐ"Pw±0ÐCÐZPx±&%cut:Py±/аÐ"Pz±0аÐZP{±&%copy:P|±/Ð'Ð"P}±0Ð'ÐZP~±&%paste:P±0ÐèЧP€±&%submenuAction:P±/ÐbОP‚±/нлPƒ±/ÐkнP„±/ÐÚнP…±/°ìнP†±1°`нP‡±&%summaryPˆ±1н°`P‰± & % dataSourcePб/ÐdÐP‹±0ÐdÐZPŒ± &%exportAppointment:P±0ÐÓÐZPޱ &%editAppointment:P±0Ð+ÐZP± &%delAppointment:P‘±1°`ÐNP’±&%windowP“±/ÐàÐP”±0Ðà°`P•±&%saveAll:P–±1н°`P—± &%delegateP˜±/ÐОP™±1°`ÐPš±&%searchP›±/ÐОPœ±0а`P±& % clearSearch:Pž±0а`PŸ± & % doSearch:P ±1ÐÐP¡± & % nextKeyViewP¢±/БОP£±/Ð)БP¤±/°ßÐP¥±0°ß°`P¦±&%addTask:P§±/°åОP¨±/Ðj°åP©±/ÐÐjPª±/Ðá°åP«±/ЕÐáP¬±/Ð\ÐP­±1Ð\°`P®± &%delegateP¯±1°`Ð\P°± &%dayViewP±±/ÐæÐ@P²±/Ð_ÐæP³±/ÐÐÐæP´±1Ðæ°`Pµ± & % dataSourceP¶±1°`ÐæP·± &%taskViewP¸±1Ðæ°`P¹± &%delegatePº±1°`°åP»±&%tabsP¼±1°å°`P½± &%delegateP¾±/лÐbP¿±/Ð/ÐbPÀ±/ЀÐ/PÁ±/ÐÐbP±0ÐÐbPñ& % _doScroll:Pı/Ð ÐbPű/аåPƱ/ÐÒÐPDZ/Ð@ÐÒPȱ/ЮÐÒPɱ/ÐúЮPʱ1ÐнP˱ & % nextKeyViewP̱1нÐ\ÐËPͱ/Ð9ÐPα0Ð9°`Pϱ& % reloadAll:Pб/ÐÍÐPѱ/аåPÒ±1°`ÐÍPÓ± &%weekViewPÔ±1ÐͰ`PÕ± &%delegatePÖ±/РЧP×±/ÐõÐ Pر/ÐÐõPÙ±0РЧPÚ±&%submenuAction:PÛ±/ÐîÐõPܱ/ÐøÐõPݱ/ÐlÐõPÞ±/ÐtÐõPß±0а`Pà±&%today:Pá±0Ðî°`Pâ±& % previousDay:Pã±0Ðø°`Pä±&%nextDay:På±0Ðl°`Pæ±& % previousWeek:Pç±0Ðt°`Pè±& % nextWeek:Pé±/°æÐ)Pê±1°æ°`Pë± &%delegatePì±1°æÐPí± & % nextKeyViewPî±1°`°æPï± &%calendarPð±-&simpleagenda-0.44/Resources/Alarm.gorm/000077500000000000000000000000001320461325300200425ustar00rootroot00000000000000simpleagenda-0.44/Resources/Alarm.gorm/data.classes000066400000000000000000000013361320461325300223350ustar00rootroot00000000000000{ "## Comment" = "Do NOT change this file, Gorm maintains it"; AlarmEditor = { Actions = ( "addAlarm:", "selectType:", "removeAlarm:", "changeDelay:", "switchBeforeAfter:" ); Outlets = ( panel, type, action, window, table, add, remove, relativeSlider, relativeText, radio, date, time ); Super = NSObject; }; CalendarView = { Actions = ( "setDelegate:" ); Outlets = ( delegate, dataSource ); Super = NSView; }; FirstResponder = { Actions = ( "addAlarm:", "changeDelay:", "removeAlarm:", "selectType:", "setDelegate:", "switchBeforeAfter:" ); Super = NSObject; }; }simpleagenda-0.44/Resources/Alarm.gorm/data.info000066400000000000000000000002701320461325300216270ustar00rootroot00000000000000GNUstep archive00002f45:00000003:00000003:00000000:01GormFilePrefsManager1NSObject% 01NSString&%Latest Version0±& % Typed Streamsimpleagenda-0.44/Resources/Alarm.gorm/objects.gorm000066400000000000000000000276071320461325300223750ustar00rootroot00000000000000GNUstep archive00002f45:00000031:00000126:00000000:01GSNibContainer1NSObject01 NSMutableSet1NSSet&01GSWindowTemplate1GSClassSwapper01NSString&%NSPanel1NSPanel1 NSWindow1 NSResponder% @ @ @~ @p&% @p€ @Šh01 NSView% @ @ @~ @p  @~ @p&01 NSMutableArray1 NSArray&  01 NSPopUpButton1NSButton1 NSControl% @o  @iÀ @`` @6  @`` @6&0± &%0 1NSPopUpButtonCell1NSMenuItemCell1 NSButtonCell1 NSActionCell1NSCell0 ±&0 1NSFont%&&&&&&&&0 1NSMenu0 ±&0± &01 NSMenuItem0±&%Relative alarm° &&ÿ%01NSImage @& @ 01NSColor0±&%NSCalibratedWhiteColorSpace 0± &01NSBitmapImageRep1 NSImageRep0±&%NSDeviceRGBColorSpace @& @ %% %01NSData&  II*z€ P8$ „B`ïød6º¢Q™HªR ÐèԙţØ$IÕ’@£ìÉ ]þ”L¥%óDLÿ•Î$™ä‚Dÿ? Ô Ö ?¤K©1Š]‡A¡Ê`S •BW«Vhµ R±E­SìX þÿ rR’%0±0±&%Absolute alarm0±&&&ÿ%0± @& @ 0±° 0± &0±° @& @ %% %0±&  II*z€ P8$ „B`ïød6º¢Q™HªR ÐèԙţØ$IÕ’@£ìÉ ]þ”L¥%óDLÿ•Î$™ä‚Dÿ? Ô Ö ?¤K©1Š]‡A¡Ê`S •BW«Vhµ R±E­SìX þÿ rR’%&&&&&&%’0 ±&° &&& >ÌÌÍ =™™š&&°° °%%%%%0!±% @o  @m  @`` @6  @`` @6&0"± &%0#±0$±&° &&&&&&&&0%±0&±&0'± &0(±0)±&%Display°$&&ÿ%0*± @& @ 0+±° 0,± &0-±° @& @ %% %0.±&  II*z€ P8$ „B`ïød6º¢Q™HªR ÐèԙţØ$IÕ’@£ìÉ ]þ”L¥%óDLÿ•Î$™ä‚Dÿ? Ô Ö ?¤K©1Š]‡A¡Ê`S •BW«Vhµ R±E­SìX þÿ rR’%0/±00±&%Sound°$&&ÿ%’%01±02±&%Email°$&&ÿ%’%03±04±& % Procedure05±&&&ÿ%’%&&&&&&%’06±&°6&&& >ÌÌÍ =™™š&&°(°%°(%%%%%07±% @x0 @$ @TÀ @8  @TÀ @8&08± &%09±0:±&%Close° &&&&&&&&&&&&&&%’0;±&%c0<±&&&& &&0=1 NSScrollView% @$ @F€ @l` @j@  @l` @j@&0>± &0?1 NSClipView% @ @8 @kà @g  @kà @g&0@± &0A1 NSTableView%  @I @d   @I @d &0B± &%0C±0D±&° &&&&&&&&&&&&&&0E± &0F1! NSTableColumn0G±&%item BH A  GÃP0H1"NSTableHeaderCell1#NSTextFieldCell0I±&% Existing alarms0J±% °I&&&&&&&& &&&&&&%’0K±0L±&%NSNamedColorSpace0M±&%System0N±&%controlShadowColor0O±°L°M0P±&%windowFrameTextColor0Q±#0R±&° &&&&&&&& &&&&&&%’0S±°L0T±&%System0U±&%textBackgroundColor0V±°L°T0W±& % textColor0X±°L°M0Y±& % gridColor0Z±°L°M0[±&%controlBackgroundColor0\1$NSTableHeaderView%  @I @6  @I @6&0]± &0^1%GSTableCornerView% @ @ @3 @6  @3 @6&0_± &%% A€’ @ @°Z0`±% @ @ @kà @6  @kà @6&0a± &°\°Z°?% A A A A °`0b±% @$ @$ @V @8  @V @8&0c± &%0d±0e±&%Add° &&&&&&&&&&&&&&%’0f±&%a0g±&&&& &&0h±% @b  @$ @V @8  @V @8&0i± &%0j±0k±&%Remove° &&&&&&&&&&&&&&%’0l±&%r0m±&&&& &&0n1& NSTextField% @z  @bà @F @4  @F @4&0o± &%0p±#0q±&° °q&&&&&&&& &&&&&&%’°S°V’0r1'NSSlider% @o  @c  @e @0  @e @0&0s± &%0t1( NSSliderCell0u±&%900° 0v1)NSNumber1*NSValued @Œ &&&&&&&&D&&&&&&%’ F¨À Ea%0w±#0x±&° &&&&&&&& &&&&&&%’°S0y±°L°M0z±&%controlTextColor0{±0|±&0}±0~±&%common_SliderHoriz° &&&&&&&&&&&&&&%%01+NSMatrix% @uà @f @b @3  @b @3&0€± &%0±0‚±&° &&&&&&&&&&&&&&%’% @R @3 ?ð0ƒ±& % NSButtonCell0„±0…±&%Radio0†±0‡1,NSMutableString&%common_RadioOff&&&&&&&&&&&&&&%’0ˆ±&0‰±0б,&%common_RadioOn&&& &&%%0‹± &0Œ±0±&%Before°†&&&&&&&&&&&&&&%’0ޱ&°‰&&& &&0±0±&%After°†&&&&&&&&&&&&&&%’0‘±&°‰&&& &&’’’°Œ0’±&% @o  @f  @W @2  @W @2&0“± &%0”±#0•±&%Relative delay :° °•&&&&&&&& &&&&&&%’°S°V’0–±&% @o  @]€ @U€ @2  @U€ @2&0—± &%0˜±#0™±&%Absolute date :° °™&&&&&&&& &&&&&&%’°S°V’0š±&% @o  @W€ @SÀ @5  @SÀ @5&0›± &%0œ±#0±&° °&&&&&&&& &&&&&&%’°S°V’0ž±&% @u @W€ @L @5  @L @5&0Ÿ± &%0 ±#0¡±&° °¡&&&&&&&& &&&&&&%’°S°V’0¢±°L°M0£±&%windowBackgroundColor0¤±&%Window0¥±& % Alarm editor°¥ @ @7 @È @È%&   @” @0¦± &°0§± &0¨1-NSMutableDictionary1. NSDictionary&0©±& % TextField(0)°n0ª±&%NSOwner0«±& % AlarmEditor0¬±& % MenuItem(1)°0­±& % TextField(2)°–0®±&%Alarm°0¯±& % Slider(0)°r0°±&%PopUpButton(0)°0±±& % ScrollView(0)°=0²±& % MenuItem(3)°/0³±&%TableColumn(0)°F0´±& % TextField(4)°ž0µ±& % Button(1)°b0¶±& % MenuItem(5)°30·±&%View(0)°0¸±& % MenuItem(0)°0¹±& % TextField(1)°’0º±& % MenuItem(2)°(0»±& % Matrix(0)°0¼±& % TextField(3)°š0½±& % TableView(0)°A0¾±& % Button(0)°70¿±& % ButtonCell(0)°Œ0À±& % MenuItem(4)°10Á±&%PopUpButton(1)°!0±& % Button(2)°h0ñ&%TableColumn(1)0ı!0ű&%column2 BT A  GÃP0Ʊ"0DZ&% °J°Ç&&&&&&&& &&&&&&%’°K°O0ȱ#°D° &&&&&&&& &&&&&&%’°S°V0ɱ& % ButtonCell(2)°0ʱ &::0Ë1/NSNibConnector°®0̱&%NSOwner0ͱ/°·°®0α/°°°·0ϱ/°¸0б/°¬0ѱ/°Á°·0Ò±/°º0Ó±/°²0Ô±/°À0Õ±/°¶0Ö10NSNibOutletConnector°Ì°°0×±&%type0ر0°Ì°Á0Ù±&%action0Ú±0°Ì°·0Û±,&%panel0ܱ0°Ì°®0ݱ&%window0Þ±/°¾°·0ß11NSNibControlConnector°¾°®0à±,& % performClose:0á±/°±°·0â±/°½°±0ã±/°³°½0ä±/°Ã°½0å±0°Ì°½0æ±&%table0ç±0°½°Ì0è±,& % dataSource0é±/°µ°·0ê±/°Â°·0ë±0°Ì°µ0ì±&%add0í±0°Ì°Â0î±&%remove0ï±1°µ°Ì0ð±& % addAlarm:0ñ±1°Â°Ì0ò±& % removeAlarm:0ó±1°°°Ì0ô±& % selectType:0õ±/°©°·0ö±/°¯°·0÷±0°Ì°¯0ø±&%relativeSlider0ù±0°Ì°©0ú±& % relativeText0û±0°±°µ0ü±,& % nextKeyView0ý±0°µ°Â°ü0þ±/°»°·0ÿ±/°¿°»P±/°É°»P±/°¹°·P±1°»°ÌP±&%switchBeforeAfter:P±1°¯°ÌP±& % changeDelay:P±0°Ì°»P±&%radioP±0°®°½P ±,&%initialFirstResponderP ±/°­°·P ±/°¼°·P ±/°´°·P ±0°Ì°¼P±&%dateP±0°Ì°´P±&%timeP±0°¼°ÌP±,&%delegateP±0°¼°´P±,& % nextKeyViewP±0°´°µÐP±0°Â°¾ÐP±0°½°ÁÐP±0°Á°°ÐP±0°°°»ÐP±0°»°¯ÐP±0°¯°¼ÐP±0°´°ÌP±,&%delegateP±-&simpleagenda-0.44/Resources/Appointment.gorm/000077500000000000000000000000001320461325300213045ustar00rootroot00000000000000simpleagenda-0.44/Resources/Appointment.gorm/data.classes000066400000000000000000000011711320461325300235740ustar00rootroot00000000000000{ "## Comment" = "Do NOT change this file, Gorm maintains it"; AppointmentEditor = { Actions = ( "cancel:", "validate:", "selectFrequency:", "toggleUntil:", "toggleAllDay:", "editAlarms:" ); Outlets = ( description, title, duration, repeat, endDate, durationText, location, store, allDay, ok, until, timeText, time ); Super = NSWindowController; }; FirstResponder = { Actions = ( "editAlarms:", "selectFrequency:", "toggleAllDay:", "toggleUntil:", "validate:" ); Super = NSObject; }; }simpleagenda-0.44/Resources/Appointment.gorm/data.info000066400000000000000000000002701320461325300230710ustar00rootroot00000000000000GNUstep archive00002f45:00000003:00000003:00000000:01GormFilePrefsManager1NSObject% 01NSString&%Latest Version0±& % Typed Streamsimpleagenda-0.44/Resources/Appointment.gorm/objects.gorm000066400000000000000000000343641320461325300236350ustar00rootroot00000000000000GNUstep archive00002f45:0000002f:0000014a:00000000:01GSNibContainer1NSObject01 NSMutableSet1NSSet&01GSWindowTemplate1GSClassSwapper01NSString&%NSPanel1NSPanel1 NSWindow1 NSResponder% @ @ @{P @y&% @và @`01 NSView% @ @ @{P @y  @{P @y&01 NSMutableArray1 NSArray&01 NSScrollView% @W@ @E€ @t@ @dÀ  @t@ @dÀ&0± &0 1 NSClipView% @ @ @t @d@ @W@ @E€ @t @d@&0 ± &0 1 NSTextView1NSText% @W@ @E€ @t@ @dÀ  @t@ @dÀ&0 ± &0 1NSColor0±&%NSCalibratedRGBColorSpace ?€ ?€ ?€ ?€ ?€ @t@ @dÀ AcÐ AcÐ0±0±&%NSNamedColorSpace0±&%System0±& % textColor @t@ Acа ° % A A A A 01 NSTextField1 NSControl% @ @eà @T€ @2  @T€ @2&0± &%01NSTextFieldCell1 NSActionCell1NSCell0±& % Description :01NSFont%°&&&&&&&&&&&&&&%’0±°°0±&%textBackgroundColor°’0±% @ @w€ @T€ @2  @T€ @2&0± &%0±0±& % Summary :°°&&&&&&&&&&&&&&%’°°’0±% @W€ @wp @t0 @5  @t0 @5&0± &%0 ±0!±&%Text°°!&&&&&&&&&&&&&&%’°°’0"1NSButton% @u° @  @Q€ @8  @Q€ @8&0#± &%0$1 NSButtonCell0%±&%Ok°°%&&&&&&&&&&&&&&%’0&±&%o0'±&&&& &&0(±% @mà @  @T€ @8  @T€ @8&0)± &%0*±0+±&%Cancel°0,±&%Cancel&&&&&&&&0-1NSDateFormatter1 NSFormatter0.±&%%e %B %Y&&&&&&%’0/±&00±&&&& &&01±% @ @p @T@ @6  @T@ @6&02± &%03±04±&%Repeat :°°4&&&&&&&&&&&&&&%’°°’051 NSPopUpButton% @W@ @p  @U@ @6  @U@ @6&06± &%071NSPopUpButtonCell1NSMenuItemCell08±&%2007-01-19 11:28:56 +0100°&&&&&&&&09±0:±&%%m/%d/%y0;1 NSMenu0<±&0=± &0>1! NSMenuItem0?±&%Never0@±&&&ÿ%0A1"NSImage @& @ 0B±0C±&%NSCalibratedWhiteColorSpace 0D± &0E1#NSBitmapImageRep1$ NSImageRep0F±&%NSDeviceRGBColorSpace @& @ %% %0G1%NSData&  II*z€ P8$ „B`ïød6º¢Q™HªR ÐèԙţØ$IÕ’@£ìÉ ]þ”L¥%óDLÿ•Î$™ä‚Dÿ? Ô Ö ?¤K©1Š]‡A¡Ê`S •BW«Vhµ R±E­SìX þÿ rR’%0H±!0I±&%Daily°@&&ÿ%’%0J±!0K±&%Weekly°@&&ÿ%’%0L±!0M±&%Monthly0N±&&&ÿ%’%0O±!0P±&%Yearly0Q±&&&ÿ%’%&&&&&&%’0R±&°R&&& &&°>°;°>%%%%%0S±% @ @t @T€ @2  @T€ @2&0T± &%0U±0V±& % Duration :°°V&&&&&&&&&&&&&&%’°°’0W±% @W€ @sð @H€ @5  @H€ @5&0X± &%0Y±0Z±&%1°°Z&&&&&&&&&&&&&&%’°°’0[1&NSSlider% @iÀ @t @`@ @0  @`@ @0&0\± &%0]1' NSSliderCell0^±&%900°0_1(NSNumber1)NSValued @Œ &&&&&&&&D&&&&&&%’ Da G¨À Dá%0`±0a±&°&&&&&&&&&&&&&&%’°0b±°0c±&%System0d±&%controlTextColor0e±0f±&0g±" @3 @,0h±°C 0i± &0j±#°F @3 @,%%%0k±%&vvII*ä€`Bøt^å„?áXT& †CâPè¤F+ŒCà°Hmÿ€$R9$–M#&Ê\͹d†O/˜HÌ37dn —Lg@ I6W-ÐfS@õ18¡Lg³öÜæ“1™˜]”PõAO—Òå”ÚÄê£S£MêõÙ-jd—×ê•hý¢If®[¤Ö« &‘ržJ«tëÀéU±[o åâÿlÂ×p—Ù&‰¬bñ’,uÚÇrÉdðñº^vUžŸhԴΕÍ_ÔM55-[²¿Ø@í{:6Ò«¶î7[]æÞ±ƒ@@ þÿnÛR°&&&&&&&&&&&&&&%`%0l±% @bÀ @t @H @2  @H @2&0m± &%0n±0o±&%hour(s)°°o&&&&&&&&&&&&&&%’°°’0p±% @p€ @p  @U @5  @U @5&0q± &%0r±0s±&°°s&&&&&&&&&&&&&&%’°°’0t±% @ @r@ @T€ @2  @T€ @2&0u± &%0v±0w±& % Location :°°w&&&&&&&&&&&&&&%’°°’0x±% @W€ @r0 @t0 @5  @t0 @5&0y± &%0z±0{±&%Text°°{&&&&&&&&&&&&&&%’°°’0|±% @ @l  @T€ @2  @T€ @2&0}± &%0~±0±&%Store :°°&&&&&&&&&&&&&&%’°°’0€±% @W@ @kà @i @6  @i @6&0± &%0‚±0ƒ±&°&&&&&&&&0„± 0…±&0†± &0‡±!0ˆ±&%Default°ƒ&&ÿ%°A’%&&&&&&%’0‰±&°‰&&& >ÌÌÍ =™™š&&°‡°„°‡%%%%%0б% @u` @sð @S@ @6  @S@ @6&0‹± &%0Œ±0±&%All day0ޱ" @0 @0°B0± &0±#°F @0 @0%%%0‘±%&((II*–€ P8$ „BaP¸d6ˆDbQ83Ò,ÿ‹=#xÌn5G$Qø¼R;ˆ(%Oóµÿ“Ê!Ò¥²]0’Ì¡³I±‚_˜Î¡sÉlúq¡C(“zæ“ ¥Ñ©´Š}BWEŸÃ¨5X5F³ ­× •éL®yg³Zf¶‹]©ÿd‰Ö.Rëœúë=¼]ìW¸Œ þÿ ŽR°°&&&&&&&&&&&&&&%’0’±&0“±&0”±" @0 @0°B0•± &0–±#°F @0 @0%%%0—±%&ˆˆII*ö€ P8$ „Ba@„5ÿ X?áq8¤M¯™£OðÌvŠÈd1äxa'ÅÚñ(;Ò\ÿ—=&ùŒÎe5œM%òHèeÿ'Jc9¬Š'<“J%RÈ­¥ƒêOðõV…+6Öi‘JtIK„P$³é"‚Ìÿ0ZktI|4f±¿Å·:¼f7=»\ –e¢Õ"®Ám÷⪵Àï—ã&‚R¶?„bí8ܶ…eqÐ\ÕþCƒÉ,RHž—9§ÏSäZífÏ‹Üm÷WÝÎóvÿÚl€¼g‰Çµr1¼®/ ÏŠ@@ þÿ€íR&&& &&0˜±% @h  @pP @P@ @0  @P@ @0&0™± &%0š±0›±&%Until :°Ž°°›&&&&&&&&&&&&&&%’0œ±&0±&°”&&& &&0ž±% @A @uÀ @L @2  @L @2&0Ÿ± &%0 ±0¡±&%Time :°°¡&&&&&&&& &&&&&&%’°°’0¢±% @WÀ @u° @H @5  @H @5&0£± &%0¤±0¥±&%0h0°°¥&&&&&&&& &&&&&&%’°°’0¦±&% @bÀ @uà @p° @0  @p° @0&0§± &%0¨±'0©±&%0°0ª±(d &&&&&&&&D&&&&&&%’ G¦þ Dá%0«±0¬±&°&&&&&&&&&&&&&&%’°°b0­±0®±&°g°&&&&&&&&&&&&&&%`%0¯±% @s @kà @Z @6  @Z @6&0°± &%0±±0²±&%Alarms°&&&&&&&&&&&&&&%’0³±&0´±&&&& &&0µ±°°c0¶±&%windowBackgroundColor0·±&%Window0¸±&%Edit appointment°¸ @& @> @È @È%&   @” @0¹± &°0º± &0»1*NSMutableDictionary1+ NSDictionary&"0¼±&%View(0)°0½±& % TextField(12)°¢0¾±& % TextField(11)°|0¿±& % Button(4)°¯0À±& % TextField(10)°x0Á±& % Slider(1)°¦0±& % ClipView(0)° 0ñ& % Button(3)°˜0ı&%PopUpButton(1)°€0ű& % TextField(9)°t0Ʊ& % Button(2)°Š0DZ& % MenuItem(7)°‡0ȱ& % Slider(0)°[0ɱ& % TextField(8)°p0ʱ& % ScrollView(0)°0˱&%PopUpButton(0)°50̱& % Appointment°0ͱ& % MenuItem(6)°O0α& % Button(1)°(0ϱ& % TextField(7)°ž0б& % Button(0)°"0ѱ& % MenuItem(5)°L0Ò±& % TextField(6)°l0Ó±& % TextView(0)° 0Ô±& % MenuItem(4)°J0Õ±& % TextField(5)°W0Ö±& % MenuItem(3)°H0×±& % TextField(4)°S0ر& % MenuItem(2)°>0Ù±& % TextField(3)°10Ú±& % TextField(2)°0Û±& % TextField(1)°0ܱ& % TextField(0)°0ݱ&%NSOwner0Þ±&%AppointmentEditor0ß± &@@0à1,NSNibConnector°¼°Ì0á±,°Ê°¼0â±,°Ó°Â0ã±,°Ü°¼0ä±,°Û°¼0å±,°Ú°¼0æ±,°Ð°¼0ç±,°Î°¼0è1-NSNibControlConnector°Î0é±&%NSOwner0ê1.NSMutableString&%cancel:0ë±-°Ð°é0ì±.& % validate:0í1/NSNibOutletConnector°Ì°é0î±.&%windowController0ï±/°é°Ì0ð±.&%window0ñ±/°é°Ú0ò±.&%title0ó±/°é°Ó0ô±.& % description0õ±/°Ì°Ú0ö±.&%initialFirstResponder0÷±/°Ó°Ð0ø±.& % nextKeyView0ù±,°Ù°¼0ú±,°Ë°¼0û±,°×°¼0ü±,°Õ°¼0ý±,°È°¼0þ±/°Ð°Î0ÿ±.& % nextKeyViewP±/°é°ÈP±&%durationP±/°é°ËP±&%repeatP±,°Ò°¼P±,°É°¼P±/°É°éP±.&%delegateP±/°é°ÕP ±& % durationTextP ±-°È°ÕP ±.&%takeFloatValueFrom:P ±,°Å°¼P ±,°À°¼P±/°é°ÀP±&%locationP±,°¾°¼P±,°Ä°¼P±/°é°ÄP±.&%storeP±/°À°ËP±.& % nextKeyViewP±,°Æ°¼P±/°é°ÆP±&%allDayP±/°é°ÐP±&%okP±/°É°ÄP±.& % nextKeyViewP±/°é°ÉP±.&%endDateP±-°Ë°éP ±&%selectFrequency:P!±/°È°ÆÐP"±/°Æ°ÀÐP#±,°Ã°¼P$±/°Ë°ÃP%±.& % nextKeyViewP&±/°Ã°ÉÐ%P'±/°é°ÃP(±&%untilP)±-°Ã°éP*±& % toggleUntil:P+±-°Æ°éP,±& % toggleAllDay:P-±,°Â°ÊP.±,°Ï°¼P/±,°½°¼P0±/°é°½P1±&%timeTextP2±,°Á°¼P3±-°Á°½P4±.&%takeFloatValueFrom:P5±/°Á°ÈP6±.& % nextKeyViewP7±/°Ú°ÁÐ6P8±/°é°ÁP9±.&%timeP:±/°Ó°éP;±.&%delegateP<±,°¿°¼P=±/°Ä°¿P>±.& % nextKeyViewP?±/°¿°ÓÐ>P@±-°¿°éPA±& % editAlarms:PB±*&simpleagenda-0.44/Resources/Calendar.tiff000066400000000000000000000404561320461325300204370ustar00rootroot00000000000000II*@         !# $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $# !    )4=CGHIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIHGC=4)    $8LFCCy‰µ¦——Í©™™Ð©˜˜Ðª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñª™™Ñ©˜˜Ð©™™Ð¦——Í‹µFCCyL8 $  $=F@@yج¬òñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿñ±±ÿج¬òF@@y= $ 7E==yæ——þë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿë””ÿæ——þE==y7  )LЃƒòævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿævvÿЃƒòL) 4C77yàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿàYYÿC77y4  =‚RRµÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿÛ;;ÿ„SS¶=   C™RRÍÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿÕÿ™RRÍC  "G˜DDÐÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿÐÿ˜DDÐG"#I|HHÎŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿŽ ÿ|HHÎI# $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿ×××ÿÇÇÇÿØØØÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÙÙÙÿŽŽŽÿdddÿBBBÿ ÿÿÿÿÿ777ÿ|||ÿÂÂÂÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿ§§§ÿ'''ÿÿÿÿÿÿÿÿÿÿÿÿ___ÿÍÍÍÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÇÇÇÿNNNÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ´´´ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÙÙÙÿ...ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ²²²ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿnnnÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÓÓÓÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿ­­­ÿÿÿÿÿÿÿÿ ÿ¦¦¦ÿÖÖÖÿÜÜÜÿÂÂÂÿ]]]ÿÿÿÿÿÿÿÿaaaÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿ000ÿÿÿÿÿÿÿÿÏÏÏÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿdddÿÿÿÿÿÿÿÿÀÀÀÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÙÙÙÿÿÿÿÿÿÿÿnnnÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÈÈÈÿÿÿÿÿÿÿÿlllÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿ¶¶¶ÿÿÿÿÿÿÿÿ§§§ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿ+++ÿÿÿÿÿÿÿÿÛÛÛÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿŽŽŽÿÿÿÿÿÿÿÿÁÁÁÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿEEEÿÿÿÿÿÿÿÿÄÄÄÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿhhhÿÿÿÿÿÿÿÿÍÍÍÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿQQQÿÿÿÿÿÿÿÿ¨¨¨ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿtttÿÿÿÿÿÿÿÿµµµÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿ999ÿÿÿÿÿÿÿÿÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿ›››ÿÿÿÿÿÿÿÿ•••ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÿÿÿÿÿÿÿÿrrrÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÂÂÂÿÿÿÿÿÿÿÿ>>>ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿŸŸŸÿÿÿÿÿÿÿÿÿVVVÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÿÿÿÿÿÿÿÿ‡‡‡ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÂÂÂÿ&&&ÿÿÿÿÿÿÿÿÿ;;;ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿzzzÿÿÿÿÿÿÿÿÿ>>>ÿsssÿƒƒƒÿ[[[ÿÿÿÿÿÿÿÿÿÿÿ'''ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÚÚÚÿ555ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ111ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÀÀÀÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ>>>ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿ´´´ÿ222ÿÿÿÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿLLLÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÛÛÛÿ‡‡‡ÿÿÿÿÿÿÿÿÿÿEEEÿµµµÿ ÿÿÿÿÿÿÿmmmÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÒÒÒÿªªªÿ†††ÿbbbÿ???ÿCCCÿcccÿƒƒƒÿ´´´ÿÜÜÜÿËËËÿÿÿÿÿÿÿÿ   ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿšššÿÿÿÿÿÿÿÿÒÒÒÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿFFFÿÿÿÿÿÿÿ999ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿ–––ÿÿÿÿÿÿÿÿ•••ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿËËËÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿºººÿÿÿÿÿÿÿÿÿÙÙÙÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿ```ÿ ÿqqqÿÁÁÁÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÕÕÕÿlllÿÿÿÿÿÿÿÿÿ“““ÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿcccÿÿÿÿ%%%ÿAAAÿ]]]ÿoooÿTTTÿ222ÿÿÿÿÿÿÿÿÿÿVVVÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿÜÜÜÿvvv±J $ $Jvvv±ÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿiiiÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ<<<ÿÓÓÓÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿÝÝÝÿvvv±J $ $Jwww±ÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿpppÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿRRRÿÖÖÖÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿÞÞÞÿwww±J $ $Jwww±ßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿwwwÿ'''ÿÿÿÿÿÿÿÿÿÿÿÿÿÿ///ÿƒƒƒÿÛÛÛÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿßßßÿwww±J $ $Jxxx±áááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿ¯¯¯ÿfffÿ===ÿ///ÿ///ÿ///ÿ///ÿ///ÿ///ÿ///ÿ///ÿ///ÿ///ÿFFFÿ~~~ÿÑÑÑÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿáááÿxxx±J $ $Jxxx±âââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿàààÿÁÁÁÿŸŸŸÿ‘‘‘ÿ………ÿxxxÿpppÿ|||ÿŠŠŠÿ›››ÿÄÄÄÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿâââÿxxx±J $ $Jyyy±ãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿãããÿyyy±J $#Ixxx°åååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿåååÿxxx°I#"Gxxx¯æææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿæææÿxxx¯G" Cwww¬çççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿçççÿwww¬C   =aaa—èèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿèèèÿbbb—=   4555lêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿêêêÿ555l4 )L¯¯¯Õëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿëëëÿ¯¯¯ÕL) 7555jÚÚÚôìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿìììÿÚÚÚô555j7   $=555j±±±Õîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿîîîÿ±±±Õ555j= $  $8L777lddd–{{{¬{{{®|||°|||°}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±}}}±|||°|||°{{{®{{{¬ddd–777lL8 $   )4=CGHIJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIHGC=4)     !# $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $# !        þ@@Ú@ <â@@@A&A(R/home/philou/sources/SimpleAgenda/Resources/Calendar-2.tiffHHsimpleagenda-0.44/Resources/GroupDAV.gorm/000077500000000000000000000000001320461325300204355ustar00rootroot00000000000000simpleagenda-0.44/Resources/GroupDAV.gorm/data.classes000066400000000000000000000006111320461325300227230ustar00rootroot00000000000000{ "## Comment" = "Do NOT change this file, Gorm maintains it"; FirstResponder = { Actions = ( "buttonClicked:", "selectItem:" ); Super = NSObject; }; GroupDAVDialog = { Actions = ( "buttonClicked:", "selectItem:" ); Outlets = ( cancel, name, ok, panel, url, check, calendar, task ); Super = NSObject; }; }simpleagenda-0.44/Resources/GroupDAV.gorm/data.info000066400000000000000000000002701320461325300222220ustar00rootroot00000000000000GNUstep archive00002f45:00000003:00000003:00000000:01GormFilePrefsManager1NSObject% 01NSString&%Latest Version0±& % Typed Streamsimpleagenda-0.44/Resources/GroupDAV.gorm/objects.gorm000066400000000000000000000151311320461325300227550ustar00rootroot00000000000000GNUstep archive00002f45:00000022:000000ac:00000000:01GSNibContainer1NSObject01 NSMutableSet1NSSet&01GSWindowTemplate1GSClassSwapper01NSString&%NSPanel1NSPanel1 NSWindow1 NSResponder% @ @ @à @n &% @tp @„¨01 NSView% @ @ @à @n   @à @n &01 NSMutableArray1 NSArray&  01 NSTextField1 NSControl% @, @i  @^@ @2  @^@ @2&0± &%0 1NSTextFieldCell1 NSActionCell1NSCell0 ±&%Calendar name :0 1NSFont%° &&&&&&&&&&&&&&%’0 1NSColor0 ±&%NSNamedColorSpace0±&%System0±&%textBackgroundColor0±° °0±& % textColor’0±% @, @f  @^@ @2  @^@ @2&0± &%0±0±&%Calendar URL :° °&&&&&&&&&&&&&&%’° °’0±% @bÀ @i` @l @5  @l @5&0± &%0±0±&%Text° &&&&&&&&&&&&&&%’° °’0±% @bÀ @eÀ @sà @5  @sà @5&0± &%0±0±&%Text° &&&&&&&&&&&&&&%’° °’01NSButton% @yà @  @V @8  @V @8&0± &%0 1 NSButtonCell0!±&%OK° °!&&&&&&&&&&&&&&%’0"±&%o0#±&&&& &&0$±% @t @  @V @8  @V @8&0%± &%0&±0'±&%Cancel° °'&&&&&&&&&&&&&&%’0(±&%c0)±&&&& &&0*±% @bÀ @a` @e` @8  @e` @8&0+± &%0,±0-±&%Check directories° °-&&&&&&&&&&&&&&%’0.±&0/±&&&& &&001 NSPopUpButton% @bà @Z@ @sÐ @6  @sÐ @6&01± &%021NSPopUpButtonCell1NSMenuItemCell03±&° &&&&&&&&041NSMenu05±&06± &071 NSMenuItem08±&%Item 1°3&&ÿ%091NSImage0:±& % common_Nibble’%0;±0<±&%Item 2°3&&ÿ%’%0=±0>±&%Item 3°3&&ÿ%’%&&&&&&%’0?±&°?&&& >ÌÌÍ =™™š&&°7°4°7%%%%%0@±% @bà @S@ @sÐ @6  @sÐ @6&0A± &%0B±0C±&° &&&&&&&&0D±0E±&0F± &0G±0H±&%Item 1°C&&ÿ%°9’%0I±0J±&%Item 2°C&&ÿ%’%0K±0L±&%Item 3°C&&ÿ%’%&&&&&&%’0M±&°M&&& >ÌÌÍ =™™š&&°G°D°G%%%%%0N±% @$ @[@ @_@ @2  @_@ @2&0O± &%0P±0Q±&%Appointments path :° °Q&&&&&&&&&&&&&&%’° °’0R±% @, @T@ @^@ @2  @^@ @2&0S± &%0T±0U±& % Tasks path :° °U&&&&&&&&&&&&&&%’° °’0V±° 0W±&%System0X±&%windowBackgroundColor0Y±&%Window0Z±&%GroupDAV calendar setup°Z @ @= @È @È%&   @” @0[± &0\± &0]1NSMutableDictionary1 NSDictionary&0^±& % TextField(0)°0_±&%NSOwner0`±&%GroupDAVDialog0a±& % MenuItem(1)°;0b±& % TextField(2)°0c±&%PopUpButton(0)°00d±& % MenuItem(3)°G0e±& % TextField(4)°N0f±& % Button(1)°$0g±& % MenuItem(5)°K0h±&%View(0)°0i±& % MenuItem(0)°70j±& % TextField(1)°0k±&%Panel(0)°0l±& % MenuItem(2)°=0m±& % Button(0)°0n±& % TextField(3)°0o±&%PopUpButton(1)°@0p±& % MenuItem(4)°I0q±& % TextField(5)°R0r±& % Button(2)°*0s± &((0t1NSNibConnector°k0u±&%NSOwner0v±°h°k0w±°^°h0x±°j°h0y±°b°h0z±°n°h0{±°m°h0|±°f°h0}1 NSNibOutletConnector°u°k0~±&%panel0± °u°b0€±&%name0± °u°n0‚±&%url0ƒ± °u°m0„±&%ok0…± °u°f0†±&%cancel0‡1!NSNibControlConnector°m°u0ˆ±&%buttonClicked:0‰±!°f°u°ˆ0б °n°u0‹1"NSMutableString&%delegate0Œ± °m°f0±"& % nextKeyView0ޱ °f°n°0± °k°n0±"&%initialFirstResponder0‘±°r°h0’±!°r°u0“±"&%buttonClicked:0”± °u°r0•±&%check0–±°c°h0—±°i0˜±°a0™±°l0š±°o°h0›±°d°o0œ±°p°o0±°g°o0ž±°e°h0Ÿ±°q°h0 ± °u°c0¡±&%calendar0¢± °u°o0£±&%task0¤±!°c°u0¥±& % selectItem:0¦±!°o°u°¥0§± °n°r0¨±"& % nextKeyView0©± °r°c°¨0ª± °c°o°¨0«± °o°m°¨0¬±&simpleagenda-0.44/Resources/Preferences.gorm/000077500000000000000000000000001320461325300212475ustar00rootroot00000000000000simpleagenda-0.44/Resources/Preferences.gorm/data.classes000066400000000000000000000032771320461325300235500ustar00rootroot00000000000000{ "## Comment" = "Do NOT change this file, Gorm maintains it"; FirstResponder = { Actions = ( "changeEnd:", "changeInterval:", "changeStart:", "changeStep:", "createStore:", "selectAlarmBackend:", "removeStore:", "selectDefaultStore:", "selectItem:", "selectStore:", "setColor:", "toggleAlarms:", "toggleDisplay:", "toggleEnabled:", "toggleRefresh:", "toggleShowDate:", "toggleShowTime:", "toggleTooltip:", "toggleWritable:" ); Super = NSObject; }; PreferencesController = { Actions = ( "selectStore:", "changeColor:", "changeTextColor:", "changeEnd:", "changeStart:", "changeStep:", "selectDefaultStore:", "toggleDisplay:", "toggleWritable:", "removeStore:", "createStore:", "selectItem:", "toggleRefresh:", "changeInterval:", "toggleTooltip:", "toggleShowTime:", "toggleShowDate:", "toggleEnabled:", "toggleAlarms:", "selectAlarmBackend:" ); Outlets = ( panel, dayStart, dayEnd, dayStartText, dayEndText, minStep, minStepText, storeColor, storeTextColor, storePopUp, defaultStorePopUp, storeDisplay, storeWritable, removeButton, storeClass, storeName, createButton, slot, globalPreferences, itemPopUp, storeFactory, storePreferences, storeRefresh, refreshInterval, refreshIntervalText, showTooltip, showTimeAppIcon, showDateAppIcon, uiPreferences, storeEnabled, alarmPreferences, alarmEnabled, alarmBackendPopUp ); Super = NSObject; }; }simpleagenda-0.44/Resources/Preferences.gorm/data.info000066400000000000000000000002701320461325300230340ustar00rootroot00000000000000GNUstep archive00002f45:00000003:00000003:00000000:01GormFilePrefsManager1NSObject% 01NSString&%Latest Version0±& % Typed Streamsimpleagenda-0.44/Resources/Preferences.gorm/objects.gorm000066400000000000000000000734731320461325300236040ustar00rootroot00000000000000GNUstep archive00002f45:0000002b:000002b7:00000000:01GSNibContainer1NSObject01 NSMutableSet1NSSet&01GSWindowTemplate1GSClassSwapper01NSString&%NSPanel1NSPanel1 NSWindow1 NSResponder% @ @ @† @& % @f @‚ð01 NSView% @ @ @† @  @† @&01 NSMutableArray1 NSArray&01NSBox% @ @vÐ @vp @f   @vp @f &0± &0 ± % @ @ @u @dà  @u @dà&0 ± &  0 1 NSTextField1 NSControl% @WÀ @a  @H @5  @H @5&0 ± &%0 1NSTextFieldCell1 NSActionCell1NSCell0±&01NSFont%°&&&&&&&&&&&&&&%’01NSColor0±&%NSNamedColorSpace0±&%System0±&%textBackgroundColor0±°°0±& % textColor’0±% @1 @a  @Q€ @2  @Q€ @2&0± &%0±0±& % Day start :°°&&&&&&&&&&&&&&%’°°’0±% @ @[@ @TÀ @2  @TÀ @2&0± &%0±0±& % Day end :°°&&&&&&&&&&&&&&%’°°’01NSSlider% @cÀ @a€ @d @0  @d @0&0± &%0 1 NSSliderCell0!±&%3240°0"1NSNumber1NSValued @©P&&&&&&&&D&&&&&&%’ Fý ¿€%0#±0$±&°&&&&&&&&&&&&&&%’°0%±°0&±&%System0'±&%controlTextColor0(±0)±&0*1NSImage0+±&%common_SliderHoriz°&&&&&&&&&&&&&&% %0,±% @WÀ @Z€ @H @5  @H @5&0-± &%0.±0/±&°°/&&&&&&&&&&&&&&%’°°’00±% @cÀ @[@ @d @0  @d @0&01± &%02±03±&%57600°04±d @ì &&&&&&&&D&&&&&&%’ Ga G¡¸ ¿€%05±06±&°&&&&&&&&&&&&&&%’°°%07±08±&°*°&&&&&&&&&&&&&&%%09±% @1 @S€ @Q@ @2  @Q@ @2&0:± &%0;±0<±& % Time step :°°<&&&&&&&&&&&&&&%’°°’0=±% @WÀ @RÀ @H @5  @H @5&0>± &%0?±0@±&°°@&&&&&&&&&&&&&&%’°°’0A±% @cÀ @S€ @d @0  @d @0&0B± &%0C±0D±&%900°0E±d @Œ &&&&&&&&D&&&&&&%’ Da Ea >€%0F±0G±&°&&&&&&&&&&&&&&%’°°%0H±0I±&°*°&&&&&&&&&&&&&&%%0J±% @1 @F @Y@ @2  @Y@ @2&0K± &%0L±0M±&%Default calendar :°°M&&&&&&&&&&&&&&%’°°’0N1 NSPopUpButton1NSButton% @_@ @E @h @6  @h @6&0O± &%0P1NSPopUpButtonCell1NSMenuItemCell1 NSButtonCell0Q±&°&&&&&&&&0R1 NSMenu0S±&0T± &0U1! NSMenuItem0V±&%Item 1°Q&&ÿ%’%0W±!0X±&%Item 2°Q&&ÿ%’%0Y±!0Z±&%Item 3°Q&&ÿ%’%&&&&&&%’0[±&°[&&& >ÌÌÍ =™™š&&°R%%%%%0\±0]±&%Global Preferences°°]&&&&&&&&&&&&&& @ @%%0^±% @ @g @vp @f   @vp @f &0_± &0`± % @ @ @u @dà  @u @dà&0a± &  0b±% @WÀ @a@ @h@ @6  @h@ @6&0c± &%0d±0e±&°&&&&&&&&0f± 0g±&0h± &0i±!0j±&%Item 1°e&&ÿ%’%0k±!0l±&%Item 2°e&&ÿ%’%0m±!0n±&%Item 3°e&&ÿ%’%&&&&&&%’0o±&°o&&& >ÌÌÍ =™™š&&°f%%%%%0p±% ?ð @Z@ @U@ @2  @U@ @2&0q± &%0r±0s±& % Event color :°°s&&&&&&&&&&&&&&%’°°’0t1" NSColorWell% @WÀ @Y @J€ @>  @J€ @>&0u± &%0v±0w±&°&&&&&&&&&&&&&&0x±0y±&%NSCalibratedWhiteColorSpace ?€’0z±% @9 @a@ @N @2  @N @2&0{± &%0|±0}±& % Calendar :°°}&&&&&&&&&&&&&&%’°°’0~±% @_€ @RÀ @S @0  @S @0&0± &%0€±0±& % Display : 0‚± @0 @00ƒ±°y 0„± &0…1#NSBitmapImageRep1$ NSImageRep0†±&%NSDeviceRGBColorSpace @0 @0%%%0‡1%NSData&((II*–€ P8$ „BaP¸d6ˆDbQ83Ò,ÿ‹=#xÌn5G$Qø¼R;ˆ(%Oóµÿ“Ê!Ò¥²]0’Ì¡³I±‚_˜Î¡sÉlúq¡C(“zæ“ ¥Ñ©´Š}BWEŸÃ¨5X5F³ ­× •éL®yg³Zf¶‹]©ÿd‰Ö.Rëœúë=¼]ìW¸Œ þÿ ŽR°°&&&&&&&&&&&&&&%’0ˆ±&0‰±&0б @0 @0°ƒ0‹± &0Œ±#°† @0 @0%%%0±%&ˆˆII*ö€ P8$ „Ba@„5ÿ X?áq8¤M¯™£OðÌvŠÈd1äxa'ÅÚñ(;Ò\ÿ—=&ùŒÎe5œM%òHèeÿ'Jc9¬Š'<“J%RÈ­¥ƒêOðõV…+6Öi‘JtIK„P$³é"‚Ìÿ0ZktI|4f±¿Å·:¼f7=»\ –e¢Õ"®Ám÷⪵Àï—ã&‚R¶?„bí8ܶ…eqÐ\ÕþCƒÉ,RHž—9§ÏSäZífÏ‹Üm÷WÝÎóvÿÚl€¼g‰Çµr1¼®/ ÏŠ@@ þÿ€íR&&& &&0ޱ% @ià @RÀ @T€ @0  @T€ @0&0± &%0±0‘±& % Writable : °‚°°‘&&&&&&&&&&&&&&%’0’±&0“±&°Š&&& &&0”±% @i`  @aÀ @8  @aÀ @8&0•± &%0–±0—±&%Remove this calendar°0˜±&%Remove this store&&&&&&&&&&&&&&%’0™±&0š±&&&& &&0›±"% @m€ @Y @J€ @>  @J€ @>&0œ± &%0±0ž±&°&&&&&&&&&&&&&&0Ÿ±°y ?€’0 ±% @d  @Z@ @P€ @2  @P€ @2&0¡± &%0¢±0£±& % Text color :°°£&&&&&&&&&&&&&&%’°°’0¤±% @E€ @I€ @Q @0  @Q @0&0¥± &%0¦±0§±& % Refresh : °‚°°§&&&&&&&&&&&&&&%’0¨±&0©±&°Š&&& &&0ª±% @e€ @I€ @]@ @0  @]@ @0&0«± &%0¬±0­±&%900°0®±d @Œ &&&&&&&&D&&&&&&%’ Da Eá ¿€%0¯±0°±&°&&&&&&&& &&&&&&%’°°%0±±0²±&°*°&&&&&&&&&&&&&&%%0³±% @_€ @H @D€ @5  @D€ @5&0´± &%0µ±0¶±&%Text°&&&&&&&& &&&&&&%’°°’0·±% @9 @RÀ @U€ @0  @U€ @0&0¸± &%0¹±0º±& % Enabled : 0»± @0 @00¼±°y 0½± &0¾±#°† @0 @0%%%0¿±%&((II*–€ P8$ „BaP¸d6ˆDbQ83Ò,ÿ‹=#xÌn5G$Qø¼R;ˆ(%Oóµÿ“Ê!Ò¥²]0’Ì¡³I±‚_˜Î¡sÉlúq¡C(“zæ“ ¥Ñ©´Š}BWEŸÃ¨5X5F³ ­× •éL®yg³Zf¶‹]©ÿd‰Ö.Rëœúë=¼]ìW¸Œ þÿ ŽR°°º&&&&&&&&&&&&&&%’0À±&0Á±&0± @0 @0°¼0ñ &0ı#°† @0 @0%%%0ű%&ˆˆII*ö€ P8$ „Ba@„5ÿ X?áq8¤M¯™£OðÌvŠÈd1äxa'ÅÚñ(;Ò\ÿ—=&ùŒÎe5œM%òHèeÿ'Jc9¬Š'<“J%RÈ­¥ƒêOðõV…+6Öi‘JtIK„P$³é"‚Ìÿ0ZktI|4f±¿Å·:¼f7=»\ –e¢Õ"®Ám÷⪵Àï—ã&‚R¶?„bí8ܶ…eqÐ\ÕþCƒÉ,RHž—9§ÏSäZífÏ‹Üm÷WÝÎóvÿÚl€¼g‰Çµr1¼®/ ÏŠ@@ þÿ€íR&&& &&0Ʊ0DZ&%Stores preferences°°Ç&&&&&&&&&&&&&& @ @%%0ȱ% @ @ @vp @f   @vp @f &0ɱ &0ʱ % @ @ @u @dà  @u @dà&0˱ &0̱% @ @a€ @TÀ @2  @TÀ @2&0ͱ &%0α0ϱ&%Type : °°Ï&&&&&&&&&&&&&&%’°°’0б% @WÀ @a  @gÀ @6  @gÀ @6&0ѱ &%0Ò±0Ó±&°&&&&&&&&0Ô± 0Õ±&0Ö± &0×±!0ر&%Item 1°Ó&&ÿ%’%0Ù±!0Ú±&%Item 2°Ó&&ÿ%’%0Û±!0ܱ&%Item 3°Ó&&ÿ%’%&&&&&&%’0ݱ&°Ý&&& >ÌÌÍ =™™š&&°Ô%%%%%0Þ±% @ @Z@ @TÀ @2  @TÀ @2&0ß± &%0à±0á±&%Name : °°á&&&&&&&&&&&&&&%’°°’0â±% @WÀ @YÀ @gÀ @5  @gÀ @5&0ã± &%0ä±0å±&°°å&&&&&&&&&&&&&&%’°°’0æ±% @k   @_ @8  @_ @8&0ç± &%0è±0é±&%Create°°é&&&&&&&&&&&&&&%’0ê±&0ë±&&&& &&0ì±0í±& % Store Factory°°í&&&&&&&&&&&&&& @ @%%0î±% @v @vÐ @vp @f   @vp @f &0ï± &0ð± % @ @ @u @dà  @u @dà&0ñ± &0ò±% @4 @a  @eÀ @0  @eÀ @0&0ó± &%0ô±0õ±&%Show date in the AppIcon : 0ö± @0 @00÷±°y 0ø± &0ù±#°† @0 @0%%%0ú±%&((II*–€ P8$ „BaP¸d6ˆDbQ83Ò,ÿ‹=#xÌn5G$Qø¼R;ˆ(%Oóµÿ“Ê!Ò¥²]0’Ì¡³I±‚_˜Î¡sÉlúq¡C(“zæ“ ¥Ñ©´Š}BWEŸÃ¨5X5F³ ­× •éL®yg³Zf¶‹]©ÿd‰Ö.Rëœúë=¼]ìW¸Œ þÿ ŽR°°õ&&&&&&&&&&&&&&%’0û±&0ü±&0ý± @0 @0°÷0þ± &0ÿ±#°† @0 @0%%%P±%&ˆˆII*ö€ P8$ „Ba@„5ÿ X?áq8¤M¯™£OðÌvŠÈd1äxa'ÅÚñ(;Ò\ÿ—=&ùŒÎe5œM%òHèeÿ'Jc9¬Š'<“J%RÈ­¥ƒêOðõV…+6Öi‘JtIK„P$³é"‚Ìÿ0ZktI|4f±¿Å·:¼f7=»\ –e¢Õ"®Ám÷⪵Àï—ã&‚R¶?„bí8ܶ…eqÐ\ÕþCƒÉ,RHž—9§ÏSäZífÏ‹Üm÷WÝÎóvÿÚl€¼g‰Çµr1¼®/ ÏŠ@@ þÿ€íR&&& &&P±% @4 @^ @eÀ @0  @eÀ @0&P± &%P±P±&%Show time in the AppIcon : P± @0 @0P±°y P± &P±#°† @0 @0%%%P ±%&((II*–€ P8$ „BaP¸d6ˆDbQ83Ò,ÿ‹=#xÌn5G$Qø¼R;ˆ(%Oóµÿ“Ê!Ò¥²]0’Ì¡³I±‚_˜Î¡sÉlúq¡C(“zæ“ ¥Ñ©´Š}BWEŸÃ¨5X5F³ ­× •éL®yg³Zf¶‹]©ÿd‰Ö.Rëœúë=¼]ìW¸Œ þÿ ŽR°Ð&&&&&&&&&&&&&&%’P ±&P ±&P ± @0 @0ÐP ± &P±#°† @0 @0%%%P±%&ˆˆII*ö€ P8$ „Ba@„5ÿ X?áq8¤M¯™£OðÌvŠÈd1äxa'ÅÚñ(;Ò\ÿ—=&ùŒÎe5œM%òHèeÿ'Jc9¬Š'<“J%RÈ­¥ƒêOðõV…+6Öi‘JtIK„P$³é"‚Ìÿ0ZktI|4f±¿Å·:¼f7=»\ –e¢Õ"®Ám÷⪵Àï—ã&‚R¶?„bí8ܶ…eqÐ\ÕþCƒÉ,RHž—9§ÏSäZífÏ‹Üm÷WÝÎóvÿÚl€¼g‰Çµr1¼®/ ÏŠ@@ þÿ€íR&&& &&P±% @U @X€ @[€ @0  @[€ @0&P± &%P±P±&%Show tooltips : P± @0 @0P±°y P± &P±#°† @0 @0%%%P±%&((II*–€ P8$ „BaP¸d6ˆDbQ83Ò,ÿ‹=#xÌn5G$Qø¼R;ˆ(%Oóµÿ“Ê!Ò¥²]0’Ì¡³I±‚_˜Î¡sÉlúq¡C(“zæ“ ¥Ñ©´Š}BWEŸÃ¨5X5F³ ­× •éL®yg³Zf¶‹]©ÿd‰Ö.Rëœúë=¼]ìW¸Œ þÿ ŽR°P±&%Show tooltips : &&&&&&&&&&&&&&%’P±&P±&P± @0 @0ÐP± &P±#°† @0 @0%%%P±%&ˆˆII*ö€ P8$ „Ba@„5ÿ X?áq8¤M¯™£OðÌvŠÈd1äxa'ÅÚñ(;Ò\ÿ—=&ùŒÎe5œM%òHèeÿ'Jc9¬Š'<“J%RÈ­¥ƒêOðõV…+6Öi‘JtIK„P$³é"‚Ìÿ0ZktI|4f±¿Å·:¼f7=»\ –e¢Õ"®Ám÷⪵Àï—ã&‚R¶?„bí8ܶ…eqÐ\ÕþCƒÉ,RHž—9§ÏSäZífÏ‹Üm÷WÝÎóvÿÚl€¼g‰Çµr1¼®/ ÏŠ@@ þÿ€íR&&& &&P ±P!±& % Store Factory°Ð!&&&&&&&&&&&&&& @ @%%P"±% @v @g @vp @f   @vp @f &P#± &P$± % @ @ @u @dà  @u @dà&P%± &P&±% @0 @a  @aÀ @0  @aÀ @0&P'± &%P(±P)±&%Alarms notifications :P*±P+±&%common_SwitchOff°&&&&&&&&&&&&&&%’P,±&P-±&P.±P/±&%common_SwitchOn&&& &&P0±% @aà @\€ @gÀ @6  @gÀ @6&P1± &%P2±P3±&°&&&&&&&&P4± P5±&P6± &P7±!P8±&%Item 1Ð3&&ÿ%’%P9±!P:±&%Item 2Ð3&&ÿ%’%P;±!P<±&%Item 3Ð3&&ÿ%’%&&&&&&%’P=±&Ð=&&& >ÌÌÍ =™™š&&Ð4%%%%%P>±% @\€ @`` @2  @`` @2&P?± &%P@±PA±&%Default backend :°ÐA&&&&&&&& &&&&&&%’°°’PB±PC±&%Box°&&&&&&&&&&&&&& @ @%%PD±°°&PE±&%windowBackgroundColorPF±&%WindowPG±&%PanelÐG @ @= @È @È%&   @” @PH±°±% @ @ @wp @m &% @€Ø @Œ@PI± % @ @ @wp @m   @wp @m &PJ± &PK±% @ @  @vp @f   @vp @f &PL± &PM± %  @vp @f   @vp @f &PN± &PO±PP±&%Box°&&&&&&&&&&&&&& %%PQ±% @Y€ @i  @e€ @6  @e€ @6&PR± &%PS±PT±&°&&&&&&&&PU± PV±&PW± &PX±!PY±&%Agenda PreferencesÐT&&ÿ%PZ± @& @ °ƒP[± &P\±#°† @& @ %% %P]±%&  II*z€ P8$ „B`ïød6º¢Q™HªR ÐèԙţØ$IÕ’@£ìÉ ]þ”L¥%óDLÿ•Î$™ä‚Dÿ? Ô Ö ?¤K©1Š]‡A¡Ê`S •BW«Vhµ R±E­SìX þÿ rR’%P^±!P_±&%Calendar PreferencesÐT&&ÿ%’%P`±!Pa±&%Calendar FactoryÐT&&ÿ%’%Pb±!Pc±&%UI PreferencesPd±&&&ÿ%’%Pe±!Pf±&%Alarm PreferencesPg±&&&ÿ%’%&&&&&&%’Ph±&Ðh&&& >ÌÌÍ =™™š&&ÐXÐUÐX%%%%%ÐDPi±&%WindowPj±& % PreferencesÐj @ @A @È @È%&   @” @Pk± &Pl± &Pm1&NSMutableDictionary1' NSDictionary&JPn±& % Button(10)Ð&Po±&%PopUpButton(5)°ÐPp±&%PopUpButton(0)Ð0Pq±& % Slider(4)°0Pr±& % MenuItem(12)°UPs±& % MenuItem(17)°mPt±& % TextField(22)°ÞPu±& % TextField(15)°,Pv±&%View(8)°ÊPw±& % Button(3)ÐPx±& % Button(8)°æPy±& % MenuItem(0)Pz±!P{±&%Item 1P|±&&&ÿ%P}± @& @ P~±°y P± &P€±#°† @& @ %% %P±%&  II*z€ P8$ „B`ïød6º¢Q™HªR ÐèԙţØ$IÕ’@£ìÉ ]þ”L¥%óDLÿ•Î$™ä‚Dÿ? Ô Ö ?¤K©1Š]‡A¡Ê`S •BW«Vhµ R±E­SìX þÿ rR’%P‚±& % MenuItem(5)Ð9Pƒ±&%Box(4)ÐKP„±& % ColorWell(0)°›P…±& % MenuItem(19)°ÙP†±& % MenuItem(14)°YP‡±& % TextField(1)°³Pˆ±&%Items°P‰±& % MenuItem(21)ÐXPб& % TextField(12)° P‹±&%View(5)°PŒ±& % TextField(17)°=P±&%View(0)ÐIPޱ& % Button(0)°¤P±&%PanelÐHP±& % Button(5)°~P‘±& % MenuItem(2)P’±!P“±&%Item 3Ð|&&ÿ%’%P”±& % MenuItem(7)ÐeP•±&%Box(1)Ð"P–±&%Box(6)°ÈP—±&%PopUpButton(4)°bP˜±& % Slider(3)°P™±& % MenuItem(23)Ð`Pš±& % MenuItem(16)°kP›±&%View(7)°`Pœ±& % TextField(19)°pP±& % TextField(21)°ÌPž±&%View(2)Ð$PŸ±& % TextField(14)°P ±& % Button(2)°òP¡±& % Button(7)°”P¢±& % MenuItem(4)Ð7P£±&%Box(3)°P¤±&%PopUpButton(6)ÐQP¥±& % Slider(0)°ªP¦±& % Slider(5)°AP§±& % MenuItem(20)°ÛP¨±& % MenuItem(13)°WP©±& % TextField(0)° Pª±& % MenuItem(18)°×P«±&%View(4)ÐMP¬±& % TextField(16)°9P­±& % TextField(23)°âP®±& % Button(9)°·P¯±& % Button(4)P°±% @1 ÀG€ @L @8  @L @8&P±± &%P²±P³±&%Button°&&&&&&&&&&&&&&%’P´±&Pµ±&&&& &&P¶±& % MenuItem(1)P·±!P¸±&%Item 2Ð|&&ÿ%’%P¹±& % MenuItem(6)Ð;Pº±&%Box(5)°^P»±&%Box(0)°îP¼±& % ColorWell(1)°tP½±&%PopUpButton(3)°NP¾±& % MenuItem(22)Ð^P¿±& % TextField(2)Ð>PÀ±& % MenuItem(15)°iPÁ±& % TextField(18)°JP±&%View(1)°ðPñ&%View(6)° Pı& % TextField(20)°zPű& % TextField(13)°PƱ& % Button(1)ÐPDZ& % Button(6)°ŽPȱ&%NSOwnerPɱ&%PreferencesControllerPʱ& % MenuItem(3)ÐbP˱ &””PÌ1(NSNibConnectorÐPͱ&%NSOwnerPα(ÐÐPÏ1)NSNibOutletConnectorÐÐÍPÐ1*NSMutableString&%delegatePѱ)ÐÍÐPÒ±&%panelPÓ±(ЃÐPÔ±(ЫЃPÕ±)ÐÍЃPÖ±&%slotP×±(ЈÐÍPر(ЋЈPÙ±(УЋPÚ±(ÐÃУPÛ±(ЊÐÃPܱ(ÐÅÐÃPݱ(ПÐÃPÞ±(ИÐÃPß±(ÐuÐÃPà±(ÐqÐÃPá±(ЬÐÃPâ±(ÐŒÐÃPã±(ЦÐÃPä±(ÐÁÐÃPå±(нÐÃPæ±(ÐrнPç±(ШнPè±(ІнPé±(кЋPê±(ЛкPë±(ЗЛPì±(МЛPí±(мЛPî±(ÐÄЛPï±(ÐЛPð±(ÐÇЛPñ±(СЛPò±(ЖЋPó±(ÐvЖPô±(ÐÐvPõ±(ÐoÐvPö±(ЪÐoP÷±(Ð…ÐoPø±(ЧÐoPù±(ÐtÐvPú±(ЭÐvPû±(ÐxÐvPü±)ÐÍУPý±&%globalPreferencesPþ±)ÐÍкPÿ±&%storePreferencesP±)ÐÍЖP±& % storeFactoryP±)ИÐqP±*& % nextKeyViewP±)ÐqЦÐP±)ЦнÐP±)ЗмÐP±)ÐÐÇÐP±)ÐoЭÐP ±(ФÐP 1+NSNibControlConnectorФÐÍP ±& % selectItem:P ±)ЭÐÍP ±*&%delegateP±)ЭÐxÐP±)ÐÍЭP±*& % storeNameP±)ÐÍÐoP±*& % storeClassP±+ÐxÐÍP±*& % createStore:P±)ÐÍÐxP±*& % createButtonP±+ÐÐÍP±*&%toggleDisplay:P±+ÐÇÐÍP±*&%toggleWritable:P±+ЗÐÍP±*& % selectStore:P±)ÐÍЗP±*& % storePopUpP±+мÐÍP ±*& % changeColor:P!±)ÐÍмP"±*& % storeColorP#±)ÐÍÐP$±*& % storeDisplayP%±)ÐÍÐÇP&±*& % storeWritableP'±+СÐÍP(±*& % removeStore:P)±+нÐÍP*±*&%selectDefaultStore:P+±)ÐÍнP,±*&%defaultStorePopUpP-±)ÐÍЊP.±*& % dayStartTextP/±)ÐÍÐuP0±*& % dayEndTextP1±)ÐÍÐŒP2±*& % minStepTextP3±)ÐÍÐqP4±*&%dayEndP5±)ÐÍЦP6±*&%minStepP7±+ИÐÍP8±*& % changeStart:P9±+ÐqÐÍP:±*& % changeEnd:P;±+ЦÐÍP<±*& % changeStep:P=±)ÐÍИP>±*&%dayStartP?±)ÐÍСP@±*& % removeButtonPA±)ÐÍФPB±& % itemPopUpPC±(ЄЛPD±)ÐÍЄPE±*&%storeTextColorPF±(ЩЛPG±+ЄÐÍPH±*&%changeTextColor:PI±)ÐФPJ±*&%initialFirstResponderPK±)УИPL±*& % nextKeyViewPM±)кЗPN±*& % nextKeyViewPO±)мЄÐNPP±)ЖÐoÐNPQ±(ЎЛPR±)ÐÇÐŽPS±*& % nextKeyViewPT±)ЎСÐSPU±)ÐÍÐŽPV±& % storeRefreshPW±+ÐŽÐÍPX±&%toggleRefresh:PY±(ХЛPZ±(ЇЛP[±)ÐÍЇP\±&%refreshIntervalTextP]±)ÐÍÐ¥P^±&%refreshIntervalP_±+Ð¥ÐÍP`±*&%changeInterval:Pa±(ЉPb±(оPc±(ЙPd±(лЋPe±(ÐÂлPf±(РÐÂPg±(ÐwÐÂPh±)ÐÍлPi±& % uiPreferencesPj±(ÐyPk±(жPl±(БPm±(ÐÊPn±(ÐÆÐÂPo±)нИPp±*& % nextKeyViewPq±)лРÐpPr±)РÐwÐpPs±)ÐwÐÆÐpPt±)ÐÆÐ ÐpPu±+РÐÍPv±*&%toggleShowDate:Pw±+ÐwÐÍPx±*&%toggleShowTime:Py±+ÐÆÐÍPz±*&%toggleTooltip:P{±)ÐÍРP|±*&%showDateAppIconP}±)ÐÍÐwP~±*&%showTimeAppIconP±)ÐÍÐÆP€±*& % showTooltipP±(ЮЛP‚±)ЄЮPƒ±*& % nextKeyViewP„±)ЮÐЃP…±+ЮÐÍP†±&%toggleEnabled:P‡±)ÐÍЮPˆ±& % storeEnabledP‰±(ЕЋPб(ОЕP‹±(ÐnОPŒ±(ÐpОP±(ТPޱ(ЂP±(йP±(ÐÀP‘±(КP’±(ÐsP“±(ДP”±)ÐÍЕP•±*&%alarmPreferencesP–±+ÐnÐÍP—±& % toggleAlarms:P˜±)ÐÍÐnP™±& % alarmEnabledPš±)ÐÍÐpP›±&%alarmBackendPopUpPœ±(пОP±+ÐpÐÍPž±&%selectAlarmBackend:PŸ±&&simpleagenda-0.44/Resources/Task.gorm/000077500000000000000000000000001320461325300177105ustar00rootroot00000000000000simpleagenda-0.44/Resources/Task.gorm/data.classes000066400000000000000000000007471320461325300222100ustar00rootroot00000000000000{ "## Comment" = "Do NOT change this file, Gorm maintains it"; FirstResponder = { Actions = ( "editAlarms:", "toggleDueDate:", "validate:" ); Super = NSObject; }; TaskEditor = { Actions = ( "validate:", "cancel:", "editAlarms:", "toggleDueDate:" ); Outlets = ( window, description, summary, store, state, ok, dueDate, dueTime, toggleDueDate, alarms ); Super = NSObject; }; }simpleagenda-0.44/Resources/Task.gorm/data.info000066400000000000000000000002701320461325300214750ustar00rootroot00000000000000GNUstep archive00002f45:00000003:00000003:00000000:01GormFilePrefsManager1NSObject% 01NSString&%Latest Version0±& % Typed Streamsimpleagenda-0.44/Resources/Task.gorm/objects.gorm000066400000000000000000000203641320461325300222340ustar00rootroot00000000000000GNUstep archive00002f45:00000029:000000ce:00000000:01GSNibContainer1NSObject01 NSMutableSet1NSSet&01GSWindowTemplate1GSClassSwapper01NSString&%NSPanel1NSPanel1 NSWindow1 NSResponder% @ @ @{@ @t€&% @lÀ @ŽØ01 NSView% @ @ @{@ @t€  @{@ @t€&01 NSMutableArray1 NSArray&01 NSTextField1 NSControl% @2 @rp @TÀ @2  @TÀ @2&0± &%0 1NSTextFieldCell1 NSActionCell1NSCell0 ±& % Summary :0 1NSFont%° &&&&&&&&&&&&&&%’0 1NSColor0 ±&%NSNamedColorSpace0±&%System0±&%textBackgroundColor0±° °0±& % textColor’0±% @Z@ @rP @rð @5  @rð @5&0± &%0±0±&%Text° &&&&&&&&&&&&&&%’° °’01NSButton% @t° @  @S@ @8  @S@ @8&0± &%01 NSButtonCell0±&%Ok01NSImage01NSMutableString&%common_2DCheckMark° °&&&&&&&&&&&&&&%’0±&%o0±&&&& &&0±% @kÀ @  @R @8  @R @8&0± &%0 ±0!±&%Cancel° °!&&&&&&&&&&&&&&%’0"±&0#±&&&& &&0$±% @ @d€ @W@ @2  @W@ @2&0%± &%0&±0'±& % Description :° °'&&&&&&&&&&&&&&%’° °’0(1 NSScrollView% @Z@ @F @rð @a@  @rð @a@&0)± &0*1 NSClipView% @ @ @r° @`À @Z@ @F @r° @`À&0+± &0,1 NSTextView1NSText% @Z@ @F @rð @a@  @rð @a@&0-± &°  @rð @a@ AcÐ Acа @rð Acа °*% A A A A 0.±% @? @p0 @Q€ @2  @Q€ @2&0/± &%00±01±&%Store :° °1&&&&&&&&&&&&&&%’° °’021 NSPopUpButton% @Z@ @p  @g  @6  @g  @6&03± &%041NSPopUpButtonCell1NSMenuItemCell05±&° &&&&&&&&061 NSMenu07±&08± &091! NSMenuItem0:±&%Default°5&&ÿ%0;± @& @ 0<±0=±&%NSCalibratedWhiteColorSpace 0>± &0?1"NSBitmapImageRep1# NSImageRep0@±&%NSDeviceRGBColorSpace @& @ %% %0A1$NSData&  II*z€ P8$ „B`ïød6º¢Q™HªR ÐèԙţØ$IÕ’@£ìÉ ]þ”L¥%óDLÿ•Î$™ä‚Dÿ? Ô Ö ?¤K©1Š]‡A¡Ê`S •BW«Vhµ R±E­SìX þÿ rR’%&&&&&&%’0B±&°B&&& >ÌÌÍ =™™š&&°9°6°9%%%%%0C±% @1 @lÀ @TÀ @2  @TÀ @2&0D± &%0E±0F±&%State :° °F&&&&&&&&&&&&&&%’° °’0G±% @Z@ @lÀ @g  @6  @g  @6&0H± &%0I±0J±&° &&&&&&&&0K± 0L±&0M± &0N±!0O±&%Item 1°J&&ÿ%°;’%&&&&&&%’0P±&°P&&& >ÌÌÍ =™™š&&°N°K°N%%%%%0Q±% @s0 @hà @Y@ @6  @Y@ @6&0R± &%0S±0T±&%Alarms° &&&&&&&&&&&&&&%’0U±&0V±&&&& &&0W±% @C @i€ @T€ @0  @T€ @0&0X± &%0Y±0Z±& % Due date :0[±0\±&%common_SwitchOff° &&&&&&&&&&&&&&%’0]±&0^±&0_±0`±&%common_SwitchOn&&& &&0a±% @_@ @i @S€ @5  @S€ @5&0b± &%0c±0d±&° °d&&&&&&&& &&&&&&%’° °’0e±% @j @i @H @5  @H @5&0f± &%0g±0h±&° °h&&&&&&&& &&&&&&%’° °’0i±° 0j±&%System0k±&%windowBackgroundColor0l±&%Window0m±& % Edit task°m @ @= @È @È%&   @” @0n± &0o± &0p1%NSMutableDictionary1& NSDictionary&0q±& % TextField(0)°0r±&%NSOwner0s±& % TaskEditor0t±& % MenuItem(1)°N0u±& % TextView(0)°,0v±& % TextField(2)°$0w±&%PopUpButton(0)°20x±& % ScrollView(0)°(0y±& % TextField(4)°C0z±& % Button(1)°0{±& % Button(3)°W0|±& % TextField(6)°e0}±&%View(0)°0~±& % MenuItem(0)°90±& % TextField(1)°0€±& % Button(0)°0±& % TextField(3)°.0‚±& % ClipView(0)°*0ƒ±&%PopUpButton(1)°G0„±& % TextField(5)°a0…±& % Button(2)°Q0†±&%Task°0‡± &..0ˆ1'NSNibConnector°†0‰±&%NSOwner0б'°}°†0‹±'°q°}0Œ±'°°}0±'°€°}0ޱ'°z°}0±'°v°}01(NSNibOutletConnector°†°‰0‘±&%windowController0’±(°†°0“±&%initialFirstResponder0”±'°x°}0•±'°u°‚0–±(°‰°†0—±&%window0˜±(°‰°0™±&%summary0š±(°‰°u0›±& % description0œ1)NSNibControlConnector°z°‰0±&%cancel:0ž±)°€°‰0Ÿ±& % validate:0 ±'°°}0¡±'°w°}0¢±(°‰°w0£±&%store0¤±'°y°}0¥±'°ƒ°}0¦±(°‰°ƒ0§±&%state0¨±(°°w0©±& % nextKeyView0ª±(°€°z°©0«±(°z°°©0¬±(°‰°€0­±&%ok0®±'°‚°x0¯±(°u°‰0°±&%delegate0±±(°u°€0²±& % nextKeyView0³±'°…°}0´±)°…°‰0µ±& % editAlarms:0¶±'°{°}0·±'°„°}0¸±'°|°}0¹±'°t0º±(°ƒ°{0»±& % nextKeyView0¼±(°{°„°»0½±(°„°|°»0¾±(°|°…°»0¿±(°…°u°»0À±(°‰°{0Á±& % toggleDueDate0±(°‰°„0ñ&%dueDate0ı(°‰°|0ű&%dueTime0Ʊ)°{°‰0DZ&%toggleDueDate:0ȱ(°w°ƒ0ɱ& % nextKeyView0ʱ(°‰°…0˱&%alarms0̱%&simpleagenda-0.44/Resources/bell.tiff000066400000000000000000000034301320461325300176330ustar00rootroot00000000000000II*øÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿçÖC!ÝË1 ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿñæ|LòäwÅêÚ\ïàÎ:ÿÕÄ0üϽ&Ö˹мÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿªªªîãˆñçˆýóævÿìÜUÿâÐ8ÿ×Å.ÿ̺$ÿòÿÀ®ØË·-ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿïåŽðç¡ÿòêªÿôèŠÿïÞNÿèÕ6ÿßÌ+ÿÓÀ!ÿųÿº©ÿÁ¯ßÖÃ#ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿïå‹#ïæ¥÷ðêµÿñìÇÿôë¨ÿðßLÿìØ4ÿåÐ'ÿÚÆÿ̹ÿ¾¬ÿ½­ÿ˺#ŽÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿîäŠðè§ÿðéµÿñíÆÿòé¥ÿðÝDÿíØ1ÿæÒ$ÿÞÉÿѽÿųÿÀ¯ÿƵ&èÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿïæ˜¹ïç¦ÿòê¤ÿôì¬ÿôçÿñÞCÿë×.ÿæÑ!ÿßÉÿÕÀ ÿ̸ÿó ÿŵ)ÿÙÆ2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿîæŸÜðè§ÿóê¦ÿôë›ÿóåqÿîÜCÿê×-ÿåÐÿßÉÿÕÀ ÿмÿǶ"ÿƶ+ÿÖÅ4Gÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿïç¤íñè¦ÿôì¬ÿóêŸÿòårÿïÜDÿéÕ+ÿâÍÿÝÈÿØÂ ÿÔÀÿ̺#ÿÇ·-ÿÔÄ6iÿÿÿÿÿÿÿÿÿÿÿÿÕÕÕïç¨üñé¨ÿóì³ÿòê¦ÿñävÿíÛHÿçÓ*ÿâÍÿÜÆÿÙÅÿ×ÃÿϽ%ÿȹ/ÿÔÄ8Šÿÿÿÿÿÿÿÿÿ€€€ñé–-ðéªÿñê®ÿòì¼ÿñê²ÿðäƒÿëÛQÿæÓ,ÿàËÿÜÆ ÿÜÆÿÚÆÿÑÀ(ÿʺ2ÿÓÃ;¨ÿÿÿÿÿÿÿÿÿÿÿ¿ïæ˜]ðè«ÿòì·ÿñìÇÿðëÂÿîä—ÿêÛ`ÿæÓ2ÿßÊÿÚÄ ÿÝÉÿÜÈÿÕÂ*ÿ̼4ÿÑÂ=Æÿÿÿÿÿÿÿÿÿÿÿÿïæœœñê±ÿñìÂÿïìÓÿïìÐÿíæ¬ÿëÞsÿåÓ<ÿÞÊÿÛÅ ÿßÊÿßË!ÿØÅ,ÿξ7ÿÐÁ@íæÕNÿÿÿÿÿÿýûÛïè©ïñì¶ÿñìÊÿðîÙÿîìØÿíè»ÿêß„ÿäÔHÿÞÊÿÜÈÿáËÿâÎ$ÿÜÊ/ÿÓÃ8ÿÏÀAÿÝÎKkÿÿÿªªªíä•}ðé®ÿòë·ÿñíÈÿïìÓÿïìÑÿîèºÿêà‰ÿåÔLÿÝÊÿßÉÿáÌÿåÑ&ÿãÏ1ÿÙÈ;ÿÑÃDÿÖÇHÜõâAÿÿÿïçŸÛðè¨ÿóë¬ÿñëµÿðêµÿïè®ÿìä›ÿéÝuÿãÒBÿÜÇÿàËÿãÎÿèÓ)ÿèÔ4ÿàÐ>ÿ×ÈFÿÒÄEÿÛÉ=Gìâ…(ïèªþñçœÿõê˜ÿôé’ÿñå…ÿîâwÿëÝhüäÕOÿÝË/ÿÚÅÿÞÉÿæÑ ýêÖ,ÿìØ7ÿèÖAÿßÏJÿÔÅCÿׯ:¨ìã”~ìæ¬åìáæéÝqîèÙYóèØF÷ëÚDþêÚKÿéÝ}ÿÝÊ(ÿÙÄÿÜÈÿê×6ÿüéNûùæNòòàMêæÖLÞØÈEÐÕÅ:ÂÿÿÿîîìçÜAæØ]fçÖIjæÓ2këÙ9tëØ7‰àÍýÛÅ ÿâÍÿæÒ)ÿõâHŽüéOkûèOa÷äNXïÝMDʾI @@ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÞÉNâÎ"ÂáÏ1ÑèÖ@_ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿþÊ 6Ò@ð(R/home/philou/sources/SimpleAgenda/Resources/bell.tiff€×€×simpleagenda-0.44/Resources/iCalendar.gorm/000077500000000000000000000000001320461325300206705ustar00rootroot00000000000000simpleagenda-0.44/Resources/iCalendar.gorm/data.classes000066400000000000000000000007161320461325300231640ustar00rootroot00000000000000{ "## Comment" = "Do NOT change this file, Gorm maintains it"; FirstResponder = { Actions = ( "cancelClicked:", "okClicked:" ); Super = NSObject; }; iCalStore = { Actions = ( ); Outlets = ( "_delegate" ); Super = NSObject; }; iCalStoreDialog = { Actions = ( "cancelClicked:", "okClicked:" ); Outlets = ( panel, name, ok, url, error, warning ); Super = NSObject; }; }simpleagenda-0.44/Resources/iCalendar.gorm/data.info000066400000000000000000000002701320461325300224550ustar00rootroot00000000000000GNUstep archive00002f45:00000003:00000003:00000000:01GormFilePrefsManager1NSObject% 01NSString&%Latest Version0±& % Typed Streamsimpleagenda-0.44/Resources/iCalendar.gorm/objects.gorm000066400000000000000000000163751320461325300232230ustar00rootroot00000000000000GNUstep archive00002f45:00000022:00000072:00000000:01GSNibContainer1NSObject01 NSMutableSet1NSSet&01GSWindowTemplate1GSClassSwapper01NSString&%NSPanel1NSPanel1 NSWindow1 NSResponder% @ @ @}  @e &% @€ @†¸01 NSView% @ @ @}  @e   @}  @e &01 NSMutableArray1 NSArray&01NSButton1 NSControl% @x0 @  @SÀ @8  @SÀ @8&0± &%0 1 NSButtonCell1 NSActionCell1NSCell0 ±&%OK0 1NSFont%° &&&&&&&&&&&&&&%’0 ±&0 ±&&&& &&0±% @rÀ @  @TÀ @8  @TÀ @8&0± &%0±0±&%Cancel° °&&&&&&&&&&&&&&%’0±&0±&&&& &&01 NSTextField% @_€ @_ @c @5  @c @5&0± &%01NSTextFieldCell0±&° °&&&&&&&&&&&&&&%’01NSColor0±&%NSNamedColorSpace0±&%System0±&%textBackgroundColor0±°°0±& % textColor’0±% @0 @V @WÀ @2  @WÀ @2&0± &%0 ±0!±&%Calendar URL :° °!&&&&&&&&&&&&&&%’°°’0"±% @0 @_@ @WÀ @2  @WÀ @2&0#± &%0$±0%±&%Calendar name :° °%&&&&&&&&&&&&&&%’°°’0&±% @_€ @UÀ @sp @5  @sp @5&0'± &%0(±0)±&%Text° °)&&&&&&&&&&&&&&%’°°’0*1 NSImageView% @: @. @X @R  @X @R&0+± &%0,1 NSImageCell0-1NSImage @H @H0.±0/±&%NSCalibratedWhiteColorSpace 00± &011NSBitmapImageRep1 NSImageRep02±&%NSDeviceRGBColorSpace @H @H%%0%0031NSData& H HII*¶ € P8$ „BaP¸d6ˆDbQ8¤V-ŒFcQ¸äv=HdR8ˆrqª où\¶â”ÀʲI¤Öl“@‘²à²>žÏ(9äÂ(›ÒiPúEB¨SêTꥧF)u¹$䯍Õl5kNÉg™W-QŠõbÑf•†Â€gùìÆ0­’Å'úÕ*O•È»}— @•ZñP»mŽ„ _é£éþûj¡2íTýôÐ;g™¦Çû½€[±·ƒQYvÊG.Ô@g™&ûå‚Hâ¯G¼‘Ûýð¼?Ü*±«ý¦ Ý´SãøÔN Øíñ;9¶×q¹¿Ú‹CŽ]®ˆâ±õžW3íôæþ>ëÞk¹hæ©DÝ›%(fŠà"ð°Êkȼm€< 'ùÒdLñž9¸¥ð€ý¿/äA¿OӞ蜥pl—Ä€Z’ãG,‰œ'mº‡ °¼2}Ä:D‘ò`ÍÕ C‡Ñ˜4¸¥ø…"Ä.iÈVÅe©Ÿã0š Fˆ°¯Fèzµ(FK%Èt¢ËD²4Œ_H‡Ñ¢<2æÙ(Ë›kÜE8C ©œSª]‘Áaþ'‡p[©¬* ·,e(3Æ€êâ¸ôô}c)þ~!þ7‹¡¢Î7Š€å=9J° •$Nƒ 0¨ô’¦¶mW3Éòa‰Õ{ó:7„qþ8 îžÂ˜2œN¥”ç:ùžN»…ò׊¤Èò+Í€ uŸçAŽ?P6ÜJa l¹¸Lܪ°R@ç¡rÛwöbqþ1‰S¦ R1¼ró§ä`ïz³ôÜãXâïµAQfé5|¥f<î嬌åÒX†çýEW5ÞÌêåÒ±†AX>ͳGÍéyV ñœ6Ÿæùxfk1T@…¶Y V&‘@îýɤ«ë^³€šíhH ®)‰Le8ƃO™c3.i™~\’æK“ìû­c[×þÀUËš«¸^sÎÃΡAÔQôi{r{‚`ljo€l¶ÜS•¤›¬a©%€±•$ˆ½± ÆùSU(Sr¼hæjØcc—' þÿ£Ù’ˆaRžXß= u^zÛbá€7¨(MÛÂ\¤q­–1Ð1œjGI0 6vÆhƒXÿ€Tº"ä]H˜ãüx fèüß|J¨I†÷²Ö±xåTà&g†ˆw~Pì|Œp´?ÄPkse˜9`4?Æ8—„nú Â…bï‡`³e¢üH¢ö°úH›7GBp@S<2ƒ$<…1Œ˜Êô7 €ä ñ–í¡$&ŒQ9Ž`ËBh:QÉ ©‘Hbl(¿ƒ#äb:X›ÔáÈgËÔw‹ Ž?Æàª?§þDHsô=ÅÙÑ…°¾>HbD ifƒ`µ‡Ô:ä¬c?,ü}!³.5„9—BIžQ¤´ªpãxT*¦°ƒˆz(At%=‘ôhåLtSébÑØ/… ÀË„r/ncþL;©u.^ŠÙ:¡9F È°C¦f!òT1¹’§…ù–g¼ƒ°`‘Ð6vCþÂ1Î+Ñ\à‡cŒVPÎMzÓ„ 0BÅYcâ`*œQŠ'{»á Lš°‹pÿ oÒXéH̘tFkLq0@À- `ÑtC*Xë&K˜ËM@;®¼±ƒ€VGø·ipy9:3.žð‹ r)…2 T-CXn>O™IIo P“=At{' Ì»4bŒÆpœ/ö“hJ€[šáp"Í5¦3ˆ uXU‚CHuabÐG±Ü-\¥u®‹-1{YÆÐ§e£(LÂ1´);¸›Ó*É4VËEƒýâq«…tƒÉ 0@À1ô|>…àÌRê_¤¼mŠeU6âe¥´—ÍmWr¶Ó";‚å¸ñ­ø0w]ˆ`P®@Áy6ÒñàÒ ˆå£å·Ñþ‚ú®áù[3«iÇû’`‹ÔìI‰ñ6)`ÜÅ[J'ÀPÃý |j¬Ý©|â 1Ûðˆ À{Ž0¢H„r % `ZÛ`àa0Â8N컪߂85È!Î#ñ؇ Ìíþ¦òw–hjs5‘ãþ#Ã`!â05U@þèÿ`Êk„oQ2®À¢x…Ì‹‘È$ `T€ÛÂ@À~ ExNeL ´¶˜ÐFr1,@ÃA Ä !0b@Á’ÞÂèÒl Ý `숲:tιÓzëK–´@Ť 7èRõ™ÂXÂ@‚§ëD¬ [lµNÑüÆtbÑÈ ]'¤ô»Å¿Hè$ ¯jœ@Á—„ a‰ “ÎüÞÄ Š.¼@¡±-$ {B=˜Ôd Üx ê@ÂQÄ 0l@øÉZOUï,GЦdš/!ã¼o”¥Õ_i€ ª8P߀¡u?•ª'Ù_¬ά@ü9Üüzê@ÁŸôäŒÑî MN N® ¸üïÌ L˜ M" Nš’ú/ª*#+*éžßÀÐ<ùͨ»íbê¾ûîŸLûÍ^ÕO¾ü/4 PfÉî†óò/"úbE| Ðϰzñ¯®òO°• P“И询ú0• ¥pÂ4 þÿ00@ ® R° &&&&&&&&&&&&&&%%% @H @H’04±% @_€ @C€ @sp @C€  @sp @C€&05± &%06±07±&° °7&&&&&&&&&&&&&&%’°°’08±°09±&%System0:±&%windowBackgroundColor0;±&%Window0<±&%iCalendar calendar setup°< @ @= @È @È%&   @” @0=± &0>± &0?1NSMutableDictionary1 NSDictionary& 0@±& % TextField(3)°&0A±& % Button(0)°0B±& % TextField(0)°0C±&%NSOwner0D±&%iCalStoreDialog0E±&%Panel(0)°0F±& % TextField(2)°"0G±& % ImageView(0)°*0H±& % TextField(1)°0I±& % Button(1)°0J±& % TextField(4)°40K±&%View(0)°0L± &0M1NSNibConnector°E0N±&%NSOwner0O±°K°E0P±°A°K0Q±°I°K0R±°B°K0S±°H°K0T1 NSNibOutletConnector°N°E0U±&%panel0V±°F°K0W±°@°K0X± °N°B0Y±&%name0Z± °N°@0[±&%url0\1!NSNibControlConnector°I°N0]±&%cancelClicked:0^±!°A°N0_±& % okClicked:0`± °N°A0a±&%ok0b± °E°@0c1"NSMutableString&%initialFirstResponder0d± °@°N0e±"&%delegate0f± °@°A0g±"& % nextKeyView0h± °A°I°g0i± °I°@°g0j±°G°K0k± °N°G0l±&%warning0m±°J°K0n± °N°J0o±&%error0p±&simpleagenda-0.44/Resources/iCalendar.gorm/warning.tiff000066400000000000000000000056261320461325300232200ustar00rootroot00000000000000II*X € P8$ „BaP¸d6ˆDbQ8¤V-ŒFcQ¸äv=HdR8ˆrUŽdð· ‘UÌ$“9¤’M8ÀÎR9l ŸÍhT8t探Bg ´º“OMÀ ©MB%MLjÕ¹, Åa@0ÀOc1þÿ~€Jö`R¼rÇ+TÊåö R¯À¬0ðÐL @‡€ `‡ÛŸo8õìz¼Ýà®t¦]9À e‹¦1{¬_©8 @ødçRü ÷›½\çâüzÀßÖëxÒï}€O[‹ûŠdD6€ ¶Ï'¨ÕM«ÚØ]ŽÊ¹PÀq\þx4àOg *õ{Ü\îçЀévð`b3hšvŸ;(ú¨%X< .™d<€ˆ x­ÇyšîJ@·²'iä~ÉÄ{Ä'.4‘Æê(Ô¯p*&F§Hd™p|"ËqàgC Š`„ˆ€ ²Üy›(ü|¡§Yàäš&ã‚X˜‡XMgR ¥‡HÉ!¡Âc¢J5ÐR-Ç‹Ôó¾¨HÈ@œÂI¹û(-ˉþyëqèé"9Úú›g$HJ«ÉbbÀ(tÐL3"ö°HaDCа$„³Œæ~2ˆ`- *€˜úH‰Fº ƒx¨“CH>Š›‡,HjÎàIEOœ@‡À`ƒM 0¤!bl“øÌóÕÁôv¡Ó¸uêC€ P°(XÜ)ƒ è,$À¸$²¡àkœ1!¤n€¾C›h£Lkò¤¥¡ .f IiÿC¢@(!qƒBp„ƒ:*l˜«( Hiö~8f¶à“å³|N–ÒòKÍ­T`Y¨I;‰`Ü,­'ùÛv¢UZÒ‚A®>Ûh¡ O > €àOàzD‘ºà‹Ä!°YH‚T%ê&†A]~d•C+ÎvÒçÙàŠ€ ‹brž@ˆˆ*U!@†x“‚(lœl¹˜kà#‚çh2¡çà‚‚HR‘‚È(•Ió-#XW!¶>ˆ©pFvá¸RëÛ+—¸tið ¤LšfLº·€ŠC¹¡{­~dÂÒÜvHïlà¨Ä**bp„re¨ÁØx¹&A¨y˜üÚÝ ˜$kIj¡R$Bó¯nɰËh$˜…¡.HÕoä0‚€¸rH ¨ ÏÁ_C€t%¸ ”+ÐzD9ê=b8§  € ¤¶/¹çì÷Ð á•X'ÔCŠõj*Oé aEx†Ð¦œ8„sÄ •NPj‡‚4™ˆ@šø#cè}œ0~@,J€B¶¸dD$t®œƒŽŒЈúfTëGÊ€Hˆ$ ¶:Ó©;ÀWI Àò  °’8º” ÆG!´HÅ‹¼8‡Dà&ð£ |b`¯Äˆ¤GØJÀt¢ÀU/˜‚Tƒ#äÉ_CÐø€¦7Œ¸A é̇Fbº@˜a‚"€¼•øÿq¨ND …‘†D?†<(‹rî^”AÞ<ÑeGHYŒe*Ch1A%L†Q~x€ Ä|ÀÒ’"BOØ|"ÚØÀEÄ€š*TñÎpZé‰1ˆlÈ!Òl„2†º7Åðv<ã­ð–å–P˜ÒB®8€p(@€"AíþáÖ0L¬3/Ôu¥DÁY«<† pHÈ(] E´Nˆ0”ކ}-Hk2âÃð§hŽÄÚ p!‰_ƒ@NüŸ¢ãT„šŽ“è`€Y)B=«©+ âd>+ÂÁ1nCX¢"Ê€ÀG,”Š4)qÐx 0àÀ k Hrž:‡yõ‚„ö‰‘fiˆX­ a`È4|AKØT!ÜL€„ Lˆˆ¡€(¶àY0(ˆ‹á h…Y   }E¸ÈG!˜F"¢Â@EI×tÊ“"xˆ8} ¬˜>éTùI’\ Ì-lXÓƒd·ˆÃv@{2SÆøçybÌb®ê%ÍÙpÄ åàÔ0@×I d"fÌñx% P6åX5Ѭ9šèl$¼b#6 Á< ,ópTñX!¬E${’â.Æc#Ç Awcˆ] A$¨ Ô@ê¸u wÐ…‹AÐ'D,?RžL8úè4sޤr<“Ë58À(×aEœ$M qªÿ…äLöØ;ª¹ D ‘&±V`ú¨xc ‡˜Cò€ZxezhâÙá)@l/EÑ æøg ºÔC‰$W™‚@cä2“€M`IQ3Ì@³]€=8K¶[:6) ƒõ¿€;µž>£$kA\0lpл\‰ÝÂ7ŸáU ,ƯÈD Q`‹ƒ0M ‚X9Ý€¤¤t l‹óe¼¨Ž¯­öds)Ã8§žô™AyxQ¨i¶p0F‚ƒ5 ñ&@ñ\ ¢€› ó΃¤>8H%„ÀTpY˜¯Ø0õBDƒr¡=?<ç ëà.†Q›µybâ1’À–‹q“ˆÊŸ {Œ;@ÒÀ#黂.¥Ô¢Ù 1ïŸ,D ÉD i4sÒ¼ñâ=;o?"ÇÈ–|äEPò¨H NëË W@õH·ô~!Jâ5+·}õd ^ú®¥"¤W§Iêbíȱö¤cnÝ„B@í¡â¼Sn>'ïˆ#ô{wpKU¡¥ì½êRõ®ñbÔ©Žá p|_…:@•)ÇkŒñ€rBD›ÂI¬~ H÷¢ øMÀªî&”¯Fôo¾ô£ÖÖ"øM âýÞ i2‘OÚkÏL o–Ìp>ùP3*À nÔÿ‚ ³‰2½" ÐÎكΠðf»ð hføIJ”­ºâo¶ÎÉb–"Ø9Bˆõ™ gÈ pK ¥ φ„ð P^õ0N!Τ oäŒÏÄ Ibªðx iJ–/¶ü°ÆÃ»â“+9 B P6ñжHPµžÁpS ‹d“ ­ “0fÐÏUgpa ìªìí ë ¯… â j!m “1 äíP½0`³g {, «¿‹¼ˆ±Ðk-òÓQ 1 ñZ³‘K±r ñ}ÂB( þ006  G> @P † Ž (=R/home/philou/developpement/gnustep/SimpleAgenda/Resources/warning.tiffHHsimpleagenda-0.44/Resources/ical-file.tiff000066400000000000000000000047561320461325300205560ustar00rootroot00000000000000‰PNG  IHDR0)sÛªÔsBIT|dˆtEXtSoftwarewww.inkscape.org›î< €IDATX…½˜{lÅÇ?3³{ç»ÝóãÛ‰‡Éƒ„Äy@B’VJ[P_PЂPTQJ[EmE-D<…èRþ¡-MÚ}ˆB“’B‹\GäÅ«(/Hís’óëÎYŸïvwú‡ïÌÙ¾]Ûú“F3;ó›ï÷÷ûÍSh­™LžÚñd$ZýIcCCôН~íSÐ7€Žâç¥wÜ~§¦ÿëßüêéææY—_öÅ_L fœÈ©(UUUý0a'~‹Ç¿ÿâŸ^¸z ]fG£ÑUÀ*`v˜âÆ[ÒéôÍvÂ~ìùv¯ž žr™X,öͺdÝ_âñؾôÙôC“é[Vœd²Û¶°¬ødêßJŸMkÏó±mëú©à)—I <µãIåyÞ"íûïíí}1NÏ߸q£ÖDzl<Ï'·°,{²!æ¥Ó=§N}øá1n˜x€P RÊEñx,‹ÇwMÙé³= ˜ êcÙÖt0ÌÊçó]étO¶¹¥yît:ˆ Iüà#Û¯÷Ñë­¸5wÉ…K¾ñÞûÿyfð\vuoºo™°Þ5£f6è§ñX<ºnͺ•íûÛ9CÎpn¦/»TJ9‹Å?»þ3ñŽϔڴïnÙ¼åéEà±ÇyyÆ/|ɶlΦO“°kè>“¢«³‹™³f¢¤ û/¢"T úúú0Lƒ“'>`Åòå,^¼€ááaþøçNÝû½Í¡^ !Arñ¢Å¸n³gO£}Ÿùó° u! á¡ê8çxeÏ+¬¾x ÍÍÍH<Ý´Ö<ÔñÙl–šê‰®çÎ(Œ€çë¤a8ŽCº§‡®®nf4 „ ªª ¥‚=ÐÛÛGwª€Î¦NLÓ$‘Hê Ð××GOO/Ùl¥–eQS]#·oß^¿eË–ž ¾fÑÚ¯6 ß÷‰Ç,^ûÇk¼ôÒKô÷÷S(Á8ŽCwê4Ý©Óôõö‘ÉdBõwíÚE.— žç#yCC“ò•AXß@žçYRJ´Ö$ìétšýû÷“ÉdB­088H*•"•J‘ÍÎuÒé4{÷îÅq"‘¦iŽhlhPÝÖ¿bmÛ¶MÆ«£fé{öìÙ,Y²„… ²téR #|õmiiaÙ²e¸®K[[¶¼$“I®¹æúûûY·nBˆQ3êg!e¨*"‰F£5¶Uíù¾¯LÓäž{î!ŸÏ“ÍfG Û¶¹õÖ[1M“3g΄RrË-·`š&CCC¸®;J ¦ºÃ4VN›PgY–_ZbµÖ8ŽƒÖšX,6AÙu]Þyï=Ž;εW_…!ŽãL&QJ100Àþ7 ,¾p1-ͳFûçr¹‘9P&žçC´X6}f¡.‘Hß÷ÇT—[~pp=¯îãÍ9tä0¹Ü0 3¸öê«F~l†Á±ãÇybÇ/yûw)DJÉÍ7ÞÀM7ÞÌó¼Ïi='Œ@åI¬EmÙrÏ<û[y+”€išx¾WF ²´¨³,+”@mm-ßùöm¬_{)‡áçOT>Ê×'“ ÏíÜE>ŸçâU«X0ì/„@J9šk­ijlJ‹ùAÿ«H@)ÕDÎ;¿¾ò7^Þ³—9³[¸ûŽÛÇ€--½åuµ5u¨ˆºxZ4F"<ïüØóê«ìÚ½›™MMlºû.jkk*‚_gÙR¨¥Ó# Išf„BÁ9/à_ûç¿øýž§¥¹™MwßÅ̦¦@«¯«2ªÐ¾ß2-~ñ(ýICHÁíÿf×îçimÇw3úúdhØTªóhí#¤$“ÀŠ[bxh¨xcRG­M6ÔùAổÚLÓ¬Ø>^”RÌ›3ysZq]ÇqÈd2 f³Ô××Ó×Û» ž „u¶mërLgÂ…Õ…‰T _k2™ ¹\Ž¡¡!ºº;AÀ¬ÆfN~p¢â¶=q˜…:»xb,¹ù“˜ª çÈå†ÂqRÝ]äÝaÖ®^O$A qÑ”ø®JÚ–- ÃÀ¶í1Ö›¬<KI:&?œ§ûtŠÞþ,ËfÅòD"´Öø¾žU©ßD(êÒ=iuòƒ“ea *<) >rÏ÷°,›‹–\DmMžïRÈ»ä ùŠ{Á„—¹øéÊAgxgKKË¢êêлÄyßóð´i˜ÛûûûIu§ŽÂ\¿uëÖ1ǃŠO‹›6múp¹ëºµ@øʧ(ˆ‚a¨Œbßã?~ÝxÀ·Q€Uk׈GT«ö½Og xò>¯loߤøÀ#„P+׬5ëg$÷bðÿ’‚ë2œqBˆ(àj­'Xr”€¹™ŤCa656á8瀑;j¹ÇʿǷÎèËä@5à !\ÀÜ"!ß(‚W€YFÀ vOœêÊʉ§@QV!Š >j+‘*#¦µ­Ñ K»d©Ñ ]VÔxž/ÑZQFŒªŠà% ……’ü"3Y,û€Ÿ>{æºÁì\­µÒÚWZk¥}=’k­4Z¢µÒYVV  ËY‹Ñq„!<ð…Àÿ¨, typedef enum { SMCopy, SMCut } SMOperation; @interface SelectionManager : NSObject { NSMutableArray *_objects; NSMutableArray *_copyarea; SMOperation _operation; } + (SelectionManager *)globalManager; - (int)count; - (int)copiedCount; - (void)select:(id)object; - (void)clear; - (id)lastObject; - (void)copySelection; - (void)cutSelection; - (NSArray *)paste; - (NSArray *)selection; - (NSEnumerator *)enumerator; - (SMOperation)lastOperation; @end simpleagenda-0.44/SelectionManager.m000066400000000000000000000027501320461325300174730ustar00rootroot00000000000000#import #import #import "SelectionManager.h" static SelectionManager *singleton; @implementation SelectionManager(Private) - (id)init { self = [super init]; if (self) { _objects = [NSMutableArray new]; _copyarea = [NSMutableArray new]; } return self; } @end @implementation SelectionManager + (void)initialize { if ([SelectionManager class] == self) singleton = [[SelectionManager alloc] init]; } + (SelectionManager *)globalManager { return singleton; } - (void)dealloc { [_objects release]; [_copyarea release]; [super dealloc]; } - (int)count { return [_objects count]; } - (int)copiedCount { return [_copyarea count]; } - (void)select:(id)object { if (!([[NSApp currentEvent] modifierFlags] & NSControlKeyMask)) [_objects removeAllObjects]; if (![_objects containsObject:object]) [_objects addObject:object]; } - (void)clear { [_objects removeAllObjects]; } - (id)lastObject { return [_objects lastObject]; } - (void)copySelection { [_copyarea setArray:_objects]; _operation = SMCopy; } - (void)cutSelection { [_copyarea setArray:_objects]; _operation = SMCut; } - (NSArray *)paste { NSArray *ret = [NSArray arrayWithArray:_copyarea]; if (_operation == SMCut) [_copyarea removeAllObjects]; return ret; } - (NSArray *)selection { return _objects; } - (NSEnumerator *)enumerator { return [_objects objectEnumerator]; } - (SMOperation)lastOperation { return _operation; } @end simpleagenda-0.44/SimpleAgenda.m000066400000000000000000000020171320461325300166000ustar00rootroot00000000000000/* Project: SimpleAgenda Copyright (C) 2007-2010 Philippe Roussel Author: Philippe Roussel Created: 2007-01-08 21:35:48 +0100 by philou This application is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License or any later version. This application is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ #import int main(int argc, const char *argv[]) { //[NSObject enableDoubleReleaseCheck:YES]; return NSApplicationMain (argc, argv); } simpleagenda-0.44/SimpleAgendaInfo.plist000066400000000000000000000020101320461325300203040ustar00rootroot00000000000000{ ApplicationDescription = "Simple agenda and calendar application"; ApplicationIcon = Calendar.tiff; ApplicationName = SimpleAgenda; ApplicationRelease = 0.44; FreeDesktopCategories = ( "Office", "Calendar" ); Authors = ( "Philippe Roussel " ); Copyright = "Copyright (C) 2007-2017"; CopyrightDescription = "Released under GPL Version 2 or any later version"; FullVersionID = 0.44; NSExecutable = SimpleAgenda; NSIcon = Calendar.tiff; NSMainNibFile = Agenda.gorm; NSPrincipalClass = NSApplication; NSRole = Application; NSServices = ( { NSKeyEquivalent = { default = t; }; NSMenuItem = { default = "SimpleAgenda/Create Task"; }; NSMessage = newTask; NSPortName = SimpleAgenda; NSSendTypes = ( NSStringPboardType ); } ); NSTypes = ( { NSIcon = "ical-file.tiff"; NSUnixExtensions = ( ics ); } ); URL = "https://github.com/poroussel/simpleagenda"; } simpleagenda-0.44/SoundBackend.m000066400000000000000000000024431320461325300166120ustar00rootroot00000000000000#import #import "AlarmBackend.h" #import "Alarm.h" @interface SoundBackend : AlarmBackend { NSSound *sound; } @end static NSMutableArray *sounds; @implementation SoundBackend + (void)initialize { NSFileManager *fm = [NSFileManager defaultManager]; NSString *path, *file; NSArray *paths, *files; NSEnumerator *enumerator, *fenum; if ([SoundBackend class] == self) { sounds = [[NSMutableArray alloc] initWithCapacity:8]; paths = NSStandardLibraryPaths(); enumerator = [paths objectEnumerator]; while ((path = [enumerator nextObject])) { path = [path stringByAppendingPathComponent:@"/Sounds/"]; files = [fm directoryContentsAtPath:path]; if (files) { fenum = [files objectEnumerator]; while ((file = [fenum nextObject])) { if ([NSSound soundNamed:[file stringByDeletingPathExtension]]) [sounds addObject:[file stringByDeletingPathExtension]]; } } } } } + (NSString *)backendName { return @"Sound notification"; } - (enum icalproperty_action)backendType { return ICAL_ACTION_AUDIO; } - (id)init { self = [super init]; if (self) { sound = [NSSound soundNamed:@"Basso"]; if (!sound) { [self release]; self = nil; } } return self; } - (void)display:(Alarm *)alarm { [sound play]; } @end simpleagenda-0.44/StoreManager.h000066400000000000000000000020721320461325300166320ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "Date.h" #import "Element.h" #import "AgendaStore.h" extern NSString * const SADataChangedInStoreManager; @interface StoreManager : NSObject { NSMutableDictionary *_stores; NSMutableDictionary *_dayEventsCache; NSMutableArray *_eventCache; id _defaultStore; NSOperationQueue *_opqueue; } + (NSArray *)backends; + (Class)backendForName:(NSString *)name; + (StoreManager *)globalManager; - (NSOperationQueue *)operationQueue; - (void)addStoreNamed:(NSString *)name; - (void)removeStoreNamed:(NSString *)name; - (id )storeForName:(NSString *)name; - (void)setDefaultStore:(NSString *)name; - (id )defaultStore; - (NSEnumerator *)storeEnumerator; - (void)synchronise; - (void)refresh; - (id )storeContainingElement:(Element *)elt; - (BOOL)moveElement:(Element *)elt toStore:(id )store; - (NSArray *)allEvents; - (NSArray *)allTasks; - (NSSet *)scheduledAppointmentsForDay:(Date *)date; - (NSSet *)visibleAppointmentsForDay:(Date *)date; - (NSArray *)visibleTasks; @end simpleagenda-0.44/StoreManager.m000066400000000000000000000246061320461325300166460ustar00rootroot00000000000000#import #import #import "AgendaStore.h" #import "StoreManager.h" #import "ConfigManager.h" #import "defines.h" #import "Event.h" NSString * const SADataChangedInStoreManager = @"SADataDidChangedInStoreManager"; static NSString * const PERSONAL_AGENDA = @"Personal Agenda"; static NSMutableDictionary *backends; static StoreManager *singleton; @implementation StoreManager - (void)initStores { NSArray *storeArray; NSString *defaultStore; NSEnumerator *enumerator; NSString *stname; Class backendClass; ConfigManager *config = [ConfigManager globalConfig]; id store; /* Create user defined stores */ storeArray = [config objectForKey:STORES]; defaultStore = [config objectForKey:ST_DEFAULT]; enumerator = [storeArray objectEnumerator]; while ((stname = [enumerator nextObject])) [self addStoreNamed:stname]; /* Create automatic stores */ enumerator = [backends objectEnumerator]; while ((backendClass = [enumerator nextObject])) { if (![backendClass isUserInstanciable] && [backendClass storeName]) { store = [backendClass storeNamed:[backendClass storeName]]; [_stores setObject:store forKey:[backendClass storeName]]; NSLog(@"Added %@ to StoreManager", [backendClass storeName]); } } [self setDefaultStore:defaultStore]; } + (void)initialize { NSArray *classes; NSEnumerator *enumerator; Class backendClass; if (self == [StoreManager class]) { classes = GSObjCAllSubclassesOfClass([MemoryStore class]); enumerator = [classes objectEnumerator]; backends = [[NSMutableDictionary alloc] initWithCapacity:[classes count]]; while ((backendClass = [enumerator nextObject])) { if ([backendClass conformsToProtocol:@protocol(MemoryStore)]) [backends setObject:backendClass forKey:[backendClass storeTypeName]]; else NSLog(@"Can't register %@ as a store backend", [backendClass description]); } singleton = [StoreManager new]; /* * Stores have to be loaded after the singleton is fully initialized * as they might call methods depending on the singleton like * [StoreManager globalManager] */ [singleton initStores]; } } + (NSArray *)backends { return [backends allValues]; } + (Class)backendForName:(NSString *)name { return [backends valueForKey:name]; } + (StoreManager *)globalManager { return singleton; } - (NSDictionary *)defaults { NSDictionary *local = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"LocalStore", @"Personal", nil] forKeys:[NSArray arrayWithObjects:ST_CLASS, ST_FILE, nil]]; NSDictionary *dict = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects: [NSArray arrayWithObject:PERSONAL_AGENDA], local, PERSONAL_AGENDA, nil] forKeys:[NSArray arrayWithObjects: STORES, PERSONAL_AGENDA, ST_DEFAULT, nil]]; return dict; } - (id)init { if (!(self = [super init])) return nil; [[ConfigManager globalConfig] registerDefaults:[self defaults]]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dataChanged:) name:SADataChangedInStore object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dataChanged:) name:SAElementAddedToStore object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dataChanged:) name:SAElementRemovedFromStore object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dataChanged:) name:SAElementUpdatedInStore object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dataChanged:) name:SAEnabledStatusChangedForStore object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleError:) name:SAErrorReadingStore object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleError:) name:SAErrorWritingStore object:nil]; _stores = [[NSMutableDictionary alloc] initWithCapacity:1]; _dayEventsCache = [[NSMutableDictionary alloc] initWithCapacity:256]; _eventCache = [[NSMutableArray alloc] initWithCapacity:512]; _opqueue = [NSOperationQueue new]; return self; } - (void)dealloc { NSDebugLLog(@"SimpleAgenda", @"Releasing StoreManager"); [[NSNotificationCenter defaultCenter] removeObserver:self]; [self synchronise]; RELEASE(_defaultStore); RELEASE(_stores); RELEASE(_dayEventsCache); RELEASE(_eventCache); RELEASE(_opqueue); [super dealloc]; } - (NSOperationQueue *)operationQueue { return _opqueue; } - (void)dataChanged:(NSNotification *)not { [_dayEventsCache removeAllObjects]; [_eventCache removeAllObjects]; [[NSNotificationCenter defaultCenter] postNotificationName:SADataChangedInStoreManager object:self]; } - (void)displayPanelFromDictionary:(NSDictionary *)dict { NSRunAlertPanel([dict objectForKey:@"title"], [dict objectForKey:@"message"], _(@"Ok"), nil, nil); } - (void)handleError:(NSNotification *)not { id store = [not object]; NSNumber *errorCode = [[not userInfo] objectForKey:@"errorCode"]; NSString *title = [NSString stringWithFormat:_(@"Error on calendar %@"), [store description]]; if ([[not name] isEqualToString:SAErrorReadingStore]) { [store setEnabled:NO]; [self performSelectorOnMainThread:@selector(displayPanelFromDictionary:) withObject:[NSDictionary dictionaryWithObjectsAndKeys:title, @"title", _(@"We're unable to read the calendar, it will be disabled."), @"message", nil] waitUntilDone:YES]; } if ([[not name] isEqualToString:SAErrorWritingStore]) { if ([errorCode intValue] == 412) { [self performSelectorOnMainThread:@selector(displayPanelFromDictionary:) withObject:[NSDictionary dictionaryWithObjectsAndKeys:title, @"title", _(@"The calendar was modified. To prevent losing other modifications, it will be updated."), @"message", nil] waitUntilDone:YES]; } else { [store setWritable:NO]; [self performSelectorOnMainThread:@selector(displayPanelFromDictionary:) withObject:[NSDictionary dictionaryWithObjectsAndKeys:title, @"title", _(@"We're unable to save modifications, this calendar will be marked as read only and reread."), @"message", nil] waitUntilDone:YES]; } [store read]; } } - (void)addStoreNamed:(NSString *)name { Class storeClass; id store; NSDictionary *dict; dict = [[ConfigManager globalConfig] objectForKey:name]; if (dict) { storeClass = NSClassFromString([dict objectForKey:ST_CLASS]); store = [storeClass storeNamed:name]; if (store) { [_stores setObject:store forKey:name]; NSLog(@"Added %@ to StoreManager", name); } else { NSLog(@"Unable to initialize store %@", name); } } } - (void)removeStoreNamed:(NSString *)name { [_stores removeObjectForKey:name]; NSLog(@"Removed %@ from StoreManager", name); [self dataChanged:nil]; } - (id )storeForName:(NSString *)name { return [_stores objectForKey:name]; } - (void)setDefaultStore:(NSString *)name { id st = [self storeForName:name]; if (st != nil) { ASSIGN(_defaultStore, st); [[ConfigManager globalConfig] setObject:name forKey:ST_DEFAULT]; } } - (id )defaultStore { return _defaultStore; } - (NSEnumerator *)storeEnumerator { return [_stores objectEnumerator]; } - (void)synchronise { NSEnumerator *enumerator = [_stores objectEnumerator]; id store; while ((store = [enumerator nextObject])) if ([store conformsToProtocol:@protocol(StoreBackend)]) [store write]; } - (void)refresh { NSEnumerator *enumerator = [_stores objectEnumerator]; id store; while ((store = [enumerator nextObject])) if ([store conformsToProtocol:@protocol(StoreBackend)]) [store read]; } - (id )storeContainingElement:(Element *)elt { NSEnumerator *enumerator = [_stores objectEnumerator]; id store; while ((store = [enumerator nextObject])) if ([store contains:elt]) return store; return nil; } - (BOOL)moveElement:(Element *)elt toStore:(id )store { id origin = [elt store]; if (origin && ![origin writable]) return NO; if (![store writable]) return NO; if (!origin) [store add:elt]; else if (origin == store) [store update:elt]; else { [elt retain]; [origin remove:elt]; [store add:elt]; [elt release]; } return YES; } - (NSArray *)allEvents { NSEnumerator *enumerator; id store; if ([_eventCache count]) return _eventCache; enumerator = [_stores objectEnumerator]; while ((store = [enumerator nextObject])) if ([store enabled]) [_eventCache addObjectsFromArray:[store events]]; return _eventCache; } - (NSArray *)allTasks { NSMutableArray *all = [NSMutableArray arrayWithCapacity:32]; NSEnumerator *enumerator = [_stores objectEnumerator]; id store; while ((store = [enumerator nextObject])) if ([store enabled]) [all addObjectsFromArray:[store tasks]]; return all; } - (NSArray *)visibleTasks { NSMutableArray *all = [NSMutableArray arrayWithCapacity:32]; NSEnumerator *enumerator = [_stores objectEnumerator]; id store; while ((store = [enumerator nextObject])) if ([store enabled] && [store displayed]) [all addObjectsFromArray:[store tasks]]; return all; } - (NSSet *)scheduledAppointmentsForDay:(Date *)date { NSMutableSet *dayEvents; NSEnumerator *enumerator; Event *event; NSAssert(date != nil, @"No date specified, am I supposed to guess ?"); dayEvents = [_dayEventsCache objectForKey:date]; if (dayEvents) return dayEvents; dayEvents = [NSMutableSet setWithCapacity:8]; enumerator = [[self allEvents] objectEnumerator]; while ((event = [enumerator nextObject])) if ([event isScheduledForDay:date]) [dayEvents addObject:event]; [_dayEventsCache setObject:dayEvents forKey:date]; return dayEvents; } - (NSSet *)visibleAppointmentsForDay:(Date *)date { NSMutableSet *visible = [NSMutableSet setWithCapacity:4]; NSEnumerator *enumerator; Event *event; enumerator = [[self scheduledAppointmentsForDay:date] objectEnumerator]; while ((event = [enumerator nextObject])) { if ([[event store] displayed]) [visible addObject:event]; } return visible; } @end simpleagenda-0.44/TODO000066400000000000000000000003721320461325300145630ustar00rootroot00000000000000In no particular order : * redesign networking * month view * build a framework to allow other applications to access the data ? (or let somebody else implement Apple Calendar framework) Want to help out ? Contact me at p.o.roussel@free.fr simpleagenda-0.44/Task.h000066400000000000000000000010651320461325300151460ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "Date.h" #import "Element.h" enum taskState { TK_NONE = 0, TK_INPROCESS, TK_COMPLETED, TK_CANCELED, TK_NEEDSACTION }; @interface Task : Element { enum taskState _state; Date *_dueDate; } + (NSArray *)stateNamesArray; - (enum taskState)state; - (NSString *)stateAsString; - (void)setState:(enum taskState)state; - (Date *)dueDate; - (void)setDueDate:(Date *)cd; @end @interface Task(iCalendar) - (id)initWithICalComponent:(icalcomponent *)ic; - (BOOL)updateICalComponent:(icalcomponent *)ic; @end simpleagenda-0.44/Task.m000066400000000000000000000056451320461325300151630ustar00rootroot00000000000000#import #import "Task.h" @implementation Task(NSCoding) - (void)encodeWithCoder:(NSCoder *)coder { [super encodeWithCoder:coder]; [coder encodeInt:_state forKey:@"state"]; if (_dueDate != nil) [coder encodeObject:_dueDate forKey:@"dueDate"]; } - (id)initWithCoder:(NSCoder *)coder { [super initWithCoder:coder]; _state = [coder decodeIntForKey:@"state"]; if ([coder containsValueForKey:@"dueDate"]) _dueDate = [[coder decodeObjectForKey:@"dueDate"] retain]; else _dueDate = nil; return self; } @end static NSArray *stateName; @implementation Task + (void)initialize { if ([Task class] == self) stateName = [[NSArray alloc] initWithObjects:_(@"None"), _(@"Started"), _(@"Completed"), _(@"Canceled"), _(@"Needs action"), nil]; } + (NSArray *)stateNamesArray { return stateName; } - (id)init { if ((self = [super init])) { _state = TK_NONE; _dueDate = nil; } return self; } - (void)dealloc { RELEASE(_dueDate); [super dealloc]; } - (enum taskState)state { return _state; } - (NSString *)stateAsString { return [stateName objectAtIndex:_state]; } - (void)setState:(enum taskState)state { _state = state; } - (Date *)dueDate { return _dueDate; } - (void)setDueDate:(Date *)cd { DESTROY(_dueDate); if (cd != nil) ASSIGNCOPY(_dueDate, cd); } - (Date *)nextActivationDate { /* FIXME */ return _dueDate; } - (NSString *)description { return [self summary]; } @end @implementation Task(iCalendar) - (id)initWithICalComponent:(icalcomponent *)ic { icalproperty *prop; if ((self = [super initWithICalComponent:ic])) { prop = icalcomponent_get_first_property(ic, ICAL_STATUS_PROPERTY); if (prop) { switch (icalproperty_get_status(prop)) { case ICAL_STATUS_COMPLETED: [self setState:TK_COMPLETED]; break; case ICAL_STATUS_CANCELLED: [self setState:TK_CANCELED]; break; case ICAL_STATUS_INPROCESS: [self setState:TK_INPROCESS]; break; case ICAL_STATUS_NEEDSACTION: [self setState:TK_NEEDSACTION]; break; default: [self setState:TK_NONE]; } } else [self setState:TK_NONE]; prop = icalcomponent_get_first_property(ic, ICAL_DUE_PROPERTY); if (prop) [self setDueDate:AUTORELEASE([[Date alloc] initWithICalTime:icalproperty_get_due(prop)])]; } return self; } static int statusCorr[] = {ICAL_STATUS_NONE, ICAL_STATUS_INPROCESS, ICAL_STATUS_COMPLETED, ICAL_STATUS_CANCELLED, ICAL_STATUS_NEEDSACTION}; - (BOOL)updateICalComponent:(icalcomponent *)ic { if (![super updateICalComponent:ic]) return NO; [self deleteProperty:ICAL_STATUS_PROPERTY fromComponent:ic]; icalcomponent_add_property(ic, icalproperty_new_status(statusCorr[[self state]])); [self deleteProperty:ICAL_DUE_PROPERTY fromComponent:ic]; if (_dueDate) icalcomponent_add_property(ic, icalproperty_new_due([_dueDate UTCICalTime])); return YES; } - (int)iCalComponentType { return ICAL_VTODO_COMPONENT; } @end simpleagenda-0.44/TaskEditor.h000066400000000000000000000007511320461325300163160ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import @class Task; @interface TaskEditor : NSObject { id window; id description; id summary; id store; id state; id ok; NSButton *toggleDueDate; id dueDate; id dueTime; id alarms; Task *_task; NSArray *_modifiedAlarms; } + (TaskEditor *)editorForTask:(Task *)task; - (void)validate:(id)sender; - (void)cancel:(id)sender; - (void)editAlarms:(id)sender; - (void)toggleDueDate:(id)sender; @end simpleagenda-0.44/TaskEditor.m000066400000000000000000000115751320461325300163310ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import "TaskEditor.h" #import "StoreManager.h" #import "Task.h" #import "AlarmEditor.h" #import "HourFormatter.h" #import "Date.h" static NSMutableDictionary *editors; @implementation TaskEditor - (BOOL)canBeModified { id selectedStore = [[StoreManager globalManager] storeForName:[store titleOfSelectedItem]]; return [selectedStore enabled] && [selectedStore writable]; } - (id)init { HourFormatter *formatter; NSDateFormatter *dateFormatter; if (![NSBundle loadNibNamed:@"Task" owner:self]) return nil; if ((self = [super init])) { formatter = AUTORELEASE([[HourFormatter alloc] init]); dateFormatter = AUTORELEASE([[NSDateFormatter alloc] initWithDateFormat:[[NSUserDefaults standardUserDefaults] objectForKey:NSShortDateFormatString] allowNaturalLanguage:NO]); [dueTime setFormatter:formatter]; [dueDate setFormatter:dateFormatter]; } return self; } - (id)document { return nil; } - (id)initWithTask:(Task *)task { StoreManager *sm = [StoreManager globalManager]; NSEnumerator *list = [sm storeEnumerator]; id aStore; id originalStore; self = [self init]; if (self) { ASSIGN(_task, task); ASSIGNCOPY(_modifiedAlarms, [task alarms]); [summary setStringValue:[task summary]]; [[description textStorage] deleteCharactersInRange:NSMakeRange(0, [[description textStorage] length])]; [[description textStorage] appendAttributedString:[task text]]; [window makeFirstResponder:summary]; originalStore = [task store]; [store removeAllItems]; while ((aStore = [list nextObject])) { if ([aStore enabled] && ([aStore writable] || aStore == originalStore)) [store addItemWithTitle:[aStore description]]; } if ([task store]) [store selectItemWithTitle:[[task store] description]]; else [store selectItemWithTitle:[[sm defaultStore] description]]; [state removeAllItems]; [state addItemsWithTitles:[Task stateNamesArray]]; [state selectItemWithTitle:[task stateAsString]]; [ok setEnabled:[self canBeModified]]; if ([task dueDate]) { [dueDate setObjectValue:[[task dueDate] calendarDate]]; [dueTime setIntValue:[[task dueDate] hourOfDay] * 3600 + [[task dueDate] minuteOfHour] * 60]; [toggleDueDate setState:YES]; } [dueDate setEnabled:[toggleDueDate state]]; [dueTime setEnabled:[toggleDueDate state]]; [window makeKeyAndOrderFront:self]; } return self; } - (void)dealloc { RELEASE(_task); RELEASE(_modifiedAlarms); [super dealloc]; } + (void)initialize { editors = [[NSMutableDictionary alloc] initWithCapacity:2]; } + (TaskEditor *)editorForTask:(Task *)task { TaskEditor *editor; if ((editor = [editors objectForKey:[task UID]])) { [editor->window makeKeyAndOrderFront:self]; return editor; } editor = [[TaskEditor alloc] initWithTask:task]; [editors setObject:editor forKey:[task UID]]; return AUTORELEASE(editor); } - (void)validate:(id)sender { StoreManager *sm = [StoreManager globalManager]; id originalStore = [_task store]; id aStore; Date *date; [_task setSummary:[summary stringValue]]; [_task setText:[[description textStorage] copy]]; [_task setState:[state indexOfSelectedItem]]; [_task setAlarms:_modifiedAlarms]; if ([toggleDueDate state]) { date = [Date dateWithCalendarDate:[dueDate objectValue] withTime:NO]; date = [Date dateWithTimeInterval:[dueTime intValue] sinceDate:date]; [_task setDueDate:date]; } else { [_task setDueDate:nil]; } aStore = [sm storeForName:[store titleOfSelectedItem]]; if (!originalStore) [aStore add:_task]; else if (originalStore == aStore) [aStore update:_task]; else { [originalStore remove:_task]; [aStore add:_task]; } [window close]; [editors removeObjectForKey:[_task UID]]; } - (void)cancel:(id)sender { [window close]; [editors removeObjectForKey:[_task UID]]; } - (void)editAlarms:(id)sender { NSArray *alarmArray; alarmArray = [AlarmEditor editAlarms:_modifiedAlarms]; if (alarmArray) ASSIGN(_modifiedAlarms, alarmArray); [window makeKeyAndOrderFront:self]; } - (void)toggleDueDate:(id)sender { Date *date; [dueDate setEnabled:[toggleDueDate state]]; [dueTime setEnabled:[toggleDueDate state]]; if ([toggleDueDate state]) { date = [Date now]; [date changeDayBy:7]; [dueDate setObjectValue:[date calendarDate]]; [dueTime setIntValue:[date hourOfDay] * 3600 + [date minuteOfHour] * 60]; } else { [dueDate setObjectValue:nil]; [dueTime setObjectValue:nil]; } } - (BOOL)textView:(NSTextView *)aTextView doCommandBySelector:(SEL)aSelector { if ([NSStringFromSelector(aSelector) isEqualToString:@"insertTab:"]) { [[description window] selectNextKeyView:self]; return YES; } return [description tryToPerform:aSelector with:aTextView]; } @end simpleagenda-0.44/WebDAVResource.h000066400000000000000000000017751320461325300170340ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import @interface WebDAVResource : NSObject { NSURL *_url; Class _handleClass; BOOL _dataChanged; int _httpStatus; NSString *_reason; NSString *_lastModified; NSString *_etag; NSString *_user; NSString *_password; NSData *_data; } - (id)initWithURL:(NSURL *)url; - (id)initWithURL:(NSURL *)anUrl authFromURL:(NSURL *)parent; - (BOOL)readable; /* WARNING Destructive */ - (BOOL)writableWithData:(NSData *)data; - (int)httpStatus; - (NSData *)data; - (NSURL *)url; - (BOOL)get; - (BOOL)delete; - (BOOL)put:(NSData *)data attributes:(NSDictionary *)attributes; - (BOOL)propfind:(NSData *)data attributes:(NSDictionary *)attributes; - (void)updateAttributes; @end @interface NSURL(SimpleAgenda) + (NSURL *)URLWithString:(NSString *)string possiblyRelativeToURL:(NSURL *)base; - (NSString *)anonymousAbsoluteString; @end @interface GSXMLDocument(SimpleAgenda) - (GSXMLDocument *)strippedDocument; @end simpleagenda-0.44/WebDAVResource.m000066400000000000000000000173351320461325300170400ustar00rootroot00000000000000#import #import #import "NSString+SimpleAgenda.h" #import "WebDAVResource.h" @implementation WebDAVResource - (void)dealloc { [_user release]; [_password release]; [_url release]; [_lastModified release]; [_data release]; [_reason release]; [_etag release]; [super dealloc]; } - (void)setURL:(NSURL *)anURL { if ([[anURL scheme] hasPrefix:@"webcal"]) ASSIGN(_url, [NSURL URLWithString:[[anURL absoluteString] stringByReplacingString:@"webcal" withString:@"http"]]); else ASSIGN(_url, anURL); _handleClass = [NSURLHandle URLHandleClassForURL:_url]; if ([_url user]) ASSIGN(_user, [_url user]); if ([_url password]) ASSIGN(_password, [_url password]); } - (id)initWithURL:(NSURL *)anUrl { if ((self = [super init])) [self setURL:anUrl]; return self; } - (id)initWithURL:(NSURL *)anUrl authFromURL:(NSURL *)parent { self = [self initWithURL:anUrl]; if (self && [parent user]) { ASSIGN(_user, [parent user]); ASSIGN(_password, [parent password]); } return self; } /* FIXME : ugly hack to work around NSURLHandle shortcomings */ - (NSString *)basicAuth { NSMutableString *authorisation; NSString *toEncode; authorisation = [NSMutableString stringWithCapacity: 64]; if ([_password length] > 0) toEncode = [NSString stringWithFormat: @"%@:%@", _user, _password]; else toEncode = [NSString stringWithFormat: @"%@", _user]; [authorisation appendFormat: @"Basic %@", [GSMimeDocument encodeBase64String: toEncode]]; return authorisation; } - (BOOL)requestWithMethod:(NSString *)method body:(NSData *)body attributes:(NSDictionary *)attributes { NSEnumerator *keys; NSString *key; NSData *data; NSString *property; NSURLHandle *handle; restart: handle = [[_handleClass alloc] initWithURL:_url cached:NO]; [handle writeProperty:method forKey:GSHTTPPropertyMethodKey]; if (attributes) { keys = [attributes keyEnumerator]; while ((key = [keys nextObject])) [handle writeProperty:[attributes objectForKey:key] forKey:key]; } if (_user && ![_url user]) [handle writeProperty:[self basicAuth] forKey:@"Authorization"]; if (_etag && ([method isEqual:@"PUT"] || [method isEqual:@"DELETE"])) [handle writeProperty:[NSString stringWithFormat:@"([%@])", _etag] forKey:@"If"]; if (body) [handle writeData:body]; if (attributes) NSDebugMLLog(@"WebDAVResource", @"%@ %@ (%@)", method, [_url anonymousAbsoluteString], [attributes description]); else NSDebugMLLog(@"WebDAVResource", @"%@ %@", method, [_url anonymousAbsoluteString]); DESTROY(_data); data = [handle resourceData]; /* FIXME : this is more than ugly */ if ([_url isFileURL]) _httpStatus = data ? 200 : 199; else _httpStatus = [[handle propertyForKeyIfAvailable:NSHTTPPropertyStatusCodeKey] intValue]; /* FIXME : why do we have to check for httpStatus == 0 */ if ((_httpStatus == 0 ||_httpStatus == 301 || _httpStatus == 302) && [handle propertyForKey:@"Location"] != nil) { NSDebugMLLog(@"WebDAVResource", @"Redirection to %@", [handle propertyForKey:@"Location"]); [self setURL:[NSURL URLWithString:[handle propertyForKey:@"Location"]]]; goto restart; } NSDebugMLLog(@"WebDAVResource", @"%@ status %d", method, _httpStatus); property = [handle propertyForKeyIfAvailable:NSHTTPPropertyStatusReasonKey]; if (property) ASSIGN(_reason, property); else DESTROY(_reason); if (_httpStatus < 200 || _httpStatus > 299) { if (_reason) NSLog(@"%s %@ : %d %@", __PRETTY_FUNCTION__, method, _httpStatus, _reason); else NSLog(@"%s %@ : %d", __PRETTY_FUNCTION__, method, _httpStatus); [handle release]; return NO; } if (data) ASSIGN(_data, data); if ([method isEqual:@"GET"]) { property = [handle propertyForKeyIfAvailable:@"Last-Modified"]; if (!_lastModified || (property && ![property isEqual:_lastModified])) { _dataChanged = YES; ASSIGN(_lastModified, property); } property = [handle propertyForKeyIfAvailable:@"ETag"]; if (!_etag || (property && ![property isEqual:_etag])) { _dataChanged = YES; ASSIGN(_etag, property); } } [handle release]; return YES; } /* * Status | Meaning * 200 | OK * 207 | MULTI STATUS * 304 | NOT MODIFIED * 401 | NO AUTH * 403 | WRONG PERM * 404 | NO FILE * ... */ - (BOOL)readable { [self get]; if ((_httpStatus > 199 && _httpStatus < 300) || _httpStatus == 404) return YES; return NO; } /* * Status | Meaning * 201 | OK OVERWRITE * 204 | OK CREATE * 401 | NO AUTH * 403 | WRONG PERM * ... */ - (BOOL)writableWithData:(NSData *)data { return [self put:data attributes:nil]; } - (int)httpStatus { return _httpStatus; } - (NSData *)data { return _data; } - (NSString *)reason { return _reason; } - (NSURL *)url { return _url; } - (BOOL)get { return [self requestWithMethod:@"GET" body:nil attributes:nil]; } - (BOOL)put:(NSData *)data attributes:(NSDictionary *)attributes { return [self requestWithMethod:@"PUT" body:data attributes:attributes]; } - (BOOL)delete { return [self requestWithMethod:@"DELETE" body:nil attributes:nil]; } - (BOOL)propfind:(NSData *)data attributes:(NSDictionary *)attributes { return [self requestWithMethod:@"PROPFIND" body:data attributes:attributes]; } static NSString * const GETETAG = @"string(/multistatus/response/propstat/prop/getetag/text())"; static NSString * const GETLASTMODIFIED = @"string(/multistatus/response/propstat/prop/getlastmodified/text())"; - (void)updateAttributes; { GSXMLParser *parser; GSXPathContext *xpc; GSXPathString *result; if ([self propfind:nil attributes:nil]) { parser = [GSXMLParser parserWithData:[self data]]; if ([parser parse]) { xpc = [[GSXPathContext alloc] initWithDocument:[[parser document] strippedDocument]]; result = (GSXPathString *)[xpc evaluateExpression:GETETAG]; if (result) ASSIGN(_etag, [result stringValue]); result = (GSXPathString *)[xpc evaluateExpression:GETLASTMODIFIED]; if (result) ASSIGN(_lastModified, [result stringValue]); [xpc release]; } } } @end @implementation NSURL(SimpleAgenda) + (NSURL *)URLWithString:(NSString *)string possiblyRelativeToURL:(NSURL *)base { if ([string isValidURL]) return [NSURL URLWithString:string]; return [NSURL URLWithString:string relativeToURL:base]; } - (NSString *)anonymousAbsoluteString { NSString *as = [self absoluteString]; if (![self user] && ![self password]) return as; return [as stringByReplacingOccurrencesOfString:[NSString stringWithFormat:@"%@:%@@", [self user], [self password]] withString:@""]; } @end @implementation GSXMLDocument(SimpleAgenda) static GSXMLDocument *removeXSLT; static const NSString *removeString = @" \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ "; - (GSXMLDocument *)strippedDocument { if (removeXSLT == nil) { GSXMLParser *parser = [GSXMLParser parserWithData:[removeString dataUsingEncoding:NSUTF8StringEncoding]]; if (![parser parse]) { NSLog(@"Error parsing xslt document"); return nil; } removeXSLT = [[parser document] retain]; } return [self xsltTransform:removeXSLT]; } @end simpleagenda-0.44/WeekView.h000066400000000000000000000006131320461325300157700ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import #import "ConfigManager.h" #import "StoreManager.h" #import "AppointmentView.h" #import "Date.h" @interface WeekView : NSView { IBOutlet id delegate; int weekNumber; int year; Date *_date; } - (void)selectAppointmentView:(AppointmentView *)aptv; - (void)reloadData; - (id)delegate; - (void)setDate:(Date *)date; @end simpleagenda-0.44/WeekView.m000066400000000000000000000163761320461325300160120ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "AgendaStore.h" #import "WeekView.h" #import "ConfigManager.h" #import "iCalTree.h" #import "AppointmentView.h" #import "SelectionManager.h" #import "NSColor+SimpleAgenda.h" #import "defines.h" @interface AppWeekView : AppointmentView { } @end @implementation AppWeekView #define TextRect(rect) NSMakeRect(rect.origin.x + 4, rect.origin.y, rect.size.width - 8, rect.size.height - 2) #define CEC_BORDERSIZE 1 #define RADIUS 5 - (void)drawRect:(NSRect)rect { NSPoint point; NSString *title; NSString *label; Date *start = [_apt startDate]; NSColor *color = [[_apt store] eventColor]; NSColor *darkColor = [color colorModifiedWithDeltaRed:-0.3 green:-0.3 blue:-0.3 alpha:-0.3]; NSDictionary *textAttributes = [NSDictionary dictionaryWithObject:[[_apt store] textColor] forKey:NSForegroundColorAttributeName]; if ([_apt allDay]) title = [NSString stringWithFormat:_(@"All day : %@"), [_apt summary]]; else title = [NSString stringWithFormat:@"%2dh%0.2d : %@", [start hourOfDay], [start minuteOfHour], [_apt summary]]; if ([_apt text]) label = [NSString stringWithFormat:@"%@\n\n%@", title, [[_apt text] string]]; else label = [NSString stringWithString:title]; PSnewpath(); PSmoveto(RADIUS + CEC_BORDERSIZE, CEC_BORDERSIZE); PSrcurveto(-RADIUS, 0, -RADIUS, RADIUS, -RADIUS, RADIUS); PSrlineto(0, NSHeight(rect) + rect.origin.y - 2 * (RADIUS + CEC_BORDERSIZE)); PSrcurveto( 0, RADIUS, RADIUS, RADIUS, RADIUS, RADIUS); PSrlineto(NSWidth(rect) - 2 * (RADIUS + CEC_BORDERSIZE),0); PSrcurveto( RADIUS, 0, RADIUS, -RADIUS, RADIUS, -RADIUS); PSrlineto(0, -NSHeight(rect) - rect.origin.y + 2 * (RADIUS + CEC_BORDERSIZE)); PSrcurveto(0, -RADIUS, -RADIUS, -RADIUS, -RADIUS, -RADIUS); PSclosepath(); PSgsave(); [color set]; PSsetalpha(0.7); PSfill(); PSgrestore(); if ([[[SelectionManager globalManager] selection] containsObject:_apt]) [[NSColor whiteColor] set]; else [darkColor set]; PSsetalpha(0.7); PSsetlinewidth(CEC_BORDERSIZE); PSstroke(); [label drawInRect:TextRect(rect) withAttributes:textAttributes]; point = NSMakePoint(rect.size.width - 18, rect.size.height - 16); if ([_apt rrule]) { [[self repeatImage] compositeToPoint:NSMakePoint(rect.size.width - 18, rect.size.height - 18) operation:NSCompositeSourceOver]; point = NSMakePoint(rect.size.width - 30, rect.size.height - 16); } if ([_apt hasAlarms]) [[self alarmImage] compositeToPoint:point operation:NSCompositeSourceOver]; } - (void)mouseDown:(NSEvent *)theEvent { WeekView *parent = (WeekView *)[[self superview] superview]; id delegate = [parent delegate]; if ([theEvent clickCount] > 1) { if ([delegate respondsToSelector:@selector(viewEditEvent:)]) [delegate viewEditEvent:_apt]; return; } [self becomeFirstResponder]; [parent selectAppointmentView:self]; } @end static struct { float mx; float my; float sx; float sy; } wdcoord[7] = {{0, 2, 1, 1}, {0, 1, 1, 1}, {0, 0, 1, 1}, {1, 2, 1, 1}, {1, 1, 1, 1}, {1, 0.5, 1, 0.5}, {1, 0, 1, 0.5}}; @interface WeekDayView : NSView { Date *date; } - (id)initWithFrame:(NSRect)frame forDay:(Date *)day; - (void)clear; - (void)addAppointment:(Event *)apt; - (Date *)day; @end @implementation WeekDayView + (NSRect)rectForDay:(int)weekday frame:(NSRect)frame { int dwidth = frame.size.width / 2; int dheight = frame.size.height / 3; return NSMakeRect(dwidth * wdcoord[weekday - 1].mx, dheight * wdcoord[weekday - 1].my, dwidth * wdcoord[weekday - 1].sx, dheight * wdcoord[weekday - 1].sy); } - (id)initWithFrame:(NSRect)frame forDay:(Date *)day { self = [super initWithFrame:[WeekDayView rectForDay:[day weekday] frame:frame]]; if (self) date = [day copy]; return self; } - (void)dealloc { [date release]; [super dealloc]; } - (void)drawRect:(NSRect)rect { int dwidth = rect.size.width; int dheight = rect.size.height; NSString *sdate; NSSize size; [[NSColor grayColor] set]; NSFrameRect(NSMakeRect(4, dheight - 5, dwidth, 1)); NSFrameRect(NSMakeRect(dwidth / 4, dheight - 17, dwidth * 3 / 4, 1)); NSFrameRect(NSMakeRect(dwidth - 1, 0, 1, dheight)); sdate = [[date calendarDate] descriptionWithCalendarFormat:@"%A %d %B"]; size = [sdate sizeWithAttributes:nil]; [sdate drawInRect:NSMakeRect(dwidth - size.width - 4, dheight - 17, size.width, 14) withAttributes:nil]; } - (void)resizeWithOldSuperviewSize:(NSSize)oldBoundsSize { [self setFrame:[WeekDayView rectForDay:[date weekday] frame:[[self superview] frame]]]; } - (void)clear { NSEnumerator *enumerator; NSView *view; enumerator = [[self subviews] objectEnumerator]; while ((view = [enumerator nextObject])) [view removeFromSuperviewWithoutNeedingDisplay]; } - (NSRect)frameForNewAppointment:(Event *)apt { return NSMakeRect(0, 0 + 20 * [[self subviews] count] , [self frame].size.width, 20); } - (void)addAppointment:(Event *)apt { AppWeekView *awv; awv = [[AppWeekView alloc] initWithFrame:[self frameForNewAppointment:apt] appointment:apt]; [awv setAutoresizingMask:NSViewWidthSizable]; [self addSubview:AUTORELEASE(awv)]; } - (Date *)day { return date; } - (void)mouseDown:(NSEvent *)theEvent { WeekView *parent = (WeekView *)[self superview]; id delegate = [parent delegate]; if ([delegate respondsToSelector:@selector(viewSelectDate:)]) [delegate viewSelectDate:date]; } @end @implementation WeekView - (void)setupSelectWeek { NSRect frame = [self frame]; NSEnumerator *enumerator; NSView *view; int nday; Date *date; if ([_date weekOfYear] != weekNumber || [_date year] != year) { weekNumber = [_date weekOfYear]; year = [_date year]; enumerator = [[self subviews] objectEnumerator]; while ((view = [enumerator nextObject])) [view removeFromSuperviewWithoutNeedingDisplay]; /* Start with monday */ date = [_date copy]; [date changeDayBy: 1 - [date weekday]]; for (nday = 0; nday < 7; nday++) { [self addSubview:AUTORELEASE([[WeekDayView alloc] initWithFrame:frame forDay:date])]; [date incrementDay]; } [date release]; } } - (void)dealloc { RELEASE(_date); [super dealloc]; } - (id)delegate { return delegate; } - (void)setDelegate:(id)theDelegate { delegate = theDelegate; } - (void)selectAppointmentView:(AppointmentView *)aptv { if ([delegate respondsToSelector:@selector(viewSelectDate:)]) [delegate viewSelectDate:[(WeekDayView *)[aptv superview] day]]; [[SelectionManager globalManager] select:[aptv appointment]]; if ([delegate respondsToSelector:@selector(viewSelectEvent:)]) [delegate viewSelectEvent:[aptv appointment]]; [self setNeedsDisplay:YES]; } - (void)reloadData { NSEnumerator *enumerator, *enm; WeekDayView *wdv; Event *apt; NSSet *events; enumerator = [[self subviews] objectEnumerator]; while ((wdv = [enumerator nextObject])) { [wdv clear]; events = [[StoreManager globalManager] visibleAppointmentsForDay:[wdv day]]; enm = [events objectEnumerator]; while ((apt = [enm nextObject])) [wdv addAppointment:apt]; } } - (BOOL)acceptsFirstResponder { return YES; } - (void)config:(ConfigManager *)config dataDidChangedForKey:(NSString *)key { [self reloadData]; } - (void)setDate:(Date *)date { ASSIGNCOPY(_date, date); [self setupSelectWeek]; [self reloadData]; } @end simpleagenda-0.44/aclocal.m4000066400000000000000000000027301320461325300157330ustar00rootroot00000000000000# Shamelessly copied and adpated from GWorkspace's aclocal AC_DEFUN(AC_CHECK_ADDRESSES,[ GNUSTEP_SH_EXPORT_ALL_VARIABLES=yes . "$GNUSTEP_MAKEFILES/GNUstep.sh" unset GNUSTEP_SH_EXPORT_ALL_VARIABLES OLD_CFLAGS=$CFLAGS CFLAGS="-xobjective-c " CFLAGS="$CFLAGS `gnustep-config --objc-flags`" OLD_LIBS="$LIBS" LIBS=`gnustep-config --base-libs` LIBS="-lAddresses $LIBS" AC_MSG_CHECKING([for Addresses framework]) AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#include #include ]], [[[ADAddressBook sharedAddressBook];]])], $1; have_addresses=yes, $2; have_addresses=no) LIBS="$OLD_LIBS" CFLAGS="$OLD_CFLAGS" AC_MSG_RESULT($have_addresses) ]) AC_DEFUN(AC_CHECK_DBUSKIT,[ GNUSTEP_SH_EXPORT_ALL_VARIABLES=yes . "$GNUSTEP_MAKEFILES/GNUstep.sh" unset GNUSTEP_SH_EXPORT_ALL_VARIABLES OLD_CFLAGS=$CFLAGS CFLAGS="-xobjective-c " CFLAGS="$CFLAGS `gnustep-config --objc-flags`" OLD_LIBS="$LIBS" LIBS=`gnustep-config --base-libs` LIBS="-lDBusKit $LIBS" AC_MSG_CHECKING([for DBusKit framework]) AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[#import #import ]], [[[DKPort sessionBusPort];]])], $1; have_dbuskit=yes, $2; have_dbuskit=no) LIBS="$OLD_LIBS" CFLAGS="$OLD_CFLAGS" AC_MSG_RESULT($have_dbuskit) ]) simpleagenda-0.44/config.h.in000066400000000000000000000033701320461325300161170ustar00rootroot00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if you have the header file. */ #undef HAVE_ICAL_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_LIBICAL_ICAL_H /* Define to 1 if you have the required UUID library implementation */ #undef HAVE_LIBUUID /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the header file. */ #undef HAVE_UUID_UUID_H /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS #ifdef HAVE_LIBICAL_ICAL_H #include #else #include #endif simpleagenda-0.44/configure000077500000000000000000004147321320461325300160130ustar00rootroot00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="SimpleAgenda" ac_unique_file="MemoryStore.h" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='LTLIBOBJS LIBOBJS additional_lib_dir additional_include_dir have_dbuskit have_addresses EGREP GREP CPP OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking with_ical_include with_ical_library enable_dbuskit ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dbuskit disable DBusKit based alarm notification Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-ical-include=DIR include path for ical headers --with-ical-library=DIR library path for ical libraries Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_headers="$ac_config_headers config.h" old_cppflags=$CPPFLAGS old_ldflags=$LDFLAGS additional_include_dir= additional_lib_dir= # Check whether --with-ical-include was given. if test "${with_ical_include+set}" = set; then : withval=$with_ical_include; additional_include_dir+=-I"$withval" fi # Check whether --with-ical-library was given. if test "${with_ical_library+set}" = set; then : withval=$with_ical_library; additional_lib_dir=-L"$withval" fi CPPFLAGS="$CPPFLAGS $additional_include_dir" LDFLAGS="$LDFLAGS $additional_lib_dir" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in libical/ical.h do : ac_fn_c_check_header_mongrel "$LINENO" "libical/ical.h" "ac_cv_header_libical_ical_h" "$ac_includes_default" if test "x$ac_cv_header_libical_ical_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBICAL_ICAL_H 1 _ACEOF else for ac_header in ical.h do : ac_fn_c_check_header_mongrel "$LINENO" "ical.h" "ac_cv_header_ical_h" "$ac_includes_default" if test "x$ac_cv_header_ical_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_ICAL_H 1 _ACEOF else as_fn_error $? "ical.h not found. You must have libical >= 0.27 installed." "$LINENO" 5 fi done fi done CPPFLAGS=$old_cppflags LDFLAGS=$old_ldflags for ac_header in uuid/uuid.h do : ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_UUID_UUID_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5 $as_echo_n "checking for library containing uuid_generate... " >&6; } if ${ac_cv_search_uuid_generate+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char uuid_generate (); int main () { return uuid_generate (); ; return 0; } _ACEOF for ac_lib in '' uuid e2fs-uuid; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_uuid_generate=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_uuid_generate+:} false; then : break fi done if ${ac_cv_search_uuid_generate+:} false; then : else ac_cv_search_uuid_generate=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5 $as_echo "$ac_cv_search_uuid_generate" >&6; } ac_res=$ac_cv_search_uuid_generate if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h fi GNUSTEP_SH_EXPORT_ALL_VARIABLES=yes . "$GNUSTEP_MAKEFILES/GNUstep.sh" unset GNUSTEP_SH_EXPORT_ALL_VARIABLES OLD_CFLAGS=$CFLAGS CFLAGS="-xobjective-c " CFLAGS="$CFLAGS `gnustep-config --objc-flags`" OLD_LIBS="$LIBS" LIBS=`gnustep-config --base-libs` LIBS="-lAddresses $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Addresses framework" >&5 $as_echo_n "checking for Addresses framework... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { [ADAddressBook sharedAddressBook]; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : have_addresses=yes; have_addresses=yes else have_addresses=no; have_addresses=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$OLD_LIBS" CFLAGS="$OLD_CFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_addresses" >&5 $as_echo "$have_addresses" >&6; } # Check whether --enable-dbuskit was given. if test "${enable_dbuskit+set}" = set; then : enableval=$enable_dbuskit; else enable_dbuskit=yes fi if test "x$enable_dbuskit" != xno; then GNUSTEP_SH_EXPORT_ALL_VARIABLES=yes . "$GNUSTEP_MAKEFILES/GNUstep.sh" unset GNUSTEP_SH_EXPORT_ALL_VARIABLES OLD_CFLAGS=$CFLAGS CFLAGS="-xobjective-c " CFLAGS="$CFLAGS `gnustep-config --objc-flags`" OLD_LIBS="$LIBS" LIBS=`gnustep-config --base-libs` LIBS="-lDBusKit $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBusKit framework" >&5 $as_echo_n "checking for DBusKit framework... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #import #import int main () { [DKPort sessionBusPort]; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : have_dbuskit=yes; have_dbuskit=yes else have_dbuskit=no; have_dbuskit=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$OLD_LIBS" CFLAGS="$OLD_CFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dbuskit" >&5 $as_echo "$have_dbuskit" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: DBusKit disabled" >&5 $as_echo "$as_me: DBusKit disabled" >&6;} have_dbuskit=no fi ac_config_files="$ac_config_files local.make" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "local.make") CONFIG_FILES="$CONFIG_FILES local.make" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi simpleagenda-0.44/configure.ac000066400000000000000000000031471320461325300163640ustar00rootroot00000000000000# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) AC_INIT(SimpleAgenda) AC_CONFIG_SRCDIR([MemoryStore.h]) AC_CONFIG_HEADER([config.h]) old_cppflags=$CPPFLAGS old_ldflags=$LDFLAGS additional_include_dir= additional_lib_dir= AC_ARG_WITH(ical-include, [ --with-ical-include=DIR include path for ical headers], additional_include_dir+=-I"$withval", ) AC_ARG_WITH(ical-library, [ --with-ical-library=DIR library path for ical libraries], additional_lib_dir=-L"$withval", ) CPPFLAGS="$CPPFLAGS $additional_include_dir" LDFLAGS="$LDFLAGS $additional_lib_dir" AC_CHECK_HEADERS([libical/ical.h], ,[AC_CHECK_HEADERS([ical.h], ,[AC_MSG_ERROR(ical.h not found. You must have libical >= 0.27 installed.)])]) CPPFLAGS=$old_cppflags LDFLAGS=$old_ldflags AC_CHECK_HEADERS([uuid/uuid.h]) AC_SEARCH_LIBS([uuid_generate], [uuid e2fs-uuid], [AC_DEFINE([HAVE_LIBUUID], [1], [Define to 1 if you have the required UUID library implementation])]) AC_CHECK_ADDRESSES(have_addresses=yes, have_addresses=no) AC_ARG_ENABLE([dbuskit], [AC_HELP_STRING([--disable-dbuskit], [disable DBusKit based alarm notification])], [], [enable_dbuskit=yes]) if test "x$enable_dbuskit" != xno; then AC_CHECK_DBUSKIT(have_dbuskit=yes, have_dbuskit=no) else AC_MSG_NOTICE([DBusKit disabled]) have_dbuskit=no fi AC_SUBST(have_addresses) AC_SUBST(have_dbuskit) AC_SUBST(additional_include_dir) AC_SUBST(additional_lib_dir) AH_BOTTOM([ #ifdef HAVE_LIBICAL_ICAL_H #include #else #include #endif ]) AC_CONFIG_FILES([local.make]) AC_OUTPUT simpleagenda-0.44/defines.h000066400000000000000000000014231320461325300156570ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #define FIRST_HOUR @"firstHour" #define LAST_HOUR @"lastHour" #define MIN_STEP @"minimumStep" #define TOOLTIP @"showTooltip" #define STORE_CLASSES @"storeClasses" #define STORES @"stores" #define ST_DEFAULT @"defaultStore" #define ST_CLASS @"storeClass" #define ST_FILE @"storeFilename" #define ST_COLOR @"storeColor" #define ST_TEXT_COLOR @"storeTextColor" #define ST_URL @"storeURL" #define ST_CALENDAR_URL @"storeCalendarURL" #define ST_TASK_URL @"storeTaskURL" #define ST_RW @"storeWritable" #define ST_REFRESH @"storeAutomaticRefresh" #define ST_REFRESH_INTERVAL @"storeRefreshInterval" #define ST_DISPLAY @"storeDisplay" #define ST_ENABLED @"storeEnabled" #define APPICON_DATE @"appIconShowDate" #define APPICON_TIME @"appIconShowTime" simpleagenda-0.44/iCalStore.m000066400000000000000000000177661320461325300161550ustar00rootroot00000000000000#import #import "Event.h" #import "Task.h" #import "AgendaStore.h" #import "WebDAVResource.h" #import "iCalTree.h" #import "NSString+SimpleAgenda.h" #import "InvocationOperation.h" #import "StoreManager.h" #import "defines.h" @interface iCalStoreDialog : NSObject { IBOutlet id panel; IBOutlet id name; IBOutlet id url; IBOutlet id ok; IBOutlet id error; IBOutlet id warning; } - (BOOL)show; - (NSString *)url; @end @implementation iCalStoreDialog - (id)initWithName:(NSString *)storeName { if ((self = [super init])) { if (![NSBundle loadNibNamed:@"iCalendar" owner:self]) return nil; [warning setHidden:YES]; [name setStringValue:storeName]; [url setStringValue:@"http://"]; } return self; } - (void)dealloc { [panel close]; [super dealloc]; } - (BOOL)show { [ok setEnabled:NO]; return [NSApp runModalForWindow:panel]; } - (void)okClicked:(id)sender { BOOL readable; WebDAVResource *resource; resource = AUTORELEASE([[WebDAVResource alloc] initWithURL:[NSURL URLWithString:[url stringValue]]]); readable = [resource readable]; /* Read will fail if there's no resource yet, try to create an empty one */ if (!readable && [resource httpStatus] != 401) { [resource writableWithData:[NSData data]]; readable = [resource readable]; } if (readable) [NSApp stopModalWithCode:1]; else { [error setStringValue:[NSString stringWithFormat:@"Unable to read from this URL : %@", [[resource url] propertyForKey:NSHTTPPropertyStatusReasonKey]]]; [warning setHidden:NO]; } } - (void)cancelClicked:(id)sender { [NSApp stopModalWithCode:0]; } - (void)controlTextDidChange:(NSNotification *)notification { NS_DURING { [ok setEnabled:[[url stringValue] isValidURL]]; } NS_HANDLER { [ok setEnabled:NO]; } NS_ENDHANDLER } - (NSString *)url { return [url stringValue]; } @end @interface iCalStore : MemoryStore { iCalTree *_tree; NSURL *_url; NSTimer *_refreshTimer; WebDAVResource *_resource; } - (void)initTimer; - (void)doRead; @end @implementation iCalStore - (NSDictionary *)defaults { return [NSDictionary dictionaryWithObjectsAndKeys:[[NSColor blueColor] description], ST_COLOR, [[NSColor whiteColor] description], ST_TEXT_COLOR, [NSNumber numberWithBool:NO], ST_RW, [NSNumber numberWithBool:YES], ST_DISPLAY, [NSNumber numberWithBool:NO], ST_REFRESH, [NSNumber numberWithBool:YES], ST_ENABLED, nil, nil]; } - (id)initWithName:(NSString *)name { if ((self = [super initWithName:name])) { _tree = [iCalTree new]; assert(_tree != nil); _url = [[NSURL alloc] initWithString:[[self config] objectForKey:ST_URL]]; _resource = [[WebDAVResource alloc] initWithURL:_url]; [self read]; [self initTimer]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(configChanged:) name:SAConfigManagerValueChanged object:[self config]]; } return self; } + (BOOL)isUserInstanciable { return YES; } + (BOOL)registerWithName:(NSString *)name { ConfigManager *cm; iCalStoreDialog *dialog; NSURL *storeURL; BOOL writable = NO; WebDAVResource *resource; dialog = [[iCalStoreDialog alloc] initWithName:name]; if ([dialog show] == YES) { storeURL = [NSURL URLWithString:[dialog url]]; resource = [[WebDAVResource alloc] initWithURL:storeURL]; writable = NO; if ([resource get]) writable = [resource writableWithData:[resource data]]; [resource release]; [dialog release]; cm = [[ConfigManager alloc] initForKey:name]; [cm setObject:[storeURL description] forKey:ST_URL]; [cm setObject:[[self class] description] forKey:ST_CLASS]; [cm setObject:[NSNumber numberWithBool:writable] forKey:ST_RW]; [cm release]; return YES; } [dialog release]; return NO; } + (NSString *)storeTypeName { return @"iCalendar"; } - (void)dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; [_refreshTimer invalidate]; [_refreshTimer release]; [_resource release]; [_url release]; [_tree release]; [super dealloc]; } - (void)refreshData:(NSTimer *)timer { [self read]; } - (void)add:(Element *)elt { if ([_tree add:elt]) { [super add:elt]; [self write]; } } - (void)remove:(Element *)elt { if ([_tree remove:elt]) { [super remove:elt]; [self write]; } } - (void)update:(Element *)elt { if ([_tree update:(Event *)elt]) { [super update:elt]; [self write]; } } - (void)read { if ([self enabled]) [[[StoreManager globalManager] operationQueue] addOperation:[[[InvocationOperation alloc] initWithTarget:self selector:@selector(doRead) object:nil] autorelease]]; } - (void)write { NSData *data; if (![self modified] || ![self writable]) return; data = [_tree iCalTreeAsData]; if (data) [[[StoreManager globalManager] operationQueue] addOperation:[[[InvocationOperation alloc] initWithTarget:self selector:@selector(doWrite:) object:[data retain]] autorelease]]; } - (BOOL)periodicRefresh { if ([[self config] objectForKey:ST_REFRESH]) return [[[self config] objectForKey:ST_REFRESH] boolValue]; return NO; } - (void)setPeriodicRefresh:(BOOL)periodic { [[self config] setObject:[NSNumber numberWithBool:periodic] forKey:ST_REFRESH]; } - (NSTimeInterval)refreshInterval { if ([[self config] objectForKey:ST_REFRESH_INTERVAL]) return [[self config] integerForKey:ST_REFRESH_INTERVAL]; return 60 * 30; } - (void)setRefreshInterval:(NSTimeInterval)interval { [[self config] setInteger:interval forKey:ST_REFRESH_INTERVAL]; } - (void)configChanged:(NSNotification *)not { NSString *key = [[not userInfo] objectForKey:@"key"]; if ([key isEqualToString:ST_ENABLED]) { if ([self enabled]) [self read]; [self initTimer]; } if ([key isEqualToString:ST_REFRESH] || [key isEqualToString:ST_REFRESH_INTERVAL]) [self initTimer]; } - (void)initTimer { if (nil != _refreshTimer) { [_refreshTimer invalidate]; DESTROY(_refreshTimer); } if (![self enabled]) return; if ([self periodicRefresh]) { _refreshTimer = [[NSTimer alloc] initWithFireDate:nil interval:[self refreshInterval] target:self selector:@selector(refreshData:) userInfo:nil repeats:YES]; [[NSRunLoop currentRunLoop] addTimer:_refreshTimer forMode:NSDefaultRunLoopMode]; NSLog(@"Store %@ will refresh every %d seconds", [self description], (int)[self refreshInterval]); } else { NSLog(@"Store %@ automatic refresh disabled", [self description]); } } - (void)doRead { if ([_resource get]) { if ([_tree parseData:[_resource data]]) { [self performSelectorOnMainThread:@selector(fillWithElements:) withObject:[_tree components] waitUntilDone:YES]; NSLog(@"iCalStore from %@ : loaded %d appointment(s)", [_url anonymousAbsoluteString], [[self events] count]); NSLog(@"iCalStore from %@ : loaded %d tasks(s)", [_url anonymousAbsoluteString], [[self tasks] count]); } else{ NSLog(@"Couldn't parse data from %@", [_url anonymousAbsoluteString]); } } else { [[NSNotificationCenter defaultCenter] postNotificationName:SAErrorReadingStore object:self userInfo:[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:[_resource httpStatus]] forKey:@"errorCode"]]; } } - (void)doWrite:(NSData *)data { BOOL ret = [_resource put:data attributes:nil]; [data release]; if (ret) { [_resource updateAttributes]; [self setModified:NO]; NSLog(@"iCalStore written to %@", [_url anonymousAbsoluteString]); } else { NSLog(@"Unable to write to calendar %@, make it read only and reread the data", [self description]); [[NSNotificationCenter defaultCenter] postNotificationName:SAErrorWritingStore object:self userInfo:[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:[_resource httpStatus]] forKey:@"errorCode"]]; } } @end simpleagenda-0.44/iCalTree.h000066400000000000000000000006631320461325300157370ustar00rootroot00000000000000/* emacs buffer mode hint -*- objc -*- */ #import "config.h" #import #import "Element.h" @interface iCalTree : NSObject { icalcomponent *root; } - (BOOL)parseString:(NSString *)string; - (BOOL)parseData:(NSData *)data; - (NSString *)iCalTreeAsString; - (NSData *)iCalTreeAsData; - (NSSet *)components; - (BOOL)add:(Element *)event; - (BOOL)remove:(Element *)event; - (BOOL)update:(Element *)event; @end simpleagenda-0.44/iCalTree.m000066400000000000000000000060711320461325300157430ustar00rootroot00000000000000#import "iCalTree.h" #import "Event.h" #import "Task.h" @implementation iCalTree - (id)init { if ((self = [super init])) { root = icalcomponent_vanew(ICAL_VCALENDAR_COMPONENT, icalproperty_new_version("1.0"), icalproperty_new_prodid("-//Octets//NONSGML SimpleAgenda Calendar//EN"), 0); if (!root) DESTROY(self); } return self; } - (void)dealloc { icalcomponent_free(root); [super dealloc]; } - (BOOL)parseString:(NSString *)string; { icalcomponent *icomp; if (string == nil) { NSLog(@"No string to parse"); return NO; } NSDebugMLLog(@"iCalTree", string); icomp = icalparser_parse_string([string UTF8String]); if (icomp) { icalcomponent_free(root); root = icomp; return YES; } return NO; } - (BOOL)parseData:(NSData *)data { return [self parseString:[[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding] autorelease]]; } - (NSString *)iCalTreeAsString { /* OGo workaround ? */ icalproperty *prop = icalcomponent_get_first_property(root, ICAL_METHOD_PROPERTY); if (prop) icalcomponent_remove_property(root, prop); icalcomponent_strip_errors(root); return [NSString stringWithUTF8String:icalcomponent_as_ical_string(root)]; } - (NSData *)iCalTreeAsData; { return [[self iCalTreeAsString] dataUsingEncoding:NSUTF8StringEncoding]; } - (NSSet *)components { icalcomponent *ic; Event *ev; Task *task; NSMutableSet *work = [NSMutableSet setWithCapacity:32]; for (ic = icalcomponent_get_first_component(root, ICAL_VEVENT_COMPONENT); ic != NULL; ic = icalcomponent_get_next_component(root, ICAL_VEVENT_COMPONENT)) { ev = [[Event alloc] initWithICalComponent:ic]; if (ev) { [work addObject:ev]; [ev release]; } } for (ic = icalcomponent_get_first_component(root, ICAL_VTODO_COMPONENT); ic != NULL; ic = icalcomponent_get_next_component(root, ICAL_VTODO_COMPONENT)) { task = [[Task alloc] initWithICalComponent:ic]; if (task) { [work addObject:task]; [task release]; } } return [NSSet setWithSet:work]; } - (icalcomponent *)componentForEvent:(Element *)elt { icalcomponent *ic; icalproperty *prop; NSString *uid = [elt UID]; int type = [elt iCalComponentType]; for (ic = icalcomponent_get_first_component(root, type); ic != NULL; ic = icalcomponent_get_next_component(root, type)) { prop = icalcomponent_get_first_property(ic, ICAL_UID_PROPERTY); if (prop && [uid isEqual:[NSString stringWithCString:icalproperty_get_uid(prop)]]) return ic; } NSLog(@"iCalendar component not found for %@", [elt description]); return NULL; } - (BOOL)add:(Element *)elt { icalcomponent *ic = [elt asICalComponent]; if (!ic) return NO; icalcomponent_add_component(root, ic); return YES; } - (BOOL)remove:(Element *)elt { icalcomponent *ic = [self componentForEvent:elt]; if (!ic) return NO; icalcomponent_remove_component(root, ic); return YES; } - (BOOL)update:(Element *)elt { icalcomponent *ic = [self componentForEvent:elt]; if (!ic) return NO; return [elt updateICalComponent:ic]; } @end simpleagenda-0.44/local.make.in000066400000000000000000000002501320461325300164240ustar00rootroot00000000000000ADDITIONAL_OBJC_LIBS=@LIBS@ ADDRESSES=@have_addresses@ DBUSKIT=@have_dbuskit@ ADDITIONAL_INCLUDE_DIRS=@additional_include_dir@ ADDITIONAL_LIB_DIRS=@additional_lib_dir@ simpleagenda-0.44/tests/000077500000000000000000000000001320461325300152335ustar00rootroot00000000000000simpleagenda-0.44/tests/AllTests.h000066400000000000000000000001331320461325300171340ustar00rootroot00000000000000#import @interface AllTests : TestSuite + (AllTests *)suite; @end simpleagenda-0.44/tests/AllTests.m000066400000000000000000000012011320461325300171360ustar00rootroot00000000000000#import "AllTests.h" #import "DateTest.h" #import "RecurrenceRuleTest.h" #import "MemoryStoreTest.h" #import "ElementTest.h" @implementation AllTests + (AllTests *)suite { return [[[self alloc] initWithName:@"All Example Tests"] autorelease]; } - (id)initWithName:(NSString *)aName { self = [super initWithName:aName]; if (self) { [self addTest:[TestSuite suiteWithClass:[DateTest class]]]; [self addTest:[TestSuite suiteWithClass:[ElementTest class]]]; [self addTest:[TestSuite suiteWithClass:[RecurrenceRuleTest class]]]; [self addTest:[TestSuite suiteWithClass:[MemoryStoreTest class]]]; } return self; } @end simpleagenda-0.44/tests/DateTest.h000066400000000000000000000001251320461325300171170ustar00rootroot00000000000000#import @class Date; @interface DateTest : TestCase { } @end simpleagenda-0.44/tests/DateTest.m000066400000000000000000000060171320461325300171320ustar00rootroot00000000000000#import "DateTest.h" #import "../Date.h" @implementation DateTest - (void)setUp { } - (void)tearDown { } - (void)testDateAndDateTime { Date *now = [Date now]; Date *today = [Date today]; Date *copy = [now copy]; [self assertFalse:[now isDate]]; [self assertTrue:[today isDate]]; [now setIsDate:YES]; [self assertTrue:[now isDate] message:@"now is a date"]; [self assertInt:[now hourOfDay] equals:0 message:@"a date hourOfDay is 0"]; [self assertInt:[now minuteOfHour] equals:0 message:@"a date minuteOfHour is 0"]; [self assertInt:[now secondOfMinute] equals:0 message:@"a date secondOfMinute is 0"]; [self assertInt:[now compare:copy withTime:NO] equals:0 message:@"comparing with date only we have equality"]; [self assertInt:[now compare:copy withTime:YES] equals:-1]; [copy release]; Date *distantDate = [Date dateWithTimeInterval:60 sinceDate:today]; [self assertInt:[today compare:distantDate withTime:YES] equals:-1 message:@"today must be inferior as distantDay is 1 hour later. bug if distantDate is a date as today, not a datetime"]; } - (void)testDateManipulations { NSCalendarDate *cdate = [NSCalendarDate calendarDate]; Date *date = [Date dateWithCalendarDate:cdate withTime:YES]; [self assertTrue:[cdate timeIntervalSinceDate:[date calendarDate]]<1 message:@"going from a calendarDate to a date and back, the difference should less than 1 second, because of precision"]; } - (void)testDateEnumerator { Date *start = [Date now]; Date *end, *tmp, *last = nil; NSEnumerator *enumerator; [start setYear:2009]; [start setMonth:1]; [start setDay:1]; end = [start copy]; [end changeDayBy:20]; enumerator = [start enumeratorTo:end]; while ((tmp = [enumerator nextObject])) { [self assertTrue:[tmp isDate] message:@"Every object enumerated is a single Date, not a Datetime."]; if (last) [self assertTrue:([tmp timeIntervalSinceDate:last]==86400) message:@"Each date returned is 86400 later than the preceding one."]; ASSIGNCOPY(last, tmp); } [self assertInt:[last year] equals:2009 message:@"Year is the same."]; [self assertInt:[last monthOfYear] equals:1 message:@"Month is the same."]; [self assertInt:[last dayOfMonth] equals:21 message:@"1 + 20 = 21."]; RELEASE(last); } /* * I'm not sure these tests are meaningful but they should * prevent some bugs... */ - (void)testTimeZone { Date *d1, *d2, *d3; struct icaltimetype id; d1 = [Date now]; id = [d1 localICalTime]; d2 = [[Date alloc] initWithICalTime:id]; [self assertTrue:[d1 compare:d2 withTime:YES] == NSOrderedSame]; [self assertTrue:[[d1 calendarDate] compare:[d2 calendarDate]] == NSOrderedSame]; [self assertTrue:[[d1 calendarDate] isEqualToDate:[d2 calendarDate]]]; [d2 release]; id = [d1 UTCICalTime]; d3 = [[Date alloc] initWithICalTime:id]; [self assertTrue:[d1 compare:d3 withTime:YES] == NSOrderedSame]; [self assertTrue:[[d1 calendarDate] compare:[d3 calendarDate]] == NSOrderedSame]; [self assertTrue:[[d1 calendarDate] isEqualToDate:[d3 calendarDate]]]; [d3 release]; } @end simpleagenda-0.44/tests/ElementTest.h000066400000000000000000000001701320461325300176330ustar00rootroot00000000000000#import @class MemoryStore; @interface ElementTest : TestCase { MemoryStore *testStore; } @end simpleagenda-0.44/tests/ElementTest.m000066400000000000000000000015271320461325300176470ustar00rootroot00000000000000#import "ElementTest.h" #import "../MemoryStore.h" #import "../Element.h" #import "../Date.h" @implementation ElementTest - (void)setUp { } - (void)tearDown { } - (void)testUID { Element *e1, *e2; e1 = [[Element alloc] initWithSummary:@"1"]; e2 = [[Element alloc] initWithSummary:@"2"]; [self assertTrue:([e1 UID] != nil)]; [self assertTrue:([e1 UID] != nil)]; [self assertFalse:[[e2 UID] isEqualToString:[e1 UID]] message:@"Elements UIDs are differents."]; [e1 release]; [e2 release]; } - (void)testDefaults { Element *el = [Element new]; [self assertTrue:([el classification] == ICAL_CLASS_PUBLIC)]; [self assertNotNil:[el dateStamp]]; [self assertNotNil:[el categories]]; [self assertInt:[[el categories] count] equals:0]; [self assertFalse:[el hasAlarms]]; [self assertNotNil:[el alarms]]; [el release]; } @end simpleagenda-0.44/tests/GNUmakefile000066400000000000000000000014111320461325300173020ustar00rootroot00000000000000include $(GNUSTEP_MAKEFILES)/common.make include ../local.make TOOL_NAME = SimpleAgendaTests SimpleAgendaTests_OBJC_FILES = \ ../Date.m \ ../DateRange.m \ ../RecurrenceRule.m \ ../MemoryStore.m \ ../ConfigManager.m \ ../Event.m \ ../Element.m \ ../NSString+SimpleAgenda.m \ ../Alarm.m \ ../HourFormatter.m \ DateTest.m \ ElementTest.m \ RecurrenceRuleTest.m \ MemoryStoreTest.m \ AllTests.m \ main.m SimpleAgendaTests_TOOL_LIBS = -lObjcUnit -lical -lgnustep-gui #ifeq(have_libuuid,yes) ifeq ($(findstring openbsd, $(GNUSTEP_TARGET_OS)), openbsd) SimpleAgendaTests_TOOL_LIBS += -le2fs-uuid else SimpleAgendaTests_TOOL_LIBS += -luuid endif #endif ADDITIONAL_OBJCFLAGS = -Wno-import -Wall include $(GNUSTEP_MAKEFILES)/tool.make -include GNUmakefile.postamble simpleagenda-0.44/tests/GNUmakefile.postamble000066400000000000000000000012161320461325300212720ustar00rootroot00000000000000# Things to do before compiling # before-all:: # Things to do after compiling after-all:: ./obj/$(TOOL_NAME) # Things to do before installing # before-install:: # Things to do after installing # after-install:: # Things to do before uninstalling # before-uninstall:: # Things to do after uninstalling # after-uninstall:: # Things to do before cleaning # before-clean:: # Things to do after cleaning after-clean:: -rm -f *.m.d *.m.o # Things to do before distcleaning # before-distclean:: # Things to do after distcleaning # after-distclean:: # Things to do before checking # before-check:: # Things to do after checking # after-check:: simpleagenda-0.44/tests/MemoryStoreTest.h000066400000000000000000000001741320461325300205330ustar00rootroot00000000000000#import @class MemoryStore; @interface MemoryStoreTest : TestCase { MemoryStore *testStore; } @end simpleagenda-0.44/tests/MemoryStoreTest.m000066400000000000000000000034311320461325300205370ustar00rootroot00000000000000#import "MemoryStoreTest.h" #import "../MemoryStore.h" #import "../Event.h" #import "../Date.h" @interface SimpleStore : MemoryStore { } @end @implementation SimpleStore - (NSDictionary *)defaults { return nil; } @end @implementation MemoryStoreTest - (void)setUp { testStore = [[SimpleStore alloc] initWithName:@"testStore"]; } - (void)tearDown { [testStore release]; } - (void)testStoreCreation { MemoryStore *ms = [[SimpleStore alloc] initWithName:@"elementCount"]; [self assertTrue:(ms != nil) message:@"MemoryStore created."]; [self assertTrue:[ms events] && [ms tasks] message:@"Events and tasks dictionaries exist."]; [self assertTrue:([[ms events] count] == 0 && [[ms tasks] count] == 0) message:@"MemoryStore is empty on creation."]; [ms release]; } - (void)testStoreRetainCount { Event *ev = [[Event alloc] initWithStartDate:[Date now] duration:60 title:@"Title"]; [self assertInt:[ev retainCount] equals:1 message:@""]; [testStore add:ev]; [self assertInt:[ev retainCount] equals:2 message:@""]; [testStore add:ev]; [self assertInt:[ev retainCount] equals:2 message:@""]; [testStore remove:ev]; [self assertInt:[ev retainCount] equals:1 message:@""]; [ev release]; } - (void)testStoreElementCount { MemoryStore *ms = [[SimpleStore alloc] initWithName:@"elementCount"]; Event *ev = [[Event alloc] initWithStartDate:[Date now] duration:60 title:@"Title"]; [ms add:ev]; [self assertInt:[[ms events] count] equals:1 message:@"We added an event to the store."]; [ms add:ev]; [self assertInt:[[ms events] count] equals:1 message:@"If adding the same event twice, it appears only once."]; [ms remove:ev]; [self assertInt:[[ms events] count] equals:0 message:@"After removing this event the store is empty again."]; [ev release]; [ms release]; } @end simpleagenda-0.44/tests/RecurrenceRuleTest.h000066400000000000000000000001221320461325300211640ustar00rootroot00000000000000#import @interface RecurrenceRuleTest : TestCase { } @end simpleagenda-0.44/tests/RecurrenceRuleTest.m000066400000000000000000000011221320461325300211720ustar00rootroot00000000000000#import "RecurrenceRuleTest.h" #import "../RecurrenceRule.h" @implementation RecurrenceRuleTest - (void)testYearlyCount { int count = 0; Date *tmp; NSEnumerator *enumerator; RecurrenceRule *rule = [[RecurrenceRule alloc] initWithFrequency:recurrenceFrequenceYearly count:3]; enumerator = [rule enumeratorFromDate:[Date today]]; while ((tmp = [enumerator nextObject])) { count++; [self assertTrue:[tmp isDate] message:@"Recurrence enumerators return dates."]; } [self assertInt:count equals:3 message:@"Iterator should return only 3 dates."]; [rule release]; } @end simpleagenda-0.44/tests/main.m000066400000000000000000000002311320461325300163310ustar00rootroot00000000000000#import #import "AllTests.h" int main (int argc, const char * argv[]) { TestRunnerMain([AllTests class]); return 0; }