forked from CocoaBob/xee
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathXeeController.h
155 lines (117 loc) · 4.31 KB
/
XeeController.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#import <Cocoa/Cocoa.h>
#import "XeeFSRef.h"
#define XeeNoMode 0
#define XeeMoveMode 1
#define XeeCopyMode 2
#define XeeDrawerEdgeWidth 6.0
@class XeeImage,XeeImageSource,XeeView,XeeDisplayWindow,XeeFullScreenWindow;
@class XeeCollisionPanel,XeeRenamePanel,XeePasswordPanel,XeeStatusBar,XeeDestinationView;
@class XeeMoveTool,XeeCropTool;
@interface XeeController:NSObject
{
XeeImageSource *source;
XeeImage *currimage;
float zoom;
float touchrotation,touchrotateleftpoint,touchrotaterightpoint;
int window_focus_x,window_focus_y;
BOOL blocked,awake,autofullscreen,delaysheet;
int drawer_mode;
XeeMoveTool *movetool;
XeeCropTool *croptool;
NSDictionary *toolbaritems;
NSArray *toolbaridentifiers;
NSUndoManager *undo;
XeeFullScreenWindow *fullscreenwindow;
NSView *savedsuperview;
NSRect savedframe;
NSTimer *slideshowtimer;
int slideshowcount;
CGImageRef copiedcgimage;
NSMutableArray *tasks;
IBOutlet NSWindow *window;
IBOutlet XeeView *imageview;
IBOutlet XeeStatusBar *statusbar;
IBOutlet NSDrawer *drawer;
IBOutlet NSSegmentedControl *drawerseg;
IBOutlet XeeDestinationView *destinationtable;
IBOutlet NSButton *closebutton;
IBOutlet XeeCollisionPanel *collisionpanel;
IBOutlet XeeRenamePanel *renamepanel;
IBOutlet XeePasswordPanel *passwordpanel;
IBOutlet NSTextField *delayfield;
IBOutlet NSPanel *delaypanel;
}
-(id)init;
-(void)dealloc;
-(void)awakeFromNib;
-(void)windowWillClose:(NSNotification *)notification;
-(void)windowDidBecomeMain:(NSNotification *)notification;
-(void)windowDidResignMain:(NSNotification *)notification;
-(void)windowDidMove:(NSNotification *)notification;
-(void)windowDidResize:(NSNotification *)notification;
-(void)windowWillMiniaturize:(NSNotification *)notification;
-(void)windowDidMiniaturize:(NSNotification *)notification;
-(NSUndoManager *)windowWillReturnUndoManager:(NSNotification *)notification;
-(void)setStatusBarHiddenNotification:(NSNotification *)notification;
-(void)refreshImageNotification:(NSNotification *)notification;
-(void)scrollWheel:(NSEvent *)event;
-(void)beginGestureWithEvent:(NSEvent *)event;
-(void)endGestureWithEvent:(NSEvent *)event;
-(void)magnifyWithEvent:(NSEvent *)event;
-(void)rotateWithEvent:(NSEvent *)event;
-(void)swipeWithEvent:(NSEvent *)event;
-(void)xeeImageSource:(XeeImageSource *)msgsource imageDidChange:(XeeImage *)image;
-(void)xeeImageSource:(XeeImageSource *)source imageListDidChange:(int)num;
-(void)xeeView:(XeeView *)view imageDidChange:(XeeImage *)image;
-(void)xeeView:(XeeView *)view imageSizeDidChange:(XeeImage *)image;
-(void)xeeView:(XeeView *)view imagePropertiesDidChange:(XeeImage *)image;
-(NSWindow *)window;
-(XeeFullScreenWindow *)fullScreenWindow;
-(XeeImageSource *)imageSource;
-(XeeImage *)image;
-(NSDrawer *)drawer;
-(XeeFSRef *)currentRef;
-(NSString *)currentFilename;
-(NSArray *)currentProperties;
-(BOOL)isFullscreen;
-(float)zoom;
-(void)setImageSource:(XeeImageSource *)newsource;
-(void)setImage:(XeeImage *)image;
-(void)setZoom:(float)newzoom;
-(void)setFrame:(int)frame;
-(void)updateWindowPosition;
-(void)setImageSize:(NSSize)size;
-(void)setImageSize:(NSSize)size resetFocus:(BOOL)reset;
-(void)setStandardImageSize;
-(void)setResizeBlock:(BOOL)block;
-(void)setResizeBlockFromSender:(id)sender;
-(BOOL)isResizeBlocked;
-(NSSize)maxViewSize;
-(NSSize)minViewSize;
-(NSRect)availableScreenSpace;
-(void)displayErrorMessage:(NSString *)title text:(NSString *)text;
-(void)displayPossibleError:(NSError *)error;
-(void)displayAlert:(NSAlert *)alert;
-(void)detachBackgroundTaskWithMessage:(NSString *)message selector:(SEL)selector target:(id)target object:(id)object;
-(void)detachBackgroundTask:(NSDictionary *)task;
-(NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)identifier willBeInsertedIntoToolbar:(BOOL)flag;
-(NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar *)toolbar;
-(void)setupToolbarItems;
-(NSArray *)makeToolbarItems;
-(BOOL)validateMenuItem:(NSMenuItem *)item;
-(BOOL)validateAction:(SEL)action;
-(void)updateStatusBar;
-(void)setStatusBarHidden:(BOOL)hidden;
-(BOOL)isStatusBarHidden;
-(IBAction)toggleStatusBar:(id)sender;
-(void)setDrawerEnableState;
-(IBAction)fullScreen:(id)sender;
-(void)autoFullScreen;
-(IBAction)confirm:(id)sender;
-(IBAction)cancel:(id)sender;
@end
@interface XeeFullScreenWindow:NSWindow
{
}
-(BOOL)canBecomeKeyWindow;
@end