Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add iphone6 5.5 #131

Open
wants to merge 21 commits into
base: phone
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
ab766c5
Fix issue with `none` align parameter of preserveAspectRatio.
rhcad Apr 19, 2014
a6509b2
Set the <g> Layer ID to the Inkpad layer name. #90
rhcad Apr 20, 2014
55b9046
Not import header files which have already imported indirectly.
rhcad Apr 20, 2014
7028dcf
Fix for issue #133
May 5, 2015
1ec919b
Fix Xcode7 compile error: Absolute value function 'fabsf' given an ar…
robotbear2077 Sep 23, 2015
2def9e4
Merge pull request #147 from yaokaige/develop
rhcad Sep 29, 2015
b387c56
Merge pull request #146 from mpprdev/develop
alistairmcmillan Feb 11, 2016
230d77c
Add .travis.yml
alistairmcmillan Feb 12, 2016
cecc12d
Sharing Xcode schemes to allow Travis to work
alistairmcmillan Feb 12, 2016
6a8c928
Fix .travis.yml
alistairmcmillan Feb 12, 2016
c42c6b0
Fix for code signing errors
alistairmcmillan Feb 12, 2016
e15e11c
Update README
alistairmcmillan Feb 12, 2016
b77f67c
Merge pull request #154 from alistairmcmillan/AddTravisSupport
alistairmcmillan Feb 12, 2016
f6e591b
Add LSApplicationQueriesSchemes key for Dropbox
alistairmcmillan Feb 12, 2016
b704155
Fix Dropbox permission problem
alistairmcmillan Feb 12, 2016
694015c
Merge pull request #155 from alistairmcmillan/FixDropboxIssues
alistairmcmillan Feb 13, 2016
889f38e
Adding Arabic translation by Abduolkader Idriss (https://github.com/z…
alistairmcmillan Mar 15, 2016
aaee520
Remove duplicate "Inkpad" from very start
alistairmcmillan Mar 15, 2016
c114e74
Merge pull request #158 from alistairmcmillan/develop
alistairmcmillan Mar 15, 2016
6e48b2c
Fix for Facebook post not working
alistairmcmillan Mar 31, 2016
fea84e3
Merge pull request #159 from alistairmcmillan/develop
alistairmcmillan Mar 31, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: objective-c

script: xctool -project Inkpad.xcodeproj -scheme Inkpad build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
2 changes: 1 addition & 1 deletion Classes/WDAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ - (void)applicationDidFinishLaunching:(UIApplication *)application
NSString *consumerKey = @"xxxx";
NSString *consumerSecret = @"xxxx";

DBSession *session = [[DBSession alloc] initWithAppKey:consumerKey appSecret:consumerSecret root:kDBRootDropbox];
DBSession *session = [[DBSession alloc] initWithAppKey:consumerKey appSecret:consumerSecret root:kDBRootAppFolder];

session.delegate = self; // DBSessionDelegate methods allow you to handle re-authenticating
[DBSession setSharedSession:session];
Expand Down
2 changes: 0 additions & 2 deletions Classes/WDCanvasController.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
//

#import <UIKit/UIKit.h>
#import "WDElement.h"
#import "WDStrokeStyle.h"

@class WDCanvas;
@class WDColorBalanceController;
Expand Down
6 changes: 3 additions & 3 deletions Classes/WDCanvasController.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#import <Twitter/Twitter.h>
#import <MessageUI/MessageUI.h>
#import "WDAbstractPath.h"
#import "WDButton.h"
#import "WDCanvas.h"
#import "WDCanvasController.h"
Expand All @@ -30,7 +29,6 @@
#import "WDLayerController.h"
#import "WDMenu.h"
#import "WDMenuItem.h"
#import "WDPath.h"
#import "WDPropertyManager.h"
#import "WDRotateTool.h"
#import "WDSelectionTool.h"
Expand Down Expand Up @@ -1417,7 +1415,9 @@ - (void) postOnFacebook:(id)sender
[facebookSheet addImage:self.drawing.image];
[facebookSheet setInitialText:NSLocalizedString(@"Check out my Inkpad drawing!", @"Check out my Inkpad drawing!")];

[self presentViewController:facebookSheet animated:YES completion:nil];
dispatch_async(dispatch_get_main_queue(), ^ {
[self presentViewController:facebookSheet animated:YES completion:nil];
});
}

- (void) tweetDrawing:(id)sender
Expand Down
1 change: 0 additions & 1 deletion Classes/WDColorAdjustmentController.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#import "WDCanvas.h"
#import "WDDrawingController.h"
#import "WDColorAdjustmentController.h"
#import "WDDrawing.h"
#import "WDModalTitleBar.h"
#import "WDPaletteBackgroundView.h"
#import "UIView+Additions.h"
Expand Down
2 changes: 2 additions & 0 deletions Classes/WDFillController.m
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ - (void) viewDidLoad
{
[super viewDidLoad];

self.edgesForExtendedLayout = UIRectEdgeNone;

colorController_ = [[WDColorController alloc] initWithNibName:@"Color" bundle:nil];
[self.view addSubview:colorController_.view];

Expand Down
2 changes: 2 additions & 0 deletions Classes/WDFontController.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ - (void)viewDidLoad
{
[super viewDidLoad];

self.edgesForExtendedLayout = UIRectEdgeNone;

sizeSlider_.minimumValue = kMinFontSize;
sizeSlider_.maximumValue = kMaxFontSize;

Expand Down
1 change: 0 additions & 1 deletion Classes/WDHueSaturationController.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#import "WDDrawingController.h"
#import "WDColor.h"
#import "WDColorSlider.h"
#import "WDElement.h"
#import "WDHueSaturationController.h"
#import "WDHueShifter.h"

Expand Down
2 changes: 0 additions & 2 deletions Classes/WDSelectionView.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#import "WDBezierNode.h"
#import "WDCanvas.h"
#import "WDDrawingController.h"
#import "WDDrawing.h"
#import "WDElement.h"
#import "WDGLUtilities.h"
#import "WDLayer.h"
#import "WDPath.h"
Expand Down
2 changes: 2 additions & 0 deletions Classes/WDShadowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ - (void) viewDidLoad
{
[super viewDidLoad];

self.edgesForExtendedLayout = UIRectEdgeNone;

colorController_ = [[WDColorController alloc] initWithNibName:@"Color" bundle:nil];
[self.view addSubview:colorController_.view];
colorController_.colorWell.shadowMode = YES;
Expand Down
2 changes: 2 additions & 0 deletions Classes/WDStrokeController.m
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ - (void) viewDidLoad
{
[super viewDidLoad];

self.edgesForExtendedLayout = UIRectEdgeNone;

colorController_ = [[WDColorController alloc] initWithNibName:@"Color" bundle:nil];

[self.view addSubview:colorController_.view];
Expand Down
3 changes: 3 additions & 0 deletions Classes/WDSwatchController.m
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ - (void)loadView
[collectionView_ registerClass:[WDSwatchCell class] forCellWithReuseIdentifier:@"cellID"];

self.view = collectionView_;

self.edgesForExtendedLayout = UIRectEdgeNone;

}

- (NSArray *) toolbarItems
Expand Down
374 changes: 374 additions & 0 deletions Help/index_ar.html

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions Inkpad-Core/Controllers/WDDrawingController.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,16 @@
#import "NSArray+Additions.h"
#import "NSString+Additions.h"
#import "UIImage+Additions.h"
#import "WDAbstractPath.h"
#import "WDBezierNode.h"
#import "WDColor.h"
#import "WDCompoundPath.h"
#import "WDDrawing.h"
#import "WDDrawingController.h"
#import "WDDynamicGuideController.h"
#import "WDFontManager.h"
#import "WDGroup.h"
#import "WDImage.h"
#import "WDInspectableProperties.h"
#import "WDLayer.h"
#import "WDPath.h"
#import "WDPathfinder.h"
#import "WDPropertyManager.h"
#import "WDText.h"
Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/Controllers/WDPropertyManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// Copyright (c) 2011-2013 Steve Sprang
//

#import "WDAbstractPath.h"
#import "WDColor.h"
#import "WDDrawingController.h"
#import "WDFontManager.h"
Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/Model/WDAbstractPath.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#import <Foundation/Foundation.h>
#import "WDStylable.h"
#import "WDStrokeStyle.h"

@protocol WDPathPainter;

Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/Model/WDAbstractPath.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#import <UIKit/UIKit.h>
#endif

#import "WDAbstractPath.h"
#import "WDArrowhead.h"
#import "WDColor.h"
#import "WDCompoundPath.h"
Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/Model/WDCurveFit.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#import "FitCurves.h"
#import "WDBezierNode.h"
#import "WDBezierSegment.h"
#import "WDCurveFit.h"
#import "WDPath.h"
#import "WDUtilities.h"
Expand Down
2 changes: 0 additions & 2 deletions Inkpad-Core/Model/WDDrawing.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#import "UIColor+Additions.h"
#import "WDColor.h"
#import "WDDocumentProtocol.h"
#import "WDDrawing.h"
#import "WDElement.h"
#import "WDImage.h"
#import "WDImageData.h"
#import "WDLayer.h"
Expand Down
3 changes: 0 additions & 3 deletions Inkpad-Core/Model/WDElement.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@

#import "UIColor+Additions.h"
#import "WDColor.h"
#import "WDDrawing.h"
#import "WDElement.h"
#import "WDGLUtilities.h"
#import "WDGroup.h"
#import "WDInspectableProperties.h"
#import "WDLayer.h"
#import "WDPickResult.h"
#import "WDPropertyManager.h"
#import "WDShadow.h"
#import "WDSVGHelper.h"
Expand Down
3 changes: 0 additions & 3 deletions Inkpad-Core/Model/WDImage.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@
#endif

#import "UIColor+Additions.h"
#import "WDBezierSegment.h"
#import "WDColor.h"
#import "WDDrawing.h"
#import "WDGLUtilities.h"
#import "WDImage.h"
#import "WDImageData.h"
#import "WDLayer.h"
#import "WDPickResult.h"
#import "WDShadow.h"
#import "WDSVGHelper.h"
#import "WDUtilities.h"
Expand Down
5 changes: 3 additions & 2 deletions Inkpad-Core/Model/WDLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//

#import "UIColor+Additions.h"
#import "WDDrawing.h"
#import "WDElement.h"
#import "WDLayer.h"
#import "WDSVGHelper.h"
Expand Down Expand Up @@ -180,7 +179,9 @@ - (WDXMLElement *) SVGElement
}

WDXMLElement *layer = [WDXMLElement elementWithName:@"g"];
[layer setAttribute:@"id" value:[[WDSVGHelper sharedSVGHelper] uniqueIDWithPrefix:@"Layer"]];
NSString *uniqueName = [[WDSVGHelper sharedSVGHelper] uniqueIDWithPrefix:
[@"Layer$" stringByAppendingString:name_]];
[layer setAttribute:@"id" value:[uniqueName substringFromIndex:6]];
[layer setAttribute:@"inkpad:layerName" value:name_];

if (self.hidden) {
Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/Model/WDPath.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#import "UIColor+Additions.h"
#import "WDArrowhead.h"
#import "WDBezierNode.h"
#import "WDBezierSegment.h"
#import "WDColor.h"
#import "WDCompoundPath.h"
#import "WDFillTransform.h"
Expand Down
2 changes: 0 additions & 2 deletions Inkpad-Core/Model/WDText.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
#import <CoreText/CoreText.h>
#import "NSString+Additions.h"
#import "UIColor+Additions.h"
#import "WDBezierSegment.h"
#import "WDColor.h"
#import "WDDrawing.h"
#import "WDFillTransform.h"
#import "WDFontManager.h"
#import "WDGLUtilities.h"
Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/Model/WDTextPath.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#import "NSString+Additions.h"
#import "UIColor+Additions.h"
#import "WDBezierNode.h"
#import "WDBezierSegment.h"
#import "WDColor.h"
#import "WDFillTransform.h"
#import "WDFontManager.h"
Expand Down
3 changes: 0 additions & 3 deletions Inkpad-Core/SVG/WDSVGParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
//

#import <Foundation/Foundation.h>
#import "WDDrawing.h"
#import "WDSVGElement.h"
#import "WDSVGParserStateStack.h"
#import "WDSVGStyleParser.h"
#import "WDSVGTransformParser.h"

Expand Down
4 changes: 2 additions & 2 deletions Inkpad-Core/SVG/WDSVGParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#import "WDGroup.h"
#import "WDImage.h"
#import "WDLayer.h"
#import "WDPath.h"
#import "WDSVGElement.h"
#import "WDSVGParser.h"
#import "WDSVGPathParser.h"
#import "WDText.h"
Expand Down Expand Up @@ -136,6 +134,7 @@ - (CGAffineTransform) preserveAspectRatio:(NSString *)source withSize:(CGSize)si
{
NSArray *preserveAspectRatio = [[source lowercaseString] componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
BOOL slice = [preserveAspectRatio containsObject:@"slice"];
BOOL notUniformScale = [preserveAspectRatio containsObject:@"none"];
enum {MIN, MID, MAX} xalign = MID, yalign = MID;
for (NSString *token in preserveAspectRatio) {
if ([token hasPrefix:@"xmin"]) {
Expand All @@ -153,6 +152,7 @@ - (CGAffineTransform) preserveAspectRatio:(NSString *)source withSize:(CGSize)si
}
CGPoint translate = CGPointZero;
CGSize scale = CGSizeMake(bounds.size.width / size.width, bounds.size.height / size.height);
if (notUniformScale) {} else
if (((scale.width > scale.height) && slice) || ((scale.width < scale.height) && !slice)) {
switch (xalign) {
case MIN:
Expand Down
2 changes: 1 addition & 1 deletion Inkpad-Core/SVG/WDSVGPathParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ BOOL decomposeArcToCubic(CGMutablePathRef path, float angle, float rx, float ry,

// Some results of atan2 on some platform implementations are not exact enough. So that we get more
// cubic curves than expected here. Adding 0.001f reduces the count of segments to the correct count.
int segments = ceilf(fabsf(thetaArc / (M_PI_2 + 0.001f)));
int segments = ceilf(fabs(thetaArc / (M_PI_2 + 0.001f)));
for (int i = 0; i < segments; ++i) {
float startTheta = theta1 + i * thetaArc / segments;
float endTheta = theta1 + (i + 1) * thetaArc / segments;
Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/SVG/WDSVGStyleParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// Copyright (c) 2011-2013 Steve Sprang
//

#import "WDAbstractPath.h"
#import "WDColor.h"
#import "WDFillTransform.h"
#import "WDGradient.h"
Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/Tools/WDEraserTool.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#import "WDCanvas.h"
#import "WDColor.h"
#import "WDCurveFit.h"
#import "WDDrawing.h"
#import "WDDrawingController.h"
#import "WDEraserTool.h"
#import "WDPath.h"
Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/Tools/WDEyedropperTool.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#import "WDEyedropperTool.h"
#import "WDCanvas.h"
#import "WDDrawingController.h"
#import "WDElement.h"
#import "WDImage.h"
#import "WDInspectableProperties.h"
#import "WDPickResult.h"
Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/Tools/WDFreehandTool.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#import "WDCanvas.h"
#import "WDColor.h"
#import "WDCurveFit.h"
#import "WDDrawing.h"
#import "WDDrawingController.h"
#import "WDFreehandTool.h"
#import "WDInspectableProperties.h"
Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/Tools/WDPenTool.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#import "WDBezierNode.h"
#import "WDCanvas.h"
#import "WDDrawingController.h"
#import "WDDrawing.h"
#import "WDFillTransform.h"
#import "WDInspectableProperties.h"
#import "WDPath.h"
Expand Down
2 changes: 0 additions & 2 deletions Inkpad-Core/Tools/WDSelectionTool.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// Copyright (c) 2011-2013 Steve Sprang
//

#import "WDAbstractPath.h"
#import "WDBezierNode.h"
#import "WDCanvas.h"
#import "WDCanvasController.h"
Expand All @@ -18,7 +17,6 @@
#import "WDDynamicGuideController.h"
#import "WDDrawingController.h"
#import "WDFillTransform.h"
#import "WDPath.h"
#import "WDPropertyManager.h"
#import "WDSelectionTool.h"
#import "WDTextPath.h"
Expand Down
2 changes: 0 additions & 2 deletions Inkpad-Core/Tools/WDShapeTool.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
//


#import "WDAbstractPath.h"
#import "WDBezierNode.h"
#import "WDCanvas.h"
#import "WDDrawing.h"
#import "WDDrawingController.h"
#import "WDDynamicGuideController.h"
#import "WDInspectableProperties.h"
Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/Tools/WDTextTool.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#import "WDCanvas.h"
#import "WDCanvasController.h"
#import "WDColor.h"
#import "WDDrawing.h"
#import "WDDrawingController.h"
#import "WDPath.h"
#import "WDText.h"
Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/Tools/WDTool.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//

#import "WDCanvas.h"
#import "WDDrawing.h"
#import "WDDrawingController.h"
#import "WDPickResult.h"
#import "WDTool.h"
Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/livarot/Path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "Path.h"
#include "Shape.h"
#include "MyMath.h"
#include <math.h>


Expand Down
1 change: 0 additions & 1 deletion Inkpad-Core/livarot/PathConversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "Path.h"
#include "Shape.h"
#include "MyMath.h"

void Path::ConvertWithBackData(float treshhold)
{
Expand Down
Loading