CatNiP -test sprint-4-interim
catnip
|
00001 // 00002 // DetailPopoverController.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 00012 00013 @interface DetailPopoverController : UITableViewController 00014 { 00015 NSString *composer; 00016 NSString *composition; 00017 NSString *scoreName; 00018 NSDictionary *metaDataDict; 00019 NSArray *sortedKeys; 00020 UITableView *detailTableView; 00021 CatNiPViewController *master; 00022 } 00023 00024 /* TableView to wrap score's info */ 00025 @property (nonatomic, retain) IBOutlet UITableView *detailTableView; 00026 00027 /* Basic info of score and its details */ 00028 @property (nonatomic, retain) NSString *composer; 00029 @property (nonatomic, retain) NSString *composition; 00030 @property (nonatomic, retain) NSString *scoreName; 00031 @property (nonatomic, copy) NSDictionary *metaDataDict; 00032 @property (retain) NSArray *sortedKeys; 00033 00034 /*** Master viewController for nice functions calling for loading and showing sheet music ***/ 00035 @property (nonatomic, retain) IBOutlet CatNiPViewController *master; 00036 00037 /*** Basic init with masterController set ***/ 00038 - (id)initWithStyle:(UITableViewStyle)style masterController:(CatNiPViewController *)controller dictionary:(NSDictionary *)dict; 00039 00040 /*** UITableViewDataSource protocol's functions ***/ 00041 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath; 00042 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section; // returns 1 00043 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView; // returns 4 00044 00045 /*** UITableViewDelegate protocol's functions ***/ 00046 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath; 00047 - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section; 00048 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section; 00049 00050 @end