-
Notifications
You must be signed in to change notification settings - Fork 68
/
VertexDocument.h
56 lines (43 loc) · 1.33 KB
/
VertexDocument.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
51
52
53
54
55
56
//
// VertexDocument.h
// VertexHelper
//
// Created by Johannes Fahrenkrug on 19.02.10.
// Copyright 2010 Springenwerk. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "SWImageView.h"
#import "ImageViewGridLayer.h"
@class PrioritySplitViewDelegate;
@interface VertexDocument : NSDocument
{
IBOutlet NSTextField *rowsTextField;
IBOutlet NSTextField *colsTextField;
IBOutlet NSTextView *resultTextView;
IBOutlet SWImageView *imageView;
IBOutlet NSButton *zoomInButton;
IBOutlet NSButton *zoomOutButton;
IBOutlet NSButton *actualSizeButton;
IBOutlet NSButton *editModeCheckbox;
IBOutlet NSTextField *variableTextField;
IBOutlet NSPopUpButton *typePopUpButton;
IBOutlet NSPopUpButton *stylePopUpButton;
IBOutlet NSSplitView *splitView;
PrioritySplitViewDelegate *splitViewDelegate;
ImageViewGridLayer *gridLayer;
// each row has columns, each column has points
NSMutableArray *pointMatrix;
NSString *filePath;
BOOL gridOK;
BOOL imageLoaded;
}
- (IBAction)updateGrid:(id)sender;
- (IBAction)makeAnnotatable:(id)sender;
- (IBAction)updateOutput:(id)sender;
- (IBAction)scanImage:(id)sender;
- (IBAction)resetVertices:(id)sender;
- (void)addPoint:(NSPoint)aPoint forRow:(int)aRow col:(int)aCol;
- (void)updateResultTextField;
@property (readonly) NSMutableArray *pointMatrix;
@property (readonly) BOOL imageLoaded;
@end