Adding HotKeys to ITKit... This is the new HotKey code by Quentin of
[ITKit.git] / ITKeyComboPanel.h
diff --git a/ITKeyComboPanel.h b/ITKeyComboPanel.h
new file mode 100755 (executable)
index 0000000..fbe18aa
--- /dev/null
@@ -0,0 +1,40 @@
+//
+//  ITKeyComboPanel.h
+
+//
+//  Created by Quentin Carnicelli on Sun Aug 03 2003.
+//  Copyright (c) 2003 iThink Software. All rights reserved.
+//
+
+#import <AppKit/AppKit.h>
+
+@class ITKeyBroadcaster;
+@class ITKeyCombo;
+@class ITHotKey;
+
+@interface ITKeyComboPanel : NSWindowController
+{
+       IBOutlet NSTextField*           mTitleField;
+       IBOutlet NSTextField*           mComboField;
+       IBOutlet ITKeyBroadcaster*      mKeyBcaster;
+
+       NSString*                               mTitleFormat;
+       NSString*                               mKeyName;
+       ITKeyCombo*                             mKeyCombo;
+}
+
++ (id)sharedPanel;
+
+- (int)runModal;
+- (void)runModalForHotKey: (ITHotKey*)hotKey;
+
+- (void)setKeyCombo: (ITKeyCombo*)combo;
+- (ITKeyCombo*)keyCombo;
+
+- (void)setKeyBindingName: (NSString*)name;
+- (NSString*)keyBindingName;
+
+- (IBAction)ok: (id)sender;
+- (IBAction)cancel: (id)sender;
+- (IBAction)clear: (id)sender;
+@end