4 * Core Cocoa-based user interface
6 * Copyright (c) 2008 Nathan Keynes.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
19 #ifndef lxdream_cocoaui_H
20 #define lxdream_cocoaui_H
22 #import <AppKit/AppKit.h>
30 #define NS_(x) [NSString stringWithUTF8String: _(x)]
33 #define TEXT_HEIGHT 22
34 #define LABEL_HEIGHT 17
38 * Convenience method to create a new text label in the specified parent.
40 NSTextField *cocoa_gui_add_label(NSView *parent, NSString *title, NSRect frame);
42 @interface LxdreamVideoView : NSView
47 - (void) setDelegate: (id)other;
49 - (void) setIsGrabbed: (BOOL)grabbed;
52 @interface LxdreamMainWindow : NSWindow
54 LxdreamVideoView *video;
61 - (id)initWithContentRect:(NSRect)contentRect;
62 - (void)setStatusText:(const gchar *)text;
64 - (void)setRunning:(BOOL)isRunning;
66 - (void)setIsGrabbed:(BOOL)grab;
67 - (void)setUseGrab: (BOOL)grab;
69 - (void)setFullscreen: (BOOL)fs;
72 @interface LxdreamPrefsPane : NSView
76 - (id)initWithFrame: (NSRect)frameRect title:(NSString *)title;
80 @interface KeyBindingEditor: NSTextView
87 @interface KeyBindingField : NSTextField
92 @interface LxdreamPrefsPanel : NSPanel
95 NSArray *toolbar_defaults;
96 NSDictionary *toolbar_items;
97 NSView *path_pane, *ctrl_pane;
98 KeyBindingEditor *binding_editor;
100 - (id)initWithContentRect:(NSRect)contentRect;
104 LxdreamMainWindow *cocoa_gui_create_main_window();
105 NSMenu *cocoa_gdrom_menu_new();
106 NSView *video_osx_create_drawable();
107 void cocoa_gui_show_preferences();
108 NSView *cocoa_gui_create_prefs_controller_pane();
109 NSView *cocoa_gui_create_prefs_path_pane();
116 #endif /* lxdream_cocoaui_H */
.