]> git.saurik.com Git - cydia.git/blob - UICaboodle/RVBook.h
Renamed News to Home and started pre-caching tabs for perceived performance.
[cydia.git] / UICaboodle / RVBook.h
1 #import "UICaboodle.h"
2
3 #import <UIKit/UIView.h>
4
5 @class NSMutableArray;
6 @class RVPage;
7 @class UINavigationBar;
8 @class UITransitionView;
9
10 @protocol RVDelegate
11 - (void) setPageActive:(BOOL)active with:(id)object;
12 - (void) resetViewAnimated:(BOOL)animated with:(id)object;
13 - (void) reloadDataWith:(id)object;
14 @end
15
16 @interface RVBook : UIView {
17 NSMutableArray *pages_;
18 UINavigationBar *navbar_;
19 UITransitionView *transition_;
20 BOOL resetting_;
21 _transient id delegate_;
22 }
23
24 - (id) initWithFrame:(CGRect)frame;
25 - (void) setDelegate:(id)delegate;
26
27 - (void) setPage:(RVPage *)page;
28
29 - (void) pushPage:(RVPage *)page;
30 - (void) popPages:(unsigned)pages;
31
32 - (void) setPrompt:(NSString *)prompt;
33
34 - (void) resetViewAnimated:(BOOL)animated;
35 - (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page;
36
37 - (void) setTitle:(NSString *)title forPage:(RVPage *)page;
38 - (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page;
39 - (void) reloadButtonsForPage:(RVPage *)page;
40 - (NSString *) getTitleForPage:(RVPage *)page;
41
42 - (void) reloadData;
43
44 - (CGRect) pageBounds;
45
46 @end