]>
Commit | Line | Data |
---|---|---|
275d8115 | 1 | #import <UICaboodle/UCPlatform.h> |
7e9a36b6 | 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 | ||
12b59862 JF |
27 | @protocol RVBookHook |
28 | - (void) didCloseBook:(RVBook *)book; | |
29 | @end | |
30 | ||
22f8bed9 JF |
31 | @interface RVBook : UIView < |
32 | RVNavigationBarDelegate | |
33 | > { | |
7e9a36b6 JF |
34 | NSMutableArray *pages_; |
35 | UINavigationBar *navbar_; | |
36 | UITransitionView *transition_; | |
37 | BOOL resetting_; | |
38 | _transient id delegate_; | |
12b59862 | 39 | _transient id hook_; |
aa5d0de7 | 40 | UIToolbar *toolbar_; |
7e9a36b6 JF |
41 | } |
42 | ||
facbc56d JF |
43 | - (UINavigationBar *) navigationBar; |
44 | ||
7e9a36b6 JF |
45 | - (id) initWithFrame:(CGRect)frame; |
46 | - (void) setDelegate:(id)delegate; | |
12b59862 | 47 | - (void) setHook:(id)hook; |
7e9a36b6 JF |
48 | |
49 | - (void) setPage:(RVPage *)page; | |
50 | ||
2f3ef0b1 | 51 | - (void) swapPage:(RVPage *)page; |
600d005d | 52 | |
2f3ef0b1 | 53 | - (void) pushPage:(RVPage *)page animated:(BOOL)animated; |
7e9a36b6 | 54 | - (void) pushPage:(RVPage *)page; |
600d005d | 55 | |
7e9a36b6 JF |
56 | - (void) popPages:(unsigned)pages; |
57 | ||
aa5d0de7 JF |
58 | - (void) pushBook:(RVBook *)book; |
59 | ||
7e9a36b6 JF |
60 | - (void) resetViewAnimated:(BOOL)animated; |
61 | - (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page; | |
62 | ||
7e9a36b6 | 63 | - (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page; |
3160e5f0 | 64 | - (void) reloadTitleForPage:(RVPage *)page; |
7e9a36b6 JF |
65 | - (void) reloadButtonsForPage:(RVPage *)page; |
66 | - (NSString *) getTitleForPage:(RVPage *)page; | |
67 | ||
b62612d4 | 68 | - (void) reloadButtons; |
7e9a36b6 JF |
69 | - (void) reloadData; |
70 | ||
71 | - (CGRect) pageBounds; | |
aa5d0de7 JF |
72 | - (void) close; |
73 | ||
74 | @end | |
75 | ||
76 | @interface RVPopUpBook : RVBook { | |
77 | _transient RVBook *parent_; | |
78 | bool cancel_; | |
79 | } | |
7e9a36b6 JF |
80 | |
81 | @end |