Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/macosx/SDLMain.h
blob: 53352f2428d203a43a7d60e2c56cc43df20af394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*   SDLMain.m - main entry point for our Cocoa-ized SDL app
       Initial Version: Darrell Walisser <dwaliss1@purdue.edu>
       Non-NIB-Code & other changes: Max Horn <max@quendi.de>

    Feel free to customize this file to suit your needs
	 $Id: SDLMain.h,v 1.6 2008/02/20 05:32:21 mfuhrer Exp $
*/

//#define MAC_OS_X_VERSION_MAX_ALLOWED MAC_OS_X_VERSION_10_2
//#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_2

#import <Cocoa/Cocoa.h>
#import "TransparentTextView.h"

@interface SDLMain : NSObject
{
    IBOutlet NSWindow *messagePanel;
    IBOutlet NSTextField *messageText;
    IBOutlet NSTextField *messageStatus;
    IBOutlet NSProgressIndicator *messageProgress;
    IBOutlet NSWindow *aboutWindow;
    IBOutlet NSTextField *appnameText;
    IBOutlet NSTextField *versionText;
    IBOutlet TransparentTextView *acknowledgmentsText;
}

- (IBAction)onAbout:(id)sender;
- (IBAction)onNew:(id)sender;
- (IBAction)onOpen:(id)sender;
- (IBAction)onSave:(id)sender;
- (IBAction)onPrint:(id)sender;
- (IBAction)onPageSetup:(id)sender;
- (IBAction)onUndo:(id)sender;
- (IBAction)onRedo:(id)sender;
- (IBAction)onHelp:(id)sender;
- (IBAction)onQuit:(id)sender;

- (void) sendSDLControlKeystroke:(int)key;
- (void) sendSDLControlShiftKeystroke:(int)key;
- (void) setupBridge;

- (void) displayMessage:(NSString*)message andStatus:(NSString*)status withProgressIndicator:(BOOL)progress;
- (void) hideMessage;

@end