Permalink
Browse files

Initial Comment

After 3 weeks it's (mostly) bug free and finished.
  • Loading branch information...
freerunnering committed Sep 7, 2011
0 parents commit 5189b854cc16a9d12549fe9420ed504fc21cf773
Showing with 1,761 additions and 0 deletions.
  1. +6 −0 .gitignore
  2. +34 −0 CSApplication.h
  3. +412 −0 CSApplication.m
  4. +80 −0 CSApplicationController.h
  5. +477 −0 CSApplicationController.m
  6. +36 −0 CSResources.h
  7. +164 −0 CSResources.m
  8. +13 −0 CSScrollView.h
  9. +35 −0 CSScrollView.m
  10. +1 −0 CardSwitcher.plist
  11. +9 −0 Makefile
  12. +29 −0 README.md
  13. +223 −0 Tweak.mm
  14. BIN com.iky1e.cardswitcher_0.9.9.1-9_iphoneos-arm.deb
  15. +10 −0 layout/DEBIAN/control
  16. BIN layout/Library/Activator/Listeners/com.iky1e.cardswitcher/CardSwitcher-small.png
  17. BIN layout/Library/Activator/Listeners/com.iky1e.cardswitcher/CardSwitcher-small@2x.png
  18. BIN layout/Library/Activator/Listeners/com.iky1e.cardswitcher/CardSwitcher.png
  19. BIN layout/Library/Activator/Listeners/com.iky1e.cardswitcher/CardSwitcher@2x.png
  20. +4 −0 layout/Library/Activator/Listeners/com.iky1e.cardswitcher/Info.plist
  21. BIN layout/Library/Application Support/CardSwitcher/UIStatusBarStyleBlackOpaque.png
  22. BIN layout/Library/Application Support/CardSwitcher/UIStatusBarStyleDefault.png
  23. BIN layout/Library/Application Support/CardSwitcher/closebox.png
  24. BIN layout/Library/Application Support/CardSwitcher/closebox@2x.png
  25. BIN layout/Library/PreferenceLoader/Preferences/CardSwitcher/CardSwitcher-small.png
  26. BIN layout/Library/PreferenceLoader/Preferences/CardSwitcher/CardSwitcher-small@2x.png
  27. +194 −0 layout/Library/PreferenceLoader/Preferences/CardSwitcher/CardSwitcher.plist
  28. BIN layout/Library/PreferenceLoader/Preferences/CardSwitcher/CardSwitcher.png
  29. BIN layout/Library/PreferenceLoader/Preferences/CardSwitcher/CardSwitcher@2x.png
  30. +34 −0 make.sh
@@ -0,0 +1,6 @@
+.theos/*
+_
+obj
+theos
+_/*
+.DS_Store
@@ -0,0 +1,34 @@
+//
+// PSAppCard.h
+//
+//
+// Created by Kyle Howells on 06/08/2011.
+// Copyright 2011 Howells Apps. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@class SBApplication, SBIconBadge;
+
+@interface CSApplication : UIView
+
+@property (nonatomic, retain) UILabel *label;
+@property (nonatomic, retain) UIImageView *icon;
+@property (nonatomic, retain) UIButton *closeBox;
+@property (nonatomic, retain) SBIconBadge *badge;
+@property (nonatomic, retain) UIImageView *snapshot;
+@property (nonatomic, retain) SBApplication *application;
+@property (nonatomic, retain) UIImage *appImage;
+
+-(id)init;
+-(void)loadImages;
+-(void)reset;
+-(id)initWithApplication:(SBApplication*)application;
+-(void)layoutIcon;
+-(void)launch;
+-(void)exit;
+-(void)quitPressed;
+-(void)launchGesture:(UIGestureRecognizer*)gesture;
+-(void)closeGesture:(UIGestureRecognizer*)gesture;
+
+@end

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,80 @@
+//
+// CSApplicationController.h
+//
+//
+// Created by Kyle Howells on 21/08/2011.
+// Copyright 2011 Howells Apps. All rights reserved.
+//
+
+//#import <SpringBoard4.0/SpringBoard.h>
+#import <SpringBoard4.0/SBApplication.h>
+#import <libactivator/libactivator.h>
+#import <QuartzCore/QuartzCore.h>
+#import <Foundation/Foundation.h>
+#import "CSScrollView.h"
+#import <UIKit/UIKit.h>
+#import "CSResources.h"
+
+@class SpringBoard, CSApplicationController, CSApplication;
+
+#pragma mark Defines
+#define SBWPreActivateDisplayStack [[CSApplicationController sharedController].displayStacks objectAtIndex:0]
+#define SBWActiveDisplayStack [[CSApplicationController sharedController].displayStacks objectAtIndex:1]
+#define SBWSuspendingDisplayStack [[CSApplicationController sharedController].displayStacks objectAtIndex:2]
+#define SBWSuspendedEventOnlyDisplayStack [[CSApplicationController sharedController].displayStacks objectAtIndex:3]
+#define SBActive ([SBWActiveDisplayStack topApplication] == nil)
+#define SPRINGBOARD [CSApplicationController sharedController].springBoard
+#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
+#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
+#define X_SCALE ([UIScreen mainScreen].bounds.size.width/320)
+#define Y_SCALE ([UIScreen mainScreen].bounds.size.height/480)
+
+
+
+@interface CSApplicationController : UIWindow <LAListener, UIScrollViewDelegate> {
+ UILabel *noAppsLabel;
+ UIPageControl *pageControl;
+
+ UIImageView *backgroundView;
+
+ UIInterfaceOrientation currentOrientation;
+}
+
+@property (nonatomic, readwrite) BOOL isActive;
+@property (nonatomic, readwrite) BOOL isAnimating;
+@property (nonatomic, retain) NSString *ignoreRelaunchID;
+@property (nonatomic, readwrite) BOOL shouldAnimate;
+
+@property (nonatomic, retain) NSMutableArray *displayStacks;
+@property (nonatomic, retain) NSMutableArray *ignoredApps;
+@property (nonatomic, retain) NSMutableArray *runningApps;
+@property (nonatomic, retain) NSMutableArray *ignoredIDs;
+
+@property (nonatomic, retain) CSScrollView *scrollView;
+
+@property (nonatomic, assign) SpringBoard *springBoard;
+@property (nonatomic, retain) UIImage *springBoardImage;
+
+@property (nonatomic, retain) UIImage *closeBox;
+@property (nonatomic, retain) UIImage *statusBarDefault;
+
++(CSApplicationController*)sharedController;
+
+-(void)relayoutSubviews;
+-(void)setRotation:(UIInterfaceOrientation)orientation;
+
+-(CSApplication*)csAppforApplication:(SBApplication*)app;
+
+-(void)appLaunched:(SBApplication*)app;
+-(void)appQuit:(SBApplication*)app;
+
+-(void)deactivateGesture:(UIGestureRecognizer*)gesture;
+
+-(void)setActive:(BOOL)active;
+-(void)setActive:(BOOL)active animated:(BOOL)animated;
+-(void)activateAnimated:(BOOL)animate;
+-(void)deactivateAnimated:(BOOL)animate;
+
+-(void)checkPages;
+
+@end
Oops, something went wrong.

0 comments on commit 5189b85

Please sign in to comment.