aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/ShortcutRecorder.framework/Versions/A/Headers/SRValidator.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-11-16 21:19:22 +0000
committerrowanbeentje <rowan@beent.je>2010-11-16 21:19:22 +0000
commita8f62043badbb88849f783b53772bbbc35513379 (patch)
tree395898de97be10262efd32eca9590fc71472c539 /Frameworks/ShortcutRecorder.framework/Versions/A/Headers/SRValidator.h
parent1ef653b918ddd53d6e54d4e1923b217f8b555080 (diff)
downloadsequelpro-a8f62043badbb88849f783b53772bbbc35513379.tar.gz
sequelpro-a8f62043badbb88849f783b53772bbbc35513379.tar.bz2
sequelpro-a8f62043badbb88849f783b53772bbbc35513379.zip
- Add the NewBSD-licensed ShortcutRecorder.framework to the project, for initial use in the bundle editor (not implemented yet). Includes the .ibplugin within the framework.
- Update localisable strings
Diffstat (limited to 'Frameworks/ShortcutRecorder.framework/Versions/A/Headers/SRValidator.h')
-rw-r--r--Frameworks/ShortcutRecorder.framework/Versions/A/Headers/SRValidator.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/Frameworks/ShortcutRecorder.framework/Versions/A/Headers/SRValidator.h b/Frameworks/ShortcutRecorder.framework/Versions/A/Headers/SRValidator.h
new file mode 100644
index 00000000..0dd8f283
--- /dev/null
+++ b/Frameworks/ShortcutRecorder.framework/Versions/A/Headers/SRValidator.h
@@ -0,0 +1,34 @@
+//
+// SRValidator.h
+// ShortcutRecorder
+//
+// Copyright 2006-2007 Contributors. All rights reserved.
+//
+// License: BSD
+//
+// Contributors:
+// David Dauer
+// Jesper
+// Jamie Kirkpatrick
+
+#import <Cocoa/Cocoa.h>
+
+@interface SRValidator : NSObject {
+ id delegate;
+}
+
+- (id) initWithDelegate:(id)theDelegate;
+
+- (BOOL) isKeyCode:(NSInteger)keyCode andFlagsTaken:(NSUInteger)flags error:(NSError **)error;
+- (BOOL) isKeyCode:(NSInteger)keyCode andFlags:(NSUInteger)flags takenInMenu:(NSMenu *)menu error:(NSError **)error;
+
+- (id) delegate;
+- (void) setDelegate: (id) theDelegate;
+
+@end
+
+#pragma mark -
+
+@interface NSObject( SRValidation )
+- (BOOL) shortcutValidator:(SRValidator *)validator isKeyCode:(NSInteger)keyCode andFlagsTaken:(NSUInteger)flags reason:(NSString **)aReason;
+@end