From b74377b6341d4b861b254ffcfb983d2cb27ec5b6 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Fri, 16 Oct 2009 00:31:27 +0000 Subject: Add a 'Provide Feedback' menu item to the help menu, which links to http://www.sequelpro.com/docs/Contact_the_developers. --- Interfaces/English.lproj/MainMenu.xib | 68 ++++++++++++++++++++++++++++++----- Source/SPAppController.h | 1 + Source/SPAppController.m | 9 +++++ 3 files changed, 69 insertions(+), 9 deletions(-) diff --git a/Interfaces/English.lproj/MainMenu.xib b/Interfaces/English.lproj/MainMenu.xib index d483d356..07fde2c0 100644 --- a/Interfaces/English.lproj/MainMenu.xib +++ b/Interfaces/English.lproj/MainMenu.xib @@ -3,17 +3,16 @@ 1050 10B504 - 732 + 740 1038.2 437.00 com.apple.InterfaceBuilder.CocoaPlugin - 732 + 740 YES - - + YES @@ -1809,6 +1808,24 @@ + + + YES + YES + + + 2147483647 + + + + + + Provide Feedback + + 2147483647 + + + @@ -2802,6 +2819,14 @@ 1026 + + + provideFeedback: + + + + 1030 + @@ -3186,8 +3211,10 @@ - + + + @@ -3469,7 +3496,7 @@ 213 - MainController + SPAppController 757 @@ -4149,6 +4176,16 @@ + + 1028 + + + + + 1029 + + + @@ -4163,6 +4200,8 @@ 1015.IBEditorWindowLastContentRect 1015.IBPluginDependency 1016.IBPluginDependency + 1028.IBPluginDependency + 1029.IBPluginDependency 103.IBPluginDependency 103.ImportedFromIB2 106.IBEditorWindowLastContentRect @@ -4521,8 +4560,10 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin - {{836, 500}, {181, 93}} + {{796, 736}, {190, 123}} com.apple.InterfaceBuilder.CocoaPlugin {{561, 605}, {181, 43}} @@ -4605,7 +4646,7 @@ com.apple.InterfaceBuilder.CocoaPlugin {{449, 1007}, {197, 53}} - {{355, 510}, {511, 20}} + {{346, 859}, {511, 20}} com.apple.InterfaceBuilder.CocoaPlugin {{506, 836}, {511, 20}} @@ -4933,7 +4974,7 @@ - 1026 + 1030 @@ -5079,6 +5120,13 @@ Source/SPContentFilterManager.h + + NSObject + + IBProjectSource + Source/SPNotLoaded.h + + NSObject @@ -5156,6 +5204,7 @@ donate: openConnectionSheet: openPreferences: + provideFeedback: visitFAQWebsite: visitHelpWebsite: visitWebsite: @@ -5168,6 +5217,7 @@ id id id + id diff --git a/Source/SPAppController.h b/Source/SPAppController.h index 473baa23..b01a069f 100644 --- a/Source/SPAppController.h +++ b/Source/SPAppController.h @@ -48,6 +48,7 @@ - (IBAction)visitWebsite:(id)sender; - (IBAction)visitHelpWebsite:(id)sender; - (IBAction)visitFAQWebsite:(id)sender; +- (IBAction)provideFeedback:(id)sender; // Getters - (SPPreferenceController *)preferenceController; diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 43d7b8c5..b0cf4ed5 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -36,6 +36,7 @@ #define SEQUEL_PRO_DONATIONS_URL @"http://www.sequelpro.com/donate.html" #define SEQUEL_PRO_FAQ_URL @"http://www.sequelpro.com/frequently-asked-questions.html" #define SEQUEL_PRO_DOCS_URL @"http://www.sequelpro.com/docs" +#define SEQUEL_PRO_CONTACT_URL @"http://www.sequelpro.com/docs/Contact_the_developers" @implementation SPAppController @@ -380,6 +381,14 @@ [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SEQUEL_PRO_FAQ_URL]]; } +/** + * Opens the 'Contact the developers' page in the default browser + */ +- (IBAction)provideFeedback:(id)sender +{ + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SEQUEL_PRO_CONTACT_URL]]; +} + #pragma mark - #pragma mark Other methods -- cgit v1.2.3