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 (11 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)
file annotate diff log raw
nkeynes@681
     1
/**
nkeynes@681
     2
 * $Id$
nkeynes@681
     3
 *
nkeynes@681
     4
 * Core Cocoa-based user interface
nkeynes@681
     5
 *
nkeynes@681
     6
 * Copyright (c) 2008 Nathan Keynes.
nkeynes@681
     7
 *
nkeynes@681
     8
 * This program is free software; you can redistribute it and/or modify
nkeynes@681
     9
 * it under the terms of the GNU General Public License as published by
nkeynes@681
    10
 * the Free Software Foundation; either version 2 of the License, or
nkeynes@681
    11
 * (at your option) any later version.
nkeynes@681
    12
 *
nkeynes@681
    13
 * This program is distributed in the hope that it will be useful,
nkeynes@681
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nkeynes@681
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
nkeynes@681
    16
 * GNU General Public License for more details.
nkeynes@681
    17
 */
nkeynes@681
    18
nkeynes@736
    19
#ifndef lxdream_cocoaui_H
nkeynes@736
    20
#define lxdream_cocoaui_H
nkeynes@736
    21
nkeynes@681
    22
#import <AppKit/AppKit.h>
nkeynes@755
    23
#include "lxdream.h"
nkeynes@755
    24
#include "gettext.h"
nkeynes@681
    25
nkeynes@736
    26
#ifdef __cplusplus
nkeynes@736
    27
extern "C" {
nkeynes@736
    28
#endif
nkeynes@736
    29
    
nkeynes@681
    30
#define NS_(x) [NSString stringWithUTF8String: _(x)]
nkeynes@681
    31
nkeynes@681
    32
NSWindow *cocoa_gui_create_main_window();
nkeynes@691
    33
NSMenu *cocoa_gdrom_menu_new();
nkeynes@681
    34
NSView *video_osx_create_drawable();
nkeynes@681
    35
nkeynes@681
    36
@interface LxdreamMainWindow : NSWindow 
nkeynes@681
    37
{
nkeynes@681
    38
    NSView *video;
nkeynes@681
    39
    NSTextField *status;
nkeynes@681
    40
    BOOL isGrabbed;
nkeynes@681
    41
}
nkeynes@681
    42
- (id)initWithContentRect:(NSRect)contentRect;
nkeynes@681
    43
- (void)setStatusText:(const gchar *)text;
nkeynes@681
    44
- (void)setRunning:(BOOL)isRunning;
nkeynes@681
    45
- (BOOL)isGrabbed;
nkeynes@681
    46
- (void)setIsGrabbed:(BOOL)grab;
nkeynes@681
    47
@end
nkeynes@681
    48
nkeynes@725
    49
@interface LxdreamPrefsPanel : NSPanel
nkeynes@725
    50
{
nkeynes@725
    51
}
nkeynes@725
    52
- (id)initWithContentRect:(NSRect)contentRect;
nkeynes@725
    53
@end
nkeynes@681
    54
nkeynes@736
    55
#ifdef __cplusplus
nkeynes@736
    56
}
nkeynes@736
    57
#endif
nkeynes@736
    58
    
nkeynes@681
    59
#endif /* lxdream_cocoaui_H */
.