aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-07-16 15:26:13 +0000
committerBibiko <bibiko@eva.mpg.de>2009-07-16 15:26:13 +0000
commite21905eda02d5fffebf9cfb5ac7fa825e30860d7 (patch)
tree7f03177d37aca609774b06307fc20ef81f27c52b
parentc1b38e1929a723d3797e744dc8b30a906adf1c95 (diff)
downloadsequelpro-e21905eda02d5fffebf9cfb5ac7fa825e30860d7.tar.gz
sequelpro-e21905eda02d5fffebf9cfb5ac7fa825e30860d7.tar.bz2
sequelpro-e21905eda02d5fffebf9cfb5ac7fa825e30860d7.zip
-rw-r--r--Interfaces/English.lproj/MainMenu.xib55
-rw-r--r--Source/MainController.h1
-rw-r--r--Source/MainController.m9
3 files changed, 63 insertions, 2 deletions
diff --git a/Interfaces/English.lproj/MainMenu.xib b/Interfaces/English.lproj/MainMenu.xib
index 0f74ff0c..c2f1b725 100644
--- a/Interfaces/English.lproj/MainMenu.xib
+++ b/Interfaces/English.lproj/MainMenu.xib
@@ -1607,6 +1607,14 @@
<reference key="NSOnImage" ref="625762401"/>
<reference key="NSMixedImage" ref="315854375"/>
</object>
+ <object class="NSMenuItem" id="860424953">
+ <reference key="NSMenu" ref="1021151289"/>
+ <string key="NSTitle">Online FAQ</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="625762401"/>
+ <reference key="NSMixedImage" ref="315854375"/>
+ </object>
<object class="NSMenuItem" id="675223656">
<reference key="NSMenu" ref="1021151289"/>
<bool key="NSIsDisabled">YES</bool>
@@ -2441,6 +2449,14 @@
</object>
<int key="connectionID">936</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">visitFAQWebsite:</string>
+ <reference key="source" ref="432083121"/>
+ <reference key="destination" ref="860424953"/>
+ </object>
+ <int key="connectionID">939</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -2828,6 +2844,7 @@
<reference ref="379292312"/>
<reference ref="675223656"/>
<reference ref="501853903"/>
+ <reference ref="860424953"/>
</object>
<reference key="parent" ref="835585357"/>
</object>
@@ -3634,6 +3651,11 @@
<reference key="object" ref="121139500"/>
<reference key="parent" ref="71086556"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">938</int>
+ <reference key="object" ref="860424953"/>
+ <reference key="parent" ref="1021151289"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -3971,6 +3993,7 @@
<string>930.IBPluginDependency</string>
<string>932.IBPluginDependency</string>
<string>935.IBPluginDependency</string>
+ <string>938.IBPluginDependency</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -3980,7 +4003,7 @@
<integer value="1" id="9"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/>
- <string>{{564, 657}, {181, 73}}</string>
+ <string>{{614, 626}, {181, 93}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/>
<string>{{561, 605}, {181, 43}}</string>
@@ -4348,6 +4371,7 @@ w6gg4oaSIGZhY2FkZV0</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">
@@ -4370,7 +4394,7 @@ w6gg4oaSIGZhY2FkZV0</string>
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">937</int>
+ <int key="maxID">939</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -4839,6 +4863,33 @@ w6gg4oaSIGZhY2FkZV0</string>
<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.1+">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBPartialClassDescription">
+ <string key="className">MainController</string>
+ <string key="superclassName">NSObject</string>
+ <object class="NSMutableDictionary" key="actions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMutableArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>donate:</string>
+ <string>openPreferences:</string>
+ <string>visitFAQWebsite:</string>
+ <string>visitHelpWebsite:</string>
+ <string>visitWebsite:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>id</string>
+ <string>id</string>
+ <string>id</string>
+ <string>id</string>
+ <string>id</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBDocumentRelativeSource</string>
+ <string key="minorKey">../../Source/MainController.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="939419192">
<string key="majorKey">IBDocumentRelativeSource</string>
diff --git a/Source/MainController.h b/Source/MainController.h
index 823c9e97..59fc0e40 100644
--- a/Source/MainController.h
+++ b/Source/MainController.h
@@ -44,6 +44,7 @@
- (IBAction)donate:(id)sender;
- (IBAction)visitWebsite:(id)sender;
- (IBAction)visitHelpWebsite:(id)sender;
+- (IBAction)visitFAQWebsite:(id)sender;
// Getters
- (SPPreferenceController *)preferenceController;
diff --git a/Source/MainController.m b/Source/MainController.m
index b9d02d92..25ffdeb9 100644
--- a/Source/MainController.m
+++ b/Source/MainController.m
@@ -33,6 +33,7 @@
#define SEQUEL_PRO_HOME_PAGE_URL @"http://www.sequelpro.com/"
#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"
@implementation MainController
@@ -142,6 +143,14 @@
*/
- (IBAction)visitHelpWebsite:(id)sender
{
+ [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SEQUEL_PRO_DOCS_URL]];
+}
+
+/**
+ * Opens FAQ help link in default browser
+ */
+- (IBAction)visitFAQWebsite:(id)sender
+{
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SEQUEL_PRO_FAQ_URL]];
}