-
Notifications
You must be signed in to change notification settings - Fork 17
/
MVStatusItemView.h
executable file
·58 lines (49 loc) · 1.95 KB
/
MVStatusItemView.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
//
// MVStatusItemView.h
// FileShuttle
//
// Created by Michael Villar on 12/11/11.
//
#import <Cocoa/Cocoa.h>
extern int const MVStatusItemStateNormal;
extern int const MVStatusItemStateUploading;
extern int const MVStatusItemStateComplete;
extern int const MVStatusItemStateError;
@class MVStatusItemView;
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
@protocol MVStatusItemViewDelegate
@optional;
- (void)statusItemView:(MVStatusItemView*)view
didDropFiles:(NSArray*)filenames;
- (void)statusItemView:(MVStatusItemView*)view
didDropString:(NSString*)string;
@end
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
@interface MVStatusItemView : NSView <NSMenuDelegate> {
BOOL isMenuVisible_;
NSStatusItem *statusItem_;
NSImage *image_;
NSImage *emptyImage_;
NSImage *maskImage_;
NSImage *alternateImage_;
NSImage *errorImage_;
NSImage *completedImage_;
int state_;
float progression_;
NSObject <MVStatusItemViewDelegate> *delegate_;
}
@property (retain) NSStatusItem *statusItem;
@property (retain, nonatomic) NSImage *image;
@property (retain, nonatomic) NSImage *emptyImage;
@property (retain, nonatomic) NSImage *maskImage;
@property (retain, nonatomic) NSImage *alternateImage;
@property (retain, nonatomic) NSImage *errorImage;
@property (retain, nonatomic) NSImage *completedImage;
@property (assign, nonatomic) int state;
@property (assign, nonatomic) float progression;
@property (assign) NSObject <MVStatusItemViewDelegate> *delegate;
@end