Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (41 sloc) 1.31 KB
//
// ShadyAppDelegate.h
// Shady
//
// Created by Matt Gemmell on 02/11/2009.
//
#import <Cocoa/Cocoa.h>
@interface ShadyAppDelegate : NSObject {
NSWindow *window;
float opacity;
BOOL showsHelpWhenActive;
NSWindow *helpWindow;
NSMenu *statusMenu;
NSSlider *opacitySlider;
NSStatusItem *statusItem;
NSPanel *prefsWindow;
NSButton *dockIconCheckbox;
NSMenuItem *stateMenuItemMainMenu;
NSMenuItem *stateMenuItemStatusBar;
BOOL shadyEnabled;
}
@property (assign) IBOutlet NSWindow *window;
@property (assign) float opacity;
@property (assign) IBOutlet NSMenu *statusMenu;
@property (assign) IBOutlet NSSlider *opacitySlider;
@property (assign) IBOutlet NSPanel *prefsWindow;
@property (assign) IBOutlet NSButton *dockIconCheckbox;
@property (assign) IBOutlet NSMenuItem *stateMenuItemMainMenu;
@property (assign) IBOutlet NSMenuItem *stateMenuItemStatusBar;
- (IBAction)showAbout:(id)sender;
- (IBAction)showPreferences:(id)sender;
- (IBAction)toggleDockIcon:(id)sender;
- (IBAction)toggleEnabledStatus:(id)sender;
- (IBAction)toggleMainDisplayOnly:(id)sender;
- (IBAction)increaseOpacity:(id)sender;
- (IBAction)decreaseOpacity:(id)sender;
- (IBAction)opacitySliderChanged:(id)sender;
- (void)applicationActiveStateChanged:(NSNotification *)aNotification;
- (void)toggleHelpDisplay;
- (void)updateEnabledStatus;
@end