quakeforge/tools/Forge/Bundles/MapEdit/QuakeEd.h

103 lines
1.9 KiB
C
Raw Normal View History

#ifndef QuakeEd_h
#define QuakeEd_h
#include <AppKit/AppKit.h>
2010-09-11 10:06:04 +00:00
extern id quakeed_i;
2010-09-11 10:06:04 +00:00
extern BOOL filter_light, filter_path, filter_entities;
extern BOOL filter_clip_brushes, filter_water_brushes, filter_world;
2010-09-11 10:06:04 +00:00
extern id g_cmd_out_i;
2010-09-11 10:06:04 +00:00
double I_FloatTime (void);
2010-09-11 10:06:04 +00:00
void NopSound (void);
2010-09-11 10:06:04 +00:00
void qprintf (char *fmt, ...); // prints text to cmd_out_i
2010-09-11 23:14:08 +00:00
@interface QuakeEd:NSWindow
{
2010-09-11 10:06:04 +00:00
BOOL dirty;
char filename[1024]; // full path with .map extension
// UI objects
2010-09-11 10:06:04 +00:00
id brushcount_i;
id entitycount_i;
id regionbutton_i;
id show_coordinates_i;
id show_names_i;
id filter_light_i;
id filter_path_i;
id filter_entities_i;
id filter_clip_i;
id filter_water_i;
id filter_world_i;
id cmd_in_i; // text fields
id cmd_out_i;
id xy_drawmode_i; // passed over to xyview after init
}
2010-09-11 10:06:04 +00:00
-setDefaultFilename;
-(char *) currentFilename;
2010-09-11 10:06:04 +00:00
-updateAll; // when a model has been changed
-updateCamera; // when the camera has moved
-updateXY;
-updateZ;
2010-09-11 10:06:04 +00:00
-updateAll:sender;
2010-09-11 10:06:04 +00:00
-newinstance; // force next flushwindow to clear all
// instance drawing
-redrawInstance; // erase and redraw all instance now
2010-09-11 10:06:04 +00:00
-appWillTerminate:sender;
2010-09-11 10:06:04 +00:00
-openProject:sender;
2010-09-11 10:06:04 +00:00
-textCommand:sender;
2010-09-11 10:06:04 +00:00
-applyRegion:sender;
2010-09-11 10:06:04 +00:00
-(BOOL) dirty;
2010-09-11 10:06:04 +00:00
-clear:sender;
-centerCamera:sender;
-centerZChecker:sender;
2010-09-11 10:06:04 +00:00
-changeXYLookUp:sender;
2010-09-11 10:06:04 +00:00
-setBrushRegion:sender;
-setXYRegion:sender;
2010-09-11 10:06:04 +00:00
-open:sender;
-save:sender;
-saveAs:sender;
2010-09-11 10:06:04 +00:00
-doOpen:(char *) fname;
2010-09-12 05:31:59 +00:00
-saveBSP:(char *)cmdline dialog:(BOOL)wt;
2010-09-11 10:06:04 +00:00
-BSP_Full:sender;
-BSP_FastVis:sender;
-BSP_NoVis:sender;
-BSP_relight:sender;
-BSP_stop:sender;
-BSP_entities:sender;
2010-09-12 05:31:59 +00:00
-applicationDefined:(NSEvent *) theEvent;
//
// UI querie for other objects
//
2010-09-11 10:06:04 +00:00
-(BOOL) showCoordinates;
-(BOOL) showNames;
@end
2010-09-11 10:06:04 +00:00
#endif // QuakeEd_h