//
//  CSFileFrameModel.h
//  zhuxun
//
//  Created by winsoft on 17/6/16.
//
//

#import <Foundation/Foundation.h>
#import "CSFileModel.h"

//FONT
#define FileNameFont FontType(18, 16)
#define FileCreateTimeFont FontType(14, 12)

#define FileExtensionViewH 46
@interface CSFileFrameModel : NSObject
@property (nonatomic , assign, readonly) CGRect headerIconImageViewFrame;
@property (nonatomic , assign, readonly) CGRect fileNameLabelFrame;
@property (nonatomic , assign, readonly) CGRect fileCreateTimeLabelFrame;
@property (nonatomic , assign, readonly) CGRect fileSizeLabelFrame;
@property (nonatomic , assign, readonly) CGRect fileExtensionSwithImageViewFrame;
@property (nonatomic , assign, readonly) CGRect fileExtensionViewFrame;

@property (nonatomic , copy, readonly) NSString *strServerTime;
@property (nonatomic , copy, readonly) NSString *strUpdateTime;
@property (nonatomic , copy, readonly) NSString *fileSizeStr;

/**
 *  height base on opswithon.
 */
@property (nonatomic , assign, readonly) CGFloat cellHeight;

@property (nonatomic , strong, readonly) CSFileModel *fileModel;

- (instancetype)initWithFileModel:(CSFileModel *)fileModel;
//项目重命名,需要重新计算尺寸和高度
- (void)renameItemWithNewFileModel:(CSFileModel *)fileModel;
@property (nonatomic , assign) BOOL isFileExtensionOP;
@property (nonatomic , assign) BOOL isSelected;

@end
