CatNiP docutest
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 //
00002 //  LocalDelegateDataSource.m
00003 //  CatNiP
00004 //
00005 //  Delegate and datasource for CatNipViewController's tableviews' when
00006 //  LIBRARYTYPE == LOCAL. Uses composerDictionary made from local data
00007 //  as datasource.
00008 //
00009 //  API up to date 28.6.2011
00010 //
00011 #import <Foundation/Foundation.h>
00012 @class CatNiPViewController;
00013 
00014 @interface LocalDelegateDataSource: UITableViewController<UITableViewDelegate, UITableViewDataSource>
00015 {
00016     NSArray *composers;
00017     NSArray *compositions;
00018     CatNiPViewController *master;
00019 }
00020 
00021 @property (nonatomic, retain) IBOutlet CatNiPViewController *master;
00022 @property (copy) NSArray *composers;
00023 @property (copy) NSArray *compositions;
00024 @property (retain) NSMutableArray *allLocalScores;
00025 
00027 @property (retain) NSMutableDictionary *composerDictionary;
00028 
00029 -(id)initWithMaster:(CatNiPViewController *)m;
00030 
00031 /*** UITableViewDataSource protocol's functions ***/
00032 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
00033 - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath;
00034 - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath;
00035 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
00036 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath; 
00037 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath;
00038 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath;
00039 
00040 // tableView:cellForRowAtIndexPath: behaviour for libTabX's cell. Called from datasource protocol function.
00041 - (UITableViewCell *)createTableCellLeft: (NSIndexPath *) indexPath;
00042 - (UITableViewCell *)createTableCellRight: (NSIndexPath *)indexPath;
00043 
00044 /*** UITableViewDelegate protocol's functions ***/
00045 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
00046 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
00047 - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section;
00048 - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section;
00049 - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section;
00050 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section;
00051 - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath;
00052 
00053 // tableView:didSelectRowAtIndexPath: behaviour for libTabX's cells. Called from UITableViewDelegate
00054 // protocol function.
00055 - (void)didSelectRowAtLeftTable:(NSIndexPath *)indexPath;
00056 - (void)didSelectRowAtRightTable:(NSIndexPath *)indexPath;
00057 
00058 - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;
00059 /*** set master's delegates and datasources to self ***/
00060 -(void)changeLibraryTypeToLocal;
00061 
00062 /***  update tableviews and local data types ***/
00063 -(void)updateTables;
00064 
00065 @end
 All Classes Files Functions Variables Enumerations Enumerator Properties Defines