aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-06-01 22:32:03 +0000
committerstuconnolly <stuart02@gmail.com>2010-06-01 22:32:03 +0000
commitafa83e2e94ec0abe2cd6c2cbf4fe43d5616bbc6c (patch)
tree20c0c9b9fe650a207f14df5c06ce541802a3b5e1
parentd99ae49a194fc4bfce874c535096e4f68ef70d6e (diff)
downloadsequelpro-afa83e2e94ec0abe2cd6c2cbf4fe43d5616bbc6c.tar.gz
sequelpro-afa83e2e94ec0abe2cd6c2cbf4fe43d5616bbc6c.tar.bz2
sequelpro-afa83e2e94ec0abe2cd6c2cbf4fe43d5616bbc6c.zip
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.
-rw-r--r--Interfaces/English.lproj/MainMenu.xib95
-rw-r--r--Source/SPAppController.h1
-rw-r--r--Source/SPAppController.m8
-rw-r--r--Source/SPConstants.h1
-rw-r--r--Source/SPConstants.m1
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 @@
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
+ <integer value="106"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -1781,6 +1782,15 @@
<reference key="NSOnImage" ref="625762401"/>
<reference key="NSMixedImage" ref="315854375"/>
</object>
+ <object class="NSMenuItem" id="192476353">
+ <reference key="NSMenu" ref="1021151289"/>
+ <bool key="NSIsHidden">YES</bool>
+ <string key="NSTitle">Translation Feedback</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="625762401"/>
+ <reference key="NSMixedImage" ref="315854375"/>
+ </object>
</object>
</object>
</object>
@@ -2790,6 +2800,14 @@
</object>
<int key="connectionID">1091</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">provideTranslationFeedback:</string>
+ <reference key="source" ref="432083121"/>
+ <reference key="destination" ref="192476353"/>
+ </object>
+ <int key="connectionID">1094</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -3082,6 +3100,7 @@
<reference ref="421783578"/>
<reference ref="697275133"/>
<reference ref="329669681"/>
+ <reference ref="192476353"/>
</object>
<reference key="parent" ref="835585357"/>
</object>
@@ -4083,6 +4102,11 @@
<reference key="object" ref="363260437"/>
<reference key="parent" ref="709725194"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">1093</int>
+ <reference key="object" ref="192476353"/>
+ <reference key="parent" ref="1021151289"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -4128,6 +4152,7 @@
<string>1089.IBPluginDependency</string>
<string>1089.ImportedFromIB2</string>
<string>1092.IBPluginDependency</string>
+ <string>1093.IBPluginDependency</string>
<string>111.IBPluginDependency</string>
<string>111.ImportedFromIB2</string>
<string>129.IBPluginDependency</string>
@@ -4442,7 +4467,7 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{852, 432}, {204, 153}}</string>
+ <string>{{558, 204}, {216, 173}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="1"/>
<string>{{561, 605}, {181, 43}}</string>
@@ -4460,6 +4485,7 @@
<integer value="1"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="1"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="1"/>
@@ -4534,11 +4560,11 @@
<integer value="1"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="1"/>
- <string>{{781, 512}, {194, 73}}</string>
+ <string>{{695, 305}, {194, 73}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="1"/>
<string>{{449, 1007}, {197, 53}}</string>
- <string>{{354, 530}, {511, 20}}</string>
+ <string>{{108, 377}, {511, 20}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="1"/>
<string>{{506, 836}, {511, 20}}</string>
@@ -4815,7 +4841,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">1092</int>
+ <int key="maxID">1094</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -5117,23 +5143,23 @@
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <object class="IBClassDescriptionSource" key="sourceIdentifier" id="296977353">
<string key="majorKey">IBProjectSource</string>
- <string key="minorKey">Source/CMImageView.h</string>
+ <string key="minorKey">Source/SPConnectionController.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier" id="296977353">
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
- <string key="minorKey">Source/SPConnectionController.h</string>
+ <string key="minorKey">Source/SPContentFilterManager.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
- <string key="minorKey">Source/SPContentFilterManager.h</string>
+ <string key="minorKey">Source/SPImageView.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
@@ -5163,9 +5189,9 @@
<string key="NS.key.0">toggleCollapse:</string>
<string key="NS.object.0">id</string>
</object>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <object class="IBClassDescriptionSource" key="sourceIdentifier" id="1023504022">
<string key="majorKey">IBProjectSource</string>
- <string key="minorKey">Source/TablesList.h</string>
+ <string key="minorKey">Source/SPTablesList.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
@@ -5231,6 +5257,7 @@
<string>openConnectionSheet:</string>
<string>openPreferences:</string>
<string>provideFeedback:</string>
+ <string>provideTranslationFeedback:</string>
<string>viewKeyboardShortcuts:</string>
<string>visitFAQWebsite:</string>
<string>visitHelpWebsite:</string>
@@ -5249,6 +5276,7 @@
<string>id</string>
<string>id</string>
<string>id</string>
+ <string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
@@ -5270,7 +5298,9 @@
<string>addFavorite:</string>
<string>editFavorites:</string>
<string>initiateConnection:</string>
+ <string>reverseSortFavorites:</string>
<string>showHelp:</string>
+ <string>sortFavorites:</string>
<string>updateFavoriteSelection:</string>
</object>
<object class="NSMutableArray" key="dict.values">
@@ -5280,6 +5310,8 @@
<string>id</string>
<string>id</string>
<string>id</string>
+ <string>id</string>
+ <string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
@@ -5339,6 +5371,13 @@
</object>
<object class="IBPartialClassDescription">
<string key="className">SPDatabaseDocument</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">Source/SPConnectionDelegate.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">SPDatabaseDocument</string>
<string key="superclassName">NSObject</string>
<object class="NSMutableDictionary" key="actions">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -5521,7 +5560,6 @@
<string>titleAccessoryView</string>
<string>titleImageView</string>
<string>titleStringView</string>
- <string>userManagerInstance</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -5593,10 +5631,28 @@
<string>id</string>
<string>id</string>
<string>id</string>
- <string>SPUserManager</string>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">Source/SPDatabaseDocument.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">SPDatabaseDocument</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">Source/SPPrintController.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">SPDatabaseDocument</string>
+ <string key="superclassName">NSObject</string>
+ <object class="NSMutableDictionary" key="outlets">
+ <string key="NS.key.0">userManagerInstance</string>
+ <string key="NS.object.0">SPUserManager</string>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBUserSource</string>
<string key="minorKey"/>
</object>
@@ -5992,6 +6048,11 @@
<string>id</string>
</object>
</object>
+ <reference key="sourceIdentifier" ref="1023504022"/>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">SPTablesList</string>
+ <string key="superclassName">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBUserSource</string>
<string key="minorKey"/>
@@ -6022,6 +6083,14 @@
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">Source/SPTextView.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">SPTextView</string>
+ <string key="superclassName">NSTextView</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBUserSource</string>
<string key="minorKey"/>
</object>
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
@@ -499,6 +499,14 @@
}
/**
+ * 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.
*/
- (IBAction)viewKeyboardShortcuts:(id)sender
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