]> git.saurik.com Git - cydia.git/blame - UICaboodle/RVBook.h
Mild organization and optimization.
[cydia.git] / UICaboodle / RVBook.h
CommitLineData
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
1ce016d4
JF
27@protocol RVBookHook
28- (void) didCloseBook:(RVBook *)book;
29@end
30
bde2d79b
JF
31@interface RVBook : UIView <
32 RVNavigationBarDelegate
33> {
77f175ac
JF
34 NSMutableArray *pages_;
35 UINavigationBar *navbar_;
36 UITransitionView *transition_;
37 BOOL resetting_;
38 _transient id delegate_;
1ce016d4 39 _transient id hook_;
04700693 40 UIToolbar *toolbar_;
77f175ac
JF
41}
42
20b8724d
JF
43- (UINavigationBar *) navigationBar;
44
77f175ac
JF
45- (id) initWithFrame:(CGRect)frame;
46- (void) setDelegate:(id)delegate;
1ce016d4 47- (void) setHook:(id)hook;
77f175ac
JF
48
49- (void) setPage:(RVPage *)page;
50
5889429e
JF
51- (void) swapPage:(RVPage *)page;
52- (void) pushPage:(RVPage *)page animated:(BOOL)animated;
77f175ac
JF
53- (void) pushPage:(RVPage *)page;
54- (void) popPages:(unsigned)pages;
55
04700693
JF
56- (void) pushBook:(RVBook *)book;
57
77f175ac
JF
58- (void) resetViewAnimated:(BOOL)animated;
59- (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page;
60
77f175ac 61- (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page;
5fd870e0 62- (void) reloadTitleForPage:(RVPage *)page;
77f175ac
JF
63- (void) reloadButtonsForPage:(RVPage *)page;
64- (NSString *) getTitleForPage:(RVPage *)page;
65
66- (void) reloadData;
67
68- (CGRect) pageBounds;
04700693
JF
69- (void) close;
70
71@end
72
73@interface RVPopUpBook : RVBook {
74 _transient RVBook *parent_;
75 bool cancel_;
76}
77f175ac
JF
77
78@end