#import <LocalDelegateDataSource.h>
List of all members.
Member Function Documentation
- (void) changeLibraryTypeToLocal |
|
|
|
- (UITableViewCell *) createTableCellLeft: |
|
(NSIndexPath *) |
indexPath |
|
Prototype for libTabL's tableView:cellForRowAtIndexPath function.
Creates standard cell for application and assigns cell.textLabel.text = _composers[[indexPath row]].
- Parameters:
-
libTabL | UITableView which cells are generated in this function |
cellForRowAtIndexPath | indexPath for cell to be created in libTabL |
- Returns:
- UITableViewCell for given parametres
- (UITableViewCell *) createTableCellRight: |
|
(NSIndexPath *) |
indexPath |
|
Prototype for libTabR's tableView:cellForRowAtIndexPath function.
Creates standard cell for application and assigns cell.textLabel.text = _compositions[[indexPath row]].
- Parameters:
-
libTabR | UITableView which cells are generated in this function |
cellForRowAtIndexPath | indexPath for cell to be created in libTabR |
- Returns:
- UITableViewCell for given parametres
- (void) didSelectRowAtLeftTable: |
|
(NSIndexPath *) |
indexPath |
|
libTabL's implementation of tableView:didSelectRowAtIndexPath.
Shows _libTabR if hidden and reloads it's data.
- Parameters:
-
libTabL | choosing the left library table |
didSelectRowAtIndexPath | locating the new selected row in tableView |
- (void) didSelectRowAtRightTable: |
|
(NSIndexPath *) |
indexPath |
|
libTabR's implementation of tableView:didSelectRowAtIndexPath.
Using gesture recognizer initialized in viewDidLoad instead to prevent popping ScorePopoverController in new UIPopoverController with every search in _libTabR.
- Parameters:
-
libTabR | choosing the right side library table |
didSelectRowAtIndexPath | locating the new selected row in tableView |
find local scores of selected composition
- (NSInteger) numberOfSectionsInTableView: |
|
(UITableView *) |
tableView |
|
UITableViewDataSource protocol function's implementation.
- Parameters:
-
numberOfSectionsInTableView | |
- Returns:
- 1
- (BOOL) tableView: |
|
(UITableView *) |
tableView |
canEditRowAtIndexPath: |
|
(NSIndexPath *) |
indexPath |
|
|
| |
UITableViewDataSource function's implementation
Make rows in _libTabR editable if playlist is selected from _libTabL.
- Parameters:
-
tableView | _libTabR or _libTabL |
canEditRowAtIndexPath | indexPath to cell in tableView |
- Returns:
- YES if tableView == _libTabR, LIBRARYTYPE == LOCAL and selected section in _libTabL == PLAYLISTS. Otherwise returns NO.
- (BOOL) tableView: |
|
(UITableView *) |
tableView |
canMoveRowAtIndexPath: |
|
(NSIndexPath *) |
indexPath |
|
|
| |
UITableViewDataSource function's implementation
dummy implementation. Check framework's API if you want to add functionality in here.
- Returns:
- NO;
- (UITableViewCell *) tableView: |
|
(UITableView *) |
tableView |
cellForRowAtIndexPath: |
|
(NSIndexPath *) |
indexPath |
|
|
| |
Mandatory UITableViewDataSource function's implementation
Calls proper UITableView's tableView:cellForRowAtIndexPath for which the cell is needed.
- Parameters:
-
tableView | _libTabL or _libTabR |
cellForRowAtIndexPath | indexPath for cell to be created in tableView |
- Returns:
- UITableViewCell for given parametres
- (void) tableView: |
|
(UITableView *) |
tableView |
commitEditingStyle: |
|
(UITableViewCellEditingStyle) |
editingStyle |
forRowAtIndexPath: |
|
(NSIndexPath *) |
indexPath |
|
|
| |
- (void) tableView: |
|
(UITableView *) |
tableView |
didSelectRowAtIndexPath: |
|
(NSIndexPath *) |
indexPath |
|
|
| |
UITableViewDelegate protocol function's implementation.
Calls spesified tableView's handler to determine behaviour. Check framework's API for details.
- Parameters:
-
tableView | object informing the delegate about the new row selection. |
didSelectRowAtIndexPath | locating the new selected row in tableView |
- (CGFloat) tableView: |
|
(UITableView *) |
tableView |
heightForRowAtIndexPath: |
|
(NSIndexPath *) |
indexPath |
|
|
| |
UITableViewDelegate protocol function's implementation.
Calculate table's row height dynamically based on cell.textLabel.text length. Height is calculated with following formula: (([cell.textLabel.text length] / 34) * 17) + 50
- Parameters:
-
tableView | for which the height is calculated |
heightForRowAtIndexPath | the row for which the height is calculated |
- Returns:
- row's height in CGFloat type
- (void) tableView: |
|
(UITableView *) |
tableView |
moveRowAtIndexPath: |
|
(NSIndexPath *) |
fromIndexPath |
toIndexPath: |
|
(NSIndexPath *) |
toIndexPath |
|
|
| |
UITableViewDataSource function's implementation
dummy implementation. Check framework's API if you want to add functionality in here.
- (NSInteger) tableView: |
|
(UITableView *) |
tableView |
numberOfRowsInSection: |
|
(NSInteger) |
section |
|
|
| |
Mandatory UITableViewDataSource protocol function's implementation.
- Parameters:
-
tableView | |
numberOfRowsInSection | |
- Returns:
- number of composers or compositions depending on tableView
Member Data Documentation
Property Documentation
- (NSMutableArray*) allLocalScores [read, write, retain] |
- (NSMutableDictionary*) composerDictionary [read, write, retain] |
Stores composer's (key) all compositions as a NSMutableSet (value)
- (NSArray *) composers [read, write, copy] |
- (NSArray *) compositions [read, write, copy] |
The documentation for this class was generated from the following files: