X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/bde2d79b2e825b71ae4f171cd74ed1f2ad1aa504..7afcea1c7f36f0c4ee9c4d4b53618df39073d851:/UICaboodle/RVBook.h diff --git a/UICaboodle/RVBook.h b/UICaboodle/RVBook.h index 88a51915..d0037cf0 100644 --- a/UICaboodle/RVBook.h +++ b/UICaboodle/RVBook.h @@ -1,12 +1,18 @@ #import "UICaboodle.h" -#import +#import @class NSMutableArray; +@class RVBook; @class RVPage; @class UINavigationBar; @class UITransitionView; +@interface UIView (PopUpView) +- (void) popFromSuperviewAnimated:(BOOL)animated; +- (void) popSubview:(UIView *)view; +@end + @protocol RVNavigationBarDelegate @end @@ -14,6 +20,12 @@ - (void) setPageActive:(BOOL)active with:(id)object; - (void) resetViewAnimated:(BOOL)animated with:(id)object; - (void) reloadDataWith:(id)object; +- (void) popUpBook:(RVBook *)book; +- (CGRect) popUpBounds; +@end + +@protocol RVBookHook +- (void) didCloseBook:(RVBook *)book; @end @interface RVBook : UIView < @@ -24,18 +36,25 @@ UITransitionView *transition_; BOOL resetting_; _transient id delegate_; + _transient id hook_; + UIToolbar *toolbar_; } - (UINavigationBar *) navigationBar; - (id) initWithFrame:(CGRect)frame; - (void) setDelegate:(id)delegate; +- (void) setHook:(id)hook; - (void) setPage:(RVPage *)page; +- (void) swapPage:(RVPage *)page; +- (void) pushPage:(RVPage *)page animated:(BOOL)animated; - (void) pushPage:(RVPage *)page; - (void) popPages:(unsigned)pages; +- (void) pushBook:(RVBook *)book; + - (void) resetViewAnimated:(BOOL)animated; - (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page; @@ -47,5 +66,13 @@ - (void) reloadData; - (CGRect) pageBounds; +- (void) close; + +@end + +@interface RVPopUpBook : RVBook { + _transient RVBook *parent_; + bool cancel_; +} @end