OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4AppDelegate.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 2006-2007, Julian Raschke
5  * Copyright (c) 2010-2016, The OpenClonk Team and contributors
6  *
7  * Distributed under the terms of the ISC license; see accompanying file
8  * "COPYING" for details.
9  *
10  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
11  * See accompanying file "TRADEMARK" for details.
12  *
13  * To redistribute this file separately, substitute the full license texts
14  * for the above references.
15  */
16 /* SDLMain.m - main entry point for our Cocoa-ized SDL app
17  Initial Version: Darrell Walisser <dwaliss1@purdue.edu>
18  Non-NIB-Code & other changes: Max Horn <max@quendi.de>
19 
20  Feel free to customize this file to suit your needs
21 */
22 
23 #include "C4Include.h"
24 #include "gui/C4KeyboardInput.h"
25 
26 #import <Cocoa/Cocoa.h>
27 #ifdef USE_COCOA
29 #endif
30 
31 @interface C4AppDelegate: NSObject
32 {
33  NSMutableArray *gatheredArguments;
34  NSString *addonSupplied;
35 #ifdef USE_COCOA
36  C4EditorWindowController *editorWindowController;
37  C4WindowController *gameWindowController;
38 #endif
39  BOOL running;
40  std::vector<char*> args;
41 }
42 - (BOOL) argsLookLikeItShouldBeInstallation;
43 - (void)makeFakeArgs;
44 - (BOOL)installAddOn;
45 - (void)terminate:(NSApplication*)sender;
46 
47 + (C4AppDelegate*) instance;
48 + (BOOL) isEditorAndGameRunning;
49 
50 #ifdef USE_COCOA
51 @property(weak, readonly) NSMenuItem* addViewportForPlayerMenuItem;
52 @property(weak, readonly) NSMenuItem* kickPlayerMenuItem;
53 @property(readwrite, strong) C4EditorWindowController* editorWindowController;
54 @property(readwrite, strong) C4WindowController* gameWindowController;
55 @property(weak, readonly) NSMenuItem* recordMenuItem;
56 @property(weak, readonly) NSMenuItem* netMenu;
57 @property(weak) NSMenuItem* toggleFullScreen;
58 #endif
59 @end
NSString * addonSupplied
Definition: C4AppDelegate.h:34
std::vector< char * > args
Definition: C4AppDelegate.h:40
NSMutableArray * gatheredArguments
Definition: C4AppDelegate.h:33