Permalink
Browse files

Big clean-up. Adopted new prefix. Fixed support for line and fill col…

…ors. Added license header. Changed -paintViewImageChanged: to paintViewImageDidChange:. Added shape and paint brush tool, renamed old paint brush tool to "freehand". Made a few tools more configurable (roundrect corner roundness etc.). Added comment what it is to each header.
  • Loading branch information...
1 parent aada1d3 commit 6a767a74568e882557243bf98832db0a1bd2f69c @uliwitness committed Apr 30, 2011
Showing with 4,808 additions and 894 deletions.
  1. +0 −61 English.lproj/MainMenu.nib/classes.nib
  2. +3,014 −0 English.lproj/MainMenu.nib/designable.nib
  3. +0 −23 English.lproj/MainMenu.nib/info.nib
  4. BIN English.lproj/MainMenu.nib/keyedobjects.nib
  5. BIN English.lproj/MainMenu.nib/objects.nib
  6. 0 Info-UKPaintView__Upgraded_.plist → Info-UKPaintView.plist
  7. +19 −0 NSCursor+Box.h
  8. +19 −0 NSCursor+Box.m
  9. +19 −0 NSCursor+CrossHair.h
  10. +19 −0 NSCursor+CrossHair.m
  11. +0 −32 UKLineSizeView.h
  12. +0 −18 UKPaintEraseRectTool.h
  13. +0 −18 UKPaintEraserTool.h
  14. +0 −20 UKPaintLassoTool.h
  15. +0 −18 UKPaintLineTool.h
  16. +0 −43 UKPaintLineTool.m
  17. +0 −18 UKPaintOvalTool.h
  18. +0 −22 UKPaintPathTool.h
  19. +0 −18 UKPaintRectTool.h
  20. +0 −43 UKPaintRectTool.m
  21. +0 −18 UKPaintRoundrectTool.h
  22. +0 −44 UKPaintRoundrectTool.m
  23. +0 −18 UKPaintSelectTool.h
  24. BIN UKPaintShapeTool.tiff
  25. +0 −18 UKPaintTempArrowTool.h
  26. +0 −18 UKPaintTempLineTool.h
  27. +0 −18 UKPaintTempOvalTool.h
  28. +0 −18 UKPaintTempRectTool.h
  29. +0 −18 UKPaintTempRoundrectTool.h
  30. +0 −20 UKPaintTextTool.h
  31. +198 −157 UKPaintView.xcodeproj/project.pbxproj
  32. +0 −18 UKPaintbrushTool.h
  33. +69 −0 ULILineSizeView.h
  34. +25 −2 UKLineSizeView.m → ULILineSizeView.m
  35. +3 −3 UKPixelPaintbrushTool.h → ULIPaintBrushTool.h
  36. +11 −10 UKPixelPaintbrushTool.m → ULIPaintBrushTool.m
  37. +42 −0 ULIPaintEraseRectTool.h
  38. +22 −3 UKPaintEraseRectTool.m → ULIPaintEraseRectTool.m
  39. +42 −0 ULIPaintEraserTool.h
  40. +24 −7 UKPaintEraserTool.m → ULIPaintEraserTool.m
  41. +41 −0 ULIPaintFreehandTool.h
  42. +22 −5 UKPaintbrushTool.m → ULIPaintFreehandTool.m
  43. +41 −0 ULIPaintLineTool.h
  44. +62 −0 ULIPaintLineTool.m
  45. +41 −0 ULIPaintOvalTool.h
  46. +24 −3 UKPaintOvalTool.m → ULIPaintOvalTool.m
  47. +45 −0 ULIPaintPathTool.h
  48. +23 −5 UKPaintPathTool.m → ULIPaintPathTool.m
  49. +41 −0 ULIPaintRectangleTool.h
  50. +62 −0 ULIPaintRectangleTool.m
  51. +43 −0 ULIPaintRoundedRectangleTool.h
  52. +79 −0 ULIPaintRoundedRectangleTool.m
  53. +45 −0 ULIPaintSelectionLassoTool.h
  54. +22 −3 UKPaintLassoTool.m → ULIPaintSelectionLassoTool.m
  55. +45 −0 ULIPaintSelectionRectangleTool.h
  56. +22 −3 UKPaintSelectTool.m → ULIPaintSelectionRectangleTool.m
  57. +2 −2 UKPaintShapeTool.h → ULIPaintShapeTool.h
  58. +8 −7 UKPaintShapeTool.m → ULIPaintShapeTool.m
  59. +43 −0 ULIPaintTempArrowTool.h
  60. +22 −3 UKPaintTempArrowTool.m → ULIPaintTempArrowTool.m
  61. +43 −0 ULIPaintTempLineTool.h
  62. +22 −3 UKPaintTempLineTool.m → ULIPaintTempLineTool.m
  63. +43 −0 ULIPaintTempOvalTool.h
  64. +22 −3 UKPaintTempOvalTool.m → ULIPaintTempOvalTool.m
  65. +43 −0 ULIPaintTempRectangleTool.h
  66. +23 −4 UKPaintTempRectTool.m → ULIPaintTempRectangleTool.m
  67. +44 −0 ULIPaintTempRoundrectTool.h
  68. +22 −3 UKPaintTempRoundrectTool.m → ULIPaintTempRoundrectTool.m
  69. +44 −0 ULIPaintTextTool.h
  70. +24 −13 UKPaintTextTool.m → ULIPaintTextTool.m
  71. +38 −13 UKPaintTool.h → ULIPaintTool.h
  72. +27 −8 UKPaintTool.m → ULIPaintTool.m
  73. +41 −16 UKPaintView.h → ULIPaintView.h
  74. +56 −44 UKPaintView.m → ULIPaintView.m
  75. +26 −16 UlisBresenham.c
  76. +31 −16 UlisBresenham.h
  77. BIN brush01.tiff
@@ -1,61 +0,0 @@
-{
- IBClasses = (
- {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
- {
- ACTIONS = {
- paintViewImageChanged = id;
- paintViewToolDidChange = id;
- paintViewToolWillChange = id;
- };
- CLASS = NSObject;
- LANGUAGE = ObjC;
- },
- {CLASS = UKFloatingWindow; LANGUAGE = ObjC; SUPERCLASS = NSPanel; },
- {
- ACTIONS = {setTarget = id; };
- CLASS = UKLineSizeView;
- LANGUAGE = ObjC;
- OUTLETS = {target = id; };
- SUPERCLASS = NSView;
- },
- {CLASS = UKPaintEraseRectTool; LANGUAGE = ObjC; SUPERCLASS = UKPaintTool; },
- {CLASS = UKPaintEraserTool; LANGUAGE = ObjC; SUPERCLASS = UKPaintTool; },
- {CLASS = UKPaintLassoTool; LANGUAGE = ObjC; SUPERCLASS = UKPaintPathTool; },
- {CLASS = UKPaintLineTool; LANGUAGE = ObjC; SUPERCLASS = UKPaintTool; },
- {CLASS = UKPaintOvalTool; LANGUAGE = ObjC; SUPERCLASS = UKPaintTool; },
- {CLASS = UKPaintPathTool; LANGUAGE = ObjC; SUPERCLASS = UKPaintTool; },
- {CLASS = UKPaintRectTool; LANGUAGE = ObjC; SUPERCLASS = UKPaintTool; },
- {CLASS = UKPaintRoundrectTool; LANGUAGE = ObjC; SUPERCLASS = UKPaintTool; },
- {CLASS = UKPaintSelectTool; LANGUAGE = ObjC; SUPERCLASS = UKPaintTool; },
- {CLASS = UKPaintTextTool; LANGUAGE = ObjC; SUPERCLASS = UKPaintTool; },
- {
- ACTIONS = {chooseTool = id; };
- CLASS = UKPaintTool;
- LANGUAGE = ObjC;
- OUTLETS = {owner = UKPaintView; toolButton = NSButton; };
- SUPERCLASS = NSObject;
- },
- {
- ACTIONS = {
- clear = id;
- clearMarkersBuffer = id;
- clearSelectionBuffer = id;
- copy = id;
- cut = id;
- delete = id;
- drawSelectionBuffer = id;
- paintToolDidChange = id;
- paintToolWillChange = id;
- paste = id;
- takeLineSizeFromObject = id;
- takeToolFromObject = id;
- };
- CLASS = UKPaintView;
- LANGUAGE = ObjC;
- OUTLETS = {currentTool = UKPaintTool; delegate = id; selectionTool = UKPaintTool; };
- SUPERCLASS = NSView;
- },
- {CLASS = UKPaintbrushTool; LANGUAGE = ObjC; SUPERCLASS = UKPaintTool; }
- );
- IBVersion = 1;
-}
Oops, something went wrong.

0 comments on commit 6a767a7

Please sign in to comment.