X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/facbc56de5a9dd53b0ce257f414cf9b9beee2229..1b1b3f4af0bd30c5c6c7378187766155b1963b9d:/UICaboodle/RVBook.h diff --git a/UICaboodle/RVBook.h b/UICaboodle/RVBook.h index 8b051851..a7781e7b 100644 --- a/UICaboodle/RVBook.h +++ b/UICaboodle/RVBook.h @@ -1,24 +1,38 @@ #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 + @protocol RVDelegate - (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 -@interface RVBook : UIView { +@interface RVBook : UIView < + RVNavigationBarDelegate +> { NSMutableArray *pages_; UINavigationBar *navbar_; UITransitionView *transition_; BOOL resetting_; _transient id delegate_; + UIToolbar *toolbar_; } - (UINavigationBar *) navigationBar; @@ -31,16 +45,26 @@ - (void) pushPage:(RVPage *)page; - (void) popPages:(unsigned)pages; +- (void) pushBook:(RVBook *)book; + - (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) reloadTitleForPage:(RVPage *)page; - (void) reloadButtonsForPage:(RVPage *)page; - (NSString *) getTitleForPage:(RVPage *)page; - (void) reloadData; - (CGRect) pageBounds; +- (void) close; + +@end + +@interface RVPopUpBook : RVBook { + _transient RVBook *parent_; + bool cancel_; +} @end