JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MusicDetailView.h
Go to the documentation of this file.
1
21
22#import <UIKit/UIKit.h>
23
25#import "SearchPackIDView.h"
26
28@class EditModalView;
32@class ScoreRecord;
33@class SearchPackIDView;
34@class TuneInfo;
35
36NS_ASSUME_NONNULL_BEGIN
37
47@interface MusicDetailView : UIView <UIScrollViewDelegate,
48 UITextFieldDelegate,
49 UINavigationControllerDelegate,
51 UIPopoverPresentationControllerDelegate,
53
60- (instancetype)initWithFrame:(CGRect)frame;
61
68- (void)setInfo:(nullable TuneInfo *)info score:(nullable id)score;
69
76- (void)setExtendInfo:(nullable TuneInfo *)info score:(nullable id)score;
77
82- (void)clearInfo;
83
89- (void)loadContentFromDictionary:(nullable NSDictionary *)dict;
90
97- (void)loadContentFromPath:(nullable NSString *)path orData:(nullable NSData *)data;
98
104- (void)show:(BOOL)show;
105
110- (void)hostShareCancelled;
111
118- (void)showDataProgress:(BOOL)show animated:(BOOL)animated;
119
125- (void)activateAnim:(BOOL)activate;
126
132- (void)pushLink:(nullable id)sender;
133
140- (void)pushRecommend:(nullable id)sender;
141
147- (void)packIDSearchEnd:(nullable SearchPackIDView *)view;
148
154- (void)packIDSearchCancel:(nullable SearchPackIDView *)view;
155
161- (nullable NSString *)getRecommendString;
162
167- (void)searchViewDealloc;
168
175- (void)socialSend:(nullable NSString *)service sendText:(nullable NSString *)text;
176
182- (void)sendTwitter:(nullable NSString *)text;
183
188- (void)resetScore;
189
195- (void)putScore:(nullable ScoreRecord *)score;
196
202- (void)putExtendScore:(nullable ScoreRecord *)score;
203
208- (void)closePopWindow;
209
214- (void)close;
215
221- (nullable NSDictionary *)infoDictForShare;
222
227- (void)loadEditFile;
228
233- (void)saveEditFile;
234
240
247
254- (BOOL)checkEnableUpload;
255
261- (BOOL)checkEnableEdit;
262
268- (void)downloadEnd:(nullable id)sender;
269
276- (void)moveStore:(nullable id)store packID:(nullable NSString *)packID;
277
283
289- (void)dtpGesture:(nullable UITapGestureRecognizer *)gesture;
290
295- (void)refreshStartButton;
296
302- (void)lpGesture:(nullable UILongPressGestureRecognizer *)gesture;
303
308- (void)changeExtendMode;
309
316- (CGPoint)getDifficultyPos:(int)difficulty;
317
322- (void)refreshInfo;
323
324#pragma mark - Properties
325
327@property(nonatomic, strong, nullable) TuneInfo *info;
329@property(nonatomic, strong, nullable) UIView *coverView;
331@property(nonatomic, strong, nullable) UIImageView *artworkView;
333@property(nonatomic, strong, nullable) UIImageView *reflectionArtworkView;
335@property(nonatomic, strong, nullable) UIImageView *tuneNameView;
337@property(nonatomic, strong, nullable) UIButton *buttonStartPlay;
339@property(nonatomic, strong, nullable) UIButton *buttonHostSharePlay;
341@property(nonatomic, strong, nullable) UILabel *labelShareMessage;
343@property(nonatomic, strong, nullable) UIProgressView *shareDataProgress;
345@property(nonatomic, strong, nullable) UIButton *buttonLink;
347@property(nonatomic, strong, nullable) UIImageView *randView;
349@property(nonatomic, strong, nullable) UIButton *btnRecommendTwitter;
351@property(nonatomic, strong, nullable) UIButton *btnRecommendFacebook;
354@property(nonatomic, assign) BOOL isShared;
356@property(nonatomic, strong, nullable) UIScrollView *scrollView;
359@property(nonatomic, strong, nullable) EditFileListViewDeleteController *pFileListView;
361@property(nonatomic, strong, nullable) UIPopoverController *pLoadList;
364@property(nonatomic, assign) BOOL isFirstSelect;
366@property(nonatomic, strong, nullable) EditModalView *pEditModalView;
368@property(nonatomic, assign) int editPage;
371@property(nonatomic, strong, nullable) JcfDownloadPageNavController *jcfDownloadPage;
374@property(nonatomic, strong, nullable) JcfManageNavController *jcfMan;
376@property(nonatomic, strong, nullable) NSString *customIndex;
379@property(nonatomic, assign) BOOL isEditInfoOpen;
381@property(nonatomic, assign) char levelBas;
383@property(nonatomic, assign) char levelAdv;
385@property(nonatomic, assign) char levelExt;
387@property(nonatomic, assign) int scoreBas;
389@property(nonatomic, assign) int scoreAdv;
391@property(nonatomic, assign) int scoreExt;
394@property(nonatomic, assign) BOOL fullComboBas;
397@property(nonatomic, assign) BOOL fullComboAdv;
400@property(nonatomic, assign) BOOL fullComboExt;
402@property(nonatomic, strong, nullable) NSData *mbarBas;
404@property(nonatomic, strong, nullable) NSData *mbarAdv;
406@property(nonatomic, strong, nullable) NSData *mbarExt;
408@property(nonatomic, assign) BOOL isPad;
411@property(nonatomic, assign) BOOL isRetina;
413@property(nonatomic, assign) BOOL isStarted;
416@property(nonatomic, assign) BOOL isSharedStartable;
418@property(nonatomic, strong, nullable) TuneInfo *extendInfo;
420@property(nonatomic, assign) char extendLevelBas;
422@property(nonatomic, assign) char extendLevelAdv;
424@property(nonatomic, assign) char extendLevelExt;
426@property(nonatomic, assign) int extendScoreBas;
428@property(nonatomic, assign) int extendScoreAdv;
430@property(nonatomic, assign) int extendScoreExt;
433@property(nonatomic, assign) BOOL extendFullComboBas;
436@property(nonatomic, assign) BOOL extendFullComboAdv;
439@property(nonatomic, assign) BOOL extendFullComboExt;
441@property(nonatomic, strong, nullable) NSData *extendMbarBas;
444@property(nonatomic, strong, nullable) NSData *extendMbarAdv;
447@property(nonatomic, strong, nullable) NSData *extendMbarExt;
450@property(nonatomic, weak, nullable) MusicSelectViewController *controller;
452@property(nonatomic, strong, nullable) SearchPackIDView *searchPackView;
454@property(nonatomic, assign, nullable) NSString *socialType;
456@property(nonatomic, strong, nullable) UIView *topcover;
457
458@end
459
463@interface MusicDetailView (ThemeOverrides)
464
475- (void)infoChange:(int)difficulty;
476
477@end
478
479NS_ASSUME_NONNULL_END
480
481// code: language=Objective-C
482// kate: hl Objective-C;
483// vim: set ft=objc :
A popover listing the player's saved edit charts.
The modal board that looks up which purchasable pack contains a given tune.
A table of saved edit charts that supports deleting a chart by swiping a row.
Definition EditFileListViewDeleteController.h:50
A modal navigation controller that edits a custom sequence's metadata.
Definition EditModalView.h:56
Hosts the jubeatLab custom-sequence download web page in a navigation controller.
Definition JcfDownloadPageNavController.h:40
Hosts the downloaded custom-sequence management list in a navigation controller.
Definition JcfManageNavController.h:39
The music-selection detail card shown when a tune is picked.
Definition MusicDetailView.h:52
UIScrollView * scrollView
The edit-file list scroll view.
Definition MusicDetailView.h:356
NSData * mbarExt
The base-chart extreme music bar.
Definition MusicDetailView.h:406
JcfManageNavController * jcfMan
The jcf manage navigation controller.
Definition MusicDetailView.h:374
UIProgressView * shareDataProgress
The share-data progress bar.
Definition MusicDetailView.h:343
char levelExt
The base-chart extreme level.
Definition MusicDetailView.h:385
NSString * socialType
The selected social service type.
Definition MusicDetailView.h:454
UIButton * buttonHostSharePlay
The host-share-play button.
Definition MusicDetailView.h:339
UIImageView * randView
The random-select marker.
Definition MusicDetailView.h:347
EditFileListViewDeleteController * pFileListView
The edit-file delete list controller.
Definition MusicDetailView.h:359
void loadEditFile()
Loads the tune's last edit file into the shared edit data manager, or clears it.
Definition MusicDetailView.m:524
BOOL extendFullComboBas
The extend-chart basic full-combo flag.
Definition MusicDetailView.h:433
void editModalViewDelegateSaveEditFile()
Edit-modal delegate: forwards to -saveEditFile.
Definition MusicDetailView.m:544
NSString * customIndex
The share index string.
Definition MusicDetailView.h:376
NSData * extendMbarExt
The extend-chart extreme music bar.
Definition MusicDetailView.h:447
UIPopoverController * pLoadList
The edit-file list popover.
Definition MusicDetailView.h:361
char levelAdv
The base-chart advanced level.
Definition MusicDetailView.h:383
UIImageView * tuneNameView
The tune-name plate.
Definition MusicDetailView.h:335
BOOL isShared
Whether the card is in host-share mode.
Definition MusicDetailView.h:354
TuneInfo * info
The base-chart tune.
Definition MusicDetailView.h:327
MusicSelectViewController * controller
The owning music-select controller.
Definition MusicDetailView.h:450
NSData * mbarAdv
The base-chart advanced music bar.
Definition MusicDetailView.h:404
UIButton * buttonLink
The link-to-store button.
Definition MusicDetailView.h:345
UIButton * buttonStartPlay
The start-play button.
Definition MusicDetailView.h:337
int extendScoreAdv
The extend-chart advanced score.
Definition MusicDetailView.h:428
void hostShareCancelled()
Empty in this build.
Definition MusicDetailView.m:219
BOOL isStarted
Whether play has started.
Definition MusicDetailView.h:413
UIImageView * artworkView
The artwork image.
Definition MusicDetailView.h:331
BOOL isSharedStartable
Whether the host share is startable.
Definition MusicDetailView.h:416
BOOL extendFullComboExt
The extend-chart extreme full-combo flag.
Definition MusicDetailView.h:439
BOOL isRetina
Whether the device is a retina phone.
Definition MusicDetailView.h:411
char extendLevelExt
The extend-chart extreme level.
Definition MusicDetailView.h:424
UIImageView * reflectionArtworkView
The mirrored-artwork reflection.
Definition MusicDetailView.h:333
BOOL extendFullComboAdv
The extend-chart advanced full-combo flag.
Definition MusicDetailView.h:436
BOOL fullComboBas
The base-chart basic full-combo flag.
Definition MusicDetailView.h:394
SearchPackIDView * searchPackView
The pack-id search sheet.
Definition MusicDetailView.h:452
int editPage
The current edit page index.
Definition MusicDetailView.h:368
int scoreBas
The base-chart basic score.
Definition MusicDetailView.h:387
BOOL checkEnableInfoChange()
Whether the tune's info may be changed (no host share, a local last-edit file, iPad).
Definition MusicDetailView.m:549
int extendScoreBas
The extend-chart basic score.
Definition MusicDetailView.h:426
NSData * mbarBas
The base-chart basic music bar.
Definition MusicDetailView.h:402
int extendScoreExt
The extend-chart extreme score.
Definition MusicDetailView.h:430
void setStartButtonEnable()
Empty in this build.
Definition MusicDetailView.m:618
UIButton * btnRecommendTwitter
The Twitter recommend button.
Definition MusicDetailView.h:349
void changeExtendMode()
Empty in this build.
Definition MusicDetailView.m:640
nullable NSString * getRecommendString()
The recommend string from the pack-search view, or nil when none is installed.
Definition MusicDetailView.m:317
BOOL isEditInfoOpen
Whether the edit-info modal is open.
Definition MusicDetailView.h:379
UIView * coverView
The full-card dimming cover.
Definition MusicDetailView.h:329
nullable NSDictionary * infoDictForShare()
Builds the share dictionary by decrypting the tune's packed assets over its base dict.
Definition MusicDetailView.m:460
BOOL fullComboExt
The base-chart extreme full-combo flag.
Definition MusicDetailView.h:400
void refreshStartButton()
Empty in this build.
Definition MusicDetailView.m:627
void close()
Asks the controller to close the detail view.
Definition MusicDetailView.m:453
BOOL checkEnableUpload()
Whether the tune may be uploaded (as -checkEnableInfoChange plus a non-empty note count).
Definition MusicDetailView.m:564
BOOL checkEnableEdit()
Whether the tune's chart may be edited (no host share, a local last-edit file, iPad).
Definition MusicDetailView.m:580
void clearInfo()
Empty in this build.
Definition MusicDetailView.m:203
BOOL isFirstSelect
Whether this is the first selection.
Definition MusicDetailView.h:364
UIButton * btnRecommendFacebook
The Facebook recommend button.
Definition MusicDetailView.h:351
void closePopWindow()
Dismisses the edit popover or jcf download page and closes the detail view.
Definition MusicDetailView.m:442
BOOL isPad
Whether the device is an iPad.
Definition MusicDetailView.h:408
char levelBas
The base-chart basic level.
Definition MusicDetailView.h:381
void refreshInfo()
Empty in this build.
Definition MusicDetailView.m:649
TuneInfo * extendInfo
The extend-chart tune.
Definition MusicDetailView.h:418
BOOL fullComboAdv
The base-chart advanced full-combo flag.
Definition MusicDetailView.h:397
void searchViewDealloc()
Removes the pack-search view and the dimming cover, then releases both.
Definition MusicDetailView.m:325
void resetScore()
Resets every base and extend score to -1, clears full-combo flags, and drops music bars.
Definition MusicDetailView.m:356
UILabel * labelShareMessage
The share-status message label.
Definition MusicDetailView.h:341
int scoreExt
The base-chart extreme score.
Definition MusicDetailView.h:391
NSData * extendMbarBas
The extend-chart basic music bar.
Definition MusicDetailView.h:441
char extendLevelAdv
The extend-chart advanced level.
Definition MusicDetailView.h:422
EditModalView * pEditModalView
The edit modal.
Definition MusicDetailView.h:366
UIView * topcover
The recommend dimming cover.
Definition MusicDetailView.h:456
JcfDownloadPageNavController * jcfDownloadPage
The jcf download navigation controller.
Definition MusicDetailView.h:371
int scoreAdv
The base-chart advanced score.
Definition MusicDetailView.h:389
char extendLevelBas
The extend-chart basic level.
Definition MusicDetailView.h:420
void saveEditFile()
Saves the shared edit data back to the tune's last edit file, when one exists.
Definition MusicDetailView.m:535
NSData * extendMbarAdv
The extend-chart advanced music bar.
Definition MusicDetailView.h:444
The screen the player picks a song from.
Definition MusicSelectViewController.h:73
One tune's scores, as stored by Core Data: the per-difficulty best score, play-mode marker,...
Definition ScoreRecord.h:19
A gradient-backed board that resolves the pack owning a tune and reports the outcome.
Definition SearchPackIDView.h:55
A tune, its three difficulty levels, and how it sorts.
Definition TuneInfo.h:20
What an EditFileListViewController tells its owner.
Definition EditFileListViewController.h:26
What a SearchPackIDView tells its owner once the pack lookup settles.
Definition SearchPackIDView.h:33