diff options
Diffstat (limited to 'UICaboodle/RVBook.h')
-rw-r--r-- | UICaboodle/RVBook.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/UICaboodle/RVBook.h b/UICaboodle/RVBook.h new file mode 100644 index 0000000..43078fc --- /dev/null +++ b/UICaboodle/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 |