SimpleGrid.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #import "const.h"
  13. @class SimpleGrid;
  14. @protocol SimpleGridDelegate <NSObject>
  15. @required
  16. - (void) LongPress:(UIView*)view row:(long) x column:(long) y;
  17. - (void) LongPress:(UIView*)view row:(long) x;
  18. - (void) Tap:(UIView*)view row:(long) x column:(long) y;
  19. - (void) Tap:(UIView*)view row:(long) x;
  20. @end
  21. @interface SimpleGrid : UIScrollView
  22. {
  23. @private
  24. // id <MDSpreadViewDataSource>__unsafe_unretained _dataSource;
  25. id <SimpleGridDelegate> __weak griddelegate;
  26. }
  27. //
  28. @property (weak, nonatomic) id <SimpleGridDelegate> griddelegate;
  29. //@property long basetag;
  30. @property long row_count;
  31. @property long column_count;
  32. @property bool fullrowselect;
  33. @property bool enableTap;
  34. @property bool enableLongPress;
  35. @property long top_line;
  36. @property long left_line ;
  37. @property long right_line;
  38. @property long bottom_line;
  39. @property long line;
  40. - (void)drawSelect:(CGRect)rect;
  41. -(void) initgrid ;//:(PageData*) pageData;
  42. //@property (strong,nonatomic) NSMutableDictionary* header;
  43. //@property (strong,nonatomic) NSArray* header_name;
  44. //@property (strong,nonatomic) NSArray* header_aname;
  45. //@property (strong,nonatomic)PageData* pageData;
  46. @property (strong,nonatomic)NSDictionary* header;
  47. @property (strong,nonatomic)NSDictionary* data;
  48. @property (strong,nonatomic) UIView* backgroudView ;
  49. //@property (strong,nonatomic) NSMutableDictionary* hrefs;
  50. @end