![]() |
CatNiP docutest
Sähköinen nuottikirja, HY-TKTKL-OHTUPROJ KESÄ11
|
00001 // 00002 // IMSLPDelegateDataSource.m 00003 // CatNiP 00004 // 00005 // Delegate and datasource for CatNipViewController's tableviews' when 00006 // LIBRARYTYPE == IMSLP. All composers are downloaded when application 00007 // launches and compositions of spesific composer and scores of spesific 00008 // composition are downloaded when user select's so. 00009 // 00010 // API up to date 28.6.2011 00011 // 00012 #import <Foundation/Foundation.h> 00013 @class CatNiPViewController; 00014 00015 00016 @interface IMSLPDelegateDataSource: UITableViewController<UITableViewDelegate, UITableViewDataSource> 00017 { 00018 NSMutableArray *composers; 00019 NSMutableArray *compositions; 00020 CatNiPViewController *master; 00021 } 00022 00023 @property (nonatomic, retain) IBOutlet CatNiPViewController *master; 00024 @property (copy) NSMutableArray *composers; 00025 @property (copy) NSMutableArray *compositions; 00026 00027 -(id)initWithMaster:(CatNiPViewController *)m; 00028 00029 /*** UITableViewDataSource protocol's functions ***/ 00030 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView; 00031 - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath; 00032 - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath; 00033 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section; 00034 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath; 00035 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath; 00036 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath; 00037 00038 // tableView:cellForRowAtIndexPath: behaviour for libraryTableX's cell. Called from datasource protocol function. 00039 - (UITableViewCell *)cellForRowAtLeftTable: (NSIndexPath *) indexPath; 00040 - (UITableViewCell *)cellForRowAtRightTable: (NSIndexPath *)indexPath; 00041 00042 /*** UITableViewDelegate protocol's functions ***/ 00043 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath; 00044 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath; 00045 - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section; 00046 - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section; 00047 - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section; 00048 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section; 00049 00050 // tableView:didSelectRowAtIndexPath: behaviour for libraryTableX's cells. Called from UITableViewDelegate 00051 // protocol function. 00052 - (void)didSelectRowAtLeftTable:(NSIndexPath *)indexPath; 00053 - (void)didSelectRowAtRightTable:(NSIndexPath *)indexPath; 00054 00055 -(void)changeLibraryTypeToIMSLP; 00056 00057 @end