forked from karelia/iMedia
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathIMBAlertPopover.h
56 lines (34 loc) · 1.84 KB
/
IMBAlertPopover.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
//**********************************************************************************************************************
//
// IMBAlertPopover.h
//
// Author: Peter Baumgartner, [email protected]
// Copyright: ©2011 by IMAGINE GbR. All rights reserved.
// Abstract: Subclass for alert popovers
//
//**********************************************************************************************************************
#pragma mark HEADERS
#import "IMBPopover.h"
#import "IMBAlertPopoverViewController.h"
//----------------------------------------------------------------------------------------------------------------------
@interface IMBAlertPopover : IMBPopover
// Convienience methods...
+ (IMBAlertPopover*) stopPopoverWithHeader:(NSString*)inHeader body:(NSString*)inBody footer:(NSString*)inFooter;
+ (IMBAlertPopover*) warningPopoverWithHeader:(NSString*)inHeader body:(NSString*)inBody footer:(NSString*)inFooter;
+ (IMBAlertPopover*) notePopoverWithHeader:(NSString*)inHeader body:(NSString*)inBody footer:(NSString*)inFooter;
// Designated initializer...
+ (IMBAlertPopover*) alertPopoverWithIcon:(NSImage*)inIcon header:(NSString*)inHeader body:(NSString*)inBody footer:(NSString*)inFooter;
- (id) initWithIcon:(NSImage*)inIcon header:(NSString*)inHeader body:(NSString*)inBody footer:(NSString*)inFooter;
// Icon...
@property (strong) NSImage* icon;
// Optional buttons...
- (void) addButtonWithTitle:(NSString*)inTitle block:(IMBButtonBlockType)inBlock;
// Custom text colors...
- (void) setHeaderTextColor:(NSColor*)inColor;
- (void) setBodyTextColor:(NSColor*)inColor;
- (void) setFooterTextColor:(NSColor*)inColor;
// Optional progress wheel...
- (void) showProgressIndicator;
- (void) hideProgressIndicator;
@end
//----------------------------------------------------------------------------------------------------------------------