]> git.saurik.com Git - cydia.git/blob - UICaboodle/RVBook.h
OMG, that was a stupid Browser bug.
[cydia.git] / UICaboodle / RVBook.h
1 #import <UICaboodle/UCPlatform.h>
2
3 #import <UIKit/UIKit.h>
4
5 @class NSMutableArray;
6 @class RVBook;
7 @class RVPage;
8 @class UINavigationBar;
9 @class UITransitionView;
10
11 @interface UIView (PopUpView)
12 - (void) popFromSuperviewAnimated:(BOOL)animated;
13 - (void) popSubview:(UIView *)view;
14 @end
15
16 @protocol RVNavigationBarDelegate
17 @end
18
19 @protocol RVDelegate
20 - (void) setPageActive:(BOOL)active with:(id)object;
21 - (void) resetViewAnimated:(BOOL)animated with:(id)object;
22 - (void) reloadDataWith:(id)object;
23 - (void) popUpBook:(RVBook *)book;
24 - (CGRect) popUpBounds;
25 @end
26
27 @protocol RVBookHook
28 - (void) didCloseBook:(RVBook *)book;
29 @end
30
31 @interface RVBook : UIView <
32 RVNavigationBarDelegate
33 > {
34 NSMutableArray *pages_;
35 UINavigationBar *navbar_;
36 UITransitionView *transition_;
37 BOOL resetting_;
38 _transient id delegate_;
39 _transient id hook_;
40 UIToolbar *toolbar_;
41 }
42
43 - (UINavigationBar *) navigationBar;
44
45 - (id) initWithFrame:(CGRect)frame;
46 - (void) setDelegate:(id)delegate;
47 - (void) setHook:(id)hook;
48
49 - (void) setPage:(RVPage *)page;
50
51 - (void) swapPage:(RVPage *)page;
52 - (void) pushPage:(RVPage *)page animated:(BOOL)animated;
53 - (void) pushPage:(RVPage *)page;
54 - (void) popPages:(unsigned)pages;
55
56 - (void) pushBook:(RVBook *)book;
57
58 - (void) resetViewAnimated:(BOOL)animated;
59 - (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page;
60
61 - (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page;
62 - (void) reloadTitleForPage:(RVPage *)page;
63 - (void) reloadButtonsForPage:(RVPage *)page;
64 - (NSString *) getTitleForPage:(RVPage *)page;
65
66 - (void) reloadButtons;
67 - (void) reloadData;
68
69 - (CGRect) pageBounds;
70 - (void) close;
71
72 @end
73
74 @interface RVPopUpBook : RVBook {
75 _transient RVBook *parent_;
76 bool cancel_;
77 }
78
79 @end