CatNiP prefinal
Sähköinen nuottikirja, HY-TKTKL-OHTUPROJ KESÄ11
/Users/awniemel/Notepad-SVN/svn/trunk/CatNiP/CatNiP/ScorePopoverController.h
Go to the documentation of this file.
00001 
00009 #import <UIKit/UIKit.h>
00010 
00011 #import "ScoreListButton.h"
00013 @class CatNiPViewController;
00014 @class LocalCompositionData;
00015 @class CompositionData;
00017 @interface ScorePopoverController : UITableViewController<UITableViewDelegate, UITableViewDataSource>
00018 {
00019     NSString *composer;
00020     NSString *composition;
00021     BOOL editable;
00022     CatNiPViewController *master;
00023     CompositionData *compositionData;
00024 }
00025 /*** Master viewController for nice functions calling for loading and showing sheet music ***/
00026 @property (nonatomic, retain) IBOutlet CatNiPViewController *master;
00027 
00028 /*** Basic info about score. ***/
00029 @property (nonatomic, retain) NSString *composer;
00030 @property (nonatomic, retain) NSString *composition;
00031 @property (nonatomic, retain) CompositionData *compositionData;
00032 
00033 // 
00034 @property BOOL editable; 
00035 
00036 /*** Basic init with masterController set ***/
00037 - (id)initWithStyle:(UITableViewStyle)style masterController:(CatNiPViewController *)controller compositionData:(CompositionData *)compData editable:(BOOL)ed;
00038 
00039 /*** UITableViewDelegate protocol's functions ***/
00040 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section;
00041 - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section;
00042 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath; 
00043 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath; // loads, saves and shows sheets
00044 - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath;
00045 
00046 /*** UITableViewDataSource protocol's functions ***/
00047 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
00048 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
00049 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath;
00050 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath;
00051 
00052 // accessory views for cells
00053 -(UIView *)createAccessoryViewForIndexPath:(NSIndexPath *)indexPath;
00054 -(UIView *)IMSLPAccessoryViewForIndexPath:(NSIndexPath *)indexPath;
00055 -(UIView *)LocalAccessoryViewForIndexPath:(NSIndexPath *)indexPath;
00056 
00057 // different IMSLP accessoryviews
00058 -(UIView *)downloadableAccessoryViewForIndexPath:(NSIndexPath *)indexPath;
00059 -(UIView *)downloadingAccessoryViewForIndexPath:(NSIndexPath *)indexPath;
00060 -(UIView *)downloadedAccessoryViewForIndexPath:(NSIndexPath *)indexPath;
00061 
00062 // buttons for accessory views
00063 -(ScoreListButton *)createDetailButtonForScore:(ScoreData *)score;
00064 -(ScoreListButton *)createDownloadButtonForScore:(ScoreData *)score;
00065 -(ScoreListButton *)createAddToPlaylistButtonForScore:(ScoreData *)score;
00066 -(ScoreListButton *)createCancelButtonForScore:(ScoreData *)score ;
00067 
00068 // accessory views' buttons target-action methods
00069 -(void)downloadScore:(id)button;
00070 -(void)showDetailsForScore:(id)button;
00071 -(void)addToPlaylist:(id)button;
00072 -(void)cancelDownload:(id)button;
00073 
00074 // update progressbar for download
00075 -(void)updateProgressView:(NSTimer *)nt;
00076 
00077 @end
 All Classes Files Functions Variables Enumerations Enumerator Properties Defines