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>
31 #define NS_(x) [NSString stringWithUTF8String: _(x)]
34 #define TEXT_HEIGHT 22
35 #define LABEL_HEIGHT 17
39 * Convenience method to create a new text label in the specified parent.
41 NSTextField *cocoa_gui_add_label(NSView *parent, NSString *title, NSRect frame);
43 @interface LxdreamVideoView : NSView
48 - (void) setDelegate: (id)other;
50 - (void) setIsGrabbed: (BOOL)grabbed;
53 @interface LxdreamMainWindow : NSWindow
55 LxdreamVideoView *video;
62 - (id)initWithContentRect:(NSRect)contentRect;
63 - (void)setStatusText:(const gchar *)text;
65 - (void)setRunning:(BOOL)isRunning;
67 - (void)setIsGrabbed:(BOOL)grab;
68 - (void)setUseGrab: (BOOL)grab;
70 - (void)setFullscreen: (BOOL)fs;
73 @interface LxdreamPrefsPane : NSView
77 - (id)initWithFrame: (NSRect)frameRect title:(NSString *)title;
81 @interface KeyBindingEditor: NSTextView
88 @interface KeyBindingField : NSTextField
93 @interface LxdreamPrefsPanel : NSPanel
96 NSArray *toolbar_defaults;
97 NSDictionary *toolbar_items;
98 NSView *path_pane, *ctrl_pane;
99 KeyBindingEditor *binding_editor;
101 - (id)initWithContentRect:(NSRect)contentRect;
105 LxdreamMainWindow *cocoa_gui_create_main_window();
106 NSMenu *cocoa_gdrom_menu_new();
107 NSView *video_osx_create_drawable();
108 void cocoa_gui_show_preferences();
109 NSView *cocoa_gui_create_prefs_controller_pane();
110 NSView *cocoa_gui_create_prefs_path_pane();
117 #endif /* lxdream_cocoaui_H */
.