bloody gcc deciding #import isn't good enough :P

This commit is contained in:
Bill Currie 2003-05-06 21:52:58 +00:00
parent a4abf526e8
commit 4dcc29a136
48 changed files with 182 additions and 149 deletions

View file

@ -28,18 +28,21 @@
Boston, MA 02111-1307, USA Boston, MA 02111-1307, USA
*/ */
#ifndef BundleController_h
#define BundleController_h
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "Config.h" # include "Config.h"
#endif #endif
#import <Foundation/NSArray.h> #include <Foundation/NSArray.h>
#import <Foundation/NSBundle.h> #include <Foundation/NSBundle.h>
#import <Foundation/NSObject.h> #include <Foundation/NSObject.h>
#import <AppKit/NSNibDeclarations.h> #include <AppKit/NSNibDeclarations.h>
#import "PrefsController.h" #include "PrefsController.h"
#import "PrefsView.h" #include "PrefsView.h"
/* /*
Bundle Delegate protocol Bundle Delegate protocol
@ -92,3 +95,5 @@
- (NSArray *) loadedBundles; - (NSArray *) loadedBundles;
@end @end
#endif//BundleController_h

View file

@ -34,14 +34,14 @@ static const char rcsid[] =
# include "Config.h" # include "Config.h"
#endif #endif
#import <Foundation/NSDebug.h> #include <Foundation/NSDebug.h>
#import <Foundation/NSFileManager.h> #include <Foundation/NSFileManager.h>
#import <Foundation/NSPathUtilities.h> #include <Foundation/NSPathUtilities.h>
#import <Foundation/NSUserDefaults.h> #include <Foundation/NSUserDefaults.h>
#import <AppKit/NSPanel.h> #include <AppKit/NSPanel.h>
#import "BundleController.h" #include "BundleController.h"
@interface BundleController (Private) @interface BundleController (Private)

View file

@ -28,14 +28,17 @@
Boston, MA 02111-1307, USA Boston, MA 02111-1307, USA
*/ */
#ifndef MainPrefs_h
#define MainPrefs_h
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "Config.h" # include "Config.h"
#endif #endif
#import <AppKit/NSNibDeclarations.h> #include <AppKit/NSNibDeclarations.h>
#import "BundleController.h" #include "BundleController.h"
#import "PrefsView.h" #include "PrefsView.h"
@interface MainPrefs: NSObject <PrefsViewController, ForgeBundle> @interface MainPrefs: NSObject <PrefsViewController, ForgeBundle>
{ {
@ -58,3 +61,5 @@
- (IBAction) projectPathFindButtonClicked: (id) sender; - (IBAction) projectPathFindButtonClicked: (id) sender;
@end @end
#endif//MainPrefs_h

View file

@ -34,18 +34,18 @@ static const char rcsid[] =
# include "Config.h" # include "Config.h"
#endif #endif
#import <Foundation/NSDebug.h> #include <Foundation/NSDebug.h>
#import <Foundation/NSPathUtilities.h> #include <Foundation/NSPathUtilities.h>
#import <Foundation/NSUserDefaults.h> #include <Foundation/NSUserDefaults.h>
#import <Foundation/NSValue.h> #include <Foundation/NSValue.h>
#import <AppKit/NSButton.h> #include <AppKit/NSButton.h>
#import <AppKit/NSImage.h> #include <AppKit/NSImage.h>
#import <AppKit/NSNibLoading.h> #include <AppKit/NSNibLoading.h>
#import <AppKit/NSOpenPanel.h> #include <AppKit/NSOpenPanel.h>
#import "PrefsController.h" #include "PrefsController.h"
#import "MainPrefs.h" #include "MainPrefs.h"
@interface MainPrefs (Private) @interface MainPrefs (Private)

View file

@ -1,6 +1,9 @@
#import <AppKit/AppKit.h> #ifndef Brush_h
#import "SetBrush.h" #define Brush_h
#import "EditWindow.h"
#include <AppKit/AppKit.h>
#include "SetBrush.h"
#include "EditWindow.h"
extern id brush_i; extern id brush_i;
@ -52,4 +55,4 @@ extern BOOL brushdraw; // YES when drawing cutbrushes and ents
@end @end
#define Brush_h

View file

@ -1,6 +1,6 @@
#import <AppKit/AppKit.h> #include <AppKit/AppKit.h>
#import "mathlib.h" #include "mathlib.h"
#import "SetBrush.h" #include "SetBrush.h"
extern id cameraview_i; extern id cameraview_i;

View file

@ -1,4 +1,4 @@
#import "qedefs.h" #include "qedefs.h"
id cameraview_i; id cameraview_i;

View file

@ -1,8 +1,8 @@
#include "qedefs.h" #include "qedefs.h"
#import <AppKit/NSGraphics.h> #include <AppKit/NSGraphics.h>
#import <AppKit/DPSOperators.h> #include <AppKit/DPSOperators.h>
id clipper_i; id clipper_i;

View file

@ -1,5 +1,5 @@
#import <AppKit/AppKit.h> #include <AppKit/AppKit.h>
typedef struct typedef struct
{ {

View file

@ -1,5 +1,5 @@
#import "qedefs.h" #include "qedefs.h"
@implementation Dict @implementation Dict

View file

@ -1,5 +1,5 @@
#import <AppKit/AppKit.h> #include <AppKit/AppKit.h>
@interface DictList:List @interface DictList:List
{ {

View file

@ -1,5 +1,5 @@
#import "qedefs.h" #include "qedefs.h"
@implementation DictList @implementation DictList

View file

@ -1,5 +1,5 @@
#import <AppKit/AppKit.h> #include <AppKit/AppKit.h>
#import "mathlib.h" #include "mathlib.h"
typedef enum {esize_model, esize_fixed} esize_t; typedef enum {esize_model, esize_fixed} esize_t;

View file

@ -1,5 +1,5 @@
#import "qedefs.h" #include "qedefs.h"
@implementation EntityClass @implementation EntityClass

View file

@ -1,5 +1,5 @@
#import <AppKit/AppKit.h> #include <AppKit/AppKit.h>
#define MINIWINICON "DoomEdIcon" #define MINIWINICON "DoomEdIcon"

View file

@ -1,10 +1,10 @@
#import "qedefs.h" #include "qedefs.h"
// Add .h-files here for new inspectors // Add .h-files here for new inspectors
#import "Things.h" #include "Things.h"
#import "TexturePalette.h" #include "TexturePalette.h"
#import "Preferences.h" #include "Preferences.h"
id inspcontrol_i; id inspcontrol_i;

View file

@ -1,5 +1,5 @@
#import "qedefs.h" #include "qedefs.h"
id keypairview_i; id keypairview_i;

View file

@ -1,4 +1,4 @@
#import <AppKit/AppKit.h> #include <AppKit/AppKit.h>
@interface PopScrollView : NSScrollView @interface PopScrollView : NSScrollView
{ {

View file

@ -1,5 +1,5 @@
#import "qedefs.h" #include "qedefs.h"
@implementation PopScrollView @implementation PopScrollView

View file

@ -1,5 +1,5 @@
#import "qedefs.h" #include "qedefs.h"
id preferences_i; id preferences_i;

View file

@ -1,5 +1,5 @@
#import <AppKit/AppKit.h> #include <AppKit/AppKit.h>
#include <sys/stat.h> #include <sys/stat.h>
#define BASEPATHKEY "basepath" #define BASEPATHKEY "basepath"

View file

@ -4,7 +4,7 @@
// //
//====================================== //======================================
#import "qedefs.h" #include "qedefs.h"
id project_i; id project_i;

View file

@ -1,5 +1,5 @@
#import "qedefs.h" #include "qedefs.h"
id quakeed_i; id quakeed_i;
id entclasses_i; id entclasses_i;

View file

@ -2,7 +2,7 @@
NOTE: Do NOT change this file -- Project Builder maintains it. NOTE: Do NOT change this file -- Project Builder maintains it.
*/ */
#import <appkit/appkit.h> #include <appkit/appkit.h>
void main(int argc, char *argv[]) { void main(int argc, char *argv[]) {

View file

@ -1,4 +1,4 @@
#import "qedefs.h" #include "qedefs.h"
@implementation SetBrush @implementation SetBrush

View file

@ -1,5 +1,5 @@
#import "qedefs.h" #include "qedefs.h"
id texturepalette_i; id texturepalette_i;

View file

@ -1,5 +1,5 @@
#import "qedefs.h" #include "qedefs.h"
/* /*

View file

@ -1,5 +1,5 @@
#import <AppKit/AppKit.h> #include <AppKit/AppKit.h>
extern id things_i; extern id things_i;

View file

@ -1,5 +1,5 @@
#import "qedefs.h" #include "qedefs.h"
id things_i; id things_i;

View file

@ -30,8 +30,8 @@
* which reference objective C methods. * which reference objective C methods.
*/ */
#import <objc/objc.h> #include <objc/objc.h>
#import <AppKit/NSGraphicsContext.h> #include <AppKit/NSGraphicsContext.h>
typedef struct _UP { typedef struct _UP {
float *points; float *points;

View file

@ -7,12 +7,12 @@
* *
*/ */
#import "UserPath.h" #include "UserPath.h"
#import <mach/mach_init.h> #include <mach/mach_init.h>
#import <appkit/graphics.h> #include <appkit/graphics.h>
#import <appkit/errors.h> #include <appkit/errors.h>
#import <math.h> #include <math.h>
#import <libc.h> #include <libc.h>
static NSZone *upZone = NULL; static NSZone *upZone = NULL;

View file

@ -1,7 +1,7 @@
#import <AppKit/AppKit.h> #include <AppKit/AppKit.h>
#import "mathlib.h" #include "mathlib.h"
#import "SetBrush.h" #include "SetBrush.h"
extern id xyview_i; extern id xyview_i;

View file

@ -1,4 +1,4 @@
#import "qedefs.h" #include "qedefs.h"
id xyview_i; id xyview_i;

View file

@ -1,4 +1,4 @@
#import <AppKit/AppKit.h> #include <AppKit/AppKit.h>
@interface ZScrollView : NSScrollView @interface ZScrollView : NSScrollView
{ {

View file

@ -1,4 +1,4 @@
#import "qedefs.h" #include "qedefs.h"
@implementation ZScrollView @implementation ZScrollView

View file

@ -1,6 +1,6 @@
#import <AppKit/AppKit.h> #include <AppKit/AppKit.h>
#import "mathlib.h" #include "mathlib.h"
extern id zview_i; extern id zview_i;

View file

@ -1,5 +1,5 @@
#import "qedefs.h" #include "qedefs.h"
id zview_i; id zview_i;

View file

@ -1,36 +1,36 @@
#import <AppKit/AppKit.h> #include <AppKit/AppKit.h>
#import <ctype.h> #include <ctype.h>
#import <sys/types.h> #include <sys/types.h>
#import <sys/dir.h> #include <sys/dir.h>
#import <math.h> #include <math.h>
#import <unistd.h> #include <unistd.h>
#import <sys/fcntl.h> #include <sys/fcntl.h>
#import "UserPath.h" #include "UserPath.h"
#import "cmdlib.h" #include "cmdlib.h"
#import "mathlib.h" #include "mathlib.h"
#import "EntityClass.h" #include "EntityClass.h"
#import "Project.h" #include "Project.h"
#import "QuakeEd.h" #include "QuakeEd.h"
#import "Map.h" #include "Map.h"
#import "TexturePalette.h" #include "TexturePalette.h"
#import "SetBrush.h" #include "SetBrush.h"
#import "render.h" #include "render.h"
#import "Entity.h" #include "Entity.h"
#import "XYView.h" #include "XYView.h"
#import "CameraView.h" #include "CameraView.h"
#import "ZView.h" #include "ZView.h"
#import "ZScrollView.h" #include "ZScrollView.h"
#import "Preferences.h" #include "Preferences.h"
#import "InspectorControl.h" #include "InspectorControl.h"
#import "PopScrollView.h" #include "PopScrollView.h"
#import "KeypairView.h" #include "KeypairView.h"
#import "Things.h" #include "Things.h"
#import "TextureView.h" #include "TextureView.h"
#import "Clipper.h" #include "Clipper.h"
void PrintRect (NSRect *r); void PrintRect (NSRect *r);

View file

@ -1,5 +1,5 @@
#import "qedefs.h" #include "qedefs.h"
//define NOLIGHT //define NOLIGHT

View file

@ -27,18 +27,21 @@
Boston, MA 02111-1307, USA Boston, MA 02111-1307, USA
*/ */
#ifndef Controller_h
#define Controller_h
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "Config.h" # include "Config.h"
#endif #endif
#import <Foundation/NSObject.h> #include <Foundation/NSObject.h>
#import <Foundation/NSNotification.h> #include <Foundation/NSNotification.h>
#import <Foundation/NSString.h> #include <Foundation/NSString.h>
#import <AppKit/NSApplication.h> #include <AppKit/NSApplication.h>
#import <AppKit/NSNibDeclarations.h> #include <AppKit/NSNibDeclarations.h>
#import "BundleController.h" #include "BundleController.h"
#import "PrefsController.h" #include "PrefsController.h"
typedef enum {CNoMode = 0, COpenMode, CCreateMode} CMode; typedef enum {CNoMode = 0, COpenMode, CCreateMode} CMode;
@ -71,3 +74,5 @@ typedef enum {CNoMode = 0, COpenMode, CCreateMode} CMode;
- (CMode) fileMode; - (CMode) fileMode;
- (NSString *) fileName; - (NSString *) fileName;
@end @end
#endif//Controller_h

View file

@ -33,15 +33,15 @@ static const char rcsid[] =
# include "Config.h" # include "Config.h"
#endif #endif
#import <Foundation/NSDebug.h> #include <Foundation/NSDebug.h>
#import <AppKit/NSApplication.h> #include <AppKit/NSApplication.h>
#import <AppKit/NSNibLoading.h> #include <AppKit/NSNibLoading.h>
#import <AppKit/NSMenu.h> #include <AppKit/NSMenu.h>
#import <AppKit/NSWindow.h> #include <AppKit/NSWindow.h>
#import "Controller.h" #include "Controller.h"
#import "PrefsController.h" #include "PrefsController.h"
@implementation Controller @implementation Controller

View file

@ -34,4 +34,4 @@ static const char rcsid[] =
# include "Config.h" # include "Config.h"
#endif #endif
#import "Template.h" #include "Template.h"

View file

@ -27,18 +27,21 @@
Boston, MA 02111-1307, USA Boston, MA 02111-1307, USA
*/ */
#ifndef PrefsController_h
#define PrefsController_h
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "Config.h" # include "Config.h"
#endif #endif
#import <Foundation/NSObject.h> #include <Foundation/NSObject.h>
#import <AppKit/NSBox.h> #include <AppKit/NSBox.h>
#import <AppKit/NSMatrix.h> #include <AppKit/NSMatrix.h>
#import <AppKit/NSScrollView.h> #include <AppKit/NSScrollView.h>
#import <AppKit/NSNibDeclarations.h> #include <AppKit/NSNibDeclarations.h>
#import "PrefsView.h" #include "PrefsView.h"
@interface PrefsController: NSObject @interface PrefsController: NSObject
{ {
@ -68,3 +71,5 @@
- (NSBox *) prefsViewBox; - (NSBox *) prefsViewBox;
@end @end
#endif//PrefsController_h

View file

@ -33,14 +33,14 @@ static const char rcsid[] =
# include "Config.h" # include "Config.h"
#endif #endif
#import <Foundation/NSDebug.h> #include <Foundation/NSDebug.h>
#import <Foundation/NSUserDefaults.h> #include <Foundation/NSUserDefaults.h>
#import <AppKit/NSApplication.h> #include <AppKit/NSApplication.h>
#import <AppKit/NSWindow.h> #include <AppKit/NSWindow.h>
#import "PrefsController.h" #include "PrefsController.h"
#import "PrefsView.h" #include "PrefsView.h"
@implementation PrefsController @implementation PrefsController

View file

@ -27,13 +27,16 @@
Boston, MA 02111-1307, USA Boston, MA 02111-1307, USA
*/ */
#ifndef PrefsView_h
#define PrefsView_h
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "Config.h" # include "Config.h"
#endif #endif
#import <Foundation/NSObject.h> #include <Foundation/NSObject.h>
#import <AppKit/NSView.h> #include <AppKit/NSView.h>
#import <AppKit/NSButtonCell.h> #include <AppKit/NSButtonCell.h>
// size of a PrefsView // size of a PrefsView
#define PrefsRect NSMakeRect (0, 0, 486, 228) #define PrefsRect NSMakeRect (0, 0, 486, 228)
@ -50,3 +53,5 @@
- (NSView *) view; - (NSView *) view;
@end @end
#endif//PrefsView_h

View file

@ -27,13 +27,16 @@
Boston, MA 02111-1307, USA Boston, MA 02111-1307, USA
*/ */
#ifndef Project_h
#define Project_h
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "Config.h" # include "Config.h"
#endif #endif
#import <Foundation/NSObject.h> #include <Foundation/NSObject.h>
#import <AppKit/NSNibDeclarations.h> #include <AppKit/NSNibDeclarations.h>
@interface Project: NSObject @interface Project: NSObject
{ {
@ -50,3 +53,5 @@
- (void) closeProject: (id) sender; - (void) closeProject: (id) sender;
@end @end
#endif//Project_h

View file

@ -33,17 +33,17 @@ static const char rcsid[] =
# include "Config.h" # include "Config.h"
#endif #endif
#import <Foundation/NSFileManager.h> #include <Foundation/NSFileManager.h>
#import <Foundation/NSString.h> #include <Foundation/NSString.h>
#import <Foundation/NSUserDefaults.h> #include <Foundation/NSUserDefaults.h>
#import <AppKit/NSBrowser.h> #include <AppKit/NSBrowser.h>
#import <AppKit/NSBrowserCell.h> #include <AppKit/NSBrowserCell.h>
#import <AppKit/NSOpenPanel.h> #include <AppKit/NSOpenPanel.h>
#import <AppKit/NSSavePanel.h> #include <AppKit/NSSavePanel.h>
#import "Controller.h" #include "Controller.h"
#import "Project.h" #include "Project.h"
@implementation Project @implementation Project

View file

@ -1,4 +1,4 @@
#import <AppKit/NSApplication.h> #include <AppKit/NSApplication.h>
#define APP_NAME @"Forge" #define APP_NAME @"Forge"