-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUCPreferencesController.h
More file actions
62 lines (48 loc) · 2.21 KB
/
UCPreferencesController.h
File metadata and controls
62 lines (48 loc) · 2.21 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
//
// UCPreferencesController.h
// Chain
//
// Created by Christoph on 11.06.2009.
// Copyright 2009 Useless Coding. All rights reserved.
//
#import <Cocoa/Cocoa.h>
//TODO: Make static
extern NSString *const UCPBTypeFolderIndexSets;
//FIXME: Should be WindowController
@interface UCPreferencesController : NSObject
{
IBOutlet NSWindow * window;
IBOutlet NSTableView * foldersTable;
IBOutlet NSButton * addButton;
IBOutlet NSButton * removeButton;
IBOutlet NSView * prefGeneral;
IBOutlet NSView * prefFolders;
@private
NSMutableArray * folders;
NSString * activePane;
}
+ (NSString *)folderPathForIndex:(NSUInteger)index;
- (void)show;
- (void)showAndCenter:(BOOL)centering;
- (void)showFolders;
- (void)updateUserDefaults;
- (IBAction)addFolder:(id)sender;
- (IBAction)switchPane:(id)sender;
- (void)setPane:(NSView *)pane;
- (void)setPaneWithIdentifier:(NSString *)identifier;
- (NSView *)paneForIdentifier:(NSString *)identifier;
- (NSRect)frameForPane:(NSView *)pane;
- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView;
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex;
- (void)tableView:(NSTableView *)aTableView deleteRowsWithIndexes:(NSIndexSet *)rowIndexes;
- (BOOL)tableView:(NSTableView *)aTableView writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard *)pboard;
- (NSDragOperation)tableView:(NSTableView *)aTableView validateDrop:(id<NSDraggingInfo>)info proposedRow:(NSInteger)row proposedDropOperation:(NSTableViewDropOperation)operation;
- (BOOL)tableView:(NSTableView *)aTableView acceptDrop:(id<NSDraggingInfo>)info row:(NSInteger)row dropOperation:(NSTableViewDropOperation)operation;
- (void)tableViewSelectionDidChange:(NSNotification *)aNotification;
- (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar *)toolbar;
- (NSArray *)toolbarDefaultItemIdentifiers:(NSToolbar *)toolbar;
- (NSArray *)toolbarSelectableItemIdentifiers:(NSToolbar *)toolbar;
- (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag;
- (void)validateButton;
- (void)chooseDidEnd:(NSOpenPanel *)panel returnCode:(int)returnCode contextInfo:(void *)contextInfo;
@end