-
Notifications
You must be signed in to change notification settings - Fork 28
/
CreeveyController.h
73 lines (59 loc) · 2.84 KB
/
CreeveyController.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
//Copyright 2005-2023 Dominic Yu. Some rights reserved.
//This work is licensed under the Creative Commons
//Attribution-NonCommercial-ShareAlike License. To view a copy of this
//license, visit http://creativecommons.org/licenses/by-nc-sa/2.0/ or send
//a letter to Creative Commons, 559 Nathan Abbott Way, Stanford,
//California 94305, USA.
@import Cocoa;
#define CREEVEY_DEFAULT_PATH [@"~/Pictures" stringByResolvingSymlinksInPath]
@class DYImageCache, SlideshowWindow, DYJpegtranPanel;
NSMutableAttributedString* Fileinfo2EXIFString(NSString *origPath, DYImageCache *cache, BOOL moreExif);
#define NUM_FNKEY_CATS 11
@interface CreeveyController : NSObject <NSApplicationDelegate,NSTableViewDataSource,NSWindowRestoration>
@property (strong) IBOutlet DYJpegtranPanel *jpegController;
@property (strong) IBOutlet NSMenu *thumbnailContextMenu;
@property (readonly) NSMutableSet *revealedDirectories; // set of invisible directories that should be shown in the browser
@property (weak) IBOutlet SlideshowWindow *slidesWindow;
@property (weak) IBOutlet NSProgressIndicator *jpegProgressBar;
@property (weak) IBOutlet NSTextView *exifTextView;
@property (weak) IBOutlet NSButton *exifThumbnailDiscloseBtn;
@property (weak) IBOutlet NSPanel *prefsWin;
@property (weak) IBOutlet NSButton *slideshowApplyBtn;
@property (weak) IBOutlet NSButton *slideshowDefaultModeFullscreenBtn;
// accessors
@property (nonatomic, readonly) NSMutableSet * __strong *cats;
- (void)updateCats;
@property (nonatomic, readonly) DYImageCache *thumbsCache;
@property (readonly) BOOL macos1014available;
NSDirectoryEnumerator *CreeveyEnumerator(NSString *path, BOOL recurseSubfolders);
- (BOOL)handledDirectory:(NSURL *)url subfolders:(BOOL)recurse e:(NSDirectoryEnumerator *)e;
- (BOOL)shouldShowFile:(NSURL *)path;
- (IBAction)slideshow:(id)sender;
- (IBAction)slideshowAlternateMode:(id)sender;
- (IBAction)openSelectedFiles:(id)sender;
- (IBAction)revealSelectedFilesInFinder:(id)sender;
- (IBAction)setDesktopPicture:(id)sender;
- (IBAction)moveSelectedFiles:(id)sender;
- (IBAction)moveSelectedFilesAgain:(id)sender;
- (IBAction)moveToTrash:(id)sender;
- (IBAction)transformJpeg:(id)sender;
- (IBAction)sortThumbnails:(id)sender;
- (IBAction)doShowFilenames:(id)sender;
- (IBAction)doAutoRotateDisplayedImage:(id)sender;
- (void)slideshowFromAppOpen:(NSArray *)files;
// prefs stuff
- (IBAction)openPrefWin:(id)sender;
- (IBAction)chooseStartupDir:(id)sender;
- (IBAction)applySlideshowPrefs:(id)sender;
- (IBAction)slideshowDefaultsChanged:(id)sender;
- (IBAction)chooseDefaultSlideshowMode:(id)sender;
// info window
- (IBAction)openGetInfoPanel:(id)sender;
- (IBAction)toggleExifThumbnail:(id)sender;
- (IBAction)openAboutPanel:(id)sender;
- (IBAction)stopModal:(id)sender;
- (IBAction)newWindow:(id)sender;
- (IBAction)newTab:(id)sender;
- (IBAction)versionCheck:(id)sender;
- (IBAction)sendFeedback:(id)sender;
@end