-
Notifications
You must be signed in to change notification settings - Fork 1
/
GSXBoloMapView.h
50 lines (38 loc) · 1.02 KB
/
GSXBoloMapView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// GSXBoloMapView.h
// XBolo Map Editor
//
// Created by Robert Chrzanowski on 12/29/09.
// Copyright 2009 Robert Chrzanowski. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#include "bmap.h"
#define TILE_WIDTH (16.0)
@class GSXBoloMap, GSTileRect;
@interface GSXBoloMapView : NSView {
IBOutlet GSXBoloMap *boloMap;
// variables shared by most tools
GSPoint firstMouseEvent;
GSPoint lastMouseEvent;
// start tool variables
BOOL startTool;
struct BMAP_StartInfo start;
// selection tool variables
GSTileRect *underSelection;
BOOL move;
}
// menu actions
- (IBAction)cut:(id)sender;
- (IBAction)copy:(id)sender;
- (IBAction)paste:(id)sender;
- (IBAction)delete:(id)sender;
- (IBAction)selectAll:(id)sender;
- (IBAction)clearSelection:(id)sender;
- (IBAction)rotateLeft:(id)sender;
- (IBAction)rotateRight:(id)sender;
- (IBAction)flipHorizontal:(id)sender;
- (IBAction)flipVertical:(id)sender;
- (IBAction)center:(id)sender;
@end
NSRect GSRect2NSRect(GSRect rect);
GSRect NSRect2GSRect(NSRect rect);