mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-24 13:21:11 +00:00
Whitespace.
This commit is contained in:
parent
4d8088efd6
commit
0f426c1c5a
14 changed files with 72 additions and 119 deletions
|
@ -44,15 +44,14 @@ extern BOOL timedrawing;
|
|||
|
||||
-setOrigin:(vec3_t)
|
||||
org
|
||||
angle:(float)
|
||||
angle;
|
||||
angle:(float)angle;
|
||||
|
||||
-getOrigin:(vec3_t) org;
|
||||
-getOrigin:(vec3_t)org;
|
||||
|
||||
-(float) yawAngle;
|
||||
|
||||
-matrixFromAngles;
|
||||
-_keyDown:(NSEvent *) theEvent;
|
||||
-_keyDown:(NSEvent *)theEvent;
|
||||
|
||||
-drawMode:sender;
|
||||
-setDrawMode:(drawmode_t) mode;
|
||||
|
@ -61,15 +60,9 @@ angle:(float)
|
|||
|
||||
-XYDrawSelf; // for drawing viewpoint in XY view
|
||||
-ZDrawSelf; // for drawing viewpoint in XY view
|
||||
-(BOOL) XYmouseDown:(NSPoint *)
|
||||
pt
|
||||
flags:(int)
|
||||
flags; // return YES if brush handled
|
||||
-(BOOL) XYmouseDown:(NSPoint *)pt flags:(int)flags;// return YES if brush handled
|
||||
|
||||
-(BOOL) ZmouseDown:(NSPoint *)
|
||||
pt
|
||||
flags:(int)
|
||||
flags; // return YES if brush handled
|
||||
-(BOOL) ZmouseDown:(NSPoint *)pt flags:(int)flags;// return YES if brush handled
|
||||
|
||||
-upFloor:sender;
|
||||
-downFloor:sender;
|
||||
|
|
|
@ -10,25 +10,23 @@ typedef struct {
|
|||
char *value;
|
||||
} dict_t;
|
||||
|
||||
@interface Dict:Storage {
|
||||
@interface Dict:Storage
|
||||
{
|
||||
}
|
||||
|
||||
-initFromFile:(FILE *) fp;
|
||||
|
||||
-(id) parseMultipleFrom:(char *) value;
|
||||
-(int) getValueUnits:(char *) key;
|
||||
-delString:(char *)
|
||||
string fromValue:(char *) key;
|
||||
-delString:(char *)string fromValue:(char *) key;
|
||||
|
||||
-addString:(char *)
|
||||
string toValue:(char *) key;
|
||||
-addString:(char *)string toValue:(char *) key;
|
||||
|
||||
-(char *) convertListToString:(id) list;
|
||||
-(char *) getStringFor:(char *) name;
|
||||
-removeKeyword:(char *) key;
|
||||
-(unsigned int) getValueFor:(char *) name;
|
||||
-changeStringFor:(char *)
|
||||
key to:(char *) value;
|
||||
-changeStringFor:(char *)key to:(char *) value;
|
||||
|
||||
-(dict_t *) findKeyword:(char *) key;
|
||||
|
||||
|
@ -41,24 +39,17 @@ key to:(char *) value;
|
|||
-setupMultiple:(char *) value;
|
||||
-(char *) getNextParameter;
|
||||
|
||||
@end int
|
||||
GetNextChar (FILE * fp);
|
||||
void
|
||||
CopyUntilWhitespc (FILE * fp, char *buffer);
|
||||
void
|
||||
CopyUntilQuote (FILE * fp, char *buffer);
|
||||
int
|
||||
FindBrace (FILE * fp);
|
||||
int
|
||||
FindQuote (FILE * fp);
|
||||
int
|
||||
FindWhitespc (FILE * fp);
|
||||
int
|
||||
FindNonwhitespc (FILE * fp);
|
||||
@end
|
||||
|
||||
char *
|
||||
FindWhitespcInBuffer (char *buffer);
|
||||
char *
|
||||
FindNonwhitespcInBuffer (char *buffer);
|
||||
int GetNextChar (FILE * fp);
|
||||
void CopyUntilWhitespc (FILE * fp, char *buffer);
|
||||
void CopyUntilQuote (FILE * fp, char *buffer);
|
||||
int FindBrace (FILE * fp);
|
||||
int FindQuote (FILE * fp);
|
||||
int FindWhitespc (FILE * fp);
|
||||
int FindNonwhitespc (FILE * fp);
|
||||
|
||||
char *FindWhitespcInBuffer (char *buffer);
|
||||
char *FindNonwhitespcInBuffer (char *buffer);
|
||||
|
||||
#endif // Dict_h
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
@ interface DictList:NSMutableArray {
|
||||
@ interface DictList:NSMutableArray
|
||||
{
|
||||
}
|
||||
|
||||
-initListFromFile:(FILE *) fp;
|
||||
|
|
|
@ -13,7 +13,8 @@ typedef struct epair_s {
|
|||
|
||||
// an Entity is a list of brush objects, with additional key / value info
|
||||
|
||||
@interface Entity:NSMutableArray {
|
||||
@interface Entity:NSMutableArray
|
||||
{
|
||||
epair_t *epairs;
|
||||
BOOL modifiable;
|
||||
}
|
||||
|
@ -28,12 +29,10 @@ typedef struct epair_s {
|
|||
|
||||
-(char *) targetname;
|
||||
|
||||
-writeToFILE:(FILE *)
|
||||
f region:(BOOL) reg;
|
||||
-writeToFILE:(FILE *)f region:(BOOL) reg;
|
||||
|
||||
-(char *) valueForQKey:(char *) k;
|
||||
-getVector:(vec3_t)
|
||||
v forKey:(char *) k;
|
||||
-getVector:(vec3_t)v forKey:(char *) k;
|
||||
|
||||
-setKey:(const char *)
|
||||
k toValue:(const char *) v;
|
||||
|
|
|
@ -9,7 +9,8 @@ typedef enum { esize_model, esize_fixed } esize_t;
|
|||
|
||||
#define MAX_FLAGS 8
|
||||
|
||||
@interface EntityClass:NSObject {
|
||||
@interface EntityClass:NSObject
|
||||
{
|
||||
char *name;
|
||||
esize_t esize;
|
||||
vec3_t mins, maxs;
|
||||
|
@ -18,8 +19,7 @@ typedef enum { esize_model, esize_fixed } esize_t;
|
|||
char *flagnames[MAX_FLAGS];
|
||||
}
|
||||
|
||||
-initFromText:(const char *)
|
||||
text source:(const char *) filename;
|
||||
-initFromText:(const char *)text source:(const char *) filename;
|
||||
|
||||
-(char *) classname;
|
||||
-(esize_t) esize;
|
||||
|
|
|
@ -24,11 +24,10 @@ extern id inspcontrol_i;
|
|||
// (gets replaced)
|
||||
|
||||
id contentList; // List of contentviews (corresponds to
|
||||
// insp_e enum order)
|
||||
|
||||
// insp_e enum order)
|
||||
id windowList; // List of Windows (corresponds to
|
||||
|
||||
// insp_e enum order)
|
||||
// insp_e enum order)
|
||||
|
||||
id obj_textures_i; // TexturePalette object (for
|
||||
// delegating)
|
||||
|
@ -69,6 +68,10 @@ extern id inspcontrol_i;
|
|||
-changeInspectorTo:(insp_e) which;
|
||||
-(insp_e) getCurrentInspector;
|
||||
|
||||
@end @ protocol InspectorControl - windowResized;
|
||||
@end
|
||||
|
||||
@protocol InspectorControl
|
||||
-windowResized;
|
||||
@end
|
||||
|
||||
#endif // InspectorControl_h
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
|
||||
extern id keypairview_i;
|
||||
|
||||
@interface KeypairView:NSView {
|
||||
@interface KeypairView:NSView
|
||||
{
|
||||
}
|
||||
|
||||
-calcViewSize;
|
||||
|
@ -17,4 +18,5 @@ extern id keypairview_i;
|
|||
#define LINEHEIGHT 16
|
||||
|
||||
@end
|
||||
|
||||
#endif // KeypairView_h
|
||||
|
|
|
@ -20,8 +20,7 @@ extern id map_i;
|
|||
-writeStats;
|
||||
|
||||
-readMapFile:(char *) fname;
|
||||
-writeMapFile:(char *)
|
||||
fname useRegion:(BOOL) reg;
|
||||
-writeMapFile:(char *)fname useRegion:(BOOL) reg;
|
||||
|
||||
-entityConnect: (vec3_t) p1:(vec3_t) p2;
|
||||
|
||||
|
@ -72,4 +71,5 @@ fname useRegion:(BOOL) reg;
|
|||
-selectCompleteEntity:sender;
|
||||
|
||||
@end
|
||||
|
||||
#endif // Map_h
|
||||
|
|
|
@ -60,22 +60,12 @@ winding_t *NewWinding (int points);
|
|||
face_t faces[MAX_FACES];
|
||||
}
|
||||
|
||||
-initOwner: own mins:(float *)
|
||||
mins
|
||||
maxs:(float *)
|
||||
maxs
|
||||
texture:(texturedef_t *)
|
||||
tex;
|
||||
-initOwner:own mins:(float *)mins maxs:(float *)maxs
|
||||
texture:(texturedef_t *)tex;
|
||||
|
||||
-initFromScript:(struct script_s *)
|
||||
script
|
||||
owner:
|
||||
own;
|
||||
-initFromScript:(struct script_s *)script owner:own;
|
||||
|
||||
-setMins:(float *)
|
||||
mins
|
||||
maxs:(float *)
|
||||
maxs;
|
||||
-setMins:(float *)mins maxs:(float *)maxs;
|
||||
|
||||
-parent;
|
||||
-setParent:(id) p;
|
||||
|
@ -84,39 +74,28 @@ maxs:(float *)
|
|||
|
||||
-calcWindings;
|
||||
|
||||
-writeToFILE:(FILE *)
|
||||
f
|
||||
region:(BOOL)
|
||||
reg;
|
||||
-writeToFILE:(FILE *)f region:(BOOL)reg;
|
||||
|
||||
-(BOOL) selected;
|
||||
-(BOOL) regioned;
|
||||
-setSelected:(BOOL) s;
|
||||
-setRegioned:(BOOL) s;
|
||||
|
||||
-getMins:(vec3_t)
|
||||
mins
|
||||
maxs:(vec3_t)
|
||||
maxs;
|
||||
-getMins:(vec3_t)mins maxs:(vec3_t)maxs;
|
||||
|
||||
-(BOOL) containsPoint:(vec3_t) pt;
|
||||
|
||||
-freeWindings;
|
||||
-removeIfInvalid;
|
||||
|
||||
extern vec3_t
|
||||
region_min,
|
||||
region_max;
|
||||
extern vec3_t region_min, region_max;
|
||||
|
||||
-newRegion;
|
||||
|
||||
-(texturedef_t *) texturedef;
|
||||
-(texturedef_t *) texturedefForFace:(int) f;
|
||||
-setTexturedef:(texturedef_t *) tex;
|
||||
-setTexturedef:(texturedef_t *)
|
||||
tex
|
||||
forFace:(int)
|
||||
f;
|
||||
-setTexturedef:(texturedef_t *) tex forFace:(int) f;
|
||||
|
||||
-XYDrawSelf;
|
||||
-ZDrawSelf;
|
||||
|
@ -129,10 +108,8 @@ forFace:(int)
|
|||
//
|
||||
// single brush actions
|
||||
//
|
||||
extern int
|
||||
numcontrolpoints;
|
||||
extern float *
|
||||
controlpoints[MAX_FACES * 3];
|
||||
extern int numcontrolpoints;
|
||||
extern float *controlpoints[MAX_FACES * 3];
|
||||
|
||||
-getZdragface:(vec3_t) dragpoint;
|
||||
-getXYdragface:(vec3_t) dragpoint;
|
||||
|
@ -145,32 +122,23 @@ extern float *
|
|||
//
|
||||
-carveByClipper;
|
||||
|
||||
extern vec3_t
|
||||
sb_translate;
|
||||
extern vec3_t sb_translate;
|
||||
|
||||
-translate;
|
||||
|
||||
extern id
|
||||
carve_in,
|
||||
carve_out;
|
||||
extern id carve_in, carve_out;
|
||||
|
||||
-select;
|
||||
-deselect;
|
||||
-remove;
|
||||
-flushTextures;
|
||||
|
||||
extern vec3_t
|
||||
sb_mins,
|
||||
sb_maxs;
|
||||
extern vec3_t sb_mins, sb_maxs;
|
||||
|
||||
-addToBBox;
|
||||
|
||||
extern vec3_t
|
||||
sel_x,
|
||||
sel_y,
|
||||
sel_z;
|
||||
extern vec3_t
|
||||
sel_org;
|
||||
extern vec3_t sel_x, sel_y, sel_z;
|
||||
extern vec3_t sel_org;
|
||||
|
||||
-transform;
|
||||
|
||||
|
@ -179,25 +147,20 @@ extern vec3_t
|
|||
-carve;
|
||||
-setCarveVars;
|
||||
|
||||
extern id
|
||||
sb_newowner;
|
||||
extern id sb_newowner;
|
||||
|
||||
-moveToEntity;
|
||||
|
||||
-takeCurrentTexture;
|
||||
|
||||
extern vec3_t
|
||||
select_min,
|
||||
select_max;
|
||||
extern vec3_t select_min, select_max;
|
||||
|
||||
-selectPartial;
|
||||
-selectComplete;
|
||||
-regionPartial;
|
||||
-regionComplete;
|
||||
|
||||
extern float
|
||||
sb_floor_dir,
|
||||
sb_floor_dist;
|
||||
extern float sb_floor_dir, sb_floor_dist;
|
||||
|
||||
-feetToFloor;
|
||||
|
||||
|
|
|
@ -51,7 +51,8 @@ typedef struct {
|
|||
|
||||
extern id texturepalette_i;
|
||||
|
||||
@interface TexturePalette:NSObject {
|
||||
@interface TexturePalette:NSObject
|
||||
{
|
||||
char currentwad[1024];
|
||||
id textureList_i;
|
||||
id textureView_i;
|
||||
|
|
|
@ -9,7 +9,8 @@ extern id things_i;
|
|||
|
||||
#define ENTITYNAMEKEY "spawn"
|
||||
|
||||
@interface Things:NSObject {
|
||||
@interface Things:NSObject
|
||||
{
|
||||
id entity_browser_i; // browser
|
||||
id entity_comment_i; // scrolling text window
|
||||
|
||||
|
|
|
@ -29,7 +29,8 @@ void XYlineto (vec3_t pt);
|
|||
|
||||
|
||||
|
||||
@interface XYView:NSView {
|
||||
@interface XYView:NSView
|
||||
{
|
||||
NSRect realbounds, newrect, combinedrect;
|
||||
NSPoint midpoint;
|
||||
int gridsize;
|
||||
|
@ -57,10 +58,7 @@ void XYlineto (vec3_t pt);
|
|||
-newRealBounds:(NSRect *) nb;
|
||||
|
||||
-addToScrollRange: (float) x:(float) y;
|
||||
-setOrigin:(NSPoint *)
|
||||
pt
|
||||
scale:(float)
|
||||
sc;
|
||||
-setOrigin:(NSPoint *) pt scale:(float) sc;
|
||||
|
||||
-centerOn:(vec3_t) org;
|
||||
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
@ interface ZScrollView:NSScrollView {
|
||||
@interface ZScrollView:NSScrollView
|
||||
{
|
||||
id button1;
|
||||
}
|
||||
|
||||
-initWithFrame:(NSRect)
|
||||
frameRect button1:b1;
|
||||
-initWithFrame:(NSRect) frameRect button1:b1;
|
||||
|
||||
-tile;
|
||||
|
||||
|
|
|
@ -13,7 +13,8 @@ extern id zview_i;
|
|||
extern float zplane;
|
||||
extern float zplanedir;
|
||||
|
||||
@interface ZView:NSView {
|
||||
@interface ZView:NSView
|
||||
{
|
||||
float minheight, maxheight;
|
||||
float oldminheight, oldmaxheight;
|
||||
float topbound, bottombound; // for floor clipping
|
||||
|
|
Loading…
Reference in a new issue