JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MusicPlaylistViewController.h
Go to the documentation of this file.
1
15
16#import <UIKit/UIKit.h>
17
21
23
24NS_ASSUME_NONNULL_BEGIN
25
37
41@protocol MusicPlaylistViewControllerDelegate <NSObject>
42
43@optional
44
55- (NSInteger)musicPlaylistViewControllerCurrentSelection:(MusicPlaylistViewController *)controller;
56
65- (void)musicPlaylistViewController:(MusicPlaylistViewController *)controller
66 playlistSelected:(NSInteger)selection
67 selectedMusicID:(NSUInteger)musicID;
68
73- (void)musicPlaylistViewControllerWillClosed:(MusicPlaylistViewController *)controller;
74
75@end
76
80// clang-format off
81// One protocol per line: a continuation line that begins with ": Base <" is read by Doxygen as
82// undocumented ivars named after the trailing protocols. The second protocol is indented rather
83// than aligned because aligning it would pass the column limit.
86// clang-format on
87
93@property(nonatomic) MusicPlaylistListMode listMode;
94
96@property(nonatomic) NSUInteger selectedMusicID;
97
99@property(nonatomic, weak, nullable) id<MusicPlaylistViewControllerDelegate> delegate;
100
107@property(nonatomic, strong, nullable) MusicPlaylistManager *playlistManager;
108
110@property(nonatomic, strong, nullable) UIBarButtonItem *barBtnNew;
111
124- (instancetype)initWithStyle:(UITableViewStyle)style;
125
133- (CGFloat)tableView:(nonnull UITableView *)tableView heightForFooterInSection:(NSInteger)section;
134
142- (nonnull UITableViewCell *)tableView:(nonnull UITableView *)tableView
143 cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
144
151- (NSInteger)numberOfSectionsInTableView:(nonnull UITableView *)tableView;
152
160- (NSInteger)tableView:(nonnull UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
161
169- (void)tableView:(nonnull UITableView *)tableView
170 commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
171 forRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
172
182- (BOOL)tableView:(nonnull UITableView *)tableView
183 canEditRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
184
192- (nullable NSIndexPath *)tableView:(nonnull UITableView *)tableView
193 willSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
194
202- (void)tableView:(nonnull UITableView *)tableView
203 didSelectRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
204
212- (void)tableView:(nonnull UITableView *)tableView
213 willDisplayCell:(nonnull UITableViewCell *)cell
214 forRowAtIndexPath:(nonnull NSIndexPath *)indexPath;
215
224- (void)selectLevel:(nullable NSNumber *)level;
225
231- (void)tapNewPlaylist:(nullable id)sender;
232
237- (void)tapLevelSelect;
238
244- (void)tapClose:(nullable id)sender;
245
254- (void)musicPlaylistCreateWithName:(nullable NSString *)name;
255
261- (void)viewWillAppear:(BOOL)animated;
262
268- (void)viewDidAppear:(BOOL)animated;
269
275- (void)viewWillDisappear:(BOOL)animated;
276
282- (void)viewDidDisappear:(BOOL)animated;
283
288- (void)viewDidLoad;
289
296- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
297
303- (UIInterfaceOrientationMask)supportedInterfaceOrientations;
304
310- (BOOL)shouldAutorotate;
311
312@end
313
314NS_ASSUME_NONNULL_END
315
316// code: language=Objective-C
317// kate: hl Objective-C;
318// vim: set ft=objc :
The screen for naming a new music playlist: a single rounded-rect text field with a navigation bar ca...
A table listing the ten difficulty levels used to filter a music playlist.
The model behind the music-select "playlists" feature: an ordered set of user playlists,...
MusicPlaylistListMode
Which of the two list layouts the controller shows.
Definition MusicPlaylistViewController.h:33
@ MusicPlaylistListModeAddToPlaylist
Pick a playlist to add the current song to.
Definition MusicPlaylistViewController.h:35
@ MusicPlaylistListModePlaylists
Browse the filters, levels, and playlists.
Definition MusicPlaylistViewController.h:34
Manages the user's music playlists, persisting them to a property-list file.
Definition MusicPlaylistManager.h:25
A table view controller managing the user's music playlists.
Definition MusicPlaylistViewController.h:85
UIInterfaceOrientationMask supportedInterfaceOrientations()
The orientations the screen allows.
Definition MusicPlaylistViewController.m:513
BOOL shouldAutorotate()
Whether the screen rotates at all.
Definition MusicPlaylistViewController.m:518
void viewDidLoad()
Disables exclusive-touch propagation across the navigation bar's subviews.
Definition MusicPlaylistViewController.m:105
MusicPlaylistListMode listMode
Which list layout the table shows.
Definition MusicPlaylistViewController.m:154
void tapLevelSelect()
Empty action; the level filter is instead reached through row selection.
Definition MusicPlaylistViewController.m:483
MusicPlaylistManager * playlistManager
The model backing the playlists list.
Definition MusicPlaylistViewController.h:107
NSUInteger selectedMusicID
The music identifier the selections apply to.
Definition MusicPlaylistViewController.h:96
UIBarButtonItem * barBtnNew
The right-hand "new playlist" bar button item.
Definition MusicPlaylistViewController.h:110
id< MusicPlaylistViewControllerDelegate > delegate
The object told about selections and close events.
Definition MusicPlaylistViewController.h:99
Receives the name entered on a MusicPlaylistCreateViewController .
Definition MusicPlaylistCreateViewController.h:21
Notified when the user picks a difficulty level from the list.
Definition MusicPlaylistLevelSelector.h:22