summaryrefslogtreecommitdiff
path: root/UICaboodle/RVBook.h
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-04-30 04:59:47 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:07:35 +0000
commit308c03802400d5679ec355e577f09bd0e86bfcd9 (patch)
tree626ef998c47ebbe33e0768293fd0da57b3e922d6 /UICaboodle/RVBook.h
parent7e9a36b640f18febaa4d1beeda6e0f55749cd2b2 (diff)
Factored out common code to common subproject.
Diffstat (limited to 'UICaboodle/RVBook.h')
-rw-r--r--UICaboodle/RVBook.h46
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