Skip to content
Browse files

Add Commit/History options in View menu

  • Loading branch information...
1 parent 86606ef commit 709547ac8530125cb9302690919e5d9d7ee6b1c9 @pieter committed Sep 26, 2008
Showing with 96 additions and 4 deletions.
  1. +82 −3 English.lproj/MainMenu.xib
  2. +1 −1 PBGitRepository.m
  3. +3 −0 PBGitWindowController.h
  4. +10 −0 PBGitWindowController.m
View
85 English.lproj/MainMenu.xib
@@ -665,6 +665,32 @@
<reference key="NSOnImage" ref="889736156"/>
<reference key="NSMixedImage" ref="37108609"/>
</object>
+ <object class="NSMenuItem" id="638888442">
+ <reference key="NSMenu" ref="245837913"/>
+ <string key="NSTitle">History</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="889736156"/>
+ <reference key="NSMixedImage" ref="37108609"/>
+ </object>
+ <object class="NSMenuItem" id="951501905">
+ <reference key="NSMenu" ref="245837913"/>
+ <string key="NSTitle">Commit</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="889736156"/>
+ <reference key="NSMixedImage" ref="37108609"/>
+ </object>
+ <object class="NSMenuItem" id="888393319">
+ <reference key="NSMenu" ref="245837913"/>
+ <bool key="NSIsDisabled">YES</bool>
+ <bool key="NSIsSeparator">YES</bool>
+ <string key="NSTitle"/>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="889736156"/>
+ <reference key="NSMixedImage" ref="37108609"/>
+ </object>
<object class="NSMenuItem" id="1062123434">
<reference key="NSMenu" ref="245837913"/>
<string key="NSTitle">Detailed View</string>
@@ -1151,6 +1177,22 @@
</object>
<int key="connectionID">926</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">showHistoryView:</string>
+ <reference key="source" ref="954860085"/>
+ <reference key="destination" ref="638888442"/>
+ </object>
+ <int key="connectionID">930</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">showCommitView:</string>
+ <reference key="source" ref="954860085"/>
+ <reference key="destination" ref="951501905"/>
+ </object>
+ <int key="connectionID">931</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -1704,6 +1746,9 @@
<reference ref="310106156"/>
<reference ref="554502465"/>
<reference ref="552718495"/>
+ <reference ref="638888442"/>
+ <reference ref="951501905"/>
+ <reference ref="888393319"/>
</object>
<reference key="parent" ref="15213245"/>
</object>
@@ -1778,6 +1823,21 @@
<reference key="object" ref="679871620"/>
<reference key="parent" ref="492995933"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">927</int>
+ <reference key="object" ref="638888442"/>
+ <reference key="parent" ref="245837913"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">928</int>
+ <reference key="object" ref="951501905"/>
+ <reference key="parent" ref="245837913"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">929</int>
+ <reference key="object" ref="888393319"/>
+ <reference key="parent" ref="245837913"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -1962,6 +2022,9 @@
<string>916.IBPluginDependency</string>
<string>918.IBPluginDependency</string>
<string>919.IBPluginDependency</string>
+ <string>927.IBPluginDependency</string>
+ <string>928.IBPluginDependency</string>
+ <string>929.IBPluginDependency</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -2087,13 +2150,13 @@
<reference ref="9"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/>
- <string>{{267, 866}, {329, 20}}</string>
+ <string>{{521, 840}, {329, 20}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/>
<string>{{297, 739}, {329, 20}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/>
- <string>{{414, 723}, {234, 143}}</string>
+ <string>{{514, 625}, {234, 193}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/>
<string>{{499, 623}, {234, 113}}</string>
@@ -2143,6 +2206,9 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
@@ -2165,7 +2231,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">926</int>
+ <int key="maxID">931</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -2326,6 +2392,19 @@
<object class="IBPartialClassDescription">
<string key="className">PBGitWindowController</string>
<string key="superclassName">NSWindowController</string>
+ <object class="NSMutableDictionary" key="actions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMutableArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>showCommitView:</string>
+ <string>showHistoryView:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>id</string>
+ <string>id</string>
+ </object>
+ </object>
<object class="NSMutableDictionary" key="outlets">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSMutableArray" key="dict.sortedKeys">
View
2 PBGitRepository.m
@@ -251,7 +251,7 @@ - (void) showHistoryView
if (!windowController)
return;
- ((PBGitWindowController *)windowController).selectedViewIndex = 0;
+ [((PBGitWindowController *)windowController) showHistoryView:self];
}
- (void) selectBranch: (PBGitRevSpecifier*) rev
View
3 PBGitWindowController.h
@@ -28,4 +28,7 @@
- (void)changeViewController:(NSInteger)whichViewTag;
- (void) focusOnSearchField;
+
+- (IBAction) showCommitView:(id)sender;
+- (IBAction) showHistoryView:(id)sender;
@end
View
10 PBGitWindowController.m
@@ -88,4 +88,14 @@ - (void)awakeFromNib
}
+- (void) showCommitView:(id)sender
+{
+ self.selectedViewIndex = 1;
+}
+
+- (void) showHistoryView:(id)sender
+{
+ self.selectedViewIndex = 0;
+}
+
@end

0 comments on commit 709547a

Please sign in to comment.
Something went wrong with that request. Please try again.