From: znek Date: Fri, 18 Jun 2004 18:30:12 +0000 (+0000) Subject: proper week overview calendar X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2af165a025e8f0989678066a3d05bece8aede915;p=scalable-opengroupware.org proper week overview calendar git-svn-id: http://svn.opengroupware.org/SOGo/trunk@51 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/ZideStore/UI-X/ChangeLog b/ZideStore/UI-X/ChangeLog index 483f30a8..a7606a8a 100644 --- a/ZideStore/UI-X/ChangeLog +++ b/ZideStore/UI-X/ChangeLog @@ -1,3 +1,8 @@ +2004-06-18 Marcus Mueller + + * Implemented proper calendar in week overview. Highlighting isn't + enabled, yet. + 2004-06-18 Marcus Mueller * Common/OGoComponent.[hm]: new component which serves as a base diff --git a/ZideStore/UI-X/Common/calendar.css b/ZideStore/UI-X/Common/calendar.css index e650c67d..e2a66ed7 100644 --- a/ZideStore/UI-X/Common/calendar.css +++ b/ZideStore/UI-X/Common/calendar.css @@ -1,23 +1,46 @@ .date_label { color: #06348b; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; + font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; font-size: 12pt; font-weight: bold; } .weekoverview_title { - font-size: 8pt; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - letter-spacing: 0pt; - color: #ff0000; + font-size: 10pt; + font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; + letter-spacing: 0pt; + color: #000000; background-color: #d2d2cc; } +.weekoverview_title a { + color: #0033cc; + text-decoration: none; +} + +.weekoverview_title_hilite { + font-weight: bold; +} + +.weekoverview_title_daylink { + font-size: 12pt; + color: #0033cc; + font-weight: bold; +} + +.weekoverview_title_newlink { + font-size: 8pt; +} + .weekoverview_content { color: #FFFFFF; background-color: #e8e8e0; } +.weekoverview_content_hilite { + background-color: #f5f5e9; +} + .weekoverview_content a { color: #0000FF; font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; diff --git a/ZideStore/UI-X/Scheduler/OGoCalWeekOverview.m b/ZideStore/UI-X/Scheduler/OGoCalWeekOverview.m index f254f136..2f9ec5f3 100644 --- a/ZideStore/UI-X/Scheduler/OGoCalWeekOverview.m +++ b/ZideStore/UI-X/Scheduler/OGoCalWeekOverview.m @@ -24,6 +24,8 @@ @interface OGoCalWeekOverview : OGoCalWeekView { + int dayIndex; + NSCalendarDate *currentDay; } @end @@ -37,4 +39,43 @@ return [self fetchCoreInfos]; } +- (void)setCurrentDay:(NSCalendarDate *)_day { + ASSIGN(self->currentDay, _day); +} + +- (NSCalendarDate *)currentDay { + return self->currentDay; +} + +- (NSString *)currentDayName { + return [self->currentDay descriptionWithCalendarFormat:@"%A"]; +} + +- (void)setDayIndex:(char)_idx { + NSCalendarDate *d; + + if ((self->dayIndex == _idx) && (self->currentDay != nil)) + return; + + self->dayIndex = _idx; + + if (_idx > 0) { + d = [[self startDate] + dateByAddingYears:0 months:0 days:_idx + hours:0 minutes:0 seconds:0]; + } + else + d = [self startDate]; + + [self setCurrentDay:d]; +} + +- (int)dayIndex { + return self->dayIndex; +} + +- (NSDictionary *)currentDayQueryParameters { + return [self queryParametersBySettingSelectedDate:self->currentDay]; +} + @end /* OGoCalWeekOverview */ diff --git a/ZideStore/UI-X/Scheduler/OGoCalWeekOverview.wox b/ZideStore/UI-X/Scheduler/OGoCalWeekOverview.wox index b0add1c5..39b0dbed 100644 --- a/ZideStore/UI-X/Scheduler/OGoCalWeekOverview.wox +++ b/ZideStore/UI-X/Scheduler/OGoCalWeekOverview.wox @@ -79,7 +79,34 @@ - + + + + + + + +
+ + +
+ [new] +
+