-
Notifications
You must be signed in to change notification settings - Fork 12
/
AppController.h
executable file
·85 lines (74 loc) · 2.31 KB
/
AppController.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
//
// AppController.h
// test
//
// Created by Bernhard Jenny on 01.09.05.
// Copyright 2005 Bernhard Jenny. All rights reserved.
//
/* set LSUIElement to 1 in th Info.plist file
don't use NSBGOnly, no key events are sent with this option! */
#import <Cocoa/Cocoa.h>
#import <ApplicationServices/ApplicationServices.h>
#import <Foundation/Foundation.h>
#import "ClickableImageView.h"
#import "KeyableWindow.h"
#import "RoundedView.h"
@interface AppController : NSObject {
int simulationID;
NSStatusItem *statusItem;
KeyableWindow *mainWindow;
ClickableImageView *imageView;
NSBitmapImageRep *screenshot;
CGImageRef quartzScreenCapture;
NSBitmapImageRep *simulation;
NSTimer *timer;
NSApplication *prevActiveApp;
IBOutlet NSMenu *m_menu;
IBOutlet NSWindow *infoWindow;
IBOutlet RoundedView *infoView;
IBOutlet NSPanel *preferencesPanel;
IBOutlet NSPopUpButton *deutanHotKeyMenu;
IBOutlet NSPopUpButton *protanHotKeyMenu;
IBOutlet NSPopUpButton *tritanHotKeyMenu;
IBOutlet NSPopUpButton *grayscaleHotKeyMenu;
IBOutlet NSPanel *aboutBox;
IBOutlet NSButton *prefsDefaultsButton;
IBOutlet NSPanel *welcomeDialog;
IBOutlet NSButton *loginButton;
IBOutlet NSButton *infoResizeButton;
unsigned short * rgb2lin_red_LUT;
unsigned char * lin2rgb_LUT;
unsigned char *screenShotBuffer;
unsigned screenShotBufferWidth;
unsigned screenShotBufferHeight;
unsigned char *simulationBuffer;
NSUInteger simulationBufferWidth;
NSUInteger simulationBufferHeight;
BOOL shouldQuit;
}
-(int)simulationID;
-(IBAction)selItemProtan:(id)sender;
-(IBAction)selItemDeutan:(id)sender;
-(IBAction)selItemTritan:(id)sender;
-(IBAction)selItemGrayscale:(id)sender;
-(IBAction)selItemNormal:(id)sender;
-(IBAction)selItemSave:(id)sender;
-(IBAction)selItemPreferences:(id)sender;
-(IBAction)selItemAbout:(id)sender;
//-(IBAction)selItemHelp:(id)sender;
-(IBAction)selItemQuit:(id)sender;
-(IBAction)protanKey:(id)sender;
-(IBAction)deutanKey:(id)sender;
-(IBAction)tritanKey:(id)sender;
-(IBAction)grayscaleKey:(id)sender;
-(IBAction)showHomepage:(id)sender;
-(IBAction)prefrencesDefaults:(id)sender;
-(void)updateSimulation;
-(void)takeScreenShot;
-(void)finishFadeOut;
-(NSWindow*)preferencesPanel;
-(NSWindow*)aboutBox;
-(IBAction)closeWelcomeDialog:(id)sender;
- (IBAction)login:(id)sender;
- (IBAction)resizeInfo:(id)sender;
@end