Permalink
Browse files

Initial import of LinkBack 1.0 alpha from <http://linkbackproject.org…

  • Loading branch information...
0 parents commit 544c9ac65304f28eeef71ad4842d789ee0fecda9 @tjw tjw committed May 18, 2010
Showing with 15,775 additions and 0 deletions.
  1. +14 −0 .gitignore
  2. BIN Documentation/Linkback Overview.pdf
  3. BIN LiveSketch/Arrow.tiff
  4. BIN LiveSketch/Circle.tiff
  5. BIN LiveSketch/Cross.tiff
  6. BIN LiveSketch/Curve.tiff
  7. +43 −0 LiveSketch/DocumentModel.subproj/SKTCircle.h
  8. +61 −0 LiveSketch/DocumentModel.subproj/SKTCircle.m
  9. +89 −0 LiveSketch/DocumentModel.subproj/SKTDrawDocument.h
  10. +980 −0 LiveSketch/DocumentModel.subproj/SKTDrawDocument.m
  11. +155 −0 LiveSketch/DocumentModel.subproj/SKTGraphic.h
  12. +715 −0 LiveSketch/DocumentModel.subproj/SKTGraphic.m
  13. +57 −0 LiveSketch/DocumentModel.subproj/SKTImage.h
  14. +248 −0 LiveSketch/DocumentModel.subproj/SKTImage.m
  15. +49 −0 LiveSketch/DocumentModel.subproj/SKTLine.h
  16. +160 −0 LiveSketch/DocumentModel.subproj/SKTLine.m
  17. +42 −0 LiveSketch/DocumentModel.subproj/SKTRectangle.h
  18. +61 −0 LiveSketch/DocumentModel.subproj/SKTRectangle.m
  19. +47 −0 LiveSketch/DocumentModel.subproj/SKTRenderingView.h
  20. +86 −0 LiveSketch/DocumentModel.subproj/SKTRenderingView.m
  21. +48 −0 LiveSketch/DocumentModel.subproj/SKTTextArea.h
  22. +377 −0 LiveSketch/DocumentModel.subproj/SKTTextArea.m
  23. BIN LiveSketch/Draw2App.icns
  24. BIN LiveSketch/Draw2App.tiff
  25. BIN LiveSketch/Draw2File.icns
  26. BIN LiveSketch/Draw2File.tiff
  27. +6 −0 LiveSketch/English.lproj/Credits.rtf
  28. +69 −0 LiveSketch/English.lproj/Draw2.nib/classes.nib
  29. +19 −0 LiveSketch/English.lproj/Draw2.nib/info.nib
  30. BIN LiveSketch/English.lproj/Draw2.nib/objects.nib
  31. +13 −0 LiveSketch/English.lproj/DrawWindow.nib/classes.nib
  32. +16 −0 LiveSketch/English.lproj/DrawWindow.nib/info.nib
  33. BIN LiveSketch/English.lproj/DrawWindow.nib/objects.nib
  34. +30 −0 LiveSketch/English.lproj/GridPanel.nib/classes.nib
  35. +16 −0 LiveSketch/English.lproj/GridPanel.nib/info.nib
  36. BIN LiveSketch/English.lproj/GridPanel.nib/objects.nib
  37. BIN LiveSketch/English.lproj/InfoPlist.strings
  38. +34 −0 LiveSketch/English.lproj/Inspector.nib/classes.nib
  39. +16 −0 LiveSketch/English.lproj/Inspector.nib/info.nib
  40. BIN LiveSketch/English.lproj/Inspector.nib/objects.nib
  41. +93 −0 LiveSketch/English.lproj/Sketch.scriptTerminology
  42. +13 −0 LiveSketch/English.lproj/ToolPalette.nib/classes.nib
  43. +16 −0 LiveSketch/English.lproj/ToolPalette.nib/info.nib
  44. BIN LiveSketch/English.lproj/ToolPalette.nib/objects.nib
  45. BIN LiveSketch/Line.tiff
  46. BIN LiveSketch/Pencil.tiff
  47. BIN LiveSketch/Polygon.tiff
  48. +131 −0 LiveSketch/ReadMe.rtf
  49. BIN LiveSketch/Rectangle.tiff
  50. +50 −0 LiveSketch/SKTDrawAppDelegate.h
  51. +108 −0 LiveSketch/SKTDrawAppDelegate.m
  52. +53 −0 LiveSketch/SKTDrawWindowController.h
  53. +119 −0 LiveSketch/SKTDrawWindowController.m
  54. +47 −0 LiveSketch/SKTFoundationExtras.h
  55. +58 −0 LiveSketch/SKTFoundationExtras.m
  56. +168 −0 LiveSketch/SKTGraphicView.h
  57. +1,300 −0 LiveSketch/SKTGraphicView.m
  58. +70 −0 LiveSketch/SKTGridPanelController.h
  59. +181 −0 LiveSketch/SKTGridPanelController.m
  60. +46 −0 LiveSketch/SKTGridView.h
  61. +57 −0 LiveSketch/SKTGridView.m
  62. +69 −0 LiveSketch/SKTInspectorController.h
  63. +291 −0 LiveSketch/SKTInspectorController.m
  64. +53 −0 LiveSketch/SKTToolPaletteController.h
  65. +117 −0 LiveSketch/SKTToolPaletteController.m
  66. +42 −0 LiveSketch/SKT_Prefix.h
  67. BIN LiveSketch/Scribble.tiff
  68. +1,523 −0 LiveSketch/Sketch.pbxproj/project.pbxproj
  69. +120 −0 LiveSketch/Sketch.scriptSuite
  70. +42 −0 LiveSketch/Sketch_main.m
  71. BIN LiveSketch/TextGraphic.tiff
  72. +22 −0 LiveSketch/ToDo.txt
  73. +100 −0 Read Me.rtf
  74. BIN Source/English.lproj/InfoPlist.strings
  75. +24 −0 Source/Info.plist
  76. +133 −0 Source/LinkBack.h
  77. +321 −0 Source/LinkBack.m
  78. +394 −0 Source/LinkBack.xcode/project.pbxproj
  79. +66 −0 Source/LinkBackServer.h
  80. +147 −0 Source/LinkBackServer.m
  81. +7 −0 Source/LinkBack_Prefix.pch
  82. +3 −0 Source/main.c
  83. +16 −0 Source/version.plist
  84. +19 −0 TextEdit+LinkBack/Controller.h
  85. +280 −0 TextEdit+LinkBack/Controller.m
  86. +228 −0 TextEdit+LinkBack/Document.h
  87. +1,977 −0 TextEdit+LinkBack/Document.m
  88. +405 −0 TextEdit+LinkBack/DocumentReadWrite.m
  89. +13 −0 TextEdit+LinkBack/DocumentWindow.nib/classes.nib
  90. +16 −0 TextEdit+LinkBack/DocumentWindow.nib/info.nib
  91. BIN TextEdit+LinkBack/DocumentWindow.nib/keyedobjects.nib
  92. BIN TextEdit+LinkBack/Edit.icns
  93. +5 −0 TextEdit+LinkBack/Edit_main.m
  94. +57 −0 TextEdit+LinkBack/EncodingManager.h
  95. +356 −0 TextEdit+LinkBack/EncodingManager.m
  96. +11 −0 TextEdit+LinkBack/English.lproj/Credits.rtf
  97. +104 −0 TextEdit+LinkBack/English.lproj/Edit.nib/classes.nib
  98. +21 −0 TextEdit+LinkBack/English.lproj/Edit.nib/info.nib
  99. BIN TextEdit+LinkBack/English.lproj/Edit.nib/keyedobjects.nib
  100. +13 −0 TextEdit+LinkBack/English.lproj/EncodingAccessory.nib/classes.nib
  101. +16 −0 TextEdit+LinkBack/English.lproj/EncodingAccessory.nib/info.nib
  102. BIN TextEdit+LinkBack/English.lproj/EncodingAccessory.nib/objects.nib
  103. BIN TextEdit+LinkBack/English.lproj/InfoPlist.strings
  104. BIN TextEdit+LinkBack/English.lproj/LaunchTime.strings
  105. BIN TextEdit+LinkBack/English.lproj/Localizable.strings
  106. +40 −0 TextEdit+LinkBack/English.lproj/Preferences.nib/classes.nib
  107. +16 −0 TextEdit+LinkBack/English.lproj/Preferences.nib/info.nib
  108. BIN TextEdit+LinkBack/English.lproj/Preferences.nib/keyedobjects.nib
  109. +13 −0 TextEdit+LinkBack/English.lproj/RichTextDocumentFormatAccessory.nib/classes.nib
  110. +21 −0 TextEdit+LinkBack/English.lproj/RichTextDocumentFormatAccessory.nib/info.nib
  111. BIN TextEdit+LinkBack/English.lproj/RichTextDocumentFormatAccessory.nib/keyedobjects.nib
  112. +19 −0 TextEdit+LinkBack/English.lproj/SelectEncodingsPanel.nib/classes.nib
  113. +16 −0 TextEdit+LinkBack/English.lproj/SelectEncodingsPanel.nib/info.nib
  114. BIN TextEdit+LinkBack/English.lproj/SelectEncodingsPanel.nib/keyedobjects.nib
  115. BIN TextEdit+LinkBack/English.lproj/ServicesMenu.strings
  116. BIN TextEdit+LinkBack/English.lproj/ZoomValues.strings
  117. +23 −0 TextEdit+LinkBack/LinkBackTextAttachment.h
  118. +44 −0 TextEdit+LinkBack/LinkBackTextAttachment.m
  119. +15 −0 TextEdit+LinkBack/LinkBackTextView.h
  120. +66 −0 TextEdit+LinkBack/LinkBackTextView.m
  121. +23 −0 TextEdit+LinkBack/MultiplePageView.h
  122. +201 −0 TextEdit+LinkBack/MultiplePageView.m
  123. +74 −0 TextEdit+LinkBack/Preferences.h
  124. +348 −0 TextEdit+LinkBack/Preferences.m
  125. +245 −0 TextEdit+LinkBack/README.rtf
  126. +14 −0 TextEdit+LinkBack/ScalingScrollView.h
  127. +199 −0 TextEdit+LinkBack/ScalingScrollView.m
  128. +1,302 −0 TextEdit+LinkBack/TextEdit.pbproj/project.pbxproj
  129. +73 −0 TextEdit+LinkBack/TextEdit.scatterload
  130. +28 −0 TextEdit+LinkBack/TextEdit.scriptSuite
  131. +23 −0 TextEdit+LinkBack/TextEdit.scriptTerminology
  132. BIN TextEdit+LinkBack/html.icns
  133. BIN TextEdit+LinkBack/rtf.icns
  134. BIN TextEdit+LinkBack/rtfd.icns
  135. BIN TextEdit+LinkBack/txt.icns
@@ -0,0 +1,14 @@
+# xcode noise
+build
+*.pbxuser
+*.mode1v3
+*.mode2v3
+*.perspectivev3
+
+# old skool
+.svn
+CVS
+
+# osx noise
+.DS_Store
+profile
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,43 @@
+// SKTCircle.h
+// Sketch Example
+//
+
+#import <AppKit/AppKit.h>
+#import "SKTGraphic.h"
+
+@interface SKTCircle : SKTGraphic {}
+
+@end
+
+/*
+ IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
+ consideration of your agreement to the following terms, and your use, installation,
+ modification or redistribution of this Apple software constitutes acceptance of these
+ terms. If you do not agree with these terms, please do not use, install, modify or
+ redistribute this Apple software.
+
+ In consideration of your agreement to abide by the following terms, and subject to these
+ terms, Apple grants you a personal, non-exclusive license, under Apple's copyrights in
+ this original Apple software (the "Apple Software"), to use, reproduce, modify and
+ redistribute the Apple Software, with or without modifications, in source and/or binary
+ forms; provided that if you redistribute the Apple Software in its entirety and without
+ modifications, you must retain this notice and the following text and disclaimers in all
+ such redistributions of the Apple Software. Neither the name, trademarks, service marks
+ or logos of Apple Computer, Inc. may be used to endorse or promote products derived from
+ the Apple Software without specific prior written permission from Apple. Except as expressly
+ stated in this notice, no other rights or licenses, express or implied, are granted by Apple
+ herein, including but not limited to any patent rights that may be infringed by your
+ derivative works or by other works in which the Apple Software may be incorporated.
+
+ The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES,
+ EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS
+ USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
+
+ IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
+ REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND
+ WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR
+ OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
@@ -0,0 +1,61 @@
+// SKTCircle.m
+// Sketch Example
+//
+
+#import "SKTCircle.h"
+
+@implementation SKTCircle
+
+- (NSBezierPath *)bezierPath {
+ NSBezierPath *path = [NSBezierPath bezierPathWithOvalInRect:[self bounds]];
+
+ [path setLineWidth:[self strokeLineWidth]];
+
+ return path;
+}
+
+- (void)makeNaturalSize {
+ NSRect bounds = [self bounds];
+ if (bounds.size.width < bounds.size.height) {
+ bounds.size.height = bounds.size.width;
+ [self setBounds:bounds];
+ } else if (bounds.size.width > bounds.size.height) {
+ bounds.size.width = bounds.size.height;
+ [self setBounds:bounds];
+ }
+}
+
+@end
+
+/*
+ IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
+ consideration of your agreement to the following terms, and your use, installation,
+ modification or redistribution of this Apple software constitutes acceptance of these
+ terms. If you do not agree with these terms, please do not use, install, modify or
+ redistribute this Apple software.
+
+ In consideration of your agreement to abide by the following terms, and subject to these
+ terms, Apple grants you a personal, non-exclusive license, under Apple's copyrights in
+ this original Apple software (the "Apple Software"), to use, reproduce, modify and
+ redistribute the Apple Software, with or without modifications, in source and/or binary
+ forms; provided that if you redistribute the Apple Software in its entirety and without
+ modifications, you must retain this notice and the following text and disclaimers in all
+ such redistributions of the Apple Software. Neither the name, trademarks, service marks
+ or logos of Apple Computer, Inc. may be used to endorse or promote products derived from
+ the Apple Software without specific prior written permission from Apple. Except as expressly
+ stated in this notice, no other rights or licenses, express or implied, are granted by Apple
+ herein, including but not limited to any patent rights that may be infringed by your
+ derivative works or by other works in which the Apple Software may be incorporated.
+
+ The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES,
+ EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS
+ USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
+
+ IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
+ REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND
+ WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR
+ OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
@@ -0,0 +1,89 @@
+// SKTDrawDocument.h
+// Sketch Example
+//
+
+#import <AppKit/AppKit.h>
+
+@class SKTGraphic;
+
+@class LinkBack ;
+
+@interface SKTDrawDocument : NSDocument {
+ @private
+ NSMutableArray *_graphics;
+ LinkBack* link ;
+}
+
+- (id)init;
+
+// support for live link
+- (void)closeLinkIfNeeded;
+- (id)initWithLinkBack:(LinkBack*)aLink ; // initing with this causes saving to pass edits through link. link will also be closed when document is closed.
+
+- (void)makeWindowControllers;
+
+- (NSDictionary *)drawDocumentDictionaryForGraphics:(NSArray *)graphics;
+- (NSData *)drawDocumentDataForGraphics:(NSArray *)graphics;
+- (NSDictionary *)drawDocumentDictionaryFromData:(NSData *)data;
+- (NSArray *)graphicsFromDrawDocumentDictionary:(NSDictionary *)doc;
+
+- (NSRect)boundsForGraphics:(NSArray *)graphics;
+- (NSRect)drawingBoundsForGraphics:(NSArray *)graphics;
+- (NSData *)TIFFRepresentationForGraphics:(NSArray *)graphics;
+- (NSData *)PDFRepresentationForGraphics:(NSArray *)graphics;
+
+- (NSData *)dataRepresentationOfType:(NSString *)type;
+- (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)type;
+
+- (void)printShowingPrintPanel:(BOOL)flag;
+
+- (NSArray *)graphics;
+- (void)setGraphics:(NSArray *)graphics;
+
+- (void)invalidateGraphic:(SKTGraphic *)graphic;
+
+- (void)insertGraphic:(SKTGraphic *)graphic atIndex:(unsigned)index;
+- (void)removeGraphicAtIndex:(unsigned)index;
+- (void)removeGraphic:(SKTGraphic *)graphic;
+- (void)moveGraphic:(SKTGraphic *)graphic toIndex:(unsigned)newIndex;
+
+- (NSSize)documentSize;
+ // Returns usable document size based on print info paper size and margins.
+
+@end
+
+extern NSString *SKTDrawDocumentType;
+
+
+/*
+ IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in
+ consideration of your agreement to the following terms, and your use, installation,
+ modification or redistribution of this Apple software constitutes acceptance of these
+ terms. If you do not agree with these terms, please do not use, install, modify or
+ redistribute this Apple software.
+
+ In consideration of your agreement to abide by the following terms, and subject to these
+ terms, Apple grants you a personal, non-exclusive license, under Apple's copyrights in
+ this original Apple software (the "Apple Software"), to use, reproduce, modify and
+ redistribute the Apple Software, with or without modifications, in source and/or binary
+ forms; provided that if you redistribute the Apple Software in its entirety and without
+ modifications, you must retain this notice and the following text and disclaimers in all
+ such redistributions of the Apple Software. Neither the name, trademarks, service marks
+ or logos of Apple Computer, Inc. may be used to endorse or promote products derived from
+ the Apple Software without specific prior written permission from Apple. Except as expressly
+ stated in this notice, no other rights or licenses, express or implied, are granted by Apple
+ herein, including but not limited to any patent rights that may be infringed by your
+ derivative works or by other works in which the Apple Software may be incorporated.
+
+ The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES,
+ EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS
+ USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
+
+ IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE,
+ REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND
+ WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR
+ OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
Oops, something went wrong.

0 comments on commit 544c9ac

Please sign in to comment.