filename | src/cocoaui/cocoaui.h |
changeset | 770:429ff505c450 |
prev | 765:4cd066048203 |
next | 780:4e4ea322cb84 |
author | nkeynes |
date | Mon Jul 28 03:41:25 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Implement key-binding configuration pane for Cocoa UI Minor tweaks for consistency and static-correctness |
file | annotate | diff | log | raw |
1.1 --- a/src/cocoaui/cocoaui.h Wed Jul 23 11:11:30 2008 +00001.2 +++ b/src/cocoaui/cocoaui.h Mon Jul 28 03:41:25 2008 +00001.3 @@ -38,6 +38,13 @@1.4 NSMenu *cocoa_gdrom_menu_new();1.5 NSView *video_osx_create_drawable();1.6 void cocoa_gui_show_preferences();1.7 +NSView *cocoa_gui_create_prefs_controller_pane();1.8 +NSView *cocoa_gui_create_prefs_path_pane();1.9 +1.10 +/**1.11 + * Convenience method to create a new text label in the specified parent.1.12 + */1.13 +NSTextField *cocoa_gui_add_label(NSView *parent, NSString *title, NSRect frame);1.15 @interface LxdreamMainWindow : NSWindow1.16 {1.17 @@ -57,36 +64,32 @@1.18 int headerHeight;1.19 }1.20 - (id)initWithFrame: (NSRect)frameRect title:(NSString *)title;1.21 -/**1.22 - * Create a text label and add it to the pane1.23 - */1.24 -- (NSTextField *)addLabel: (NSString *)text withFrame: (NSRect)frame;1.25 - (int)contentHeight;1.26 @end1.28 +@interface KeyBindingEditor: NSTextView1.29 +{1.30 + BOOL isPrimed;1.31 + NSString *lastValue;1.32 +}1.33 +@end1.34 +1.35 +@interface KeyBindingField : NSTextField1.36 +{1.37 +}1.38 +@end1.39 +1.40 @interface LxdreamPrefsPanel : NSPanel1.41 {1.42 NSArray *toolbar_ids;1.43 NSArray *toolbar_defaults;1.44 NSDictionary *toolbar_items;1.45 NSView *path_pane, *ctrl_pane;1.46 + KeyBindingEditor *binding_editor;1.47 }1.48 - (id)initWithContentRect:(NSRect)contentRect;1.49 @end1.51 -@interface LxdreamPrefsPathPane: LxdreamPrefsPane1.52 -{1.53 -}1.54 -+ (LxdreamPrefsPathPane *)new;1.55 -@end1.56 -1.57 -@interface LxdreamPrefsControllerPane: LxdreamPrefsPane1.58 -{1.59 - struct maple_device *save_controller[4];1.60 -}1.61 -+ (LxdreamPrefsControllerPane *)new;1.62 -@end1.63 -1.64 #ifdef __cplusplus1.65 }1.66 #endif
.