CatNiP prefinal
Sähköinen nuottikirja, HY-TKTKL-OHTUPROJ KESÄ11
/Users/awniemel/Notepad-SVN/svn/trunk/CatNiP/CatNiP/LocalDelegateDataSource.h
Go to the documentation of this file.
00001 
00009 #import <Foundation/Foundation.h>
00011 @class CatNiPViewController;
00013 @interface LocalDelegateDataSource: UITableViewController<UITableViewDelegate, UITableViewDataSource>
00014 {
00015     NSArray *composers;
00016     NSArray *compositions;
00017     CatNiPViewController *master;
00018 }
00019 
00020 @property (nonatomic, retain) IBOutlet CatNiPViewController *master;
00021 @property (copy) NSArray *composers;
00022 @property (copy) NSArray *compositions;
00023 @property (retain) NSMutableArray *allLocalScores;
00024 
00026 @property (retain) NSMutableDictionary *composerDictionary;
00027 
00028 -(id)initWithMaster:(CatNiPViewController *)m;
00029 
00030 /*** UITableViewDataSource protocol's functions ***/
00031 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
00032 - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath;
00033 - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath;
00034 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
00035 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath; 
00036 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath;
00037 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath;
00038 
00039 // tableView:cellForRowAtIndexPath: behaviour for libTabX's cell. Called from datasource protocol function.
00040 - (UITableViewCell *)createTableCellLeft: (NSIndexPath *) indexPath;
00041 - (UITableViewCell *)createTableCellRight: (NSIndexPath *)indexPath;
00042 
00043 /*** UITableViewDelegate protocol's functions ***/
00044 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
00045 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
00046 - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section;
00047 - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section;
00048 - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section;
00049 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section;
00050 - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath;
00051 
00052 // tableView:didSelectRowAtIndexPath: behaviour for libTabX's cells. Called from UITableViewDelegate
00053 // protocol function.
00054 - (void)didSelectRowAtLeftTable:(NSIndexPath *)indexPath;
00055 - (void)didSelectRowAtRightTable:(NSIndexPath *)indexPath;
00056 
00057 - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;
00058 /*** set master's delegates and datasources to self ***/
00059 -(void)changeLibraryTypeToLocal;
00060 
00061 /***  update tableviews and local data types ***/
00062 -(void)updateTables;
00063 
00064 @end
 All Classes Files Functions Variables Enumerations Enumerator Properties Defines