MainView.h
上传用户:xy800802
上传日期:2020-12-29
资源大小:194k
文件大小:2k
源码类别:

iPhone

开发平台:

Objective-C

  1. #import <CoreFoundation/CoreFoundation.h>
  2. #import <Foundation/Foundation.h>
  3. #import <UIKit/UIKit.h>
  4. #import <CoreGraphics/CGColor.h>
  5. #import <UIKit/UITextView.h>
  6. #import <UIKit/UIAutocorrectImageView.h>
  7. #import <UIKit/UINavigationBar.h>
  8. #import <UIKit/UINavigationItem.h>
  9. #import <UIKit/UISegmentedControl.h>
  10. #import <UIKit/UITransitionView.h>
  11. #import <UIKit/UIAlertSheet.h>
  12. #import <UIKit/UIWebView.h>
  13. #import <Foundation/NSURLRequest.h>
  14. #import "MyTable.h"
  15. #import "Util.h"
  16. #define pages_scroll_left 1
  17. #define pages_scroll_right 2
  18. #define pages_scroll_up 3
  19. #define pages_scroll_down 7
  20. @interface MainView : UIView
  21. {
  22.     UINavigationBar  *navBar;
  23.     UINavigationItem        *navTitle;
  24. UITextView  *aboutView;     // 0
  25.     UITextView  *exploreView;   // 1
  26.     UITextView  *fileView;      // 2
  27.     UIAutocorrectImageView  *imageView;     // 2
  28.     //UIWebView               *htmlView;      // 2
  29.     UITransitionView  *transitionView;
  30. UIAlertSheet  *alertSheet;
  31. MyTable *exploreTable;
  32.     NSString                *currentPath;
  33.     int                     currentPage;
  34.     int                     depth;
  35. }
  36. -(id)initWithFrame:(CGRect)rect;
  37. -(void)dealloc;
  38. -(void)showabout;
  39. -(void)showparent;
  40. -(void)showrootdir;
  41. -(void)showSub:(NSString*)path;
  42. -(void)showpath:(NSString*)path;
  43. -(void)showfile:(NSString*)file;
  44. -(void)setNavBar:(int)state withTitle:(NSString*)title;
  45. -(void)navigationBar:(UINavigationBar *)navbar buttonClicked:(int)button;
  46. -(void)initTable;
  47. -(void)alertSheet:(UIAlertSheet*)sheet buttonClicked:(int)button;
  48. -(void)showmsg:(NSString*)title content:(NSString*)body;
  49. @end