]> git.saurik.com Git - cydia.git/blame - UICaboodle/RVPage.mm
Loading changes, visibility switches, gsc.wildcat issues, remote package catalog...
[cydia.git] / UICaboodle / RVPage.mm
CommitLineData
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
d4f84362
JF
10- (bool) splitView {
11 return false;
12}
13
77f175ac
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
bde2d79b 27- (id) rightButtonTitle {
77f175ac
JF
28 return nil;
29}
30
20b8724d
JF
31- (UINavigationButtonStyle) leftButtonStyle {
32 return [self leftButtonTitle] == nil ? UINavigationButtonStyleBack : UINavigationButtonStyleNormal;
faf4eb4f
JF
33}
34
20b8724d
JF
35- (UINavigationButtonStyle) rightButtonStyle {
36 return UINavigationButtonStyleNormal;
faf4eb4f
JF
37}
38
77f175ac
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
bde2d79b
JF
51- (UIImage *) rightButtonImage {
52 return nil;
53}
54
77f175ac
JF
55- (void) setPageActive:(BOOL)active {
56}
57
58- (void) resetViewAnimated:(BOOL)animated {
59 [self doesNotRecognizeSelector:_cmd];
60}
61
77f175ac
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
ca06bb0e
JF
83- (void) setBook:(RVBook *)book {
84 book_ = book;
85}
86
77f175ac 87@end