]> git.saurik.com Git - cydia.git/blob - UICaboodle/RVBook.h
Finished implementing Storage.
[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 RVNavigationBarDelegate
11 @end
12
13 @protocol RVDelegate
14 - (void) setPageActive:(BOOL)active with:(id)object;
15 - (void) resetViewAnimated:(BOOL)animated with:(id)object;
16 - (void) reloadDataWith:(id)object;
17 @end
18
19 @interface RVBook : UIView <
20 RVNavigationBarDelegate
21 > {
22 NSMutableArray *pages_;
23 UINavigationBar *navbar_;
24 UITransitionView *transition_;
25 BOOL resetting_;
26 _transient id delegate_;
27 }
28
29 - (UINavigationBar *) navigationBar;
30
31 - (id) initWithFrame:(CGRect)frame;
32 - (void) setDelegate:(id)delegate;
33
34 - (void) setPage:(RVPage *)page;
35
36 - (void) pushPage:(RVPage *)page;
37 - (void) popPages:(unsigned)pages;
38
39 - (void) resetViewAnimated:(BOOL)animated;
40 - (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page;
41
42 - (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page;
43 - (void) reloadTitleForPage:(RVPage *)page;
44 - (void) reloadButtonsForPage:(RVPage *)page;
45 - (NSString *) getTitleForPage:(RVPage *)page;
46
47 - (void) reloadData;
48
49 - (CGRect) pageBounds;
50
51 @end