| 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 |
enum CPUApplicationIconStatus { |
|---|
| 30 |
CPUApplicationIconDefault, |
|---|
| 31 |
CPUApplicationIconResetDefault, |
|---|
| 32 |
CPUApplicationIconStandard, |
|---|
| 33 |
CPUApplicationIconExpanded, |
|---|
| 34 |
}; |
|---|
| 35 |
typedef enum CPUApplicationIconStatus CPUApplicationIconStatus; |
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
@class CPUPanel, CPUFloatingView, CPUExpandedView; |
|---|
| 39 |
|
|---|
| 40 |
@interface CPUController : NSObject { |
|---|
| 41 |
IBOutlet NSWindow *_preferencesWindow; |
|---|
| 42 |
|
|---|
| 43 |
IBOutlet NSColorWell *_floatingViewColorWell; |
|---|
| 44 |
IBOutlet NSMatrix *_floatingViewAlphaMatrix; |
|---|
| 45 |
IBOutlet NSMatrix *_floatingViewOrientationMatrix; |
|---|
| 46 |
|
|---|
| 47 |
IBOutlet NSColorWell *_expandedViewSystemColorWell; |
|---|
| 48 |
IBOutlet NSColorWell *_expandedViewUserColorWell; |
|---|
| 49 |
IBOutlet NSColorWell *_expandedViewNiceColorWell; |
|---|
| 50 |
IBOutlet NSColorWell *_expandedViewBackgroundColorWell; |
|---|
| 51 |
|
|---|
| 52 |
IBOutlet NSMatrix *_applicationIconMatrix; |
|---|
| 53 |
|
|---|
| 54 |
IBOutlet NSPanel *_standardPanel; |
|---|
| 55 |
IBOutlet NSBox *_standardBox; |
|---|
| 56 |
IBOutlet NSImageView *_standardBackgroundImageView; |
|---|
| 57 |
IBOutlet NSImageView *_standardImageView; |
|---|
| 58 |
|
|---|
| 59 |
CPUPanel *_floatingPanel; |
|---|
| 60 |
CPUFloatingView *_floatingView; |
|---|
| 61 |
|
|---|
| 62 |
IBOutlet NSPanel *_expandedPanel; |
|---|
| 63 |
IBOutlet CPUExpandedView *_expandedView; |
|---|
| 64 |
|
|---|
| 65 |
IBOutlet NSWindow *_releaseNotesWindow; |
|---|
| 66 |
IBOutlet NSTextView *_releaseNotesTextView; |
|---|
| 67 |
|
|---|
| 68 |
NSArray *_imageViews; |
|---|
| 69 |
|
|---|
| 70 |
NSImage *_applicationIcon; |
|---|
| 71 |
CPUApplicationIconStatus _applicationIconStatus; |
|---|
| 72 |
} |
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 |
#define CPUStandardViewWidth 30.0f |
|---|
| 76 |
|
|---|
| 77 |
|
|---|
| 78 |
- (IBAction)toggleFloatingWindow:(id)sender; |
|---|
| 79 |
|
|---|
| 80 |
- (IBAction)clearExpandedWindow:(id)sender; |
|---|
| 81 |
|
|---|
| 82 |
- (IBAction)openActivityMonitor:(id)sender; |
|---|
| 83 |
- (IBAction)openTop:(id)sender; |
|---|
| 84 |
|
|---|
| 85 |
- (IBAction)changeFloatingView:(id)sender; |
|---|
| 86 |
- (IBAction)changeExpandedView:(id)sender; |
|---|
| 87 |
- (IBAction)changeApplicationIcon:(id)sender; |
|---|
| 88 |
|
|---|
| 89 |
- (IBAction)releaseNotes:(id)sender; |
|---|
| 90 |
|
|---|
| 91 |
@end |
|---|