Search
lxdream.org :: lxdream/src/cocoaui/cocoaui.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoaui.h
changeset 755:ab873907b00e
prev736:a02d1475ccfd
next765:4cd066048203
author nkeynes
date Mon Jul 21 00:08:34 2008 +0000 (14 years ago)
permissions -rw-r--r--
last change Add gettext.h and build sanely without libintl if it's not available
Remove x86dasm's config.h & opintl.h (no longer needed and actually wrong)
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 #ifndef lxdream_cocoaui_H
    20 #define lxdream_cocoaui_H
    22 #import <AppKit/AppKit.h>
    23 #include "lxdream.h"
    24 #include "gettext.h"
    26 #ifdef __cplusplus
    27 extern "C" {
    28 #endif
    30 #define NS_(x) [NSString stringWithUTF8String: _(x)]
    32 NSWindow *cocoa_gui_create_main_window();
    33 NSMenu *cocoa_gdrom_menu_new();
    34 NSView *video_osx_create_drawable();
    36 @interface LxdreamMainWindow : NSWindow 
    37 {
    38     NSView *video;
    39     NSTextField *status;
    40     BOOL isGrabbed;
    41 }
    42 - (id)initWithContentRect:(NSRect)contentRect;
    43 - (void)setStatusText:(const gchar *)text;
    44 - (void)setRunning:(BOOL)isRunning;
    45 - (BOOL)isGrabbed;
    46 - (void)setIsGrabbed:(BOOL)grab;
    47 @end
    49 @interface LxdreamPrefsPanel : NSPanel
    50 {
    51 }
    52 - (id)initWithContentRect:(NSRect)contentRect;
    53 @end
    55 #ifdef __cplusplus
    56 }
    57 #endif
    59 #endif /* lxdream_cocoaui_H */
.