-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathQSPasteboardController.h
69 lines (51 loc) · 1.96 KB
/
QSPasteboardController.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
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, QSPasteboardMode) {
QSPasteboardHistoryMode = 1, // Global pasteboard history
QSPasteboardStoreMode = 2, // numbered storage bins
QSPasteboardQueueMode = 3, // FIFO Cycling
QSPasteboardStackMode = 4 // LIFO Cycling
};
@class QSObjectView;
#define kCapturePasteboardHistory @"Capture Pasteboard History"
#define kCapturePasteboardHistoryCount @"Capture Pasteboard History Count"
#define kDiscardPasteboardHistoryOnQuit @"Discard Pasteboard History"
#define kCapturePasteboardIgnoreApps @"clipboardIgnoreApps"
@interface QSPasteboardController : NSWindowController {
// Array storing all the clipboard history
NSMutableArray *pasteboardHistoryArray;
NSMutableArray *pasteboardStoreArray;
NSMutableArray *pasteboardCacheArray;
IBOutlet NSMatrix *pasteboardHistoryMatrix;
IBOutlet QSTableView *pasteboardHistoryTable;
IBOutlet QSObjectView *pasteboardItemView;
IBOutlet NSWindow *pasteboardProxyWindow;
IBOutlet NSButton *clearButton;
IBOutlet NSTextField *titleField;
IBOutlet NSMenu *pasteboardMenu;
QSObjectView *pasteboardObjectView;
BOOL supressCapture;
BOOL adjustRowsToFit;
BOOL cacheIsReversed;
BOOL asPlainText;
NSInteger maxPasteboardCount;
BOOL captureHistory;
NSArray *ignoredApps;
QSPasteboardMode mode;
}
@property NSMutableArray *currentArray;
@property (retain) QSDockingWindow *window;
+ (QSPasteboardController *)sharedInstance; // Explicit because of the -window redeclaration above
+ (void)showClipboard:(id)sender;
- (void)clearStore;
- (void)copyToClipboard:(QSObject*)obj;
- (id)selectedObject;
- (void)switchToMode:(NSUInteger)newMode;
- (void)setCacheIsReversed:(BOOL)reverse;
- (void)adjustRowHeight;
- (IBAction)clearHistory:(id)sender;
- (IBAction)setMode:(id)sender;
- (IBAction)qsPaste:(id)sender;
- (IBAction)toggleAdjustRows:(id)sender;
- (IBAction)showPreferences:(id)sender;
- (IBAction)hideWindow:(id)sender;
@end