From f26cbee2fc88222e355769ff4d572f0fe10688a3 Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Sat, 4 Oct 2008 23:07:02 +0200 Subject: [PATCH] Add a help menu item --- ApplicationController.h | 2 ++ ApplicationController.m | 5 ++++ English.lproj/MainMenu.xib | 61 +++++++++++++++++++++----------------- 3 files changed, 40 insertions(+), 28 deletions(-) diff --git a/ApplicationController.h b/ApplicationController.h index d77342a..b10720a 100644 --- a/ApplicationController.h +++ b/ApplicationController.h @@ -30,4 +30,6 @@ - (IBAction)installCliTool:(id)sender; - (IBAction)saveAction:sender; +- (IBAction) showHelp:(id) sender; + @end diff --git a/ApplicationController.m b/ApplicationController.m index b499400..c57605f 100644 --- a/ApplicationController.m +++ b/ApplicationController.m @@ -100,6 +100,11 @@ former cannot be found), the system's temporary directory. */ +- (IBAction) showHelp:(id) sender +{ + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://frim.frim.nl/gitx/UserManual.html"]]; +} + - (NSString *)applicationSupportFolder { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES); diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index 7880eb7..4acbe60 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -8,7 +8,7 @@ 352.00 YES - + YES @@ -812,7 +812,7 @@ YES - GitTest Help + GitX Help ? 1048576 2147483647 @@ -857,14 +857,6 @@ 87 - - - showHelp: - - - - 122 - clearRecentDocuments: @@ -1193,6 +1185,14 @@ 931 + + + showHelp: + + + + 932 + @@ -1850,6 +1850,7 @@ -3.ImportedFromIB2 103.IBPluginDependency 103.ImportedFromIB2 + 106.IBEditorWindowLastContentRect 106.IBPluginDependency 106.ImportedFromIB2 111.IBPluginDependency @@ -1956,6 +1957,7 @@ 228.ImportedFromIB2 241.IBPluginDependency 241.ImportedFromIB2 + 242.IBEditorWindowLastContentRect 242.IBPluginDependency 242.ImportedFromIB2 243.IBPluginDependency @@ -2034,6 +2036,7 @@ com.apple.InterfaceBuilder.CocoaPlugin + {{789, 817}, {138, 23}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -2140,6 +2143,7 @@ com.apple.InterfaceBuilder.CocoaPlugin + {{718, 767}, {197, 73}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -2156,7 +2160,7 @@ {{297, 739}, {329, 20}} com.apple.InterfaceBuilder.CocoaPlugin - {{514, 625}, {234, 193}} + {{668, 647}, {234, 193}} com.apple.InterfaceBuilder.CocoaPlugin {{499, 623}, {234, 113}} @@ -2231,7 +2235,7 @@ - 931 + 932 @@ -2245,7 +2249,7 @@ YES installCliTool: saveAction: - switchBranch: + showHelp: YES @@ -2325,17 +2329,21 @@ YES cachedButtonCell cachedFilesController + cachedTable commitMessageView unstagedButtonCell unstagedFilesController + unstagedTable YES PBIconAndTextCell NSArrayController + NSTableView NSTextView PBIconAndTextCell NSArrayController + NSTableView @@ -2371,17 +2379,23 @@ YES YES + branchesController commitController commitList fileBrowser + searchField treeController + webView YES NSArrayController + NSArrayController NSTableView NSOutlineView + NSSearchField NSTreeController + id @@ -2406,21 +2420,8 @@ - YES - - YES - branchesController - contentView - searchController - searchField - - - YES - NSArrayController - NSView - NSArrayController - NSSearchField - + contentView + NSView IBProjectSource @@ -2500,6 +2501,10 @@ PBViewController NSViewController + + viewToolbar + NSToolbar + IBProjectSource PBViewController.h