CatNiP -test sprint-4-interim
catnip
/Users/awniemel/Notepad-SVN/svn/trunk/CatNiP/CatNiP/ScorePopoverController.h
Go to the documentation of this file.
00001 //
00002 //  ScorePopoverController.h
00003 //  CatNipProto1-Sprint
00004 //
00005 //  Created by Simo M Linkola, tkol on 5/24/11.
00006 //  Copyright 2011 __MyCompanyName__. All rights reserved.
00007 //
00008 
00009 #import <UIKit/UIKit.h>
00010 #import "CatNiPViewController.h"
00011 #import "IMSLPQueryHelper.h"
00012 #import "IMSLPScoreData.h"
00013 #import "IMSLPCompositionData.h"
00014 
00015 @interface ScorePopoverController : UITableViewController<UITableViewDelegate, UITableViewDataSource>
00016 {
00017     NSString *composer;
00018     NSString *composition;
00019     NSString *scoreInfo;
00020     UITableView *scoresTableView;
00021     CatNiPViewController *master;
00022     IMSLPCompositionData *_readComposition;
00023      
00024 }
00025 
00026 /*** TableView to wrap all scores into ***/
00027 @property (nonatomic, retain) IBOutlet UITableView *scoresTableView;
00028 
00029 /*** Master viewController for nice functions calling for loading and showing sheet music ***/
00030 @property (nonatomic, retain) IBOutlet CatNiPViewController *master;
00031 
00032 /*** Basic info about score. ***/
00033 @property (nonatomic, retain) NSString *composer;
00034 @property (nonatomic, retain) NSString *composition;
00035 
00036 @property (nonatomic, retain) NSString *scoreInfo; // Will need to change to an array for different scores
00037 
00038 /*** Basic init with masterController set ***/
00039 - (id)initWithStyle:(UITableViewStyle)style masterController:(CatNiPViewController *)controller IMSLPCompositionData:(IMSLPCompositionData *)compData;
00040 
00041 - (id)initWithStyle:(UITableViewStyle)style masterController:(CatNiPViewController *)controller LocalCompositionData:(LocalCompositionData *)compData;
00042 
00043 /*** UITableViewDelegate protocol's functions ***/
00044 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section;
00045 - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section;
00046 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath; 
00047 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath; // loads, saves and shows sheets
00048 - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath; // opens detailPopover
00049 
00050 /*** UITableViewDataSource protocol's functions ***/
00051 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
00052 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
00053 
00054 
00055 @end
 All Classes Files Functions Variables Properties Defines