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

Phone 3fix #145

Open
wants to merge 3 commits into
base: phone
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 0 additions & 2 deletions Classes/WDCanvasController.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

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

@class WDCanvas;
@class WDColorBalanceController;
Expand Down
2 changes: 0 additions & 2 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
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
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
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
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
1 change: 0 additions & 1 deletion Inkpad-Core/livarot/ShapeSweep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

#include "Shape.h"
#include "LivarotDefs.h"
#include "MyMath.h"


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

#include "Shape.h"
#include "LivarotDefs.h"
#include "MyMath.h"

SweepEvent::SweepEvent()
Expand Down
1 change: 0 additions & 1 deletion Openclipart/OCAThumbnailCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#import "OCAThumbnailCell.h"
#import "OCAEntry.h"
#import "OCAThumbnailCache.h"
#import "UIView+Additions.h"

@interface OCAThumbnailCell ()
Expand Down