forked from fredrikw/Snac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Controller.h
52 lines (46 loc) · 1.19 KB
/
Controller.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
//
// controller.h
// selectInPic
//
// Created by Fredrik Wallner on 2006-07-31.
// Copyright 2006 Fredrik Wallner. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class MyProgressPanel;
typedef enum _scantypes
{
previewScan,
finalScan,
cancelScan
} scantypes;
@interface Controller : NSObject
{
IBOutlet id imageView;
IBOutlet NSPopUpButton *mode;
IBOutlet NSPopUpButton *format;
IBOutlet NSPopUpButton *res;
IBOutlet NSPopUpButton *depth;
IBOutlet NSButton *previewButton, *scanButton;
NSFileHandle *imageFileHandle, *resultsHandle;
NSImage *previewImage;
scantypes scantype;
IBOutlet MyProgressPanel *progress;
IBOutlet NSWindow *errorWindow;
IBOutlet NSTextField *errorText;
IBOutlet NSButton *openHelper;
NSString *errorString;
float imagewidth;
float imageheight;
float scaling;
}
- (IBAction)preview:(id)sender;
- (IBAction)scan:(id)sender;
- (void)saveImage;
- (IBAction)cancel:(id)sender;
- (IBAction)selectAll:(id)sender;
- (void)dataArrived:(NSNotification *) notification;
- (void)setupFromDefaults:(NSNotification *) notification;
- (void) showProgress;
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)app;
- (IBAction)goToHomepage:sender;
@end