-
Notifications
You must be signed in to change notification settings - Fork 4
/
IsoController.h
111 lines (97 loc) · 2.95 KB
/
IsoController.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
//
// IsoController.m
// Isolator
//
// Created by Ben Willmore on 08/02/2007.
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import "Cocoa/Cocoa.h"
#import "Carbon/Carbon.h"
#import "Sparkle/SUUpdater.h"
#import "StartupItemController.h"
#import "BlackWindow.h"
#import "SRRecorderControl.h"
#import "BlackView.h"
#import "LessThanAboutOne.h"
#import "IsoStatusItemView.h"
#import "MAAttachedWindow.h"
@interface IsoController : NSObject <NSMenuDelegate>
{
StartupItemController* startupItemController;
NSMutableArray* blackWindows;
NSMenu* statusMenu;
NSMenuItem* toggleMenuItem;
NSStatusItem* statusItem;
IBOutlet NSMenu* mainMenu;
IBOutlet NSWindow* prefWindow;
IBOutlet SRRecorderControl* shortcutRecorder;
IBOutlet SUUpdater* sparkleUpdater;
EventHotKeyRef gMyHotKeyRef;
BOOL shownCenturyMessage;
BOOL active;
BOOL suspended;
BOOL flipMode;
BOOL enteringIsolateMode;
BOOL dockAutohide;
BOOL didAffectDock;
NSAppleScript* getDockAutohideScript;
NSAppleScript* setDockAutohideTrueScript;
NSAppleScript* setDockAutohideFalseScript;
NSArray* savedFrames;
NSDictionary* lastAppActivated;
MAAttachedWindow* infoBox;
IBOutlet NSView* infoBoxView;
IBOutlet NSTextField* infoBoxTextField;
}
-(void) setKeyCombo;
-(void) saveKeyCombo;
-(void) setupStatusItem;
-(NSStatusItem*) getStatusItem;
-(void) initStatusMenu;
-(NSMenu*) getStatusMenu;
-(void) showStatusMenu;
-(void) applicationDidChangeScreenParameters:(id)object;
-(void) setupBlackWindows;
-(void) checkIfDisplaysAreHardwareAccelerated;
-(void) isolate:(int) reason;
-(void) revealBlackWindows;
-(void) fadeOutBlackWindows;
-(void) hideAppsExcept:(NSDictionary*)excludeApp;
-(void) toggleFrontmostApp:(id)sender;
-(void) setFrontmostAppAndPositionBlackWindows:(id)sender;
-(void) setFrontmostApp:(id)sender;
-(void) positionBlackWindows:(id)sender;
-(void) enterIsolateMode:(BOOL)shouldFlip;
-(void) leaveIsolateMode;
-(void) toggle;
-(void) toggle:(BOOL)shouldFlip;
-(IBAction) setBackgroundColor:(id)sender;
-(IBAction) setOpacity:(id)sender;
-(IBAction) setBlur:(id)sender;
-(IBAction) setClickThrough:(id)sender;
-(IBAction) setMenuBarIcon:(id)sender;
-(IBAction) setHideBackgroundApps:(id)sender;
-(IBAction) setSuspendWhenFinderIsActive:(id)sender;
-(void) setUpdatesIncludeBetaVersions:(BOOL)flag;
-(BOOL) updatesIncludeBetaVersions;
-(void) setNilValueForKey:(NSString *)theKey;
-(void) registerHotkey:(KeyCombo)keyCombo;
-(void) syncDefaults:(id)sender;
-(BOOL) startupItemEnabled;
-(void) setStartupItemEnabled:(BOOL)value;
-(IBAction) setWindow:(id)sender;
-(void) openPrefs;
-(BOOL) isActive;
-(void) showCenturyMessage;
-(void) setupAppleScripts;
-(void) saveDockAutohide;
-(void) restoreDockAutohide;
-(void) setDockAutohide:(BOOL)hide;
-(IBAction) hideDockAsAppropriate;
-(IBAction) setDockHidingPref:(id)sender;
-(IBAction) checkForUpdates:(id)sender;
-(void)bringWindowsForward;
-(void) migratePrefsTo338;
-(void) showInfoBoxAtPoint:(NSPoint)pt;
-(void)closeInfoBox:(id)sender;
@end