CatNiP -test sprint-4-interim
catnip
|
00001 // 00002 // IMSLPDelegateDataSource.h 00003 // CatNiP 00004 // 00005 // This class is for using IMSLP sheet music library 00006 // 00007 // Created by Simo M Linkola, tkol on 6/9/11. 00008 // Copyright 2011 __MyCompanyName__. All rights reserved. 00009 // 00010 00011 //#import <Foundation/Foundation.h> 00012 @class CatNiPViewController; 00013 00014 00015 @interface IMSLPDelegateDataSource: UITableViewController<UITableViewDelegate, UITableViewDataSource> 00016 { 00017 NSMutableArray *composers; 00018 NSMutableArray *compositions; 00019 CatNiPViewController *master; 00020 } 00021 00022 @property (nonatomic, retain) IBOutlet CatNiPViewController *master; 00023 @property (copy) NSMutableArray *composers; 00024 @property (copy) NSMutableArray *compositions; 00025 00026 -(id)initWithMaster:(CatNiPViewController *)m; 00027 00028 /*** UITableViewDataSource protocol's functions ***/ 00029 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView; 00030 - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath; 00031 - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath; 00032 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section; 00033 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath; 00034 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath; 00035 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath; 00036 00037 // tableView:cellForRowAtIndexPath: behaviour for libraryTableX's cell. Called from datasource protocol function. 00038 - (UITableViewCell *)cellForRowAtLeftTable: (NSIndexPath *) indexPath; 00039 - (UITableViewCell *)cellForRowAtRightTable: (NSIndexPath *)indexPath; 00040 00041 /*** UITableViewDelegate protocol's functions ***/ 00042 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath; 00043 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath; 00044 00045 // tableView:didSelectRowAtIndexPath: behaviour for libraryTableX's cells. Called from UITableViewDelegate 00046 // protocol function. 00047 - (void)didSelectRowAtLeftTable:(NSIndexPath *)indexPath; 00048 - (void)didSelectRowAtRightTable:(NSIndexPath *)indexPath; 00049 00050 @end