Fixed a segfault crash that would occur if you stepped at the end of a script
[macgdbp.git] / Sparkle.framework / Versions / A / Headers / 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 #ifndef SUSTATUSCONTROLLER_H
10 #define SUSTATUSCONTROLLER_H
11
12 #import "SUWindowController.h"
13
14 @interface SUStatusController : SUWindowController {
15 double progressValue, maxProgressValue;
16 NSString *title, *statusText, *buttonTitle;
17 IBOutlet NSButton *actionButton;
18 IBOutlet NSProgressIndicator* progressBar;
19 NSBundle *hostBundle;
20 }
21
22 - (id)initWithHostBundle:(NSBundle *)hostBundle;
23
24 // Pass 0 for the max progress value to get an indeterminate progress bar.
25 // Pass nil for the status text to not show it.
26 - (void)beginActionWithTitle:(NSString *)title maxProgressValue:(double)maxProgressValue statusText:(NSString *)statusText;
27
28 // If isDefault is YES, the button's key equivalent will be \r.
29 - (void)setButtonTitle:(NSString *)buttonTitle target:target action:(SEL)action isDefault:(BOOL)isDefault;
30 - (void)setButtonEnabled:(BOOL)enabled;
31
32 - (double)progressValue;
33 - (void)setProgressValue:(double)value;
34 - (double)maxProgressValue;
35 - (void)setMaxProgressValue:(double)value;
36
37 - (void)setStatusText:(NSString *)statusText;
38
39 @end
40
41 #endif