From: helge Date: Sat, 2 Oct 2004 02:09:05 +0000 (+0000) Subject: first msg view X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00ac39c18ee208fc2b88eac54945eaeed65abd4c;p=scalable-opengroupware.org first msg view git-svn-id: http://svn.opengroupware.org/SOGo/trunk@338 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/UI/Mailer/ChangeLog b/SOGo/UI/Mailer/ChangeLog index 47845a4b..ddd1f9c5 100644 --- a/SOGo/UI/Mailer/ChangeLog +++ b/SOGo/UI/Mailer/ChangeLog @@ -1,3 +1,11 @@ +2004-10-02 Helge Hess + + * v0.9.7 + + * show messages in an IMAP4 folder + + * mailer.css: remote calendar CSS not required in mailer + 2004-09-29 Helge Hess * added toolbar images (v0.9.6) diff --git a/SOGo/UI/Mailer/UIxMailListView.m b/SOGo/UI/Mailer/UIxMailListView.m index f94e21d8..ab945b94 100644 --- a/SOGo/UI/Mailer/UIxMailListView.m +++ b/SOGo/UI/Mailer/UIxMailListView.m @@ -25,7 +25,6 @@ @interface UIxMailListView : UIxComponent { - } @end @@ -36,17 +35,29 @@ @implementation UIxMailListView -- (id)defaultAction { - NSArray *uids; - NSArray *msgs; +- (NSString *)messageSubject { + id tmp; - [self logWithFormat:@"default action ..."]; + tmp = [self valueForKeyPath:@"message.envelope.subject"]; + if ([tmp isKindOfClass:[NSString class]]) + return tmp; + if ([tmp isKindOfClass:[NSData class]]) { // TODO: change that somehow ... + tmp = [[NSString alloc] initWithData:tmp encoding:NSUTF8StringEncoding]; + return [tmp autorelease]; + } + return [tmp stringValue]; +} + +- (NSArray *)messages { + NSArray *uids; + NSArray *msgs; + uids = [[self clientObject] fetchUIDsMatchingQualifier:nil sortOrdering:@"SUBJECT" range:NSMakeRange(0, 50)]; - [self logWithFormat:@"UIDs: %@", [uids componentsJoinedByString:@", "]]; + [self logWithFormat:@"#UIDs: %d", [uids count]]; /* Allowed fetch keys: @@ -68,8 +79,11 @@ @"ENVELOPE", nil]]; [self logWithFormat:@" msg #%d", [[msgs valueForKey:@"fetch"] count]]; - // keys: envelope - + return [msgs valueForKey:@"fetch"]; +} + +- (id)defaultAction { + [self logWithFormat:@"default action ..."]; return self; } diff --git a/SOGo/UI/Mailer/UIxMailListView.wox b/SOGo/UI/Mailer/UIxMailListView.wox index b9f4ed7f..c324b80a 100644 --- a/SOGo/UI/Mailer/UIxMailListView.wox +++ b/SOGo/UI/Mailer/UIxMailListView.wox @@ -23,6 +23,17 @@
+ + + + + + + + + + +
Folder List
diff --git a/SOGo/UI/Mailer/Version b/SOGo/UI/Mailer/Version index 0eb47da3..cab297dc 100644 --- a/SOGo/UI/Mailer/Version +++ b/SOGo/UI/Mailer/Version @@ -1,3 +1,3 @@ # $Id$ -SUBMINOR_VERSION:=6 +SUBMINOR_VERSION:=7 diff --git a/SOGo/UI/Mailer/mailer.css b/SOGo/UI/Mailer/mailer.css index b32121b6..caaa246e 100644 --- a/SOGo/UI/Mailer/mailer.css +++ b/SOGo/UI/Mailer/mailer.css @@ -28,717 +28,6 @@ font-size: 10pt; } -/* day overview */ - - -.dayoverview_content { - padding: 1px; - margin: 0px 0px 0px 0px; - vertical-align: top; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - letter-spacing: 0pt; - font-size: 9pt; -} - -.dayoverview_content_time { - background-color: #d2d2cc; - text-align: center; -} - -.dayoverview_content_time_link { - font-size: 8pt; -} -.dayoverview_content_time_link a { - color: #0033cc; - text-decoration: none; -} -.dayoverview_content_time_link a:hover { - color: #ff0000; - text-decoration: underline; -} - -.dayoverview_content_apts { - color: #0033cc; - background-color: #e8e8e0; - text-align: left; - vertical-align: top; -} - -.dayoverview_cal { - color: #000000; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - font-size: 10pt; - letter-spacing: 0pt; - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} - -.dayoverview_cal table { - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} - -.dayoverview_cal td { - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} - -.dayoverview_cal a { - color: #000000; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - font-size: 10pt; - letter-spacing: 0pt; - padding: 0px; - text-decoration: none; -} -.dayoverview_cal a:hover { - text-decoration: underline; -} - -.dayoverview_cal_title { - background-color: #d2d2cc; - text-align: center; - font-size: 10pt; - font-weight: bold; - letter-spacing: 0pt; -} - -.dayoverview_cal_day_header { - background-color: #d2d2cc; - text-align: center; - vertical-align: top; - font-size: 11pt; -/* width: 24px; */ -/* padding: 2px 2px 2px 2px; */ -/* margin: 2px 2px 2px 2px; */ -} - -.dayoverview_cal_content { - color: #0033cc; - background-color: #e8e8e0; - text-align: center; - vertical-align: top; -} - -.dayoverview_cal_content_hilite { - color: #0033cc; - background-color: #fffff0; - text-align: center; - vertical-align: top; -} - -.dayoverview_cal_content_selected { - color: #ff0000; -} -.dayoverview_cal_content_selected a { - color: #ff0000; -} -.dayoverview_cal_content_selected a:hover { - color: #ff0000; -} - -.dayoverview_cal_content_dimmed { - color: #0033cc; - background-color: #d2d2cc; - text-align: center; - vertical-align: top; -} -.dayoverview_cal_content_dimmed a { - color: #5a5a5a; -} -.dayoverview_cal_content_dimmed a:hover { - color: #5a5a5a; -} - - -/* day printview */ - - -.dayprintview { - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - letter-spacing: 0pt; - font-size: 10pt; -} - -td.dayprintview_time { - font-size: 10pt; - font-weight: bold; - text-align: center; -} - -td.dayprintview_content { - font-size: 10pt; - text-align: left; -} - -h1.dayprintview, h2.dayprintview { - font-size: 11pt; - font-weight: bold; - margin: 0px; - padding: 0px; - text-align: center; -} - -h1.dayprintview { - font-style: italic; -} - - -/* week overview */ - - -.weekoverview_title { - 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-size: 10pt; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - letter-spacing: 0pt; - color: #000000; - background-color: #d2d2cc; - font-weight: bold; -} - -.weekoverview_title_hilite a { - color: #0033cc; - text-decoration: none; -} - -.weekoverview_title_daylink { - font-size: 12pt; - color: #0033cc; - font-weight: bold; -} - -.weekoverview_title_newlink { - font-size: 8pt; -} - -.weekoverview_holidayinfo { - font-size: 8pt; - font-weight: bold; -} - -.weekoverview_content { - color: #FFFFFF; - background-color: #e8e8e0; -} - -.weekoverview_content a { - color: #0000FF; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - letter-spacing: 0pt; - text-decoration: none; -} - -.weekoverview_content_hilite { - background-color: #fffff0; -} - -.weekoverview_content_hilite a { - color: #0000FF; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - letter-spacing: 0pt; - text-decoration: none; -} - - -/* week columnsview */ - - -.weekcolumnsview { -} - -.weekcolumnsview_title { - font-size: 10pt; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - letter-spacing: 0pt; - color: #000000; - background-color: #d2d2cc; - padding: 4px; -} - -.weekcolumnsview_title a { - color: #0033cc; - text-decoration: none; -} - -.weekcolumnsview_title_hilite { - font-size: 10pt; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - letter-spacing: 0pt; - color: #000000; - background-color: #d2d2cc; - font-weight: bold; - padding: 4px; -} - -.weekcolumnsview_title_hilite a { - color: #0033cc; - text-decoration: none; -} - -.weekcolumnsview_title_daylink { - font-size: 12pt; - color: #0033cc; - font-weight: bold; -} - -.weekcolumnsview_title_newlink { - font-size: 8pt; -} - -.weekcolumnsview_holidayinfo { - font-size: 8pt; - font-weight: bold; -} - -.weekcolumnsview_content { - color: #FFFFFF; - background-color: #e8e8e0; -} - -.weekcolumnsview_content a { - color: #0000FF; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - letter-spacing: 0pt; - text-decoration: none; -} - -.weekcolumnsview_content_hilite { - background-color: #fffff0; -} - -.weekcolumnsview_content_hilite a { - color: #0000FF; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - letter-spacing: 0pt; - text-decoration: none; -} - -.weekcolumnsview_cal { - color: #000000; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - font-size: 10pt; - letter-spacing: 0pt; - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} - -.weekcolumnsview_cal table { - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} - -.weekcolumnsview_cal td { - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} - -.weekcolumnsview_cal a { - color: #000000; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - font-size: 10pt; - letter-spacing: 0pt; - padding: 0px; - text-decoration: none; -} -.weekcolumnsview_cal a:hover { - text-decoration: underline; -} - -.weekcolumnsview_cal_title { - background-color: #d2d2cc; - text-align: center; - font-size: 10pt; - font-weight: bold; - letter-spacing: 0pt; -} - -.weekcolumnsview_cal_day_header { - background-color: #d2d2cc; - text-align: center; - vertical-align: middle; - font-size: 11pt; - width: 20px; - padding: 2px 2px 2px 2px; - margin: 2px 2px 2px 2px; -} - -.weekcolumnsview_cal_content { - color: #000000; - background-color: #e8e8e0; - text-align: center; - vertical-align: middle; - font-size: 10pt; - letter-spacing: 0pt; -} - -.weekcolumnsview_cal_content_hilite { - color: #000000; - background-color: #fffff0; - text-align: center; - vertical-align: middle; - font-size: 10pt; - letter-spacing: 0pt; -} - -.weekcolumnsview_cal_content_dimmed { - color: #5a5a5a; - background-color: #d2d2cc; - text-align: center; - vertical-align: middle; - font-size: 10pt; - letter-spacing: 0pt; -} - -.weekcolumnsview_cal_week { - background-color: #d2d2cc; - width: 16pt; - text-align: center; - vertical-align: middle; -} - - -/* week printview */ - -td.weekprintview { - border: 1px solid; -} - -h1.weekprintview, h2.weekprintview { - font-size: 10pt; - font-weight: bold; - margin: 0px; - padding: 0px; - text-align: center; -} - -h1.weekprintview { - font-size: 12pt; - font-style: italic; -} - - -.weekprintview_title { - font-size: 11pt; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - letter-spacing: 0pt; -} - -.weekprintview_title_hilite a { - color: #0033cc; - text-decoration: none; -} - -.weekprintview_holidayinfo { - font-size: 10pt; - font-weight: bold; -} - -.weekprintview_content, .weekprintview_apt_time { - font-size: 10pt; -} - -.weekprintview_apt_time { - font-weight: bold; - font-style: italic; -} - - -/* month overview */ - - -.monthoverview { - color: #000000; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - font-size: 10pt; - letter-spacing: 0pt; - padding: 2px; -} - -.monthoverview a { - color: #0033cc; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - font-size: 7pt; - font-style: normal; - font-weight: normal; - letter-spacing: 0pt; - text-decoration: none; -} - -.monthoverview a:hover { - text-decoration: underline; -} - -.monthoverview_title { - background-color: #d2d2cc; - text-align: center; -} - -.monthoverview_week { - background-color: #d2d2cc; - width: 16pt; - text-align: center; - vertical-align: middle; -} - -.monthoverview_week a { - color: #000000; - font-size: 10pt; -} - -.monthoverview_week_hilite { - background-color: #fffff0; - width: 16pt; - text-align: center; - vertical-align: middle; -} - -.monthoverview_week_hilite a { - color: #000000; - font-size: 10pt; -} - -.monthoverview_content { - background-color: #e8e8e0; - font-size: 9pt; - height: 60; -} -.monthoverview_content a { - font-style: italic; - font-weight: bold; -} -.monthoverview_content td { - text-align: left; - vertical-align: top; -} - -.monthoverview_content_hilite { - background-color: #fffff0; - font-size: 9pt; - height: 60; -} -.monthoverview_content_hilite a { - font-style: italic; - font-weight: bold; -} -.monthoverview_content_hilite td { - text-align: left; - vertical-align: top; -} - -.monthoverview_content_dimmed { - background-color: #d2d2cc; - font-size: 9pt; - height: 60; -} -.monthoverview_content_dimmed a { - font-style: normal; - font-weight: normal; -} -.monthoverview_content_dimmed td { - text-align: left; - vertical-align: top; -} - -.monthoverview_day a { - color: #000000; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - font-size: 12pt; -} - -.monthoverview_day_new a { - font-style: normal; - font-weight: normal; -} - -.monthoverview_day_new a:hover { - font-style: normal; - font-weight: normal; - color: #ff0000; -} - -.monthoverview_content_link { - font-style: normal; - font-weight: normal; -} - -/* month printview */ - -.monthprintview { - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - letter-spacing: 0pt; - font-size: 9pt; -} - -h1.monthprintview_header, h2.monthprintview_header { - font-size: 10pt; - font-weight: bold; - margin: 0px; - padding: 0px; - text-align: center; -} - -h1.monthprintview_header { - font-size: 12pt; - font-style: italic; -} - -.monthprintview_title { - text-align: center; -} - -.monthprintview_week { - width: 16pt; - text-align: center; - vertical-align: middle; -} - -.monthprintview_apt, .monthprintview_apt_time { - font-size: 7pt; -} - -.monthprintview_apt_time { - font-weight: bold; - font-style: italic; -} - -td.monthprintview_content { - text-align: left; - vertical-align: top; - font-style: italic; - font-weight: bold; - font-size: 12pt; - height: 60; -} - -td.monthprintview_content_dimmed { - text-align: left; - vertical-align: top; - font-size: 12pt; - height: 60; -} - - -/* year overview */ - - -.yearoverview { - color: #000000; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - font-size: 10pt; - letter-spacing: 0pt; - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} - -.yearoverview table { - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} - -.yearoverview td { - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; -} - -.yearoverview a { - color: #000000; - font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; - font-size: 10pt; - letter-spacing: 0pt; - padding: 0px; - text-decoration: none; -} -.yearoverview a:hover { - text-decoration: underline; -} - -.yearoverview_title { - background-color: #d2d2cc; - text-align: center; - font-size: 10pt; - font-weight: bold; - letter-spacing: 0pt; -} - -.yearoverview_day_header { - background-color: #d2d2cc; - text-align: center; - vertical-align: middle; - font-size: 10pt; - width: 18px; /* this delimits all td's! */ -} - -.yearoverview_content { - color: #0033cc; - background-color: #e8e8e0; - text-align: center; - vertical-align: middle; - font-weight: bold; - font-style: italic; -} -.yearoverview_content a { - color: #0033cc; -} -.yearoverview_content a:hover { - color: #ff0000; -} - -.yearoverview_content_hilite { - color: #0033cc; - background-color: #fffff0; - text-align: center; - vertical-align: middle; - font-weight: bold; - font-style: italic; -} -.yearoverview_content_hilite a { - color: #0033cc; -} -.yearoverview_content_hilite a:hover { - color: #ff0000; -} - -.yearoverview_content_dimmed { - color: #0033cc; - background-color: #d2d2cc; - text-align: center; - vertical-align: middle; -} -.yearoverview_content_dimmed a { - color: #0033cc; -} -.yearoverview_content_dimmed a:hover { - color: #ff0000; -} - -.yearoverview_week { - background-color: #d2d2cc; - width: 16pt; - text-align: center; - vertical-align: middle; -} - -.yearoverview_week_hilite { - background-color: #fffff0; - width: 16pt; - text-align: center; - vertical-align: middle; -} - - /* new stuff for Thunderbird like mailer */ @@ -843,3 +132,11 @@ td.tb_icon a { .tbicon_junk { background-image: url(tbtb_trash.png); } .tbicon_print { background-image: url(tbtb_print.png); } .tbicon_stop { background-image: url(tbtb_deletedoc.png); } + + +/* mail tableview */ + +.tableview { + font-size: 10pt; + font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; +}