first commit

This commit is contained in:
Victor Bodinaud
2025-03-03 13:59:05 +01:00
commit 954e43aa2f
166 changed files with 15834 additions and 0 deletions

87
UICaboodle/RVPage.mm Normal file
View File

@@ -0,0 +1,87 @@
#import "RVPage.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "RVBook.h"
@implementation RVPage
- (bool) splitView {
return false;
}
- (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];
}
- (void) reloadData {
}
- (id) initWithBook:(RVBook *)book {
if ((self = [super initWithFrame:[book pageBounds]]) != nil) {
book_ = book;
} return self;
}
- (void) setDelegate:(id)delegate {
delegate_ = delegate;
}
- (void) setBook:(RVBook *)book {
book_ = book;
}
@end