From http://www.jwz.org/xscreensaver/xscreensaver-5.16.tar.gz
[xscreensaver] / OSX / SaverListController.h
1 /* xscreensaver, Copyright (c) 2012 Jamie Zawinski <jwz@jwz.org>
2  *
3  * Permission to use, copy, modify, distribute, and sell this software and its
4  * documentation for any purpose is hereby granted without fee, provided that
5  * the above copyright notice appear in all copies and that both that
6  * copyright notice and this permission notice appear in supporting
7  * documentation.  No representations are made about the suitability of this
8  * software for any purpose.  It is provided "as is" without express or 
9  * implied warranty.
10  *
11  * This implements the top-level screen-saver selection list in the iOS app.
12  */
13
14 #ifdef USE_IPHONE
15
16 #import <UIKit/UIKit.h>
17
18 @interface SaverListController : UITableViewController {
19
20   int active_section_count;
21   NSMutableArray *list_by_letter[26];  // 27 to get "#" after "Z".
22   NSMutableArray *letter_sections;
23   NSMutableArray *section_titles;
24   NSString *selected;
25   NSDictionary *descriptions;
26
27   int tap_count;
28   NSTimer *tap_timer;
29   NSIndexPath *last_tap;
30 }
31
32 - (id)initWithNames:(NSArray *)names descriptions:(NSDictionary *)descs;
33 - (void) reload:(NSArray *)names descriptions:(NSDictionary *)descs;
34 - (NSString *) selected;
35 - (void) scrollTo:(NSString *)name;
36 @end
37
38 #endif // USE_IPHONE