2 // ActivityIndicatorView.h
5 // Created by Mike Mayo on 10/9/10.
6 // The OpenStack project is provided under the Apache 2.0 license.
9 #import <UIKit/UIKit.h>
11 #define kFadeTime 0.25
12 #define kFontSize 14.0
13 #define kCornerRadius 7
14 #define kSpinnerStyle UIActivityIndicatorViewStyleWhite
16 @class AnimatedProgressView;
18 @interface ActivityIndicatorView : UIView {
21 @property (nonatomic, retain) AnimatedProgressView *progressView;
22 @property (nonatomic, retain) UIActivityIndicatorView *spinner;
24 + (CGRect)frameForText:(NSString *)text;
25 + (CGRect)frameForText:(NSString *)text withProgress:(BOOL)withProgress;
26 + (void)addToView:(UIView *)view text:(NSString *)text;
27 - (id)initWithFrame:(CGRect)frame text:(NSString *)text;
28 - (id)initWithFrame:(CGRect)frame text:(NSString *)text withProgress:(BOOL)withProgress;
30 - (void)addToView:(UIView *)view scrollOffset:(CGFloat)offset;
31 - (void)addToView:(UIView *)view;
32 - (void)removeFromSuperviewAndRelease;
33 - (void)removeFromSuperview;