Sparkle  2.0.0
A software update framework for macOS
SUStatusController.h
1 //
2 // SUStatusController.h
3 // Sparkle
4 //
5 // Created by Andy Matuschak on 3/14/06.
6 // Copyright 2006 Andy Matuschak. All rights reserved.
7 //
8 
9 #if SPARKLE_BUILD_UI_BITS || !BUILDING_SPARKLE
10 
11 #ifndef SUSTATUSCONTROLLER_H
12 #define SUSTATUSCONTROLLER_H
13 
14 #import <Cocoa/Cocoa.h>
15 
16 @class SUHost;
17 @interface SUStatusController : NSWindowController
18 @property (weak) IBOutlet NSButton *actionButton;
19 @property (weak) IBOutlet NSProgressIndicator *progressBar;
20 @property (weak) IBOutlet NSTextField *statusTextField;
21 
22 @property (copy) NSString *statusText;
23 @property double progressValue;
24 @property (nonatomic) double maxProgressValue;
25 @property (getter=isButtonEnabled) BOOL buttonEnabled;
26 
27 - (instancetype)initWithHost:(SUHost *)host;
28 
29 // Pass 0 for the max progress value to get an indeterminate progress bar.
30 // Pass nil for the status text to not show it.
31 - (void)beginActionWithTitle:(NSString *)title maxProgressValue:(double)maxProgressValue statusText:(NSString *)statusText;
32 
33 // If isDefault is YES, the button's key equivalent will be \r.
34 - (void)setButtonTitle:(NSString *)buttonTitle target:(id)target action:(SEL)action isDefault:(BOOL)isDefault;
35 
36 @end
37 
38 #endif
39 
40 #endif
Definition: SUHost.h:15
Definition: SUStatusController.h:18