CatNiP -test sprint-4-interim
catnip
/Users/awniemel/Notepad-SVN/svn/trunk/CatNiP/CatNiP/LocalDelegateDataSource.h
Go to the documentation of this file.
00001 //
00002 //  LocalDelegateDataSource.h
00003 //  CatNiP
00004 //
00005 //  Created by Simo M Linkola, tkol on 6/9/11.
00006 //  Copyright 2011 __MyCompanyName__. All rights reserved.
00007 //
00008 
00009 #import <Foundation/Foundation.h>
00010 @class CatNiPViewController;
00011 
00012 @interface LocalDelegateDataSource: UITableViewController<UITableViewDelegate, UITableViewDataSource>
00013 {
00014     NSArray *composers;
00015     NSArray *compositions;
00016     CatNiPViewController *master;
00017 }
00018 
00019 @property (nonatomic, retain) IBOutlet CatNiPViewController *master;
00020 @property (copy) NSArray *composers;
00021 @property (copy) NSArray *compositions;
00022 @property (retain) NSMutableArray *allLocalScores;
00023 
00025 @property (retain) NSMutableDictionary *composerDictionary;
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 libTabX's cell. Called from datasource protocol function.
00039 - (UITableViewCell *)createTableCellLeft: (NSIndexPath *) indexPath;
00040 - (UITableViewCell *)createTableCellRight: (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 
00046 // tableView:didSelectRowAtIndexPath: behaviour for libTabX's cells. Called from UITableViewDelegate
00047 // protocol function.
00048 - (void)didSelectRowAtLeftTable:(NSIndexPath *)indexPath;
00049 - (void)didSelectRowAtRightTable:(NSIndexPath *)indexPath;
00050 
00051 -(void)changeLibraryTypeToLocal;
00052 
00053 @end
 All Classes Files Functions Variables Properties Defines