-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathSlideshowWindow.h
51 lines (43 loc) · 2.46 KB
/
SlideshowWindow.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
//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;
#import "DYImageView.h"
#import "DYImageCache.h"
@interface SlideshowWindow : NSWindow
@property (nonatomic) BOOL fullscreenMode;
- (void)setCats:(NSMutableSet * __strong *)newCats;
- (void)setFilenames:(NSArray *)files basePath:(NSString *)s comparator:(NSComparator)block sortOrder:(short int)sortOrder; // call this before starting the slideshow
- (void)setFilenames:(NSArray *)files basePath:(NSString *)s wantsSubfolders:(BOOL)b comparator:(NSComparator)block sortOrder:(short int)sortOrder; // or this version to watch the directory and update with directory changes during slideshow
- (void)loadFilenamesFromPath:(NSString *)s fullScreen:(BOOL)fullScreen wantsSubfolders:(BOOL)b comparator:(NSComparator)block sortOrder:(short int)sortOrder;
- (void)startSlideshow;
- (void)startSlideshowAtIndex:(NSUInteger)n;
- (void)endSlideshow;
- (void)resetScreen;
- (void)configureBacking;
@property (nonatomic, readonly) NSUInteger currentIndex;
@property (nonatomic, readonly) NSString *currentFile;
@property (nonatomic, readonly) NSString *basePath;
@property (nonatomic, readonly) unsigned short currentOrientation; // returns an EXIF orientation
@property (nonatomic, readonly) unsigned short currentFileExifOrientation;
- (void)displayImage; // to reload current file, assuming the mod date is different (oops - don't use this anymore)
- (void)redisplayImage; // to force reload of current file, regardless of mod date
@property (nonatomic, readonly) BOOL currentImageLoaded;
- (void)removeImageForFile:(NSString *)s; // use this if something's been deleted
- (void)insertFile:(NSString *)s atIndex:(NSUInteger)idx; // use this to undo a deletion
- (void)filesWereUndeleted:(NSArray *)a;
- (void)uncacheImage:(NSString *)s; // when an image is modified, remove it from cache
@property (nonatomic) BOOL autoRotate;
@property (nonatomic) NSTimeInterval autoadvanceTime;
- (void)updateTimer;
// menu methods
- (IBAction)endSlideshow:(id)sender;
- (IBAction)toggleLoopMode:(id)sender;
- (IBAction)toggleCheatSheet:(id)sender;
- (IBAction)toggleScalesUp:(id)sender;
- (IBAction)toggleShowActualSize:(id)sender;
- (IBAction)toggleRandom:(id)sender;
@end