public
Fork of Caged/gitnub
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/dustin/gitnub.git
Search Repo:
I can totally draw a circle.  Step up.
Caged (author)
Sat Apr 12 21:28:50 -0700 2008
commit  596435407c1f88e809816cd40e3c19ab6db7ea52
tree    c9984b09a26126f940a134281950a578fdac79e9
parent  05a6b82844fe45353d4a9fe627d12d35cafc6d5f
...
48
49
50
51
 
52
53
54
...
74
75
76
77
78
79
80
81
82
83
84
85
...
48
49
50
 
51
52
53
54
...
74
75
76
 
 
 
 
 
 
 
 
77
0
@@ -48,7 +48,7 @@
0
     column.dataCell = cell
0
     
0
     @main_view.setFrameSize(@main_canvas.frame.size)
0
- @main_canvas.addSubview(@main_view)
0
+ @main_canvas.addSubview(@main_view)
0
     
0
     @branch_field.cell.setBackgroundStyle(NSBackgroundStyleRaised)
0
   end
0
@@ -74,13 +74,5 @@
0
     tag = %w(commits network)[segment.cell.tagForSegment(segment.selectedSegment)]
0
     @tab_panel.selectTabViewItemWithIdentifier(tag)
0
   end
0
-
0
- # def tabView_didSelectTabViewItem(tab_view, tab_view_item)
0
- # item = tab_view_item.identifier
0
- # if item == "network"
0
- # @controller ||= VisualizationController.alloc.init_with_repo(@repo)
0
- # tab_view_item.setView(@controller.view)
0
- # end
0
- # end
0
 end
...
20
21
22
23
24
25
26
...
69
70
71
72
73
74
75
...
179
180
181
182
183
184
185
...
279
280
281
282
283
284
285
...
20
21
22
 
23
24
25
...
68
69
70
 
71
72
73
...
177
178
179
 
180
181
182
...
276
277
278
 
279
280
281
0
@@ -20,7 +20,6 @@
0
     285BB5490D849EA60027980C /* CommitsController.rb in Resources */ = {isa = PBXBuildFile; fileRef = 285BB5460D849EA60027980C /* CommitsController.rb */; };
0
     285BB54A0D849EA60027980C /* InfoWindowController.rb in Resources */ = {isa = PBXBuildFile; fileRef = 285BB5470D849EA60027980C /* InfoWindowController.rb */; };
0
     286F109E0D7A49380055A0D1 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 286F109D0D7A49380055A0D1 /* WebKit.framework */; };
0
- 28851B3E0DB0571A00FA9C7D /* network.png in Resources */ = {isa = PBXBuildFile; fileRef = 28851B3D0DB0571A00FA9C7D /* network.png */; };
0
     28851B970DB147AA00FA9C7D /* VisualizationView.rb in Resources */ = {isa = PBXBuildFile; fileRef = 28851B960DB147AA00FA9C7D /* VisualizationView.rb */; };
0
     288853050D7CE2E500862D67 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 288853040D7CE2E500862D67 /* LICENSE */; };
0
     2888530D0D7CEA5200862D67 /* gitnub-icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 2888530C0D7CEA5200862D67 /* gitnub-icon.icns */; };
0
@@ -69,7 +68,6 @@
0
     285BB5460D849EA60027980C /* CommitsController.rb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.ruby; path = CommitsController.rb; sourceTree = "<group>"; };
0
     285BB5470D849EA60027980C /* InfoWindowController.rb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.ruby; path = InfoWindowController.rb; sourceTree = "<group>"; };
0
     286F109D0D7A49380055A0D1 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = /System/Library/Frameworks/WebKit.framework; sourceTree = "<absolute>"; };
0
- 28851B3D0DB0571A00FA9C7D /* network.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = network.png; sourceTree = "<group>"; };
0
     28851B960DB147AA00FA9C7D /* VisualizationView.rb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.ruby; path = VisualizationView.rb; sourceTree = "<group>"; };
0
     288853040D7CE2E500862D67 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
0
     2888530C0D7CEA5200862D67 /* gitnub-icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = "gitnub-icon.icns"; sourceTree = "<group>"; };
0
@@ -179,7 +177,6 @@
0
     29B97317FDCFA39411CA2CEA /* Resources */ = {
0
       isa = PBXGroup;
0
       children = (
0
- 28851B3D0DB0571A00FA9C7D /* network.png */,
0
         285BB5380D849DD20027980C /* added.png */,
0
         285BB5390D849DD20027980C /* committer.png */,
0
         285BB53A0D849DD20027980C /* common.png */,
0
@@ -279,7 +276,6 @@
0
         0ABA3B1B0D89E53E004B6667 /* nub in Resources */,
0
         283254680D8B792500D99366 /* lib in Resources */,
0
         0A4023590D949E0E00659E01 /* ImageLoadOperation.rb in Resources */,
0
- 28851B3E0DB0571A00FA9C7D /* network.png in Resources */,
0
         28851B970DB147AA00FA9C7D /* VisualizationView.rb in Resources */,
0
       );
0
       runOnlyForDeploymentPostprocessing = 0;
...
26
27
28
 
 
29
30
31
32
...
34
35
36
37
38
39
40
41
42
43
44
 
 
 
45
46
 
 
 
47
48
49
...
26
27
28
29
30
31
32
33
34
...
36
37
38
 
 
 
 
 
 
 
 
39
40
41
42
 
43
44
45
46
47
48
0
@@ -26,6 +26,8 @@
0
   end
0
   
0
   def drawRect(rect)
0
+ points = []
0
+ context = NSGraphicsContext.currentContext
0
     NSColor.darkGrayColor.set
0
     NSRectFill(self.bounds)
0
     
0
0
@@ -34,16 +36,13 @@
0
     
0
     path.moveToPoint([100, 100])
0
     @repo.commits.each_with_index do |commit, index|
0
- index += 1
0
- path.lineToPoint([index * 25, 100])
0
- npath = NSBezierPath.bezierPathWithOvalInRect(NSMakeRect(index * 25, 97.5, 5, 5))
0
- npath.lineWidth = 4
0
- NSColor.whiteColor.set
0
- npath.stroke
0
- NSColor.blackColor.set
0
- npath.fill
0
+ point = [((index + 1) * 25), 100]
0
+ #path.lineToPoint([25 * index, 100])
0
+ path.appendBezierPathWithOvalInRect(NSMakeRect(point[0] + 75, point[1], 10, 10))
0
     end
0
-
0
+
0
+ NSColor.blackColor.set
0
+ path.fill
0
     
0
     NSColor.whiteColor.set
0
     path.stroke

Comments

    No one has commented yet.