summaryrefslogtreecommitdiff
path: root/Juick/MessageCell.h
blob: 75d46cf50e47e88e565bb572fcd2ad6ec7307524 (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
//
//  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;

@end