forked from jerrykrinock/ClassesObjC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSSProgTextField.h
48 lines (43 loc) · 1.49 KB
/
SSProgTextField.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
@interface SSRolloverButton : NSButton {
}
@end
@interface SSProgTextField : NSControl {
NSProgressIndicator* _progBar ;
NSTextField* _textField ;
SSRolloverButton* _hyperButton ;
SSRolloverButton* _cancelButton ;
NSRect _wholeFrame ;
int progBarLimit ;
NSTimeInterval _nextProgressUpdate ;
}
- (void)setVerb:(NSString*)newVerb
resize:(BOOL)resize ;
- (void)setProgressBarWidth:(float)width ;
- (void)setHasCancelButtonWithTarget:(id)target
action:(SEL)action ;
// To show determinate progress
- (void)setMaxValue:(double)value ;
// also sets it to determinate
- (void)setIndeterminate:(BOOL)yn ;
- (void)setDoubleValue:(double)value ;
- (void)incrementDoubleValueBy:(double)value ;
- (void)incrementDoubleValueByObject:(NSNumber*)value ;
// The following methods configuration methods will invoke
// -display to display immediately
- (void)displayClearAll ;
- (void)displayIndeterminate:(BOOL)indeterminate
withLocalizableVerb:(NSString*)localizableVerb ;
// localizableVerb will be localized and an ellipsis appended.
// It will be displayed alongside the progress bar.
- (void)displayIndeterminate:(BOOL)indeterminate
withLocalizedVerb:(NSString*)localizableVerb ;
// localizedVerb will have ellipsis appended.
// It will be displayed alongside the progress bar.
- (void)displayOnlyText:(NSString*)text
hyperText:(NSString*)hyperText
target:(id)target
action:(SEL)action ;
// text may be nil
// hyperText may be nil
// target and action may be nil if hyperText is nil.
@end