forked from gobbledegook/creevey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreeveyMainWindowController.h
More file actions
69 lines (56 loc) · 2 KB
/
Copy pathCreeveyMainWindowController.h
File metadata and controls
69 lines (56 loc) · 2 KB
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
//Copyright 2005 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.
/* CreeveyMainWindowController */
#import <Cocoa/Cocoa.h>
@class DYWrappingMatrix, DYCreeveyBrowser;
@interface CreeveyMainWindowController : NSWindowController <NSWindowDelegate,NSSplitViewDelegate>
{
IBOutlet DYCreeveyBrowser *dirBrowser;
IBOutlet NSButton *slidesBtn;
IBOutlet DYWrappingMatrix *imgMatrix;
IBOutlet NSTextField *statusFld, *bottomStatusFld;
NSMutableArray *filenames, *displayedFilenames;
NSLock *loadImageLock; NSTimeInterval lastThreadTime;
volatile char stopCaching;
NSConditionLock *imageCacheQueueLock;
NSMutableArray *imageCacheQueue, *secondaryImageCacheQueue;
volatile BOOL imageCacheQueueRunning;
BOOL currentFilesDeletable;
volatile BOOL filenamesDone, loadingDone, // loadingDone only meaningful if filenamesDone is true, always check both!
startSlideshowWhenReady;
NSMutableSet *filesBeingOpened; // to be selected
BOOL recurseSubfolders;
BOOL showInvisibles;
short int sortOrder;
short int currCat;
}
//actions
- (IBAction)setRecurseSubfolders:(id)sender;
// accessors
- (NSString *)path;
- (BOOL)setPath:(NSString *)s;
- (NSArray *)currentSelection;
- (NSIndexSet *)selectedIndexes;
- (void)selectIndex:(NSUInteger)i;
- (NSString *)firstSelectedFilename;
- (NSArray *)displayedFilenames;
- (BOOL)currentFilesDeletable;
- (BOOL)filenamesDone;
- (short int)sortOrder;
- (void)setSortOrder:(short int)n;
- (void)changeSortOrder:(short int)n;
- (DYWrappingMatrix *)imageMatrix;
//other
- (void)setDefaultPath;
- (void)updateDefaults;
- (void)openFiles:(NSArray *)a withSlideshow:(BOOL)b;
- (void)fakeKeyDown:(NSEvent *)e;
// notifiers
- (void)fileWasChanged:(NSString *)s;
- (void)fileWasDeleted:(NSString *)s;
- (void)updateExifInfo;
@end