]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/RVPage.mm
Remove (non-functional) shake-to-undo mechanism.
[cydia.git] / UICaboodle / RVPage.mm
index 9d77a86134decbd4e0eb859554e0002d19bccbed..4a8ea5de01e40ce518a7edc06b0c8fa37d5e85d4 100644 (file)
@@ -5,79 +5,17 @@
 
 #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];
+@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 {
+    if ([self parentViewController]) {
+        return [[self parentViewController] shouldAutorotateToInterfaceOrientation:orientation];
+    } else {
+        return [super shouldAutorotateToInterfaceOrientation:orientation];
+    }
 }
-
-- (void) setDelegate:(id)delegate {
-    delegate_ = delegate;
-}
-
-- (void) setBook:(RVBook *)book {
-    book_ = book;
-}
-
 @end