Skip to content

Commit

Permalink
Closes #11 - added to the actual code
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksan committed Sep 9, 2011
1 parent 7b715cf commit 9df1dcd
Show file tree
Hide file tree
Showing 195 changed files with 1,442 additions and 4,696 deletions.
34 changes: 34 additions & 0 deletions Aviary/Headers/AFFeatherConstants.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
//
// AFFeatherConstants.h
// AviarySDK
//
// Created by Cameron Spickert on 8/22/11.
// Copyright 2011 Aviary INC. All rights reserved.
//

extern NSString *const kAFBlemish;
extern NSString *const kAFBlur;
extern NSString *const kAFBrightness;
extern NSString *const kAFColors;
extern NSString *const kAFContrast;
extern NSString *const kAFCrop;
extern NSString *const kAFDrawing;
extern NSString *const kAFEffects;
extern NSString *const kAFFlip;
extern NSString *const kAFRedeye;
extern NSString *const kAFRotate;
extern NSString *const kAFSaturation;
extern NSString *const kAFSharpen;
extern NSString *const kAFStickers;
extern NSString *const kAFText;
extern NSString *const kAFWhiten;

extern NSString *const kAFAlwaysSunny;
extern NSString *const kAFAutoEnhance;
extern NSString *const kAFCinematic;
extern NSString *const kAFCodeRed;
extern NSString *const kAFDaydream;
extern NSString *const kAFHeatwave;
extern NSString *const kAFIndiglow;
extern NSString *const kAFNegative;
extern NSString *const kAFOriginal;
115 changes: 115 additions & 0 deletions Aviary/Headers/AFFeatherController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
//
// AFFeatherController.h
//
// Copyright 2011 Aviary INC. All rights reserved.
//

// Note 1.1: we are continuing to update/clean up this file, so please don't rely
// on any properties, methods or protocols marked "don't use."

#import <UIKit/UIKit.h>
#import "AFFeatherConstants.h"

@class AFFeatherController;

#pragma mark -
#pragma mark AFFeatherPluginButton protocol

@protocol AFInterfaceElement <NSObject>
@required
@property (nonatomic, retain) UIColor *tintColor;
@property (nonatomic, retain) UIImage *backgroundImage;
@end

@protocol AFFeatherPluginButton <AFInterfaceElement>
@end

#pragma mark -
#pragma mark AFFeatherPlugin protocol

@protocol AFFeatherPlugin <NSObject>

@property (nonatomic, readonly) NSString *pluginId;
@property (nonatomic, readonly) NSString *localizedName;
@property (nonatomic, readonly) UIImage *icon;
@property (nonatomic, readonly) UIButton<AFFeatherPluginButton> *button;

@end

#pragma mark -
#pragma mark AFFeatherDelegate protocol

@protocol AFFeatherDelegate <NSObject>
@optional

#pragma mark -
#pragma mark New delegate methods (use these)

- (void)feather:(AFFeatherController *)featherController finishedWithImage:(UIImage *)image;
- (void)featherCanceled:(AFFeatherController *)featherController;

- (UIButton *)feather:(AFFeatherController *)featherController buttonForPlugin:(id<AFFeatherPlugin>)plugin;

#pragma mark -
#pragma mark Old delegate methods (don't use)

// These methods were removed in 1.1. Please use the methods above instead.

// - (void)afFinishedWithImage:(UIImage *)image;
// - (void)afCanceled;

@end

@class AFToolbar;
@class AFTaskBar;
@class AFImageView;
@class AFPlugin;

@interface AFFeatherController : UIViewController {
@private
IBOutlet AFToolbar *toolbar;
IBOutlet UIBarButtonItem *toolbarCancel;
IBOutlet UIBarButtonItem *toolbarBack;
IBOutlet UIBarButtonItem *toolbarTitle;
IBOutlet UIBarButtonItem *toolbarLogo;
IBOutlet UIBarButtonItem *toolbarDone;
IBOutlet UIBarButtonItem *toolbarSave;
IBOutlet UIActivityIndicatorView *activityWheel;

IBOutlet AFTaskBar *taskBar;
IBOutlet AFImageView *imageView, *imageViewTmp;
}

#pragma mark -
#pragma mark Public methods

@property (nonatomic, assign) id<AFFeatherDelegate> delegate;
@property (nonatomic, retain, readonly) id<AFInterfaceElement> topBar;
@property (nonatomic, retain, readonly) id<AFInterfaceElement> bottomBar;
@property (nonatomic, retain, readonly) id<AFInterfaceElement> paramsBar;

- (id)initWithImage:(UIImage *)image;
- (id)initWithImage:(UIImage *)image andTools:(NSArray *)tools;

#pragma mark -
#pragma mark Deprecated methods

// These methods will be removed in the future. Use the
// AFInterfaceElement-compliant properties above instead.

- (void)setTitleBarTintColor:(UIColor *)color;
- (void)setPluginBarTintColor:(UIColor *)color;
- (void)setPluginParametersBarTintColor:(UIColor *)color;

#pragma mark -
#pragma mark Internal methods (don't use)

+ (AFPlugin *)pluginByPluginId:(NSString *)pluginId;

- (IBAction)handleLogoPressed:(id)sender;
- (IBAction)toolbarCancel:(id)sender;
- (IBAction)toolbarSave:(id)sender;
- (IBAction)toolbarDone:(id)sender;
- (IBAction)toolbarBack:(id)sender;

@end
Binary file not shown.
Binary file added Aviary/Resources/AviarySDK-Core.bundle/Info.plist
Binary file not shown.
130 changes: 130 additions & 0 deletions Aviary/Resources/AviarySDK-Core.bundle/Mobile Site/css/1140.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
/* CSS Resets */

html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,address,cite,code,del,dfn,em,img,ins,q,small,strong,sub,sup,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;margin:0;padding:0}article,aside,figure,figure img,figcaption,hgroup,footer,header,nav,section,video,object{display:block}a img{border:0}figure{position:relative}figure img{width:100%}


/* ==================================================================================================================== */
/* ! The 1140px Grid V2 by Andy Taylor \ http://cssgrid.net \ http://www.twitter.com/andytlr \ http://www.andytlr.com */
/* ==================================================================================================================== */

.container {
padding-left: 20px;
padding-right: 20px;
}

.row {
width: 100%;
max-width: 1140px;
min-width: 755px;
margin: 0 auto;
overflow: hidden;
}

.onecol, .twocol, .threecol, .fourcol, .fivecol, .sixcol, .sevencol, .eightcol, .ninecol, .tencol, .elevencol {
margin-right: 3.8%;
float: left;
min-height: 1px;
}

.row .onecol {
width: 4.85%;
}

.row .twocol {
width: 13.45%;
}

.row .threecol {
width: 22.05%;
}

.row .fourcol {
width: 30.75%;
}

.row .fivecol {
width: 39.45%;
}

.row .sixcol {
width: 48%;
}

.row .sevencol {
width: 56.75%;
}

.row .eightcol {
width: 65.4%;
}

.row .ninecol {
width: 74.05%;
}

.row .tencol {
width: 82.7%;
}

.row .elevencol {
width: 91.35%;
}

.row .twelvecol {
width: 100%;
float: left;
}

.last {
margin-right: 0px;
}

img, object, embed {
max-width: 100%;
}

img {
height: auto;
}


/* Smaller screens */

@media only screen and (max-width: 1023px) {

body {
font-size: 0.8em;
line-height: 1.5em;
}

}


/* Mobile */

@media handheld, only screen and (max-width: 767px) {

body {
font-size: 16px;
-webkit-text-size-adjust: none;
}

.row, body, .container {
width: 100%;
min-width: 0;
margin-left: 0px;
margin-right: 0px;
padding-left: 0px;
padding-right: 0px;
}

.row .onecol, .row .twocol, .row .threecol, .row .fourcol, .row .fivecol, .row .sixcol, .row .sevencol, .row .eightcol, .row .ninecol, .row .tencol, .row .elevencol, .row .twelvecol {
width: auto;
float: none;
margin-left: 0px;
margin-right: 0px;
padding-left: 20px;
padding-right: 20px;
}

}
43 changes: 43 additions & 0 deletions Aviary/Resources/AviarySDK-Core.bundle/Mobile Site/css/ie.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.onecol {
width: 4.7%;
}

.twocol {
width: 13.2%;
}

.threecol {
width: 22.05%;
}

.fourcol {
width: 30.6%;
}

.fivecol {
width: 39%;
}

.sixcol {
width: 48%;
}

.sevencol {
width: 56.75%;
}

.eightcol {
width: 61.6%;
}

.ninecol {
width: 74.05%;
}

.tencol {
width: 82%;
}

.elevencol {
width: 91.35%;
}
Loading

0 comments on commit 9df1dcd

Please sign in to comment.