From afa83e2e94ec0abe2cd6c2cbf4fe43d5616bbc6c Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 1 Jun 2010 22:32:03 +0000 Subject: Add a 'Translation Feedback' menuitem to the 'Help' menu (currently hidden). Implements issue #713. When the feedback page is available simply change the constant SPTranslationFeedbackURL to point to it. --- Interfaces/English.lproj/MainMenu.xib | 95 ++++++++++++++++++++++++++++++----- Source/SPAppController.h | 1 + Source/SPAppController.m | 8 +++ Source/SPConstants.h | 1 + Source/SPConstants.m | 1 + 5 files changed, 93 insertions(+), 13 deletions(-) diff --git a/Interfaces/English.lproj/MainMenu.xib b/Interfaces/English.lproj/MainMenu.xib index 75ac83c3..6b988c7d 100644 --- a/Interfaces/English.lproj/MainMenu.xib +++ b/Interfaces/English.lproj/MainMenu.xib @@ -12,6 +12,7 @@ YES + YES @@ -1781,6 +1782,15 @@ + + + YES + Translation Feedback + + 2147483647 + + + @@ -2790,6 +2800,14 @@ 1091 + + + provideTranslationFeedback: + + + + 1094 + @@ -3082,6 +3100,7 @@ + @@ -4083,6 +4102,11 @@ + + 1093 + + + @@ -4128,6 +4152,7 @@ 1089.IBPluginDependency 1089.ImportedFromIB2 1092.IBPluginDependency + 1093.IBPluginDependency 111.IBPluginDependency 111.ImportedFromIB2 129.IBPluginDependency @@ -4442,7 +4467,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{852, 432}, {204, 153}} + {{558, 204}, {216, 173}} com.apple.InterfaceBuilder.CocoaPlugin {{561, 605}, {181, 43}} @@ -4460,6 +4485,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -4534,11 +4560,11 @@ com.apple.InterfaceBuilder.CocoaPlugin - {{781, 512}, {194, 73}} + {{695, 305}, {194, 73}} com.apple.InterfaceBuilder.CocoaPlugin {{449, 1007}, {197, 53}} - {{354, 530}, {511, 20}} + {{108, 377}, {511, 20}} com.apple.InterfaceBuilder.CocoaPlugin {{506, 836}, {511, 20}} @@ -4815,7 +4841,7 @@ - 1092 + 1094 @@ -5117,23 +5143,23 @@ NSObject - + IBProjectSource - Source/CMImageView.h + Source/SPConnectionController.h NSObject - + IBProjectSource - Source/SPConnectionController.h + Source/SPContentFilterManager.h NSObject IBProjectSource - Source/SPContentFilterManager.h + Source/SPImageView.h @@ -5163,9 +5189,9 @@ toggleCollapse: id - + IBProjectSource - Source/TablesList.h + Source/SPTablesList.h @@ -5231,6 +5257,7 @@ openConnectionSheet: openPreferences: provideFeedback: + provideTranslationFeedback: viewKeyboardShortcuts: visitFAQWebsite: visitHelpWebsite: @@ -5249,6 +5276,7 @@ id id id + id @@ -5270,7 +5298,9 @@ addFavorite: editFavorites: initiateConnection: + reverseSortFavorites: showHelp: + sortFavorites: updateFavoriteSelection: @@ -5280,6 +5310,8 @@ id id id + id + id @@ -5337,6 +5369,13 @@ + + SPDatabaseDocument + + IBProjectSource + Source/SPConnectionDelegate.h + + SPDatabaseDocument NSObject @@ -5521,7 +5560,6 @@ titleAccessoryView titleImageView titleStringView - userManagerInstance YES @@ -5593,9 +5631,27 @@ id id id - SPUserManager + + IBProjectSource + Source/SPDatabaseDocument.h + + + + SPDatabaseDocument + + IBProjectSource + Source/SPPrintController.h + + + + SPDatabaseDocument + NSObject + + userManagerInstance + SPUserManager + IBUserSource @@ -5992,6 +6048,11 @@ id + + + + SPTablesList + NSObject IBUserSource @@ -6021,6 +6082,14 @@ SPTablesList + + IBProjectSource + Source/SPTextView.h + + + + SPTextView + NSTextView IBUserSource diff --git a/Source/SPAppController.h b/Source/SPAppController.h index 23796e34..0ae75b90 100644 --- a/Source/SPAppController.h +++ b/Source/SPAppController.h @@ -57,6 +57,7 @@ - (IBAction)visitHelpWebsite:(id)sender; - (IBAction)visitFAQWebsite:(id)sender; - (IBAction)provideFeedback:(id)sender; +- (IBAction)provideTranslationFeedback:(id)sender; - (IBAction)viewKeyboardShortcuts:(id)sender; // Getters diff --git a/Source/SPAppController.m b/Source/SPAppController.m index d3cbb8fb..37f79242 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -498,6 +498,14 @@ [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SPContactURL]]; } +/** + * Opens the 'Translation Feedback' page in the default browser. + */ +- (IBAction)provideTranslationFeedback:(id)sender +{ + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SPTranslationFeedbackURL]]; +} + /** * Opens the 'Keyboard Shortcuts' page in the default browser. */ diff --git a/Source/SPConstants.h b/Source/SPConstants.h index 1fdcf68a..10fd430f 100644 --- a/Source/SPConstants.h +++ b/Source/SPConstants.h @@ -297,6 +297,7 @@ extern NSString *SPKeyboardShortcutsURL; extern NSString *SPMySQLSearchURL; extern NSString *SPDevURL; extern NSString *SPGettingConnectedDocURL; +extern NSString *SPTranslationFeedbackURL; // Toolbar constants diff --git a/Source/SPConstants.m b/Source/SPConstants.m index 536d4cfb..d98daea7 100644 --- a/Source/SPConstants.m +++ b/Source/SPConstants.m @@ -176,6 +176,7 @@ NSString *SPKeyboardShortcutsURL = @"http://www.sequelpro.com/do NSString *SPMySQLSearchURL = @"http://search.mysql.com/search?q=%@&site=refman-%@"; NSString *SPDevURL = @"http://code.google.com/p/sequel-pro/"; NSString *SPGettingConnectedDocURL = @"http://www.sequelpro.com/docs/Getting_Connected"; +NSString *SPTranslationFeedbackURL = @"http://dev.sequelpro.com/translate/"; // Toolbar constants -- cgit v1.2.3