forked from taoeffect/DelayedLauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Controller.h
57 lines (45 loc) · 1.32 KB
/
Controller.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
//
// Controller.h
// DelayedLauncher
//
// Created by Greg Slepak on 12/5/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "Common.h"
@class CustomTableView;
@interface Controller : NSObject {
IBOutlet NSWindow *window;
IBOutlet CustomTableView *tableView;
IBOutlet NSSlider *slider;
IBOutlet NSTextField *delayTextField;
IBOutlet NSArrayController *arrayController;
IBOutlet NSTextField *warningField;
IBOutlet NSButton *playPauseButton;
IBOutlet NSMenu *contextualMenu;
NSMutableArray *itemList;
int currentTimeLeft;
int currentItemIndex;
int clickedRow;
BOOL launched, countingDown;
}
- (IBAction)fire:(id)sender;
- (IBAction)openPreferences:(id)sender;
- (IBAction)removeSelectedItems:(id)sender;
- (IBAction)toggleCountdown:(id)sender;
- (IBAction)launchNow:(id)sender;
- (IBAction)revealInFinder:sender;
- (void)setItemList:(NSMutableArray*)aList;
- (NSMutableArray*)itemList;
ACC_COMBO_H(BOOL, countingDown, CountingDown)
// ---- private shit
- (void)updateDelayTextField;
- (void)saveToDisk;
- (void)showProgressForCurrentRow;
- (int)nextLaunchIndex;
- (int)currentLaunchIndex;
- (BOOL)addItemWithPath:(NSString*)path atIndex:(unsigned)idx;
- (void)launchAppBundle:(NSBundle*)bundle hide:(BOOL)hide;
- (NSMutableDictionary*)currentItem;
- (NSNumber*)currentDelay;
@end