search capabilites

This commit is contained in:
Alexandre Cloutier
2014-05-08 17:17:05 -04:00
parent ba7b65cf7b
commit b2ed7e3f6b
9 changed files with 792 additions and 620 deletions

View File

@@ -1,8 +1,7 @@
/* UIxCalMainView.m - this file is part of SOGo
*
* Copyright (C) 2006-2009 Inverse inc.
* Copyright (C) 2006-2014 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -132,6 +131,30 @@
return yearMenuItems;
}
- (NSArray *) tasksFilters
{
return [NSArray arrayWithObjects: @"view_all", @"view_today", @"view_next7",
@"view_next14", @"view_next31", @"view_thismonth",
@"view_not_started", @"view_overdue", @"view_incomplete", nil];
}
- (NSString *) tasksFilterLabel
{
return [self labelForKey: [self valueForKey:@"taskFilter"]];
}
- (NSString *) selectedTasksFilter
{
NSString *selectedFilter;
selectedFilter = [self queryParameterForKey: @"tasksFilterpopup"];
if (![selectedFilter length])
selectedFilter = @"view_today";
return selectedFilter;
}
- (void) setYearMenuItem: (NSNumber *) aYearMenuItem
{
yearMenuItem = aYearMenuItem;