mirror of
https://github.com/chocolate-doom/launcher.git
synced 2024-11-23 21:02:05 +00:00
Set launcher window title and version string from config.h header.
Subversion-branch: /launcher Subversion-revision: 1756
This commit is contained in:
parent
6833b3e308
commit
894287c1c7
5 changed files with 40 additions and 1 deletions
|
@ -6,6 +6,8 @@
|
|||
@interface LauncherManager : NSObject
|
||||
{
|
||||
id commandLineArguments;
|
||||
id packageLabel;
|
||||
id launcherWindow;
|
||||
IWADController *iwadController;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <AppKit/AppKit.h>
|
||||
#include "LauncherManager.h"
|
||||
#include "config.h"
|
||||
|
||||
@implementation LauncherManager
|
||||
|
||||
|
@ -20,4 +21,11 @@
|
|||
{
|
||||
}
|
||||
|
||||
- (void) awakeFromNib
|
||||
{
|
||||
[self->packageLabel setStringValue: @PACKAGE_STRING];
|
||||
[self->launcherWindow setTitle: @PACKAGE_NAME " Launcher"];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -54,7 +54,9 @@
|
|||
);
|
||||
Outlets = (
|
||||
commandLineArguments,
|
||||
iwadController
|
||||
iwadController,
|
||||
packageLabel,
|
||||
launcherWindow
|
||||
);
|
||||
Super = NSObject;
|
||||
};
|
||||
|
|
Binary file not shown.
27
config.h
Normal file
27
config.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
// Dummy config.h for developing launcher. Eventually, the launcher
|
||||
// will include the top-level config.h for the program.
|
||||
|
||||
/* Name of package */
|
||||
#define PACKAGE "cocoa-doom"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "fraggle@gmail.com"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "Cocoa Doom"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "Cocoa Doom 1.2.1"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "cocoa-doom"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "1.2.1"
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "1.2.1"
|
||||
|
Loading…
Reference in a new issue