2 Copyright (C) 2000-2005 SKYRIX Software AG
4 This file is part of OpenGroupware.org.
6 OGo is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with OGo; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #import <SOGoUI/UIxComponent.h>
24 @interface UIxContactsFilterPanel : UIxComponent
27 NSString *searchCriteria;
32 @implementation UIxContactsFilterPanel
34 static NSArray *filters = nil;
38 NSMutableDictionary *md;
41 md = [[NSMutableDictionary alloc] initWithCapacity:8];
42 ma = [[NSMutableArray alloc] initWithCapacity:4];
45 [md release]; md = nil;
46 [ma release]; ma = nil;
51 if ((self = [super init]))
62 [searchCriteria release];
69 - (void) setSearchText: (NSString *)_txt
71 ASSIGNCOPY(searchText, _txt);
74 - (void) setSearchCriteria: (NSString *)_txt
76 ASSIGNCOPY(searchText, _txt);
79 - (NSString *) searchText
82 searchText = [[self queryParameterForKey: @"search"] copy];
87 - (NSString *) searchCriteria
90 searchCriteria = [[self queryParameterForKey: @"criteria"] copy];
92 return searchCriteria;
104 - (NSString *) filterLabel
107 return [[[self context] page] labelForKey: @"filter"];
109 return [self valueForKey: @"filter"];
113 - (NSString *) selectedFilter
115 return [self queryParameterForKey: @"filterpopup"];
118 @end /* UIxContactsFilterPanel */