diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-04-30 04:58:19 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2008-04-30 04:58:19 +0000 |
commit | 7e9a36b640f18febaa4d1beeda6e0f55749cd2b2 (patch) | |
tree | 04f662e583f70175503cdf5e0393cbd3eaccb7cb /RVBook.h | |
parent | d36e83a374d0d26a145e9cba631dd984578ee571 (diff) |
Began factoring out some common tools.
Diffstat (limited to 'RVBook.h')
-rw-r--r-- | RVBook.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/RVBook.h b/RVBook.h new file mode 100644 index 0000000..43078fc --- /dev/null +++ b/RVBook.h @@ -0,0 +1,46 @@ +#import "UICaboodle.h" + +#import <UIKit/UIView.h> + +@class NSMutableArray; +@class RVPage; +@class UINavigationBar; +@class UITransitionView; + +@protocol RVDelegate +- (void) setPageActive:(BOOL)active with:(id)object; +- (void) resetViewAnimated:(BOOL)animated with:(id)object; +- (void) reloadDataWith:(id)object; +@end + +@interface RVBook : UIView { + NSMutableArray *pages_; + UINavigationBar *navbar_; + UITransitionView *transition_; + BOOL resetting_; + _transient id delegate_; +} + +- (id) initWithFrame:(CGRect)frame; +- (void) setDelegate:(id)delegate; + +- (void) setPage:(RVPage *)page; + +- (void) pushPage:(RVPage *)page; +- (void) popPages:(unsigned)pages; + +- (void) setPrompt:(NSString *)prompt; + +- (void) resetViewAnimated:(BOOL)animated; +- (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page; + +- (void) setTitle:(NSString *)title forPage:(RVPage *)page; +- (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page; +- (void) reloadButtonsForPage:(RVPage *)page; +- (NSString *) getTitleForPage:(RVPage *)page; + +- (void) reloadData; + +- (CGRect) pageBounds; + +@end |