-#include <BrowserView.h>
-#include <UCLocalize.h>
+#include <UICaboodle/BrowserView.h>
+#include <UICaboodle/UCLocalize.h>
#import <QuartzCore/CALayer.h>
// XXX: fix the minimum requirement
[self setBackButtonTitle:title_];
- BrowserView *browser([[[BrowserView alloc] initWithBook:book] autorelease]);
+ BrowserView *browser([[[class_ alloc] initWithBook:book] autorelease]);
[browser loadURL:url];
page = browser;
}
RVBook *book(!popup_ ? book_ : [[[RVPopUpBook alloc] initWithFrame:[delegate_ popUpBounds]] autorelease]);
/* XXX: deal with cydia:// pages */
- BrowserView *browser([[[BrowserView alloc] initWithBook:book forWidth:width] autorelease]);
+ BrowserView *browser([[[class_ alloc] initWithBook:book forWidth:width] autorelease]);
if (features != nil && popup_) {
[book setDelegate:delegate_];
[self _setTileDrawingEnabled:YES];
}
-- (id) initWithBook:(RVBook *)book forWidth:(float)width {
+- (id) initWithBook:(RVBook *)book forWidth:(float)width ofClass:(Class)_class {
if ((self = [super initWithBook:book]) != nil) {
+ class_ = _class;
loading_ = [[NSMutableSet alloc] initWithCapacity:3];
popup_ = false;
} return self;
}
+- (id) initWithBook:(RVBook *)book forWidth:(float)width {
+ return [self initWithBook:book forWidth:width ofClass:[self class]];
+}
+
- (id) initWithBook:(RVBook *)book {
return [self initWithBook:book forWidth:0];
}