|
| 1 | +// |
| 2 | +// AppController.h |
| 3 | +// test |
| 4 | +// |
| 5 | +// Created by Bernhard Jenny on 01.09.05. |
| 6 | +// Copyright 2005 Bernhard Jenny. All rights reserved. |
| 7 | +// |
| 8 | + |
| 9 | +/* set LSUIElement to 1 in th Info.plist file |
| 10 | + don't use NSBGOnly, no key events are sent with this option! */ |
| 11 | + |
| 12 | +#import <Cocoa/Cocoa.h> |
| 13 | +#import <ApplicationServices/ApplicationServices.h> |
| 14 | +#import <Foundation/Foundation.h> |
| 15 | +#import "ClickableImageView.h" |
| 16 | +#import "KeyableWindow.h" |
| 17 | +#import "RoundedView.h" |
| 18 | + |
| 19 | +@interface AppController : NSObject { |
| 20 | + |
| 21 | + int simulationID; |
| 22 | + NSStatusItem *statusItem; |
| 23 | + KeyableWindow *mainWindow; |
| 24 | + ClickableImageView *imageView; |
| 25 | + NSBitmapImageRep *screenshot; |
| 26 | + CGImageRef quartzScreenCapture; |
| 27 | + NSBitmapImageRep *simulation; |
| 28 | + NSTimer *timer; |
| 29 | + NSApplication *prevActiveApp; |
| 30 | + |
| 31 | + IBOutlet NSMenu *m_menu; |
| 32 | + IBOutlet NSWindow *infoWindow; |
| 33 | + IBOutlet RoundedView *infoView; |
| 34 | + IBOutlet NSPanel *preferencesPanel; |
| 35 | + IBOutlet NSPopUpButton *deutanHotKeyMenu; |
| 36 | + IBOutlet NSPopUpButton *protanHotKeyMenu; |
| 37 | + IBOutlet NSPopUpButton *tritanHotKeyMenu; |
| 38 | + IBOutlet NSButton *startAtLoginSwitch; |
| 39 | + IBOutlet NSPanel *aboutBox; |
| 40 | + IBOutlet NSButton *prefsDefaultsButton; |
| 41 | + IBOutlet NSPanel *welcomeDialog; |
| 42 | + |
| 43 | + unsigned short * rgb2lin_red_LUT; |
| 44 | + unsigned char * lin2rgb_LUT; |
| 45 | + |
| 46 | + unsigned char *screenShotBuffer; |
| 47 | + unsigned screenShotBufferWidth; |
| 48 | + unsigned screenShotBufferHeight; |
| 49 | + |
| 50 | + unsigned char *simulationBuffer; |
| 51 | + unsigned simulationBufferWidth; |
| 52 | + unsigned simulationBufferHeight; |
| 53 | + |
| 54 | + NSLock *loginItemsLock; |
| 55 | + BOOL shouldQuit; |
| 56 | +} |
| 57 | + |
| 58 | +-(int)simulationID; |
| 59 | +-(IBAction)selItemProtan:(id)sender; |
| 60 | +-(IBAction)selItemDeutan:(id)sender; |
| 61 | +-(IBAction)selItemTritan:(id)sender; |
| 62 | +-(IBAction)selItemNormal:(id)sender; |
| 63 | +-(IBAction)selItemSave:(id)sender; |
| 64 | +-(IBAction)selItemPreferences:(id)sender; |
| 65 | +-(IBAction)selItemAbout:(id)sender; |
| 66 | +//-(IBAction)selItemHelp:(id)sender; |
| 67 | +-(IBAction)selItemQuit:(id)sender; |
| 68 | +-(IBAction)protanKey:(id)sender; |
| 69 | +-(IBAction)deutanKey:(id)sender; |
| 70 | +-(IBAction)tritanKey:(id)sender; |
| 71 | +-(IBAction)selStartAtLogin:(id)sender; |
| 72 | +-(IBAction)showHomepage:(id)sender; |
| 73 | +-(IBAction)prefrencesDefaults:(id)sender; |
| 74 | +-(void)updateSimulation; |
| 75 | +-(void)takeScreenShot; |
| 76 | +-(void)finishFadeOut; |
| 77 | +-(NSWindow*)preferencesPanel; |
| 78 | +-(NSWindow*)aboutBox; |
| 79 | +-(IBAction)closeWelcomeDialog:(id)sender; |
| 80 | +/* |
| 81 | +-(void)normal; |
| 82 | +-(void)deutan; |
| 83 | +-(void)protan; |
| 84 | +-(void)tritan; |
| 85 | +*/ |
| 86 | +@end |
0 commit comments