]>
Commit | Line | Data |
---|---|---|
7e9a36b6 JF |
1 | #import "UICaboodle.h" |
2 | ||
aa5d0de7 | 3 | #import <UIKit/UIKit.h> |
7e9a36b6 JF |
4 | |
5 | @class NSMutableArray; | |
aa5d0de7 | 6 | @class RVBook; |
7e9a36b6 JF |
7 | @class RVPage; |
8 | @class UINavigationBar; | |
9 | @class UITransitionView; | |
10 | ||
aa5d0de7 JF |
11 | @interface UIView (PopUpView) |
12 | - (void) popFromSuperviewAnimated:(BOOL)animated; | |
13 | - (void) popSubview:(UIView *)view; | |
14 | @end | |
15 | ||
22f8bed9 JF |
16 | @protocol RVNavigationBarDelegate |
17 | @end | |
18 | ||
7e9a36b6 JF |
19 | @protocol RVDelegate |
20 | - (void) setPageActive:(BOOL)active with:(id)object; | |
21 | - (void) resetViewAnimated:(BOOL)animated with:(id)object; | |
22 | - (void) reloadDataWith:(id)object; | |
aa5d0de7 JF |
23 | - (void) popUpBook:(RVBook *)book; |
24 | - (CGRect) popUpBounds; | |
7e9a36b6 JF |
25 | @end |
26 | ||
22f8bed9 JF |
27 | @interface RVBook : UIView < |
28 | RVNavigationBarDelegate | |
29 | > { | |
7e9a36b6 JF |
30 | NSMutableArray *pages_; |
31 | UINavigationBar *navbar_; | |
32 | UITransitionView *transition_; | |
33 | BOOL resetting_; | |
34 | _transient id delegate_; | |
aa5d0de7 | 35 | UIToolbar *toolbar_; |
7e9a36b6 JF |
36 | } |
37 | ||
facbc56d JF |
38 | - (UINavigationBar *) navigationBar; |
39 | ||
7e9a36b6 JF |
40 | - (id) initWithFrame:(CGRect)frame; |
41 | - (void) setDelegate:(id)delegate; | |
42 | ||
43 | - (void) setPage:(RVPage *)page; | |
44 | ||
45 | - (void) pushPage:(RVPage *)page; | |
46 | - (void) popPages:(unsigned)pages; | |
47 | ||
aa5d0de7 JF |
48 | - (void) pushBook:(RVBook *)book; |
49 | ||
7e9a36b6 JF |
50 | - (void) resetViewAnimated:(BOOL)animated; |
51 | - (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page; | |
52 | ||
7e9a36b6 | 53 | - (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page; |
3160e5f0 | 54 | - (void) reloadTitleForPage:(RVPage *)page; |
7e9a36b6 JF |
55 | - (void) reloadButtonsForPage:(RVPage *)page; |
56 | - (NSString *) getTitleForPage:(RVPage *)page; | |
57 | ||
58 | - (void) reloadData; | |
59 | ||
60 | - (CGRect) pageBounds; | |
aa5d0de7 JF |
61 | - (void) close; |
62 | ||
63 | @end | |
64 | ||
65 | @interface RVPopUpBook : RVBook { | |
66 | _transient RVBook *parent_; | |
67 | bool cancel_; | |
68 | } | |
7e9a36b6 JF |
69 | |
70 | @end |