Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit b9dd738

Browse files
committed
Switched to MPL2 licence
1 parent e355f5f commit b9dd738

File tree

121 files changed

+2265
-2416
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+2265
-2416
lines changed
-74.2 KB
Binary file not shown.

DKDrawKit.framework/Versions/A/Headers/DKArcPath.h

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
/**
2-
@author Graham Cox, Apptree.net
3-
@author Graham Miln, miln.eu
4-
@author Contributions from the community
5-
@date 2005-2014
6-
@copyright This software is released subject to licensing conditions as detailed in DRAWKIT-LICENSING.TXT, which must accompany this source file.
7-
*/
2+
@author Contributions from the community; see CONTRIBUTORS.md
3+
@date 2005-2015
4+
@copyright MPL2; see LICENSE.txt
5+
*/
86

97
#import "DKDrawablePath.h"
108

119
// shape types this class supports:
1210

1311
typedef enum {
14-
kDKArcPathOpenArc = 0,
15-
kDKArcPathWedge,
16-
kDKArcPathCircle
12+
kDKArcPathOpenArc = 0,
13+
kDKArcPathWedge,
14+
kDKArcPathCircle
1715
} DKArcPathType;
1816

1917
// the class:
2018

2119
@interface DKArcPath : DKDrawablePath <NSCopying, NSCoding> {
2220
@private
23-
CGFloat mRadius;
24-
CGFloat mStartAngle;
25-
CGFloat mEndAngle;
26-
NSPoint mCentre;
27-
DKArcPathType mArcType;
21+
CGFloat mRadius;
22+
CGFloat mStartAngle;
23+
CGFloat mEndAngle;
24+
NSPoint mCentre;
25+
DKArcPathType mArcType;
2826
}
2927

3028
- (void)setRadius:(CGFloat)rad;
@@ -55,11 +53,11 @@ typedef enum {
5553
// they are consecutive, continuous, and ordered thus:
5654

5755
enum {
58-
kDKArcPathRadiusPart = 2,
59-
kDKArcPathStartAnglePart,
60-
kDKArcPathEndAnglePart,
61-
kDKArcPathRotationKnobPart,
62-
kDKArcPathCentrePointPart,
56+
kDKArcPathRadiusPart = 2,
57+
kDKArcPathStartAnglePart,
58+
kDKArcPathEndAnglePart,
59+
kDKArcPathRotationKnobPart,
60+
kDKArcPathCentrePointPart,
6361
};
6462

6563
// the simple creation mode can be set (rather than, say, kDKPathCreateModeArcSegment) to create arcs in a one-step process
@@ -68,5 +66,5 @@ enum {
6866
// than the 2-stage arc creation process.
6967

7068
enum {
71-
kDKArcSimpleCreationMode = 7
69+
kDKArcSimpleCreationMode = 7
7270
};

DKDrawKit.framework/Versions/A/Headers/DKArrowStroke.h

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,50 @@
11
/**
2-
@author Graham Cox, Apptree.net
3-
@author Graham Miln, miln.eu
4-
@author Contributions from the community
5-
@date 2005-2014
6-
@copyright This software is released subject to licensing conditions as detailed in DRAWKIT-LICENSING.TXT, which must accompany this source file.
7-
*/
2+
@author Contributions from the community; see CONTRIBUTORS.md
3+
@date 2005-2015
4+
@copyright MPL2; see LICENSE.txt
5+
*/
86

97
#import "DKStroke.h"
108

119
// arrow head kinds - each end can be specified independently:
1210

1311
typedef enum {
14-
kDKArrowHeadNone = 0,
15-
kDKArrowHeadStandard = 1,
16-
kDKArrowHeadInflected = 2,
17-
kDKArrowHeadRound = 3,
18-
kDKArrowHeadSingleFeather = 4,
19-
kDKArrowHeadDoubleFeather = 5,
20-
kDKArrowHeadTripleFeather = 6,
21-
kDKArrowHeadDimensionLine = 7,
22-
kDKArrowHeadDimensionLineAndBar = 8,
23-
kDKArrowHeadSquare = 9,
24-
kDKArrowHeadDiamond = 10
12+
kDKArrowHeadNone = 0,
13+
kDKArrowHeadStandard = 1,
14+
kDKArrowHeadInflected = 2,
15+
kDKArrowHeadRound = 3,
16+
kDKArrowHeadSingleFeather = 4,
17+
kDKArrowHeadDoubleFeather = 5,
18+
kDKArrowHeadTripleFeather = 6,
19+
kDKArrowHeadDimensionLine = 7,
20+
kDKArrowHeadDimensionLineAndBar = 8,
21+
kDKArrowHeadSquare = 9,
22+
kDKArrowHeadDiamond = 10
2523
} DKArrowHeadKind;
2624

2725
// positioning of dimension label, or none:
2826

2927
typedef enum {
30-
kDKDimensionNone = 0,
31-
kDKDimensionPlaceAboveLine = 1,
32-
kDKDimensionPlaceInLine = 2,
33-
kDKDimensionPlaceBelowLine = 3
28+
kDKDimensionNone = 0,
29+
kDKDimensionPlaceAboveLine = 1,
30+
kDKDimensionPlaceInLine = 2,
31+
kDKDimensionPlaceBelowLine = 3
3432
} DKDimensioningLineOptions;
3533

3634
// dimension kind - sets additional embellishments on the dimension text:
3735

3836
typedef enum {
39-
kDKDimensionLinear = 0,
40-
kDKDimensionDiameter = 1,
41-
kDKDimensionRadius = 2,
42-
kDKDimensionAngle = 3
37+
kDKDimensionLinear = 0,
38+
kDKDimensionDiameter = 1,
39+
kDKDimensionRadius = 2,
40+
kDKDimensionAngle = 3
4341
} DKDimensionTextKind;
4442

4543
// tolerance options:
4644

4745
typedef enum {
48-
kDKDimensionToleranceNotShown = 0,
49-
kDKDimensionToleranceShown = 1
46+
kDKDimensionToleranceNotShown = 0,
47+
kDKDimensionToleranceShown = 1
5048
} DKDimensionToleranceOption;
5149

5250
// the class:
@@ -60,16 +58,16 @@ typedef enum {
6058
*/
6159
@interface DKArrowStroke : DKStroke <NSCoding, NSCopying> {
6260
@private
63-
DKArrowHeadKind mArrowHeadAtStart;
64-
DKArrowHeadKind mArrowHeadAtEnd;
65-
CGFloat m_arrowLength;
66-
CGFloat m_arrowWidth;
67-
DKDimensioningLineOptions mDimensionOptions;
68-
NSNumberFormatter* m_dims_formatter;
69-
NSColor* m_outlineColour;
70-
CGFloat m_outlineWidth;
71-
DKDimensionTextKind mDimTextKind;
72-
DKDimensionToleranceOption mDimToleranceOptions;
61+
DKArrowHeadKind mArrowHeadAtStart;
62+
DKArrowHeadKind mArrowHeadAtEnd;
63+
CGFloat m_arrowLength;
64+
CGFloat m_arrowWidth;
65+
DKDimensioningLineOptions mDimensionOptions;
66+
NSNumberFormatter* m_dims_formatter;
67+
NSColor* m_outlineColour;
68+
CGFloat m_outlineWidth;
69+
DKDimensionTextKind mDimTextKind;
70+
DKDimensionToleranceOption mDimToleranceOptions;
7371
}
7472

7573
+ (void)setDimensioningLineTextAttributes:(NSDictionary*)attrs;

DKDrawKit.framework/Versions/A/Headers/DKBSPDirectObjectStorage.h

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
@author Graham Cox, Apptree.net
3-
@author Graham Miln, miln.eu
4-
@author Contributions from the community
5-
@date 2005-2014
6-
@copyright This software is released subject to licensing conditions as detailed in DRAWKIT-LICENSING.TXT, which must accompany this source file.
7-
*/
2+
@author Contributions from the community; see CONTRIBUTORS.md
3+
@date 2005-2015
4+
@copyright MPL2; see LICENSE.txt
5+
*/
86

97
#import <Cocoa/Cocoa.h>
108
#import "DKBSPObjectStorage.h"
@@ -22,10 +20,10 @@
2220
*/
2321
@interface DKBSPDirectObjectStorage : DKLinearObjectStorage {
2422
@private
25-
DKBSPDirectTree* mTree;
26-
NSUInteger mTreeDepth;
27-
NSUInteger mLastItemCount;
28-
BOOL mAutoRebuild;
23+
DKBSPDirectTree* mTree;
24+
NSUInteger mTreeDepth;
25+
NSUInteger mLastItemCount;
26+
BOOL mAutoRebuild;
2927
}
3028

3129
- (void)setTreeDepth:(NSUInteger)aDepth;
@@ -40,11 +38,11 @@
4038

4139
@interface DKBSPDirectTree : DKBSPIndexTree {
4240
@public
43-
id<DKStorableObject> mObj;
44-
NSMutableArray* mFoundObjects;
45-
NSUInteger mObjectCount;
46-
NSView* mViewRef;
47-
NSRect mRect;
41+
id<DKStorableObject> mObj;
42+
NSMutableArray* mFoundObjects;
43+
NSUInteger mObjectCount;
44+
NSView* mViewRef;
45+
NSRect mRect;
4846
}
4947

5048
- (void)insertItem:(id<DKStorableObject>)obj withRect:(NSRect)rect;

DKDrawKit.framework/Versions/A/Headers/DKBSPObjectStorage.h

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
@author Graham Cox, Apptree.net
3-
@author Graham Miln, miln.eu
4-
@author Contributions from the community
5-
@date 2005-2014
6-
@copyright This software is released subject to licensing conditions as detailed in DRAWKIT-LICENSING.TXT, which must accompany this source file.
7-
*/
2+
@author Contributions from the community; see CONTRIBUTORS.md
3+
@date 2005-2015
4+
@copyright MPL2; see LICENSE.txt
5+
*/
86

97
#import <Cocoa/Cocoa.h>
108
#import "DKLinearObjectStorage.h"
@@ -14,17 +12,17 @@
1412
/// node types
1513

1614
typedef enum {
17-
kNodeHorizontal,
18-
kNodeVertical,
19-
kNodeLeaf
15+
kNodeHorizontal,
16+
kNodeVertical,
17+
kNodeLeaf
2018
} DKLeafType;
2119

2220
/// tree operations
2321

2422
typedef enum {
25-
kDKOperationInsert,
26-
kDKOperationDelete,
27-
kDKOperationAccumulate
23+
kDKOperationInsert,
24+
kDKOperationDelete,
25+
kDKOperationAccumulate
2826
} DKBSPOperation;
2927

3028
/** @brief The actual storage object.
@@ -35,9 +33,9 @@ typedef enum {
3533
*/
3634
@interface DKBSPObjectStorage : DKLinearObjectStorage {
3735
@private
38-
DKBSPIndexTree* mTree;
39-
NSUInteger mTreeDepth;
40-
NSUInteger mLastItemCount;
36+
DKBSPIndexTree* mTree;
37+
NSUInteger mTreeDepth;
38+
NSUInteger mLastItemCount;
4139
}
4240

4341
- (void)setTreeDepth:(NSUInteger)aDepth;
@@ -59,13 +57,13 @@ typedef enum {
5957
*/
6058
@interface DKBSPIndexTree : NSObject {
6159
@protected
62-
NSMutableArray* mLeaves;
63-
NSMutableArray* mNodes;
64-
NSMutableIndexSet* mResults;
65-
NSSize mCanvasSize;
66-
DKBSPOperation mOp;
67-
NSUInteger mOpIndex;
68-
NSBezierPath* mDebugPath;
60+
NSMutableArray* mLeaves;
61+
NSMutableArray* mNodes;
62+
NSMutableIndexSet* mResults;
63+
NSSize mCanvasSize;
64+
DKBSPOperation mOp;
65+
NSUInteger mOpIndex;
66+
NSBezierPath* mDebugPath;
6967
}
7068

7169
+ (Class)leafClass;

DKDrawKit.framework/Versions/A/Headers/DKBezierLayoutManager.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
@author Graham Cox, Apptree.net
3-
@author Graham Miln, miln.eu
4-
@author Contributions from the community
5-
@date 2005-2014
6-
@copyright This software is released subject to licensing conditions as detailed in DRAWKIT-LICENSING.TXT, which must accompany this source file.
7-
*/
2+
@author Contributions from the community; see CONTRIBUTORS.md
3+
@date 2005-2015
4+
@copyright MPL2; see LICENSE.txt
5+
*/
86

97
#import <Cocoa/Cocoa.h>
108

@@ -14,7 +12,7 @@
1412
It can be used where a normal NSLayoutManager would be used to return the text as a path.
1513
*/
1614
@interface DKBezierLayoutManager : NSLayoutManager {
17-
NSBezierPath* mPath;
15+
NSBezierPath* mPath;
1816
}
1917

2018
- (NSBezierPath*)textPath;

DKDrawKit.framework/Versions/A/Headers/DKCIFilterRastGroup.h

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
@author Graham Cox, Apptree.net
3-
@author Graham Miln, miln.eu
4-
@author Contributions from the community
5-
@date 2005-2014
6-
@copyright This software is released subject to licensing conditions as detailed in DRAWKIT-LICENSING.TXT, which must accompany this source file.
7-
*/
2+
@author Contributions from the community; see CONTRIBUTORS.md
3+
@date 2005-2015
4+
@copyright MPL2; see LICENSE.txt
5+
*/
86

97
#import "DKRastGroup.h"
108

@@ -15,9 +13,9 @@
1513
allows us to leverage all sorts of imaging code to extend the range of available styles and effects.
1614
*/
1715
@interface DKCIFilterRastGroup : DKRastGroup <NSCoding, NSCopying> {
18-
NSString* m_filter;
19-
NSDictionary* m_arguments;
20-
NSImage* m_cache;
16+
NSString* m_filter;
17+
NSDictionary* m_arguments;
18+
NSImage* m_cache;
2119
}
2220

2321
+ (DKCIFilterRastGroup*)effectGroupWithFilter:(NSString*)filter;

0 commit comments

Comments
 (0)