//
//  DetailRelatedCell.h
//  RedAnt ERP Mobile
//
//  Created by Ray on 14-7-31.
//  Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
//

#import <UIKit/UIKit.h>
@class DetailTopicCell;
@protocol DetailRelatedCellDelegate <NSObject>
@required

- (void) TopicItemClicked:(NSString*) product_id category:(NSString*) category;
//- (void) LongPress:(UIView*)view row:(int) x column:(int) y;
//- (void) LongPress:(UIView*)view row:(int) x;
//- (void) Tap:(UIView*)view row:(int) x column:(int) y;
//- (void) Tap:(UIView*)view row:(int) x;
@end



@interface DetailTopicCell : UITableViewCell<UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>
{
@private
    //    id <MDSpreadViewDataSource>__unsafe_unretained _dataSource;
    id <DetailRelatedCellDelegate>  __weak itemdelegate;
}
@property (strong, nonatomic) IBOutlet UICollectionView *topicCollectionView;

@property (weak, nonatomic) id <DetailRelatedCellDelegate> itemdelegate;
@property (strong, nonatomic) NSDictionary* related_data;
-(void) begin_refresh;
-(void) end_refresh;
@property (strong, nonatomic) IBOutlet UILabel *refreshLabel;

@end



/*

 @class SimpleGrid;
 @protocol SimpleGridDelegate <NSObject>
 @required
 - (void) LongPress:(UIView*)view row:(int) x column:(int) y;
 - (void) LongPress:(UIView*)view row:(int) x;
 - (void) Tap:(UIView*)view row:(int) x column:(int) y;
 - (void) Tap:(UIView*)view row:(int) x;
 @end
 
 
 @interface SimpleGrid : UIScrollView
 {
 @private
 //    id <MDSpreadViewDataSource>__unsafe_unretained _dataSource;
 id <SimpleGridDelegate>  __weak griddelegate;
 }
 //
 @property (weak, nonatomic) id <SimpleGridDelegate> griddelegate;
 
 
*/