filename | src/cocoaui/cocoaui.h |
changeset | 725:4d4018e8eeb8 |
prev | 691:ad3356543392 |
next | 736:a02d1475ccfd |
author | nkeynes |
date | Sun Jul 06 03:18:55 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Add slightly more detailed about dialog Add (currently empty) preferences dialog (WIP) |
view | annotate | diff | log | raw |
1 /**
2 * $Id$
3 *
4 * Core Cocoa-based user interface
5 *
6 * Copyright (c) 2008 Nathan Keynes.
7 *
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.
12 *
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.
17 */
19 #import <AppKit/AppKit.h>
20 #include <glib/gi18n.h>
22 #ifndef lxdream_cocoaui_H
23 #define lxdream_cocoaui_H
25 #define NS_(x) [NSString stringWithUTF8String: _(x)]
27 NSWindow *cocoa_gui_create_main_window();
28 NSMenu *cocoa_gdrom_menu_new();
29 NSView *video_osx_create_drawable();
31 @interface LxdreamMainWindow : NSWindow
32 {
33 NSView *video;
34 NSTextField *status;
35 BOOL isGrabbed;
36 }
37 - (id)initWithContentRect:(NSRect)contentRect;
38 - (void)setStatusText:(const gchar *)text;
39 - (void)setRunning:(BOOL)isRunning;
40 - (BOOL)isGrabbed;
41 - (void)setIsGrabbed:(BOOL)grab;
42 @end
44 @interface LxdreamPrefsPanel : NSPanel
45 {
46 }
47 - (id)initWithContentRect:(NSRect)contentRect;
48 @end
50 #endif /* lxdream_cocoaui_H */
.