]> git.saurik.com Git - cydia.git/blob - UICaboodle/RVBook.h
Fixed 302->cydia://.
[cydia.git] / UICaboodle / RVBook.h
1 #import "UICaboodle.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 @interface RVBook : UIView <
28 RVNavigationBarDelegate
29 > {
30 NSMutableArray *pages_;
31 UINavigationBar *navbar_;
32 UITransitionView *transition_;
33 BOOL resetting_;
34 _transient id delegate_;
35 UIToolbar *toolbar_;
36 }
37
38 - (UINavigationBar *) navigationBar;
39
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
48 - (void) pushBook:(RVBook *)book;
49
50 - (void) resetViewAnimated:(BOOL)animated;
51 - (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page;
52
53 - (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page;
54 - (void) reloadTitleForPage:(RVPage *)page;
55 - (void) reloadButtonsForPage:(RVPage *)page;
56 - (NSString *) getTitleForPage:(RVPage *)page;
57
58 - (void) reloadData;
59
60 - (CGRect) pageBounds;
61 - (void) close;
62
63 @end
64
65 @interface RVPopUpBook : RVBook {
66 _transient RVBook *parent_;
67 bool cancel_;
68 }
69
70 @end