MyTable.h
资源名称:PushBox.rar [点击查看]
上传用户:qhdwjd2004
上传日期:2020-12-29
资源大小:362k
文件大小:1k
源码类别:
iPhone
开发平台:
Objective-C
- #import <UIKit/UIKit.h>
- #import <UIKit/UITable.h>
- #import <UIKit/UISimpleTableCell.h>
- #import <UIKit/UIImageAndTextTableCell.h>
- #import <UIKit/UITableColumn.h>
- #import <UIKit/UIImage.h>
- #import <GraphicsServices/GraphicsServices.h>
- #import "Map.h"
- @interface MyTable : UITable
- {
- UIView *listView;
- NSString *path;
- int state; // 0 for Chapter. 1 for MAPs
- int maxChapterNum;
- NSMutableArray *fileList;
- UITableColumn *colFilename;
- UITableColumn *colType;
- int selectIndex; // 当前选中项
- }
- -(id)initWithFrame : (struct CGRect)rect;
- -(void)dealloc;
- -(int)numberOfRowsInTable:(UITable *)_table;
- -(UITableCell *)table:(UITable *)table
- cellForRow:(int)row
- column:(UITableColumn *)col;
- -(void)_willDeleteRow:(int)row
- forTableCell:(id)cell
- viaEdge:(int)edge
- animateOthers:(BOOL)animate;
- -(int)swipe:(int)type
- withEvent:(struct __GSEvent *)event;
- -(void)tableRowSelected:(NSNotification *)notification;
- -(int)getState;
- -(void)setState:(int)st;
- -(void)setMaxChapter:(int)chapter;
- -(void)setPath:(NSString *)_path;
- -(void)setView:(UIView *)_mainView;
- -(void)reloadData;
- -(void)itemDelete:(int)index;
- @end
- @interface DeletableCell : UIImageAndTextTableCell
- {
- MyTable *table;
- }
- - (void)setTable:(MyTable *)_table;
- @end