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