]> git.saurik.com Git - cydia.git/blob - UICaboodle/RVBook.h
Some last finalization on mailto:.
[cydia.git] / UICaboodle / RVBook.h
1 #import "UICaboodle.h"
2
3 #import <UIKit/UIView.h>
4
5 @class NSMutableArray;
6 @class RVPage;
7 @class UINavigationBar;
8 @class UITransitionView;
9
10 @protocol RVDelegate
11 - (void) setPageActive:(BOOL)active with:(id)object;
12 - (void) resetViewAnimated:(BOOL)animated with:(id)object;
13 - (void) reloadDataWith:(id)object;
14 @end
15
16 @interface RVBook : UIView {
17 NSMutableArray *pages_;
18 UINavigationBar *navbar_;
19 UITransitionView *transition_;
20 BOOL resetting_;
21 _transient id delegate_;
22 }
23
24 - (UINavigationBar *) navigationBar;
25
26 - (id) initWithFrame:(CGRect)frame;
27 - (void) setDelegate:(id)delegate;
28
29 - (void) setPage:(RVPage *)page;
30
31 - (void) pushPage:(RVPage *)page;
32 - (void) popPages:(unsigned)pages;
33
34 - (void) resetViewAnimated:(BOOL)animated;
35 - (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page;
36
37 - (void) setTitle:(NSString *)title forPage:(RVPage *)page;
38 - (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page;
39 - (void) reloadButtonsForPage:(RVPage *)page;
40 - (NSString *) getTitleForPage:(RVPage *)page;
41
42 - (void) reloadData;
43
44 - (CGRect) pageBounds;
45
46 @end