Expanded open file functionality to use available apps.
[pithos-ios] / Classes / ActivityIndicatorView.h
1 //
2 //  ActivityIndicatorView.h
3 //  OpenStack
4 //
5 //  Created by Mike Mayo on 10/9/10.
6 //  The OpenStack project is provided under the Apache 2.0 license.
7 //
8
9 #import <UIKit/UIKit.h>
10
11 #define kFadeTime 0.25
12 #define kFontSize 14.0
13 #define kCornerRadius 7
14 #define kSpinnerStyle UIActivityIndicatorViewStyleWhite
15
16 @class AnimatedProgressView;
17
18 @interface ActivityIndicatorView : UIView {
19 }
20
21 @property (nonatomic, retain) AnimatedProgressView *progressView;
22 @property (nonatomic, retain) UIActivityIndicatorView *spinner;
23
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;
29
30 - (void)addToView:(UIView *)view scrollOffset:(CGFloat)offset;
31 - (void)addToView:(UIView *)view;
32 - (void)removeFromSuperviewAndRelease;
33 - (void)removeFromSuperview;
34
35 @end