#import <CatNiPViewController.h>
List of all members.
Member Function Documentation
- (NSInteger) arrayToSearch: |
|
(NSArray *) |
array |
textToSearch: |
|
(NSString *) |
text |
|
|
| |
very lazy search from arrayToSearch with given textToSearch.
Search's arrayToSearch for textToSearch by comparing each index in arrayToSearch with textToSearch. If exact match is found returns that index else if arrayToSearch's string is compared to be later than textToSearch will return that index. Otherwise will return 0 (ie. all arrayToSearch's strings are compared to be before textToSearch.)
- Parameters:
-
arrayToSearch | searches the array with the given text |
textToSearch | given text that is searched from the array |
- Returns:
- exact match or one after it. If no such index, then returns 0
- (void) configureCell: |
|
(UITableViewCell *) |
cell |
|
Configures cell for default appearance.
Default values are:
textLabel.lineBreakMode= UILineBreakModeWordWrap
textLabel.numberOfLines = 0
textLabel.font = defaultFont
selectionStyle = UITableViewCellSelectionStyleGray
- Parameters:
-
configureCell | UITableViewCell to be configurated |
- (IBAction) fitToWidth: |
|
(id) |
sender |
|
- (void) hideToolbarWithAnimation |
|
|
|
hide toolbar with animation
- (void) hideViewWithAnimation: |
|
(UIView *) |
view |
|
show any view with animation
Open ScorePopoverController's view in UIPopoverController.
Initializes ScorePopoverController with data about selected composition's scores loaded from IMSLP's library. Popover is sized to 500 x 400 pixels and the arrow points to the cell which opened the popover. Default arrow direction is right. Check ScorePopOverController for details about it's contents.
Open ScorePopoverController's view in UIPopoverController.
Initializes ScorePopoverController with data about selected composition's scores loaded from IMSLP's library. Popover is sized to 500 x 400 pixels and the arrow points to the cell which opened the popover. Default arrow direction is right. Check ScorePopOverController for details about it's contents.
- (void) scoreView_tapped: |
|
(UIGestureRecognizer *) |
recognizer |
|
Master method for recognizing tapping gestures in scoresView
If tapping is done near top border of view will show toolbar and if tapping is done near right border of view shows scrollbar, else will hide all other UI elements than scoresView
- Parameters:
-
scoreView_tapped | UIGestureRecognizer that sends the message |
- (void) searchBar: |
|
(UISearchBar *) |
searchBar |
textDidChange: |
|
(NSString *) |
searchText |
|
|
| |
UISearchBarDelegate protocol function's implementation.
Searches from either composers (left library table) or compositions (right library table) depending on which of them is selected.
Not supported atm. because of performance issues. ie. in long tables every letter takes about half a second or longer to be searched and makes longer search strings pain to write.
- Parameters:
-
searchBar | either left (composers) or right (compositions) |
textDidChange | search text that was written |
- (void) searchBarSearchButtonClicked: |
|
(UISearchBar *) |
searchBar |
|
UISearchBarDelegate protocol function's implementation.
Basic search behaviour for both _libSearchL and _libSearchR. Searches _composer or _composition array for searchBar's text with arrayToSearch:textToSearch-function and selects the row returned by that function.
- Parameters:
-
searchBarSearchButtonClicked | _libSearchL or _libSearchR |
- (IBAction) showHideLibrary: |
|
(id) |
sender |
|
Hide and show sheet search UI elements.
- Parameters:
-
showHideLibrary | hides and shows sender's search UI elements |
- (IBAction) showHideNotes: |
|
(id) |
sender |
|
Shows and hides the notes popover.
- Parameters:
-
sender | The element that sent the action, ideally _notesButton. |
- Returns:
- Nothing.
- (void) showScoreSheets: |
|
(NSIndexPath *) |
indexPath |
|
Method for loading sheets defined in indexPath in scorePopover.
Should hide all UI elements after loading and show new sheets in _noteView.
- Parameters:
-
showScoreSheets | shows score sheets from the index path |
- (void) showToolbarWithAnimation |
|
|
|
show toolbar with animation
- (void) showViewWithAnimation: |
|
(UIView *) |
view |
|
show any view with animation
- (UITableViewCell *) tableView: |
|
(UITableView *) |
tb |
createCellWithIdentifier: |
|
(NSString *) |
identifier |
|
|
| |
Member Data Documentation
- (UISegmentedControl*) _libType [protected] |
- (UIPopoverController*) notesPop [protected] |
- (UIPopoverController*) scorePop [protected] |
Property Documentation
- (IBOutlet UIActivityIndicatorView*) activityIndicatorLeft [read, write, retain] |
- (IBOutlet UIBarButtonItem*) libraryButton [read, write, retain] |
- (NSMutableArray*) libraryDataTableLeft [read, write, retain] |
- (NSMutableArray*) libraryDataTableRight [read, write, retain] |
- (IBOutlet UISearchBar*) librarySearchbarLeft [read, write, retain] |
- (IBOutlet UISearchBar*) librarySearchbarRight [read, write, retain] |
- (IBOutlet UITableView*) libraryTableViewLeft [read, write, retain] |
- (IBOutlet UITableView*) libraryTableViewRight [read, write, retain] |
- (IBOutlet UISegmentedControl*) libraryType [read, write, retain] |
- (IBOutlet UIView*) libraryViewLeft [read, write, retain] |
- (IBOutlet UIView*) libraryViewRight [read, write, retain] |
- (IBOutlet UIBarButtonItem*) notesButton [read, write, retain] |
- (IBOutlet UIScoreView*) scoreView [read, write, retain] |
- (IBOutlet UISegmentedControl*) searchType [read, write, retain] |
- (IBOutlet UIToolbar*) toolbar [read, write, retain] |
- (IBOutlet UIView*) toolbarView [read, write, retain] |
The documentation for this class was generated from the following files: