From 6921f30a44e0bdf1c3a2f8982e4a8cd290c22462 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 4 Jan 2010 22:01:32 +0000 Subject: Import OS X launcher code to trunk. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1784 --- pkg/osx/LauncherManager.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkg/osx/LauncherManager.h (limited to 'pkg/osx/LauncherManager.h') diff --git a/pkg/osx/LauncherManager.h b/pkg/osx/LauncherManager.h new file mode 100644 index 00000000..11852dcf --- /dev/null +++ b/pkg/osx/LauncherManager.h @@ -0,0 +1,47 @@ +/* ... */ +//----------------------------------------------------------------------------- +// +// Copyright(C) 2009 Simon Howard +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +// 02111-1307, USA. +// +//----------------------------------------------------------------------------- + +#ifndef LAUNCHER_LAUNCHERMANAGER_H +#define LAUNCHER_LAUNCHERMANAGER_H + +#include +#include +#include "IWADController.h" + +@interface LauncherManager : NSObject +{ + IWADController *iwadController; + + id launcherWindow; + + id commandLineArguments; + id packageLabel; +} + +- (void) launch: (id)sender; +- (void) runSetup: (id)sender; +- (void) awakeFromNib; + +@end + +#endif /* #ifndef LAUNCHER_LAUNCHERMANAGER_H */ + -- cgit v1.2.3 From c2f2fa12a68626a3d2a25231d0aa1c6146d555c3 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 9 Jan 2010 18:54:04 +0000 Subject: Initial code to identify file type by extension and add file to command line. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1793 --- pkg/osx/LauncherManager.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/osx/LauncherManager.h') diff --git a/pkg/osx/LauncherManager.h b/pkg/osx/LauncherManager.h index 11852dcf..de95265a 100644 --- a/pkg/osx/LauncherManager.h +++ b/pkg/osx/LauncherManager.h @@ -40,6 +40,9 @@ - (void) launch: (id)sender; - (void) runSetup: (id)sender; - (void) awakeFromNib; +- (void) addFileToCommandLine: (NSString *) fileName + forArgument: (NSString *) args; + @end -- cgit v1.2.3 From 160ff32f2fb8ba7112938790044684c61a0b07b1 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 11 Jan 2010 19:10:42 +0000 Subject: Insert new files into the command line at the correct location, allowing multiple files to be opened at once. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1803 --- pkg/osx/LauncherManager.h | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/osx/LauncherManager.h') diff --git a/pkg/osx/LauncherManager.h b/pkg/osx/LauncherManager.h index de95265a..eac4cfba 100644 --- a/pkg/osx/LauncherManager.h +++ b/pkg/osx/LauncherManager.h @@ -40,6 +40,7 @@ - (void) launch: (id)sender; - (void) runSetup: (id)sender; - (void) awakeFromNib; +- (void) clearCommandLine; - (void) addFileToCommandLine: (NSString *) fileName forArgument: (NSString *) args; -- cgit v1.2.3 From bf8974e63b988ae1b5d2fdb0492dfe0bb3613680 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 23 Jan 2010 23:06:45 +0000 Subject: Add menu item to launcher to open a terminal window that can be used to start the game. Add missing 'edit' menu. Set svn:ignore property for osx directory. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1824 --- pkg/osx/LauncherManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/osx/LauncherManager.h') diff --git a/pkg/osx/LauncherManager.h b/pkg/osx/LauncherManager.h index eac4cfba..76c74624 100644 --- a/pkg/osx/LauncherManager.h +++ b/pkg/osx/LauncherManager.h @@ -43,7 +43,7 @@ - (void) clearCommandLine; - (void) addFileToCommandLine: (NSString *) fileName forArgument: (NSString *) args; - +- (void) openTerminal: (id) sender; @end -- cgit v1.2.3 From a054475997a14499a9bce528a64efb22ce2fe2b0 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 30 Jan 2010 16:04:24 +0000 Subject: Set launch button as default button, so that it is possible to launch the game by pressing return. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1834 --- pkg/osx/LauncherManager.h | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/osx/LauncherManager.h') diff --git a/pkg/osx/LauncherManager.h b/pkg/osx/LauncherManager.h index 76c74624..e454ab4f 100644 --- a/pkg/osx/LauncherManager.h +++ b/pkg/osx/LauncherManager.h @@ -32,6 +32,7 @@ IWADController *iwadController; id launcherWindow; + id launchButton; id commandLineArguments; id packageLabel; -- cgit v1.2.3