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