aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-08-27 21:10:50 +0000
committerstuconnolly <stuart02@gmail.com>2011-08-27 21:10:50 +0000
commit2e85893ca0c0ce416402a2783067996a38ff8b66 (patch)
tree1203470c55690be490705d61e98f8f34ff0d8ad9 /Source
parent6d2a8515b8a1d3e87b7ef0552696c94368177e52 (diff)
downloadsequelpro-2e85893ca0c0ce416402a2783067996a38ff8b66.tar.gz
sequelpro-2e85893ca0c0ce416402a2783067996a38ff8b66.tar.bz2
sequelpro-2e85893ca0c0ce416402a2783067996a38ff8b66.zip
Tidy up.
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConstants.h1
-rw-r--r--Source/SPTableContent.h1
-rw-r--r--Source/SPTableContent.m8
3 files changed, 10 insertions, 0 deletions
diff --git a/Source/SPConstants.h b/Source/SPConstants.h
index ef1fc0c4..eebe3d63 100644
--- a/Source/SPConstants.h
+++ b/Source/SPConstants.h
@@ -223,6 +223,7 @@ typedef enum
#define SPLOCALIZEDURL_CONNECTIONHELP NSLocalizedString(@"http://www.sequelpro.com/docs/Getting_Connected", @"Localized connection help page - do not localize if no translated webpage is available")
#define SPLOCALIZEDURL_TRANSLATIONFEEDBACK NSLocalizedString(@"http://dev.sequelpro.com/translate/feedback", @"Localized translation feedback page - do not localize if no translated webpage is available")
#define SPLOCALIZEDURL_BUNDLEEDITORHELP NSLocalizedString(@"http://www.sequelpro.com/docs/Bundle_Editor", @"Localized help page for bundle editor - do not localize if no translated webpage is available")
+#define SPLOCALIZEDURL_CONTENTFILTERHELP NSLocalizedString(@"http://www.sequelpro.com/docs/Content_Filters", @"Localized help page for content filter - do not localize if no translated webpage is available")
// Long running notification time for Growl messages
extern const CGFloat SPLongRunningNotificationTime;
diff --git a/Source/SPTableContent.h b/Source/SPTableContent.h
index 036fde34..2f571e70 100644
--- a/Source/SPTableContent.h
+++ b/Source/SPTableContent.h
@@ -202,6 +202,7 @@
- (IBAction)swapFilterTable:(id)sender;
- (IBAction)toggleLookAllFieldsMode:(id)sender;
- (IBAction)closeSheet:(id)sender;
+- (IBAction)showDefaultOperaterHelp:(id)sender;
// Data accessors
- (NSArray *)currentResult;
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index ba774615..7304f53e 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -3420,6 +3420,14 @@
[[sender window] orderOut:self];
}
+/**
+ * Opens the content filter help page in the default browser.
+ */
+- (IBAction)showDefaultOperaterHelp:(id)sender
+{
+ [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:SPLOCALIZEDURL_CONTENTFILTERHELP]];
+}
+
#pragma mark -
#pragma mark Retrieving and setting table state