quakeforge/tools/Forge/Headers/Forge.h
Jeff Teunissen f7b0227299 This is all seriously broken, but I'm committing it so that it can be
worked on by other people as well. :)
2001-10-14 05:55:21 +00:00

132 lines
3 KiB
Objective-C

/*
Forge.h
Main controller object class definitions
Copyright (C) 2001 Jeff Teunissen <deek@d2dc.net>
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:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
$Id$
*/
#ifdef HAVE_CONFIG_H
# include "Config.h"
#endif
#import <AppKit/NSWindow.h>
@interface Forge: NSWindow
{
BOOL dirty;
NSMutableString *filename; // full path with .map extension
unsigned int eventMask;
// UI objects
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
}
- (void) setDefaultFilename;
- (NSString *) currentFilename;
// events
- (void) postAppDefined; // post an NSAppDefined event
- (void) addToEventMask: (unsigned int) mask;
- (unsigned int) eventMask;
- (NSEvent *) peekNextEvent;
- (void) updateAll; // when a model has been changed
- (void) updateCamera; // when the camera has moved
- (void) updateXY;
- (void) updateZ;
- (void) updateAll: (id) sender;
- (void) newinstance; // force next flushwindow to clear all instance drawing
- (void) redrawInstance; // erase and redraw all instance now
- (void) appWillTerminate: (id) sender;
- (void) openProject: (id) sender;
- (void) textCommand: (id) sender;
- (void) applyRegion: (id) sender;
- (BOOL) dirty;
- (void) clear: (id) sender;
- (void) centerCamera: (id) sender;
- (void) centerZChecker: (id) sender;
- (void) changeXYLookUp: (id) sender;
- (void) setBrushRegion: (id) sender;
- (void) setXYRegion: (id) sender;
- (void) open: (id) sender;
- (void) save: (id) sender;
- (void) saveAs: (id) sender;
- (void) doOpen: (NSString *) fname;
- (void) saveBSP: (NSString *) cmdline dialog: (BOOL) wt;
- (void) BSP_Full: (id) sender;
- (void) BSP_FastVis: (id) sender;
- (void) BSP_NoVis: (id) sender;
- (void) BSP_relight: (id) sender;
- (void) BSP_stop: (id) sender;
- (void) BSP_entities: (id) sender;
// UI queries for other objects
- (BOOL) showCoordinates;
- (BOOL) showNames;
@end
extern Forge *forge;
extern BOOL filter_light, filter_path, filter_entities;
extern BOOL filter_clip_brushes, filter_water_brushes, filter_world;
extern id g_cmd_out_i;
double I_FloatTime (void);
void NopSound (void);
void qprintf (char *fmt, ...); // prints text to cmd_out_i