forked from kimasendorf/ExtraFile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
XFImageDocument.h
79 lines (60 loc) · 1.88 KB
/
XFImageDocument.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//
// XFImageDocument.h
// ExtraFile
//
// Created by Kim Asendorf on 06.05.11.
//
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
#import <ApplicationServices/ApplicationServices.h>
#import "XFProfile.h"
#import "XFImageView.h"
#import "XFImageFilter.h"
#import "XFZoomScrollView.h"
@class XFImageView, XFZoomScrollView;
@interface XFImageDocument : NSDocument <NSWindowDelegate>
{
IBOutlet XFImageView* xfImageView;
IBOutlet XFZoomScrollView* xfZoomScrollView;
IBOutlet NSSlider* xfExposureSlider;
IBOutlet NSSlider* xfSaturationSlider;
IBOutlet NSPopUpButton* xfProfilePopup;
IBOutlet NSView* xfSavePanelView;
NSString* xfSaveUTI;
CFMutableDictionaryRef xfSaveMetaAndOpts;
IBOutlet NSPanel* xfProgressPanel;
IBOutlet NSProgressIndicator* xfProgressIndicator;
IBOutlet NSTextField* xfProgressStatus;
CGImageRef xfImage;
CFDictionaryRef xfMetadata;
XFImageFilter* xfFilteredImage;
NSArray* xfProfiles;
NSNumber* xfSwitchValue;
XFProfile* xfProfileValue;
NSNumber* xfExposureValue;
NSNumber* xfSaturationValue;
NSPrintInfo* xfPrintInfo;
CGFloat _zoomFactor;
BOOL automaticReload;
BOOL cleanBuffer;
NSColor* backgroundColor;
}
- (CGAffineTransform)imageTransform;
- (CIImage *)currentCIImageWithTransform:(CGAffineTransform)ctm;
- (CGImageRef)currentCGImage;
- (CGSize)imageSize;
- (CGFloat)zoomFactor;
- (NSRect)visibleRect;
- (NSNumber *)saveQuality;
- (void)setupAll;
- (void)setupExposure;
- (void)setupSaturation;
- (BOOL)switchState;
- (IBAction)reload:(id)sender;
- (IBAction)zoomIn:(id)sender;
- (IBAction)zoomOut:(id)sender;
- (IBAction)changeAutomaticReload:(id)sender;
- (IBAction)changeCleanBuffer:(id)sender;
- (IBAction)changeBackgroundColor:(id)sender;
- (void)setBackgroundColor:(NSColor *)color;
@end