]>
Commit | Line | Data |
---|---|---|
77f175ac JF |
1 | #import "UICaboodle.h" |
2 | ||
3 | #import <UIKit/UIView.h> | |
4 | ||
5 | @class NSMutableArray; | |
6 | @class RVPage; | |
7 | @class UINavigationBar; | |
8 | @class UITransitionView; | |
9 | ||
bde2d79b JF |
10 | @protocol RVNavigationBarDelegate |
11 | @end | |
12 | ||
77f175ac JF |
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 | ||
bde2d79b JF |
19 | @interface RVBook : UIView < |
20 | RVNavigationBarDelegate | |
21 | > { | |
77f175ac JF |
22 | NSMutableArray *pages_; |
23 | UINavigationBar *navbar_; | |
24 | UITransitionView *transition_; | |
25 | BOOL resetting_; | |
26 | _transient id delegate_; | |
27 | } | |
28 | ||
20b8724d JF |
29 | - (UINavigationBar *) navigationBar; |
30 | ||
77f175ac JF |
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 | ||
77f175ac JF |
39 | - (void) resetViewAnimated:(BOOL)animated; |
40 | - (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page; | |
41 | ||
77f175ac | 42 | - (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page; |
5fd870e0 | 43 | - (void) reloadTitleForPage:(RVPage *)page; |
77f175ac JF |
44 | - (void) reloadButtonsForPage:(RVPage *)page; |
45 | - (NSString *) getTitleForPage:(RVPage *)page; | |
46 | ||
47 | - (void) reloadData; | |
48 | ||
49 | - (CGRect) pageBounds; | |
50 | ||
51 | @end |