00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #import <Foundation/Foundation.h>
00018 #import <UIKit/UIKit.h>
00019
00020 typedef enum {
00021 TTActivityLabelStyleWhite,
00022 TTActivityLabelStyleGray,
00023 TTActivityLabelStyleBlackBox,
00024 TTActivityLabelStyleBlackBezel,
00025 TTActivityLabelStyleBlackBanner,
00026 TTActivityLabelStyleWhiteBezel,
00027 TTActivityLabelStyleWhiteBox
00028 } TTActivityLabelStyle;
00029
00030 @class TTView;
00031 @class TTButton;
00032
00033 @interface TTActivityLabel : UIView {
00034 TTActivityLabelStyle _style;
00035
00036 TTView* _bezelView;
00037 UIProgressView* _progressView;
00038 UIActivityIndicatorView* _activityIndicator;
00039 UILabel* _label;
00040
00041 float _progress;
00042 BOOL _smoothesProgress;
00043 NSTimer* _smoothTimer;
00044 }
00045
00046 @property (nonatomic, readonly) TTActivityLabelStyle style;
00047
00048 @property (nonatomic, copy) NSString* text;
00049 @property (nonatomic, retain) UIFont* font;
00050
00051 @property (nonatomic) float progress;
00052 @property (nonatomic) BOOL isAnimating;
00053 @property (nonatomic) BOOL smoothesProgress;
00054
00055 - (id)initWithFrame:(CGRect)frame style:(TTActivityLabelStyle)style;
00056 - (id)initWithFrame:(CGRect)frame style:(TTActivityLabelStyle)style text:(NSString*)text;
00057 - (id)initWithStyle:(TTActivityLabelStyle)style;
00058
00059 @end