+2004-09-07 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * README: Update with information regarding localization
+
2004-08-26 Marcus Mueller <znek@mulle-kybernetik.com>
* Added "Mailer" product.
==
The UI directory contains HTML view methods for the SOPE SoObjects.
+
+
+Localization
+============
+
+Each bundle has its own set of localization files, contained in a language
+project directory (i.e. English.lproj). Because of this fact it might be
+possible that you have to localize a certain label more than once.
\ No newline at end of file
+2004-09-07 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * v0.9.78
+
+ * UIxCalDayOverview.m, UIxCalDayChartview.m: minor cleanups
+
+ * UIxCalDayOverview.wox, UIxCalDayChartview.wox: added style
+ information for appointments, used for colorization (doesn't work
+ due to style problems - needs to get investigated later on)
+
+ * UIxCalDayListview.[m|wox]: started implementation of list view,
+ not quite finished.
+
2004-09-06 Marcus Mueller <znek@mulle-kybernetik.com>
* UIxAppointmentEditor.wox: fixed incorrect label (v0.9.77)
#include "UIxCalDayView.h"
-#include "common.h"
@interface UIxCalDayChartview : UIxCalDayView
{
@end
+#include "common.h"
@implementation UIxCalDayChartview
const:rowHeight="8"
const:width="100%"
const:border="0"
- const:cellpading="5"
+ const:cellpadding="5"
const:cellspacing="2"
>
<var:matrix-label const:elementName="td"
const:position="left"
- const:bgcolor="#e8e8e0"
+ const:bgcolor="#d6d6ce"
const:width="2"
>
- <var:string value="currentDate"
- const:dateformat="%H:%M"
- />
<span class="dayoverview_content_time_link">
+ <var:string value="currentDate"
+ const:dateformat="%H:%M"
+ />
[<a href="new"
var:queryDictionary="currentDateQueryParameters"
><var:string label:value="new" /></a>]
<a var:href="appointmentViewURL"
var:queryDictionary="currentDateQueryParameters"
var:title="tooltipForApt"
+ var:class="aptStyle"
><var:string value="shortTextForApt"
const:escapeHTML="NO"
/></a>
#include "UIxCalDayView.h"
-#include "common.h"
@interface UIxCalDayListview : UIxCalDayView
{
-
+ NSArray *uids;
+ id currentUid;
}
@end
+#include "common.h"
@implementation UIxCalDayListview
+- (void)dealloc {
+ [self->uids release];
+ [self->currentUid release];
+ [super dealloc];
+}
+
+- (NSArray *)uids {
+ if(!self->uids) {
+ NSArray *tmp;
+ NSSet *availUIDs;
+
+ tmp = [[self appointments] valueForKey:@"uid"];
+ availUIDs = [[NSSet alloc] initWithArray:tmp];
+ tmp = [[availUIDs allObjects] sortedArrayUsingSelector:@selector(compareAscending:)];
+ self->uids = [tmp retain];
+ }
+ return self->uids;
+}
+
+- (NSString *)shortTextForApt {
+ return [[self appointment] valueForKey:@"title"];
+}
+
@end
className="UIxPageFrame"
title="name"
>
- <table id="skywintable" class="wintable" cellspacing="0" cellpadding="5" width="100%">
+ <table id="skywintable"
+ class="wintable"
+ cellspacing="0"
+ cellpadding="5"
+ width="100%"
+ >
<tr>
<td class="wintitle">
<table cellpadding="0" cellspacing="0" width="100%">
</tr>
</table>
</td>
- <td>
+ <td width="100%">
<table class="dayoverview_content" width="100%">
- <var:foreach list="dateRange" item="currentDate">
- <tr>
- <td class="dayoverview_content_time">
- <var:string value="currentDate"
- const:dateformat="%H:%M"
- />
- <br />
+ <td width="100%" valign="top">
+ <var:hspan-matrix list="appointments"
+ item="appointment"
+ rows="uids"
+ row="currentUid"
+ columns="dateRange"
+ column="currentDate"
+ itemActive="isCurrentDateInApt"
+ const:isRowActive="YES"
+ const:rowHeight="8"
+ const:width="100%"
+ const:border="0"
+ const:cellpadding="0"
+ const:cellspacing="2"
+ >
+ <var:matrix-label const:elementName="td"
+ const:position="top"
+ const:bgcolor="#d6d6ce"
+ const:align="center"
+ >
<span class="dayoverview_content_time_link">
+ <var:string value="currentDate"
+ const:dateformat="%H:%M"
+ />
[<a href="new"
var:queryDictionary="currentDateQueryParameters"
><var:string label:value="new" /></a>]
</span>
- </td>
- <td class="dayoverview_content_apts">
- <var:foreach list="aptsForCurrentDate" item="appointment">
- <a var:href="appointmentViewURL"
- var:queryDictionary="currentDateQueryParameters"
- ><var:string value="shortTextForApt"
- const:escapeHTML="NO"
- /></a>
- <br />
- </var:foreach>
- </td>
- </tr>
- </var:foreach>
+ </var:matrix-label>
+
+ <var:matrix-label const:elementName="td"
+ const:position="left"
+ const:bgcolor="#efefe7"
+ >
+ <var:string value="currentUid" />
+ </var:matrix-label>
+ <!-- TODO: use css instead! -->
+ <var:matrix-empty const:elementName="td"
+ const:bgcolor="#efefe7"
+ >
+ </var:matrix-empty>
+ <!-- TODO: use css instead! -->
+ <var:matrix-cell const:elementName="td"
+ const:bgcolor="#d6d6ce"
+ const:valign="top"
+ >
+ <a var:href="appointmentViewURL"
+ var:queryDictionary="currentDateQueryParameters"
+ var:title="tooltipForApt"
+ var:class="aptStyle"
+ ><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></a>
+ </var:matrix-cell>
+ </var:hspan-matrix>
+ </td>
</table>
</td>
</tr>
<a var:href="appointmentViewURL"
var:queryDictionary="currentDateQueryParameters"
var:title="tooltipForApt"
+ var:class="aptStyle"
><var:string value="shortTextForApt"
const:escapeHTML="NO"
/></a>
<a var:href="appointmentViewURL"
var:queryDictionary="currentDateQueryParameters"
var:title="tooltipForApt"
+ var:class="aptStyle"
><var:string value="shortTextForApt"
const:escapeHTML="NO"
/></a>
#import "UIxCalDayView.h"
#include <EOControl/EOControl.h>
-#include "common.h"
@interface UIxCalDayView (PrivateAPI)
- (BOOL)isCurrentDateInApt:(id)_apt;
- (NSArray *)_getDatesFrom:(NSCalendarDate *)_from to:(NSCalendarDate *)_to;
@end
+#include "common.h"
+
@implementation UIxCalDayView
- (void)dealloc {