summaryrefslogtreecommitdiff
path: root/Juick/MessageCell.h
blob: 6140e2d73e357d0d5c0e9d85e06a118228339b2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
//  MessageCell.h
//  Juick
//
//  Created by Vitaly Takmazov on 29.10.13.
//  Copyright (c) 2013 com.juick. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <SDWebImage/UIImageView+WebCache.h>
#import "TTTAttributedLabel.h"

#import "Message.h"

#import "NSString+HTML.h"
#import "UIImage+Utils.h"
#import "UILabel+Utils.h"


#define kLabelHorizontalInsets 20.0f

@interface MessageCell : UITableViewCell<TTTAttributedLabelDelegate, SDWebImageManagerDelegate>

@property (strong, nonatomic) IBOutlet Message *message;
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (strong, nonatomic) IBOutlet UILabel *timestampLabel;
@property (strong, nonatomic) IBOutlet UIImageView *avatar;
@property (strong, nonatomic) IBOutlet UILabel *bodyLabel;
@property (strong, nonatomic) IBOutlet UIImageView *attach;
@property (strong, nonatomic) IBOutlet UILabel *summaryLabel;

- (void) updateFonts;
- (CGRect) avatarRect;
- (CGRect) timestampRect;
- (CGRect) titleRect;
- (CGRect) bodyRect;
- (CGRect) attachRect;
- (CGRect) summaryRect;

- (CGFloat) heightForCell;

- (UITableView *) getTable;

@end