00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #import <UIKit/UIKit.h>
00030
00034 typedef enum {
00036 MBProgressHUDModeIndeterminate,
00038 MBProgressHUDModeDeterminate,
00039 } MBProgressHUDMode;
00040
00053 @interface MBProgressHUD : UIView {
00054
00055 MBProgressHUDMode mode;
00056
00057 SEL methodForExecution;
00058 id targetForExecution;
00059 id objectForExecution;
00060 bool useAnimation;
00061
00062 float width;
00063 float height;
00064
00065 UIView *indicator;
00066 UILabel *label;
00067 UILabel *detailsLabel;
00068
00069 float progress;
00070
00071 id delegate;
00072 NSString *labelText;
00073 NSString *detailsLabelText;
00074 float opacity;
00075 UIFont *labelFont;
00076 UIFont *detailsLabelFont;
00077 }
00078
00083 - (id)initWithWindow:(UIWindow *)window;
00084
00089 @property (assign) MBProgressHUDMode mode;
00090
00096 @property (assign) id delegate;
00097
00103 @property (copy) NSString *labelText;
00104
00109 @property (copy) NSString *detailsLabelText;
00110
00115 @property (assign) float opacity;
00116
00121 @property (retain) UIFont *labelFont;
00122
00127 @property (retain) UIFont *detailsLabelFont;
00128
00133 @property (assign) float progress;
00134
00146 - (void)showWhileExecuting:(SEL)method onTarget:(id)target withObject:(id)object animated:(bool)animated;
00147
00148 @end
00149
00150
00154 @protocol MBProgressHUDDelegate
00155
00159 - (void)hudWasHidden;
00160
00161 @end
00162
00166 @interface MBRoundProgressView : UIProgressView {
00167
00168 }
00169
00174 - (id)initWithDefaultSize;
00175
00176 @end