]>
Commit | Line | Data |
---|---|---|
77f175ac JF |
1 | #import "RVPage.h" |
2 | ||
3 | #import <Foundation/Foundation.h> | |
20b8724d | 4 | #import <UIKit/UIKit.h> |
77f175ac JF |
5 | |
6 | #import "RVBook.h" | |
7 | ||
8 | @implementation RVPage | |
9 | ||
10 | - (NSString *) title { | |
11 | [self doesNotRecognizeSelector:_cmd]; | |
12 | return nil; | |
13 | } | |
14 | ||
15 | - (NSString *) backButtonTitle { | |
16 | return nil; | |
17 | } | |
18 | ||
19 | - (NSString *) leftButtonTitle { | |
20 | return nil; | |
21 | } | |
22 | ||
bde2d79b | 23 | - (id) rightButtonTitle { |
77f175ac JF |
24 | return nil; |
25 | } | |
26 | ||
20b8724d JF |
27 | - (UINavigationButtonStyle) leftButtonStyle { |
28 | return [self leftButtonTitle] == nil ? UINavigationButtonStyleBack : UINavigationButtonStyleNormal; | |
faf4eb4f JF |
29 | } |
30 | ||
20b8724d JF |
31 | - (UINavigationButtonStyle) rightButtonStyle { |
32 | return UINavigationButtonStyleNormal; | |
faf4eb4f JF |
33 | } |
34 | ||
77f175ac JF |
35 | - (void) _rightButtonClicked { |
36 | [self doesNotRecognizeSelector:_cmd]; | |
37 | } | |
38 | ||
39 | - (void) _leftButtonClicked { | |
40 | [self doesNotRecognizeSelector:_cmd]; | |
41 | } | |
42 | ||
43 | - (UIView *) accessoryView { | |
44 | return nil; | |
45 | } | |
46 | ||
bde2d79b JF |
47 | - (UIImage *) rightButtonImage { |
48 | return nil; | |
49 | } | |
50 | ||
77f175ac JF |
51 | - (void) setPageActive:(BOOL)active { |
52 | } | |
53 | ||
54 | - (void) resetViewAnimated:(BOOL)animated { | |
55 | [self doesNotRecognizeSelector:_cmd]; | |
56 | } | |
57 | ||
77f175ac JF |
58 | - (void) setBackButtonTitle:(NSString *)title { |
59 | [book_ setBackButtonTitle:title forPage:self]; | |
60 | } | |
61 | ||
62 | - (void) reloadButtons { | |
63 | [book_ reloadButtonsForPage:self]; | |
64 | } | |
65 | ||
66 | - (void) reloadData { | |
67 | } | |
68 | ||
69 | - (id) initWithBook:(RVBook *)book { | |
70 | if ((self = [super initWithFrame:[book pageBounds]]) != nil) { | |
71 | book_ = book; | |
72 | } return self; | |
73 | } | |
74 | ||
75 | - (void) setDelegate:(id)delegate { | |
76 | delegate_ = delegate; | |
77 | } | |
78 | ||
ca06bb0e JF |
79 | - (void) setBook:(RVBook *)book { |
80 | book_ = book; | |
81 | } | |
82 | ||
77f175ac | 83 | @end |