-
Notifications
You must be signed in to change notification settings - Fork 2
/
envVariablesNibController.h
72 lines (51 loc) · 1.54 KB
/
envVariablesNibController.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
70
71
72
#import <Cocoa/Cocoa.h>
#import "Crontab.h"
@interface envVariablesNibController : NSObject {
IBOutlet NSPanel *window;
IBOutlet id btRemove;
IBOutlet id envTable;
Crontab *crontab;
NSToolbar *toolbar;
NSMutableDictionary *items;
id draggedObjects;
}
+ (envVariablesNibController *)sharedInstance;
+ (void)showWindow;
+ (void)hideWindow;
// accessors
- (void)setCrontab: (id)aCrontab;
- (NSPanel *)window;
- (NSToolbar *)toolbar;
// workers
- (void)showWindow;
- (void)hideWindow;
- (void)removeAllObjects;
- (void)reloadData;
- (int)selectedRow;
- (void)addLine;
- (void)addEnvVariable: (EnvVariable *)env;
- (void)newLine; // identical to addLine
- (void)removeLine;
- (void)removeLinesInList: (NSEnumerator *)list;
- (void)duplicateLine;
- (void)clear;
- (void)setDraggedObjects: (NSArray *)list;
// ib actions
- (IBAction)hideWindow:(id)sender;
- (IBAction)addLine:(id)sender;
- (IBAction)removeLine:(id)sender;
- (IBAction)duplicateLine:(id)sender;
// delegate methods
//- (void)controlTextDidChange:(NSNotification *)aNotification;
// toolbar delegates
- (NSToolbarItem *)toolbar:(NSToolbar *)toolbar itemForItemIdentifier:(NSString *)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag;
- (NSArray *)toolbarDefaultItemIdentifiers:(NSToolbar*)toolbar;
- (NSArray *)toolbarAllowedItemIdentifiers:(NSToolbar*)toolbar;
- (int)count;
// toolbar menu actions
- (void)customize:(id)sender;
- (void)showhide:(id)sender;
// notifications
- (void)postModifiedNotification;
- (void)postAddedNotification: (id)addedObject;
@end