+2004-08-13 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * v0.9.32
+
+ * UIxCalView.m: shouldHideWeekend according to new default,
+ SOGoShouldDisplayWeekend.
+
+ * UIxCalWeekOverview.wox, UIxCalWeekColumnsview.wox: use new dynamic
+ value for "hideWeekend" association.
+
+ * NOTES: new "Defaults" section.
+
2004-08-13 Helge Hess <helge.hess@skyrix.com>
* UIxCalWeekColumnsview.wox: hide weekend (requires libWEExtensions
=> SoProductResourceManager
/zidestore/ControlPanel/Products/ZideStoreUI/Resources/calendar.css
=> resource
+
+
+Defaults
+========
+
+Name Type Synopsis
+SOGoShouldDisplayWeekend BOOL Display weekends in week related views.
+ Default is NO.
@implementation UIxCalView
+static BOOL shouldDisplayWeekend = NO;
+
++ (void)initialize {
+ NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
+ shouldDisplayWeekend = [ud boolForKey:@"SOGoShouldDisplayWeekend"];
+}
+
- (void)dealloc {
[self->appointments release];
[self->allDayApts release];
}
- (BOOL)shouldDisplayWeekend {
- return NO;
+ return shouldDisplayWeekend;
+}
+
+- (BOOL)shouldHideWeekend {
+ return ![self shouldDisplayWeekend];
}
const:contentColor="#e8e8e0"
const:cellpadding="0"
const:cellspacing="2"
- const:hideWeekend="YES"
+ const:hideWeekend="shouldHideWeekend"
>
<var:weekcol-title>
<table cellpadding="0" width="100%" border="0" cellspacing="0"
const:startDateKey="startDate"
const:endDateKey="endDate"
const:titleStyle="weekoverview_title"
- const:hideWeekend="YES"
+ hideWeekend="shouldHideWeekend"
contentStyle="contentStyle"
>
<var:week-title>
# $Id$
-SUBMINOR_VERSION:=31
+SUBMINOR_VERSION:=32
# v0.9.31 requires libWEExtensions v4.2.52
# v0.9.29 requires libWEExtensions v4.2.51