SimpleGrid.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // SimpleGride.h
  3. // Apex Mobile
  4. //
  5. // Created by Ray on 14-3-4.
  6. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "TouchLabel.h"
  10. #import "PageData.h"
  11. #import "Constant.h"
  12. @class SimpleGrid;
  13. @protocol SimpleGridDelegate <NSObject>
  14. @required
  15. - (void) LongPress:(UIView*)view _id:(NSString*) _id;
  16. - (void) Tap:(UIView*)view url:(NSString*) url;
  17. @end
  18. @interface SimpleGrid : UIScrollView
  19. {
  20. @private
  21. // id <MDSpreadViewDataSource>__unsafe_unretained _dataSource;
  22. id <SimpleGridDelegate> __weak griddelegate;
  23. }
  24. //
  25. @property (weak, nonatomic) id <SimpleGridDelegate> griddelegate;
  26. @property long basetag;
  27. @property long row_count;
  28. @property long column_count;
  29. @property bool fullrowselect;
  30. @property long top_line;
  31. @property long left_line ;
  32. @property long right_line;
  33. @property long bottom_line;
  34. @property long line;
  35. - (void)drawSelect:(CGRect)rect;
  36. -(void) initgrid :(PageData*) pageData;
  37. //@property (strong,nonatomic) NSMutableDictionary* header;
  38. @property (strong,nonatomic) NSArray* header_name;
  39. @property (strong,nonatomic) NSArray* header_aname;
  40. @property (strong,nonatomic)PageData* pageData;
  41. @property (strong,nonatomic) UIView* backgroudView ;
  42. @property (strong,nonatomic) NSMutableDictionary* hrefs;
  43. @end