X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/28ce87049dc989a01a744f877317cdd39be56597..0c1cb67a559b2077dddedf7eab3251a3e4cc0812:/UICaboodle/RVPage.mm diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm index 9d77a861..81c8739c 100644 --- a/UICaboodle/RVPage.mm +++ b/UICaboodle/RVPage.mm @@ -5,79 +5,13 @@ #import "RVBook.h" -@implementation RVPage - -- (NSString *) title { - [self doesNotRecognizeSelector:_cmd]; - return nil; -} - -- (NSString *) backButtonTitle { - return nil; -} - -- (NSString *) leftButtonTitle { - return nil; -} - -- (id) rightButtonTitle { - return nil; -} - -- (UINavigationButtonStyle) leftButtonStyle { - return [self leftButtonTitle] == nil ? UINavigationButtonStyleBack : UINavigationButtonStyleNormal; -} - -- (UINavigationButtonStyle) rightButtonStyle { - return UINavigationButtonStyleNormal; -} - -- (void) _rightButtonClicked { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void) _leftButtonClicked { - [self doesNotRecognizeSelector:_cmd]; -} - -- (UIView *) accessoryView { - return nil; -} - -- (UIImage *) rightButtonImage { - return nil; -} - -- (void) setPageActive:(BOOL)active { -} - -- (void) resetViewAnimated:(BOOL)animated { - [self doesNotRecognizeSelector:_cmd]; -} - -- (void) setBackButtonTitle:(NSString *)title { - [book_ setBackButtonTitle:title forPage:self]; -} - -- (void) reloadButtons { - [book_ reloadButtonsForPage:self]; -} - -- (void) reloadData { -} - -- (id) initWithBook:(RVBook *)book { - if ((self = [super initWithFrame:[book pageBounds]]) != nil) { - book_ = book; - } return self; -} - +@implementation CYViewController - (void) setDelegate:(id)delegate { delegate_ = delegate; } - -- (void) setBook:(RVBook *)book { - book_ = book; +- (void) reloadData { +} +- (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { + return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad || orientation == UIInterfaceOrientationPortrait); } - @end