]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/BrowserView.mm
Added SBSettings Addons icon.
[cydia.git] / UICaboodle / BrowserView.mm
index 6f6081eeec3ae429b2c518370eaae234d43be2af..b99c2d2bb4f4d76309814f7bd69db1e7c63f7105 100644 (file)
@@ -1,5 +1,5 @@
-#include <BrowserView.h>
-#include <UCLocalize.h>
+#include <UICaboodle/BrowserView.h>
+#include <UICaboodle/UCLocalize.h>
 
 #import <QuartzCore/CALayer.h>
 // XXX: fix the minimum requirement
 
 #import <QuartzCore/CALayer.h>
 // XXX: fix the minimum requirement
@@ -643,7 +643,7 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize(
 
                     [self setBackButtonTitle:title_];
 
 
                     [self setBackButtonTitle:title_];
 
-                    BrowserView *browser([[[BrowserView alloc] initWithBook:book] autorelease]);
+                    BrowserView *browser([[[class_ alloc] initWithBook:book] autorelease]);
                     [browser loadURL:url];
                     page = browser;
                 }
                     [browser loadURL:url];
                     page = browser;
                 }
@@ -896,7 +896,7 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize(
     RVBook *book(!popup_ ? book_ : [[[RVPopUpBook alloc] initWithFrame:[delegate_ popUpBounds]] autorelease]);
 
     /* XXX: deal with cydia:// pages */
     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_];
 
     if (features != nil && popup_) {
         [book setDelegate:delegate_];
@@ -1158,8 +1158,9 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize(
     [self _setTileDrawingEnabled:YES];
 }
 
     [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) {
     if ((self = [super initWithBook:book]) != nil) {
+        class_ = _class;
         loading_ = [[NSMutableSet alloc] initWithCapacity:3];
         popup_ = false;
 
         loading_ = [[NSMutableSet alloc] initWithCapacity:3];
         popup_ = false;
 
@@ -1289,6 +1290,10 @@ UIActionSheet *mailAlertSheet = [[UIActionSheet alloc] initWithTitle:UCLocalize(
     } return self;
 }
 
     } 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];
 }
 - (id) initWithBook:(RVBook *)book {
     return [self initWithBook:book forWidth:0];
 }