2001-02-09 01:52:44 +00:00
|
|
|
#import <appkit/appkit.h>
|
|
|
|
#import "SetBrush.h"
|
|
|
|
#import "EditWindow.h"
|
|
|
|
|
|
|
|
extern id brush_i;
|
|
|
|
|
|
|
|
extern BOOL brushdraw; // YES when drawing cutbrushes and ents
|
|
|
|
|
|
|
|
@interface Brush : SetBrush
|
|
|
|
{
|
|
|
|
id cutbrushes_i;
|
|
|
|
id cutentities_i;
|
|
|
|
boolean updatemask[MAXBRUSHVERTEX];
|
|
|
|
BOOL dontdraw; // for modal instance loops
|
|
|
|
BOOL deleted; // when not visible at all
|
|
|
|
}
|
|
|
|
|
|
|
|
- init;
|
|
|
|
|
|
|
|
- initFromSetBrush: br;
|
|
|
|
|
|
|
|
- deselect;
|
|
|
|
- (BOOL)isSelected;
|
|
|
|
|
2001-06-03 04:52:36 +00:00
|
|
|
- (BOOL)XYmouseDown: (NSPoint *)pt; // return YES if brush handled
|
|
|
|
- (BOOL)ZmouseDown: (NSPoint *)pt; // return YES if brush handled
|
2001-02-09 01:52:44 +00:00
|
|
|
|
2001-06-03 04:52:36 +00:00
|
|
|
- _keyDown:(NSEvent *)theEvent;
|
2001-02-09 01:52:44 +00:00
|
|
|
|
2001-06-03 04:52:36 +00:00
|
|
|
- (NSPoint)centerPoint; // for camera flyby mode
|
2001-02-09 01:52:44 +00:00
|
|
|
|
|
|
|
- InstanceSize;
|
|
|
|
- XYDrawSelf;
|
|
|
|
- ZDrawSelf;
|
|
|
|
- CameraDrawSelf;
|
|
|
|
|
|
|
|
- flipHorizontal: sender;
|
|
|
|
- flipVertical: sender;
|
|
|
|
- rotate90: sender;
|
|
|
|
|
|
|
|
- makeTall: sender;
|
|
|
|
- makeShort: sender;
|
|
|
|
- makeWide: sender;
|
|
|
|
- makeNarrow: sender;
|
|
|
|
|
|
|
|
- placeEntity: sender;
|
|
|
|
|
|
|
|
- cut: sender;
|
|
|
|
- copy: sender;
|
|
|
|
|
|
|
|
- addBrush;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|