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 <vector>
24 
25 #include "C4Include.h"
26 #include "gui/C4KeyboardInput.h"
27 
28 #import <Cocoa/Cocoa.h>
29 #ifdef USE_COCOA
31 #endif
32 
33 @interface C4AppDelegate: NSObject
34 {
35  NSMutableArray *gatheredArguments;
36  NSString *addonSupplied;
37 #ifdef USE_COCOA
38  C4EditorWindowController *editorWindowController;
39  C4WindowController *gameWindowController;
40 #endif
41  BOOL running;
42  std::vector<char*> args;
43 }
44 - (BOOL) argsLookLikeItShouldBeInstallation;
45 - (void)makeFakeArgs;
46 - (BOOL)installAddOn;
47 - (void)terminate:(NSApplication*)sender;
48 
49 + (C4AppDelegate*) instance;
50 + (BOOL) isEditorAndGameRunning;
51 
52 #ifdef USE_COCOA
53 @property(weak, readonly) NSMenuItem* addViewportForPlayerMenuItem;
54 @property(weak, readonly) NSMenuItem* kickPlayerMenuItem;
55 @property(readwrite, strong) C4EditorWindowController* editorWindowController;
56 @property(readwrite, strong) C4WindowController* gameWindowController;
57 @property(weak, readonly) NSMenuItem* recordMenuItem;
58 @property(weak, readonly) NSMenuItem* netMenu;
59 @property(weak) NSMenuItem* toggleFullScreen;
60 #endif
61 @end
NSString * addonSupplied
Definition: C4AppDelegate.h:36
std::vector< char * > args
Definition: C4AppDelegate.h:42
NSMutableArray * gatheredArguments
Definition: C4AppDelegate.h:35