-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStatusItemAppDelegate.h
57 lines (44 loc) · 1.23 KB
/
StatusItemAppDelegate.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
//
// StatusItemAppDelegate.h
// StatusItem
//
// Created by Zack Smith on 11/3/11.
// Copyright 2011 318. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "Constants.h"
#import "ScriptPlugins.h"
@class ScriptPlugins;
@class RunAppleScript;
@interface StatusItemAppDelegate : NSObject <NSApplicationDelegate> {
// Our outlets
IBOutlet NSMenu *statusMenu;
IBOutlet NSMenuItem *pluginsPlaceHolder;
IBOutlet NSMenuItem *quitMenuItem;
NSWindow *window;
NSStatusItem *statusItem;
NSImage *menuIcon;
NSBundle *mainBundle;
NSDictionary *settings;
NSTimer *scriptTimer;
BOOL debugEnabled;
// Used for Keeping track of the menu for plugins
NSInteger currentMenuIndex;
NSInteger updateMenuIndex;
// Our custo classes
ScriptPlugins *plugins;
RunAppleScript *appleScript;
}
@property (assign) IBOutlet NSWindow *window;
- (void)createStatusItem;
- (void)updateMenuText;
- (void)setMenuIcon;
- (void)readInSettings;
// Plugin Methods
- (NSInteger)addPluginMenuHeader:(NSString *)myTitle;
- (NSInteger)addPluginMenuChild:(NSString *)myTitle
withToolTip:(NSString *)myToolTip
asAlternate:(BOOL)alternate;
- (void) pluginsHaveLoaded:(NSNotification *) notification;
- (IBAction)headerMenuClicked:(id)sender;
@end