]> git.saurik.com Git - cydia.git/blame - UICaboodle/RVBook.h
Updated and cleaned sections.
[cydia.git] / UICaboodle / RVBook.h
CommitLineData
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
2f3ef0b1
JF
45- (void) swapPage:(RVPage *)page;
46- (void) pushPage:(RVPage *)page animated:(BOOL)animated;
7e9a36b6
JF
47- (void) pushPage:(RVPage *)page;
48- (void) popPages:(unsigned)pages;
49
aa5d0de7
JF
50- (void) pushBook:(RVBook *)book;
51
7e9a36b6
JF
52- (void) resetViewAnimated:(BOOL)animated;
53- (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page;
54
7e9a36b6 55- (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page;
3160e5f0 56- (void) reloadTitleForPage:(RVPage *)page;
7e9a36b6
JF
57- (void) reloadButtonsForPage:(RVPage *)page;
58- (NSString *) getTitleForPage:(RVPage *)page;
59
60- (void) reloadData;
61
62- (CGRect) pageBounds;
aa5d0de7
JF
63- (void) close;
64
65@end
66
67@interface RVPopUpBook : RVBook {
68 _transient RVBook *parent_;
69 bool cancel_;
70}
7e9a36b6
JF
71
72@end