source: gs2-extensions/iOS-1.x/trunk/PrefTable.h@ 22548

Last change on this file since 22548 was 22548, checked in by davidb, 12 years ago

Original version of Greenstone2 app for iPhone/iPod-touch

File size: 1.2 KB
Line 
1#import <UIKit/UIKit.h>
2#import <UIKit/UIPreferencesTable.h>
3#import <UIKit/UIPreferencesTextTableCell.h>
4#import <UIKit/UISwitchControl.h>
5#import <UIKit/UISegmentedControl.h>
6#import <UIKit/UISliderControl.h>
7
8#define NUM_GROUPS 2
9#define CELLS_PER_GROUP 2
10
11@interface PrefTable : UIPreferencesTable
12{
13 UIPreferencesTableCell *cells[NUM_GROUPS][CELLS_PER_GROUP];
14 UIPreferencesTableCell *groupcell[NUM_GROUPS];
15
16 UISegmentedControl *langControl;
17
18 UISwitchControl *stemmingControl;
19 UISwitchControl *caseControl;
20}
21
22- (id)initWithFrame:(CGRect)rect;
23- (int)numberOfGroupsInPreferencesTable:(UIPreferencesTable *)aTable;
24- (UIPreferencesTableCell *)preferencesTable:
25 (UIPreferencesTable *)aTable
26 cellForGroup:(int)group;
27- (float)preferencesTable:(UIPreferencesTable *)aTable
28 heightForRow:(int)row
29 inGroup:(int)group
30 withProposedHeight:(float)proposed;
31- (BOOL)preferencesTable:(UIPreferencesTable *)aTable
32 isLabelGroup:(int)group;
33- (UIPreferencesTableCell *)preferencesTable:
34 (UIPreferencesTable *)aTable
35 cellForRow:(int)row
36 inGroup:(int)group;
37
38-(NSString*) languagePref;
39
40@end
41
Note: See TracBrowser for help on using the repository browser.