WeiboCell.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. //
  2. // WeiboCell.h
  3. // wq
  4. //
  5. // Created by weqia on 13-8-28.
  6. // Copyright (c) 2013年 Weqia. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "HBCoreLabel.h"
  10. #import "HBShowImageControl.h"
  11. #import "WeiboData.h"
  12. #import "WeiboViewControlle.h"
  13. #import <QuickLook/QuickLook.h>
  14. #import "ReplyCell.h"
  15. #import "JXAudioPlayer.h"
  16. #import "JXVideoPlayer.h"
  17. #define REPLY_BACK_COLOR 0xd5d5d5
  18. @class MPMoviePlayerController;
  19. @class userInfoVC;
  20. @class WeiboCell;
  21. @class WeiboViewControlle;
  22. @protocol WeiboCellDelegate <NSObject>
  23. - (void)weiboCell:(WeiboCell *)weiboCell shareUrlActionWithUrl:(NSString *)url title:(NSString *)title;
  24. - (void)weiboCell:(WeiboCell *)weiboCell clickVideoWithIndex:(NSInteger)index;
  25. @end
  26. @interface WeiboCell : UITableViewCell<HBShowImageControlDelegate,UITableViewDataSource,UITableViewDelegate,UIAlertViewDelegate>
  27. {
  28. NSArray * _replys;
  29. NSIndexPath * _indexPath;
  30. BOOL linesLimit;
  31. int replyCount;
  32. NSString* _oldInputText;
  33. NSMutableArray* _newGifts;
  34. int _heightPraise;
  35. // userInfoVC* _userVc;
  36. NSMutableArray* _pool;
  37. }
  38. @property(nonatomic,retain) UILabel * title;
  39. @property(nonatomic,retain) HBCoreLabel * content;
  40. @property(nonatomic,retain) UIView * imageContent;
  41. @property(nonatomic,strong) UIView * fileView;
  42. @property (strong, nonatomic) UIImageView * typeView;
  43. @property (strong, nonatomic) UILabel * fileTitleLabel;
  44. @property(nonatomic,retain) UILabel * time;
  45. @property(nonatomic,strong) UIButton * delBtn;
  46. @property(nonatomic,strong) UILabel * locLabel;
  47. @property(nonatomic,retain) JXImageView * mLogo;
  48. @property(nonatomic,retain) UIView * replyContent;
  49. @property(nonatomic,retain) UIButton * btnReply; // 回复
  50. @property(nonatomic,retain) UIButton * btnLike; // 点赞
  51. @property(nonatomic,retain) UIButton * btnCollection; // 收藏
  52. @property(nonatomic,retain) UIButton * btnReport; // 举报
  53. @property (nonatomic, assign) BOOL isPraise; // 是否点赞
  54. @property (nonatomic, assign) BOOL isCollect; // 是否收藏
  55. @property(nonatomic,retain) UIImageView * back;
  56. @property(nonatomic,retain) UITableView * tableReply;
  57. @property(nonatomic,retain) UIView * lockView;
  58. @property(nonatomic,retain) UIButton *btnDelete;
  59. @property(nonatomic,retain) UIButton * btnShare;
  60. @property(nonatomic,weak) WeiboViewControlle * controller;
  61. @property(nonatomic,weak) UITableView* tableViewP;
  62. @property(nonatomic,retain) WeiboData* weibo;
  63. @property(nonatomic,retain) JXImageView* imagePlayer;
  64. @property(nonatomic,retain) UIButton* pauseBtn;
  65. @property(nonatomic,assign) int refreshCount;
  66. @property(nonatomic,strong) JXAudioPlayer* audioPlayer;
  67. @property(nonatomic,retain) JXVideoPlayer* videoPlayer;
  68. @property (nonatomic, weak) id<WeiboCellDelegate>delegate;
  69. @property(nonatomic,retain) UILabel *moreLabel;
  70. +(float)getHeightByContent:(WeiboData*)data;
  71. +(float) heightForReply:(NSArray*)replys;
  72. -(void)loadReply;
  73. //-(void)doHideMenu;
  74. -(void)setReplys:(NSArray*)replys;
  75. -(NSArray *)getReplys;
  76. //-(void)refresh:(WeiboCell *)selWeiboCell;
  77. -(void)refresh;
  78. - (void)setupData;
  79. @end