forked from iMediaSandboxing/iMedia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IMBAlertPopoverViewController.h
62 lines (46 loc) · 1.8 KB
/
IMBAlertPopoverViewController.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
59
60
61
62
//**********************************************************************************************************************
//
// IMBAlertPopoverViewController.h
//
// Author: Peter Baumgartner, peter@baumgartner.com
// Copyright: ©2011 by IMAGINE GbR. All rights reserved.
// Abstract: View conroller for alert popovers
//
//**********************************************************************************************************************
#pragma mark TYPES
typedef void(^IMBButtonBlockType)(void);
//----------------------------------------------------------------------------------------------------------------------
#pragma mark -
@interface IMBAlertPopoverViewController : NSViewController
{
IBOutlet NSImageView* _iconView;
IBOutlet NSTextField* _headerTextField;
IBOutlet NSTextField* _bodyTextField;
IBOutlet NSTextField* _footerTextField;
IBOutlet NSButton* _button0;
IBOutlet NSButton* _button1;
IBOutlet NSButton* _button2;
IBOutlet NSBox* _progressBackground;
IBOutlet NSProgressIndicator* _progressWheel;
NSImage* _icon;
NSString* _headerString;
NSString* _bodyString;
NSString* _footerString;
NSMutableArray* _buttonInfo;
NSColor* _headerTextColor;
NSColor* _bodyTextColor;
NSColor* _footerTextColor;
}
@property (strong) NSImage* icon;
@property (strong) NSString* headerString;
@property (strong) NSString* bodyString;
@property (strong) NSString* footerString;
@property (strong) NSColor* headerTextColor;
@property (strong) NSColor* bodyTextColor;
@property (strong) NSColor* footerTextColor;
- (void) addButtonWithTitle:(NSString*)inTitle block:(IMBButtonBlockType)inBlock;
- (void) adjustLayout;
- (void) showProgressIndicator;
- (void) hideProgressIndicator;
@end
//----------------------------------------------------------------------------------------------------------------------