]>
Commit | Line | Data |
---|---|---|
77f175ac JF |
1 | #import "UICaboodle.h" |
2 | ||
04700693 | 3 | #import <UIKit/UIKit.h> |
77f175ac JF |
4 | |
5 | @class NSMutableArray; | |
04700693 | 6 | @class RVBook; |
77f175ac JF |
7 | @class RVPage; |
8 | @class UINavigationBar; | |
9 | @class UITransitionView; | |
10 | ||
04700693 JF |
11 | @interface UIView (PopUpView) |
12 | - (void) popFromSuperviewAnimated:(BOOL)animated; | |
13 | - (void) popSubview:(UIView *)view; | |
14 | @end | |
15 | ||
bde2d79b JF |
16 | @protocol RVNavigationBarDelegate |
17 | @end | |
18 | ||
77f175ac 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; | |
04700693 JF |
23 | - (void) popUpBook:(RVBook *)book; |
24 | - (CGRect) popUpBounds; | |
77f175ac JF |
25 | @end |
26 | ||
bde2d79b JF |
27 | @interface RVBook : UIView < |
28 | RVNavigationBarDelegate | |
29 | > { | |
77f175ac JF |
30 | NSMutableArray *pages_; |
31 | UINavigationBar *navbar_; | |
32 | UITransitionView *transition_; | |
33 | BOOL resetting_; | |
34 | _transient id delegate_; | |
04700693 | 35 | UIToolbar *toolbar_; |
77f175ac JF |
36 | } |
37 | ||
20b8724d JF |
38 | - (UINavigationBar *) navigationBar; |
39 | ||
77f175ac 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 | ||
04700693 JF |
48 | - (void) pushBook:(RVBook *)book; |
49 | ||
77f175ac JF |
50 | - (void) resetViewAnimated:(BOOL)animated; |
51 | - (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page; | |
52 | ||
77f175ac | 53 | - (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page; |
5fd870e0 | 54 | - (void) reloadTitleForPage:(RVPage *)page; |
77f175ac JF |
55 | - (void) reloadButtonsForPage:(RVPage *)page; |
56 | - (NSString *) getTitleForPage:(RVPage *)page; | |
57 | ||
58 | - (void) reloadData; | |
59 | ||
60 | - (CGRect) pageBounds; | |
04700693 JF |
61 | - (void) close; |
62 | ||
63 | @end | |
64 | ||
65 | @interface RVPopUpBook : RVBook { | |
66 | _transient RVBook *parent_; | |
67 | bool cancel_; | |
68 | } | |
77f175ac JF |
69 | |
70 | @end |