]> git.saurik.com Git - cydia.git/commitdiff
Factored out common code to common subproject.
authorJay Freeman (saurik) <saurik@saurk.com>
Wed, 30 Apr 2008 04:59:47 +0000 (04:59 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:07:35 +0000 (07:07 +0000)
RVBook.h [deleted file]
RVBook.mm [deleted file]
RVPage.h [deleted file]
RVPage.mm [deleted file]
UICaboodle.h [deleted file]
UICaboodle/RVBook.h [new file with mode: 0644]
UICaboodle/RVBook.mm [new file with mode: 0644]
UICaboodle/RVPage.h [new file with mode: 0644]
UICaboodle/RVPage.mm [new file with mode: 0644]
UICaboodle/UICaboodle.h [new file with mode: 0644]
makefile

diff --git a/RVBook.h b/RVBook.h
deleted file mode 100644 (file)
index 43078fc..0000000
--- a/RVBook.h
+++ /dev/null
@@ -1,46 +0,0 @@
-#import "UICaboodle.h"
-
-#import <UIKit/UIView.h>
-
-@class NSMutableArray;
-@class RVPage;
-@class UINavigationBar;
-@class UITransitionView;
-
-@protocol RVDelegate
-- (void) setPageActive:(BOOL)active with:(id)object;
-- (void) resetViewAnimated:(BOOL)animated with:(id)object;
-- (void) reloadDataWith:(id)object;
-@end
-
-@interface RVBook : UIView {
-    NSMutableArray *pages_;
-    UINavigationBar *navbar_;
-    UITransitionView *transition_;
-    BOOL resetting_;
-    _transient id delegate_;
-}
-
-- (id) initWithFrame:(CGRect)frame;
-- (void) setDelegate:(id)delegate;
-
-- (void) setPage:(RVPage *)page;
-
-- (void) pushPage:(RVPage *)page;
-- (void) popPages:(unsigned)pages;
-
-- (void) setPrompt:(NSString *)prompt;
-
-- (void) resetViewAnimated:(BOOL)animated;
-- (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page;
-
-- (void) setTitle:(NSString *)title forPage:(RVPage *)page;
-- (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page;
-- (void) reloadButtonsForPage:(RVPage *)page;
-- (NSString *) getTitleForPage:(RVPage *)page;
-
-- (void) reloadData;
-
-- (CGRect) pageBounds;
-
-@end
diff --git a/RVBook.mm b/RVBook.mm
deleted file mode 100644 (file)
index 5ac8b2e..0000000
--- a/RVBook.mm
+++ /dev/null
@@ -1,187 +0,0 @@
-#import "RVBook.h"
-
-#import <UIKit/UINavigationBar.h>
-#import <UIKit/UINavigationItem.h>
-
-#import <UIKit/UITransitionView.h>
-
-#import <UIKit/UIView-Geometry.h>
-#import <UIKit/UIView-Hierarchy.h>
-
-#import "RVPage.h"
-
-@implementation RVBook
-
-- (void) dealloc {
-    [navbar_ setDelegate:nil];
-
-    [pages_ release];
-    [navbar_ release];
-    [transition_ release];
-    [super dealloc];
-}
-
-- (void) navigationBar:(UINavigationBar *)navbar buttonClicked:(int)button {
-    _assert([pages_ count] != 0);
-    RVPage *page = [pages_ lastObject];
-    switch (button) {
-        case 0: [page _rightButtonClicked]; break;
-        case 1: [page _leftButtonClicked]; break;
-    }
-}
-
-- (void) navigationBar:(UINavigationBar *)navbar poppedItem:(UINavigationItem *)item {
-    _assert([pages_ count] != 0);
-    if (!resetting_)
-        [[pages_ lastObject] setPageActive:NO];
-    [pages_ removeLastObject];
-    if (!resetting_)
-        [self resetViewAnimated:YES toPage:[pages_ lastObject]];
-}
-
-- (id) initWithFrame:(CGRect)frame {
-    if ((self = [super initWithFrame:frame]) != nil) {
-        pages_ = [[NSMutableArray arrayWithCapacity:4] retain];
-
-        struct CGRect bounds = [self bounds];
-        CGSize navsize = [UINavigationBar defaultSizeWithPrompt];
-        CGRect navrect = {{0, 0}, navsize};
-
-        navbar_ = [[UINavigationBar alloc] initWithFrame:navrect];
-        [self addSubview:navbar_];
-
-        [navbar_ setBarStyle:1];
-        [navbar_ setDelegate:self];
-
-        [navbar_ setPrompt:@""];
-
-        transition_ = [[UITransitionView alloc] initWithFrame:CGRectMake(
-            bounds.origin.x, bounds.origin.y + navsize.height, bounds.size.width, bounds.size.height - navsize.height
-        )];
-
-        [self addSubview:transition_];
-    } return self;
-}
-
-- (void) setDelegate:(id)delegate {
-    delegate_ = delegate;
-}
-
-- (void) setPage:(RVPage *)page {
-    if ([pages_ count] != 0)
-        [[pages_ lastObject] setPageActive:NO];
-
-    [navbar_ disableAnimation];
-    resetting_ = true;
-    for (unsigned i(0), pages([pages_ count]); i != pages; ++i)
-        [navbar_ popNavigationItem];
-    resetting_ = false;
-
-    [self pushPage:page];
-    [navbar_ enableAnimation];
-}
-
-- (void) pushPage:(RVPage *)page {
-    if ([pages_ count] != 0)
-        [[pages_ lastObject] setPageActive:NO];
-
-    NSString *title = [self getTitleForPage:page];
-
-    NSString *backButtonTitle = [page backButtonTitle];
-    if (backButtonTitle == nil)
-        backButtonTitle = title;
-
-    UINavigationItem *navitem = [[[UINavigationItem alloc] initWithTitle:title] autorelease];
-    [navitem setBackButtonTitle:backButtonTitle];
-    [navbar_ pushNavigationItem:navitem];
-
-    BOOL animated = [pages_ count] == 0 ? NO : YES;
-    [transition_ transition:(animated ? 1 : 0) toView:page];
-    [page setPageActive:YES];
-
-    [pages_ addObject:page];
-    [self reloadButtonsForPage:page];
-
-    [navbar_ setAccessoryView:[page accessoryView] animate:animated goingBack:NO];
-}
-
-- (void) popPages:(unsigned)pages {
-    if (pages == 0)
-        return;
-
-    [[pages_ lastObject] setPageActive:NO];
-
-    resetting_ = true;
-    for (unsigned i(0); i != pages; ++i)
-        [navbar_ popNavigationItem];
-    resetting_ = false;
-
-    [self resetViewAnimated:YES toPage:[pages_ lastObject]];
-}
-
-- (void) setPrompt:(NSString *)prompt {
-    [navbar_ setPrompt:prompt];
-}
-
-- (void) resetViewAnimated:(BOOL)animated {
-    resetting_ = true;
-
-    if ([pages_ count] > 1) {
-        [navbar_ disableAnimation];
-        while ([pages_ count] != (animated ? 2 : 1))
-            [navbar_ popNavigationItem];
-        [navbar_ enableAnimation];
-        if (animated)
-            [navbar_ popNavigationItem];
-    }
-
-    resetting_ = false;
-
-    [self resetViewAnimated:animated toPage:[pages_ lastObject]];
-}
-
-- (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page {
-    [page resetViewAnimated:animated];
-    [transition_ transition:(animated ? 2 : 0) toView:page];
-    [page setPageActive:YES];
-    [self reloadButtonsForPage:page];
-    [navbar_ setAccessoryView:[page accessoryView] animate:animated goingBack:YES];
-}
-
-- (void) setTitle:(NSString *)title forPage:(RVPage *)page {
-    if ([pages_ count] == 0 || page != [pages_ lastObject])
-        return;
-    UINavigationItem *navitem = [navbar_ topItem];
-    [navitem setTitle:title];
-}
-
-- (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page {
-    if ([pages_ count] == 0 || page != [pages_ lastObject])
-        return;
-    UINavigationItem *navitem = [navbar_ topItem];
-    [navitem setBackButtonTitle:title];
-}
-
-- (void) reloadButtonsForPage:(RVPage *)page {
-    if ([pages_ count] == 0 || page != [pages_ lastObject])
-        return;
-    NSString *leftButtonTitle([pages_ count] == 1 ? [page leftButtonTitle] : nil);
-    [navbar_ showButtonsWithLeftTitle:leftButtonTitle rightTitle:[page rightButtonTitle]];
-}
-
-- (NSString *) getTitleForPage:(RVPage *)page {
-    return [page title];
-}
-
-- (void) reloadData {
-    for (int i(0), e([pages_ count]); i != e; ++i) {
-        RVPage *page([pages_ objectAtIndex:(e - i - 1)]);
-        [page reloadData];
-    }
-}
-
-- (CGRect) pageBounds {
-    return [transition_ bounds];
-}
-
-@end
diff --git a/RVPage.h b/RVPage.h
deleted file mode 100644 (file)
index 5065dd2..0000000
--- a/RVPage.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#import "UICaboodle.h"
-
-#import <UIKit/UIView.h>
-
-@class NSString;
-@class RVBook;
-
-@interface RVPage : UIView {
-    _transient RVBook *book_;
-    _transient id delegate_;
-}
-
-- (NSString *) title;
-- (NSString *) backButtonTitle;
-- (NSString *) rightButtonTitle;
-- (NSString *) leftButtonTitle;
-- (UIView *) accessoryView;
-
-- (void) _rightButtonClicked;
-- (void) _leftButtonClicked;
-
-- (void) setPageActive:(BOOL)active;
-- (void) resetViewAnimated:(BOOL)animated;
-
-- (void) setTitle:(NSString *)title;
-- (void) setBackButtonTitle:(NSString *)title;
-
-- (void) reloadButtons;
-- (void) reloadData;
-
-- (id) initWithBook:(RVBook *)book;
-
-- (void) setDelegate:(id)delegate;
-
-@end
diff --git a/RVPage.mm b/RVPage.mm
deleted file mode 100644 (file)
index a92058e..0000000
--- a/RVPage.mm
+++ /dev/null
@@ -1,71 +0,0 @@
-#import "RVPage.h"
-
-#import <Foundation/Foundation.h>
-#import <UIKit/UIView.h>
-
-#import "RVBook.h"
-
-@implementation RVPage
-
-- (NSString *) title {
-    [self doesNotRecognizeSelector:_cmd];
-    return nil;
-}
-
-- (NSString *) backButtonTitle {
-    return nil;
-}
-
-- (NSString *) leftButtonTitle {
-    return nil;
-}
-
-- (NSString *) rightButtonTitle {
-    return nil;
-}
-
-- (void) _rightButtonClicked {
-    [self doesNotRecognizeSelector:_cmd];
-}
-
-- (void) _leftButtonClicked {
-    [self doesNotRecognizeSelector:_cmd];
-}
-
-- (UIView *) accessoryView {
-    return nil;
-}
-
-- (void) setPageActive:(BOOL)active {
-}
-
-- (void) resetViewAnimated:(BOOL)animated {
-    [self doesNotRecognizeSelector:_cmd];
-}
-
-- (void) setTitle:(NSString *)title {
-    [book_ setTitle:title forPage:self];
-}
-
-- (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;
-}
-
-@end
diff --git a/UICaboodle.h b/UICaboodle.h
deleted file mode 100644 (file)
index afdf71b..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <objc/objc.h>
-
-#define _trace() fprintf(stderr, "_trace()@%s:%u[%s]\n", __FILE__, __LINE__, __FUNCTION__)
-
-#define _assert(test) do \
-    if (!(test)) { \
-        fprintf(stderr, "_assert(%d:%s)@%s:%u[%s]\n", errno, #test, __FILE__, __LINE__, __FUNCTION__); \
-        exit(-1); \
-    } \
-while (false)
-
-#define _not(type) ((type) ~ (type) 0)
-
-#define _transient
diff --git a/UICaboodle/RVBook.h b/UICaboodle/RVBook.h
new file mode 100644 (file)
index 0000000..43078fc
--- /dev/null
@@ -0,0 +1,46 @@
+#import "UICaboodle.h"
+
+#import <UIKit/UIView.h>
+
+@class NSMutableArray;
+@class RVPage;
+@class UINavigationBar;
+@class UITransitionView;
+
+@protocol RVDelegate
+- (void) setPageActive:(BOOL)active with:(id)object;
+- (void) resetViewAnimated:(BOOL)animated with:(id)object;
+- (void) reloadDataWith:(id)object;
+@end
+
+@interface RVBook : UIView {
+    NSMutableArray *pages_;
+    UINavigationBar *navbar_;
+    UITransitionView *transition_;
+    BOOL resetting_;
+    _transient id delegate_;
+}
+
+- (id) initWithFrame:(CGRect)frame;
+- (void) setDelegate:(id)delegate;
+
+- (void) setPage:(RVPage *)page;
+
+- (void) pushPage:(RVPage *)page;
+- (void) popPages:(unsigned)pages;
+
+- (void) setPrompt:(NSString *)prompt;
+
+- (void) resetViewAnimated:(BOOL)animated;
+- (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page;
+
+- (void) setTitle:(NSString *)title forPage:(RVPage *)page;
+- (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page;
+- (void) reloadButtonsForPage:(RVPage *)page;
+- (NSString *) getTitleForPage:(RVPage *)page;
+
+- (void) reloadData;
+
+- (CGRect) pageBounds;
+
+@end
diff --git a/UICaboodle/RVBook.mm b/UICaboodle/RVBook.mm
new file mode 100644 (file)
index 0000000..5ac8b2e
--- /dev/null
@@ -0,0 +1,187 @@
+#import "RVBook.h"
+
+#import <UIKit/UINavigationBar.h>
+#import <UIKit/UINavigationItem.h>
+
+#import <UIKit/UITransitionView.h>
+
+#import <UIKit/UIView-Geometry.h>
+#import <UIKit/UIView-Hierarchy.h>
+
+#import "RVPage.h"
+
+@implementation RVBook
+
+- (void) dealloc {
+    [navbar_ setDelegate:nil];
+
+    [pages_ release];
+    [navbar_ release];
+    [transition_ release];
+    [super dealloc];
+}
+
+- (void) navigationBar:(UINavigationBar *)navbar buttonClicked:(int)button {
+    _assert([pages_ count] != 0);
+    RVPage *page = [pages_ lastObject];
+    switch (button) {
+        case 0: [page _rightButtonClicked]; break;
+        case 1: [page _leftButtonClicked]; break;
+    }
+}
+
+- (void) navigationBar:(UINavigationBar *)navbar poppedItem:(UINavigationItem *)item {
+    _assert([pages_ count] != 0);
+    if (!resetting_)
+        [[pages_ lastObject] setPageActive:NO];
+    [pages_ removeLastObject];
+    if (!resetting_)
+        [self resetViewAnimated:YES toPage:[pages_ lastObject]];
+}
+
+- (id) initWithFrame:(CGRect)frame {
+    if ((self = [super initWithFrame:frame]) != nil) {
+        pages_ = [[NSMutableArray arrayWithCapacity:4] retain];
+
+        struct CGRect bounds = [self bounds];
+        CGSize navsize = [UINavigationBar defaultSizeWithPrompt];
+        CGRect navrect = {{0, 0}, navsize};
+
+        navbar_ = [[UINavigationBar alloc] initWithFrame:navrect];
+        [self addSubview:navbar_];
+
+        [navbar_ setBarStyle:1];
+        [navbar_ setDelegate:self];
+
+        [navbar_ setPrompt:@""];
+
+        transition_ = [[UITransitionView alloc] initWithFrame:CGRectMake(
+            bounds.origin.x, bounds.origin.y + navsize.height, bounds.size.width, bounds.size.height - navsize.height
+        )];
+
+        [self addSubview:transition_];
+    } return self;
+}
+
+- (void) setDelegate:(id)delegate {
+    delegate_ = delegate;
+}
+
+- (void) setPage:(RVPage *)page {
+    if ([pages_ count] != 0)
+        [[pages_ lastObject] setPageActive:NO];
+
+    [navbar_ disableAnimation];
+    resetting_ = true;
+    for (unsigned i(0), pages([pages_ count]); i != pages; ++i)
+        [navbar_ popNavigationItem];
+    resetting_ = false;
+
+    [self pushPage:page];
+    [navbar_ enableAnimation];
+}
+
+- (void) pushPage:(RVPage *)page {
+    if ([pages_ count] != 0)
+        [[pages_ lastObject] setPageActive:NO];
+
+    NSString *title = [self getTitleForPage:page];
+
+    NSString *backButtonTitle = [page backButtonTitle];
+    if (backButtonTitle == nil)
+        backButtonTitle = title;
+
+    UINavigationItem *navitem = [[[UINavigationItem alloc] initWithTitle:title] autorelease];
+    [navitem setBackButtonTitle:backButtonTitle];
+    [navbar_ pushNavigationItem:navitem];
+
+    BOOL animated = [pages_ count] == 0 ? NO : YES;
+    [transition_ transition:(animated ? 1 : 0) toView:page];
+    [page setPageActive:YES];
+
+    [pages_ addObject:page];
+    [self reloadButtonsForPage:page];
+
+    [navbar_ setAccessoryView:[page accessoryView] animate:animated goingBack:NO];
+}
+
+- (void) popPages:(unsigned)pages {
+    if (pages == 0)
+        return;
+
+    [[pages_ lastObject] setPageActive:NO];
+
+    resetting_ = true;
+    for (unsigned i(0); i != pages; ++i)
+        [navbar_ popNavigationItem];
+    resetting_ = false;
+
+    [self resetViewAnimated:YES toPage:[pages_ lastObject]];
+}
+
+- (void) setPrompt:(NSString *)prompt {
+    [navbar_ setPrompt:prompt];
+}
+
+- (void) resetViewAnimated:(BOOL)animated {
+    resetting_ = true;
+
+    if ([pages_ count] > 1) {
+        [navbar_ disableAnimation];
+        while ([pages_ count] != (animated ? 2 : 1))
+            [navbar_ popNavigationItem];
+        [navbar_ enableAnimation];
+        if (animated)
+            [navbar_ popNavigationItem];
+    }
+
+    resetting_ = false;
+
+    [self resetViewAnimated:animated toPage:[pages_ lastObject]];
+}
+
+- (void) resetViewAnimated:(BOOL)animated toPage:(RVPage *)page {
+    [page resetViewAnimated:animated];
+    [transition_ transition:(animated ? 2 : 0) toView:page];
+    [page setPageActive:YES];
+    [self reloadButtonsForPage:page];
+    [navbar_ setAccessoryView:[page accessoryView] animate:animated goingBack:YES];
+}
+
+- (void) setTitle:(NSString *)title forPage:(RVPage *)page {
+    if ([pages_ count] == 0 || page != [pages_ lastObject])
+        return;
+    UINavigationItem *navitem = [navbar_ topItem];
+    [navitem setTitle:title];
+}
+
+- (void) setBackButtonTitle:(NSString *)title forPage:(RVPage *)page {
+    if ([pages_ count] == 0 || page != [pages_ lastObject])
+        return;
+    UINavigationItem *navitem = [navbar_ topItem];
+    [navitem setBackButtonTitle:title];
+}
+
+- (void) reloadButtonsForPage:(RVPage *)page {
+    if ([pages_ count] == 0 || page != [pages_ lastObject])
+        return;
+    NSString *leftButtonTitle([pages_ count] == 1 ? [page leftButtonTitle] : nil);
+    [navbar_ showButtonsWithLeftTitle:leftButtonTitle rightTitle:[page rightButtonTitle]];
+}
+
+- (NSString *) getTitleForPage:(RVPage *)page {
+    return [page title];
+}
+
+- (void) reloadData {
+    for (int i(0), e([pages_ count]); i != e; ++i) {
+        RVPage *page([pages_ objectAtIndex:(e - i - 1)]);
+        [page reloadData];
+    }
+}
+
+- (CGRect) pageBounds {
+    return [transition_ bounds];
+}
+
+@end
diff --git a/UICaboodle/RVPage.h b/UICaboodle/RVPage.h
new file mode 100644 (file)
index 0000000..5065dd2
--- /dev/null
@@ -0,0 +1,35 @@
+#import "UICaboodle.h"
+
+#import <UIKit/UIView.h>
+
+@class NSString;
+@class RVBook;
+
+@interface RVPage : UIView {
+    _transient RVBook *book_;
+    _transient id delegate_;
+}
+
+- (NSString *) title;
+- (NSString *) backButtonTitle;
+- (NSString *) rightButtonTitle;
+- (NSString *) leftButtonTitle;
+- (UIView *) accessoryView;
+
+- (void) _rightButtonClicked;
+- (void) _leftButtonClicked;
+
+- (void) setPageActive:(BOOL)active;
+- (void) resetViewAnimated:(BOOL)animated;
+
+- (void) setTitle:(NSString *)title;
+- (void) setBackButtonTitle:(NSString *)title;
+
+- (void) reloadButtons;
+- (void) reloadData;
+
+- (id) initWithBook:(RVBook *)book;
+
+- (void) setDelegate:(id)delegate;
+
+@end
diff --git a/UICaboodle/RVPage.mm b/UICaboodle/RVPage.mm
new file mode 100644 (file)
index 0000000..a92058e
--- /dev/null
@@ -0,0 +1,71 @@
+#import "RVPage.h"
+
+#import <Foundation/Foundation.h>
+#import <UIKit/UIView.h>
+
+#import "RVBook.h"
+
+@implementation RVPage
+
+- (NSString *) title {
+    [self doesNotRecognizeSelector:_cmd];
+    return nil;
+}
+
+- (NSString *) backButtonTitle {
+    return nil;
+}
+
+- (NSString *) leftButtonTitle {
+    return nil;
+}
+
+- (NSString *) rightButtonTitle {
+    return nil;
+}
+
+- (void) _rightButtonClicked {
+    [self doesNotRecognizeSelector:_cmd];
+}
+
+- (void) _leftButtonClicked {
+    [self doesNotRecognizeSelector:_cmd];
+}
+
+- (UIView *) accessoryView {
+    return nil;
+}
+
+- (void) setPageActive:(BOOL)active {
+}
+
+- (void) resetViewAnimated:(BOOL)animated {
+    [self doesNotRecognizeSelector:_cmd];
+}
+
+- (void) setTitle:(NSString *)title {
+    [book_ setTitle:title forPage:self];
+}
+
+- (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;
+}
+
+@end
diff --git a/UICaboodle/UICaboodle.h b/UICaboodle/UICaboodle.h
new file mode 100644 (file)
index 0000000..afdf71b
--- /dev/null
@@ -0,0 +1,14 @@
+#include <objc/objc.h>
+
+#define _trace() fprintf(stderr, "_trace()@%s:%u[%s]\n", __FILE__, __LINE__, __FUNCTION__)
+
+#define _assert(test) do \
+    if (!(test)) { \
+        fprintf(stderr, "_assert(%d:%s)@%s:%u[%s]\n", errno, #test, __FILE__, __LINE__, __FUNCTION__); \
+        exit(-1); \
+    } \
+while (false)
+
+#define _not(type) ((type) ~ (type) 0)
+
+#define _transient
index 2f4827209588614be37e70ca7223f1c617f099a6..d196f27bbaaac13c26e6896c02bd25e999aef4f6 100644 (file)
--- a/makefile
+++ b/makefile
@@ -14,7 +14,7 @@ test: all
 exec: exec.mm makefile
        $(target)g++ -Wall -Werror -o $@ $< -framework Foundation -framework CoreFoundation -lobjc
 
-Cydia: Cydia.mm RVBook.mm RVPage.mm *.h makefile
-       $(target)g++ -fobjc-call-cxx-cdtors -g3 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework IOKit -framework CoreFoundation -framework Foundation -framework CoreGraphics -framework GraphicsServices -framework LayerKit -lobjc -lapt-pkg -lpcre -fobjc-exceptions -I/apl/i20 -F$${PKG_ROOT}/System/Library/PrivateFrameworks
+Cydia: Cydia.mm ../uicaboodle.m/*.mm *.h makefile
+       $(target)g++ -I../uicaboodle.m -fobjc-call-cxx-cdtors -g3 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework IOKit -framework CoreFoundation -framework Foundation -framework CoreGraphics -framework GraphicsServices -framework LayerKit -lobjc -lapt-pkg -lpcre -fobjc-exceptions -I/apl/i20 -F$${PKG_ROOT}/System/Library/PrivateFrameworks
 
 .PHONY: all clean test