HBShowImageControl.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // HBShowImageControl.h
  3. // MyTest
  4. //
  5. // Created by weqia on 13-8-8.
  6. // Copyright (c) 2013年 weqia. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "NSImageUtil.h"
  10. #import "HBImageViewList.h"
  11. #define MAX_WIDTH 200.0
  12. #define MAX_HEIGHT 150.0
  13. #define IMAGE_SIZE (JX_SCREEN_WIDTH-69*2-IMAGE_SPACE*2)/3
  14. #define IMAGE_SPACE 5
  15. @class HBShowImageControl;
  16. @protocol HBShowImageControlDelegate <NSObject>
  17. @optional
  18. -(void)showImageControlFinishLoad:(HBShowImageControl*)control;
  19. -(void)lookImageAction:(HBShowImageControl*)control;
  20. -(void)lookFileAction:(HBShowImageControl*)control files:(NSArray*)files;
  21. @end
  22. @interface HBShowImageControl : UIView
  23. {
  24. NSMutableArray * _imageViews;
  25. NSMutableArray * _images;
  26. NSMutableArray * _bigUrls;
  27. NSArray * _files;
  28. NSArray * _imgurls;
  29. NSImageUtil *_util;
  30. HBImageViewList *_imageList;
  31. }
  32. @property(nonatomic,weak) id<HBShowImageControlDelegate> delegate;
  33. @property(nonatomic,weak) UIViewController * controller;
  34. @property(nonatomic,strong) NSMutableArray * larges;
  35. @property BOOL bFirstSmall;
  36. @property(nonatomic) int smallTag;
  37. @property(nonatomic) int bigTag;
  38. +(float)heightForFiles:(NSArray*)files;
  39. -(void)setImagesFileStr:(NSString*)fileStr;
  40. -(void)setImagesWithFiles:(NSArray*)files;
  41. +(float)heightForFileStr:(NSString*)fileStr;
  42. @end