-
Notifications
You must be signed in to change notification settings - Fork 36
/
IGKPreferencesController.h
63 lines (45 loc) · 1.63 KB
/
IGKPreferencesController.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
//
// IGKPreferencesController.h
// Ingredients
//
// Created by Alex Gordon on 07/03/2010.
// Written in 2010 by Fileability.
//
#import <Cocoa/Cocoa.h>
#import <Sparkle/SUUpdater.h>
@interface IGKPreferencesController : NSWindowController<NSTableViewDataSource, NSTableViewDelegate>
{
NSView *currentView;
IBOutlet NSView *generalView;
IBOutlet NSToolbarItem *generalToolbarItem;
IBOutlet NSView *docsetsView;
IBOutlet NSToolbarItem *docsetsToolbarItem;
IBOutlet NSTableView *developerDirectoriesTableView;
IBOutlet NSTableView *docsetsTableView;
IBOutlet NSView *docsetsChangedStatusView;
IBOutlet NSView *updatesView;
IBOutlet NSToolbarItem *updatesToolbarItem;
NSMutableArray *developerDirectories;
NSMutableArray *docsets;
BOOL startIntoDocsets;
}
@property (assign) BOOL startIntoDocsets;
- (NSManagedObjectContext *)managedObjectContext;
//Tab switching
- (IBAction)switchToGeneral:(id)sender;
- (IBAction)switchToDocsets:(id)sender;
- (IBAction)switchToUpdates:(id)sender;
//Docsets logic
- (NSString *)selectedFilterDocsetPath;
- (void)selectedFilterDocsetForPath:(NSString *)path;
- (IBAction)addDeveloperDirectory:(id)sender;
- (IBAction)removeSelectedDeveloperDirectories:(id)sender;
- (IBAction)relaunch:(id)sender;
//Updates logic
- (IBAction)checkForUpdates:(id)sender;
- (void)addDeveloperDirectoryPath:(NSString *)path;
- (int)addDocsetWithPath:(NSString *)path localizedUserInterfaceName:(NSString *)localizedUserInterfaceName developerDirectory:(NSString *)devDir;
- (void)setUpdateMatrixTag:(NSInteger)updateMatrixTag;
- (NSInteger)updateMatrixTag;
+ (IGKPreferencesController *)sharedPreferencesController;
@end