diff options
Diffstat (limited to 'Source/YRKSpinningProgressIndicator.h')
-rw-r--r-- | Source/YRKSpinningProgressIndicator.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Source/YRKSpinningProgressIndicator.h b/Source/YRKSpinningProgressIndicator.h new file mode 100644 index 00000000..fae46208 --- /dev/null +++ b/Source/YRKSpinningProgressIndicator.h @@ -0,0 +1,45 @@ +// +// YRKSpinningProgressIndicator.h +// +// Copyright 2009 Kelan Champagne. All rights reserved. +// + +#import <Cocoa/Cocoa.h> + + +@interface YRKSpinningProgressIndicator : NSView { + int _position; + int _numFins; + + BOOL _isIndeterminate; + double _currentValue; + double _maxValue; + + BOOL _isAnimating; + NSThread *_animationThread; + + NSColor *_foreColor; + NSColor *_backColor; + BOOL _drawBackground; +} +- (void)animate:(id)sender; +- (void)stopAnimation:(id)sender; +- (void)startAnimation:(id)sender; + +- (NSColor *)foreColor; +- (void)setForeColor:(NSColor *)value; + +- (NSColor *)backColor; +- (void)setBackColor:(NSColor *)value; + +- (BOOL)drawBackground; +- (void)setDrawBackground:(BOOL)value; + +- (BOOL)isIndeterminate; +- (void)setIndeterminate:(BOOL)isIndeterminate; + +- (double)doubleValue; +- (void)setDoubleValue:(double)doubleValue; +- (double)maxValue; +- (void)setMaxValue:(double)maxValue; +@end |