|
JubeatPlus 3.9.11
|
The chart-editor top-level view controller. More...
#include <EditViewController.h>


Instance Methods | |
| (instancetype) | - init |
Initialises the editor: reads the saved adjust-sector offset, resolves the device idiom, builds the EAGLView sized to the screen, and resets the editing state. | |
| (nullable NSString *) | - getDirectoryPath: |
| Resolves (creating if needed) the on-disk directory for a tune's edit charts. | |
| (void) | - loadNotesData |
Loads the note data for the current tune from EditDataManager into the editor state. | |
| (void) | - importNotesData: |
| Imports a downloaded chart file into the editor, merging its metadata over the current editor info. | |
| (void) | - autoSave: |
| Bumps the auto-save counter and saves the chart when it overflows or when forced. | |
| (void) | - saveNotesData |
| Persists the current chart, its editor info, and its summary data to disk. | |
| (void) | - resetEditMember |
| Resets the editor's per-session state to its defaults. | |
| (void) | - setGridButton:type:pos: |
| Sets a grid button's image and frame from a division type and origin. | |
| (void) | - loadView |
| Builds and lays out the editor's OpenGL view and button bar. | |
| (void) | - loadResources |
| Loads the button images, renderer, sequence, audio, and artwork for the current chart. | |
| (void) | - releaseResources |
| Tears down the renderer, sequence, framebuffer, and audio resources. | |
| (void) | - saveScore |
| Discarded persistence stub kept for the interface. | |
| (void) | - startAnimation |
Starts the per-frame display link that drives loop: . | |
| (void) | - stopAnimation |
| Stops the per-frame display link. | |
| (void) | - finishMusic: |
| Handles the BGM-finished notification by clearing the playing flag. | |
| (void) | - addNote: |
| Adds notes to the sequence at every held panel, warning when the marker limit is hit. | |
| (void) | - deleteNote |
| Deletes notes from the sequence at every held panel. | |
| (void) | - stopMusic |
| Stops BGM playback and restores the play button image. | |
| (void) | - controllMusic |
| Clamps playback to the sequence duration and stops music when it runs past the end. | |
| (void) | - loop: |
| The display-link callback: reads touches, updates the sequence, and draws a frame. | |
| (void) | - exeClap |
| Plays the clap sound effect when the sequence passes a clap point. | |
| (void) | - startGame |
| Starts play mode: re-reads the adjust offset, resets the sequence, and applies prefs. | |
| (void) | - pushBtnPause: |
| Toggles BGM playback from the pause button. | |
| (void) | - deletePasteBtn |
| Hides the paste button. | |
| (void) | - changeModeImage: |
| Sets the mode button's background image from an image resource name. | |
| (void) | - pushBtnAdd: |
| Switches to add mode. | |
| (void) | - pushBtnDelete: |
| Switches to delete mode. | |
| (void) | - pushBtnMode: |
| Toggles between the two edit modes. | |
| (void) | - longPressBtnMode: |
| Presents the add/delete mode popover on a long press of the mode button. | |
| (void) | - pinchGesture: |
| Applies the pinch gesture's scale to the renderer. | |
| (void) | - pushBtnUndo: |
| Applies an undo and auto-saves. | |
| (void) | - pushBtnRedo: |
| Applies a redo and auto-saves. | |
| (void) | - pushbtnSysMenu: |
| Presents the system-menu popover from the system-menu button. | |
| (void) | - pushBtnGridChange: |
| Presents the grid-division popover from the grid button. | |
| (void) | - selectGridType: |
| Applies a grid-division type, updating the button image and the renderer. | |
| (void) | - longPressEnable: |
| Enables or disables the editor buttons and renderer panel during a long press. | |
| (void) | - ReleaseSelectArea |
| Clears the current area selection. | |
| (void) | - pushAreaCopy: |
| Copies the selected area into the paste buffer. | |
| (void) | - pushAreaDelete: |
| Deletes the selected area. | |
| (void) | - pushAreaPaste: |
| Pastes the paste buffer at the paste sector, warning on conflict. | |
| (void) | - pushAreaPaste2: |
| Pastes the paste buffer at the current sector. | |
| (void) | - pushClap: |
| Toggles the clap sound effect on or off. | |
| (void) | - pushHelp: |
| Presents the how-to help popover. | |
| (void) | - pushRewind: |
| Rewinds playback to the current measure start. | |
| (void) | - createTimeLineView |
| Builds the timeline scrubbing view and its gesture recognisers. | |
| (void) | - handleSwipe: |
| Reads the swipe direction (result discarded). | |
| (void) | - resetPaste |
| Resets the paste selection. | |
| (void) | - resetLongPress |
| Resets the long-press area selection. | |
| (void) | - resetGesture |
| Resets both the paste and long-press selections. | |
| (void) | - longPressGesture: |
| Begins an area selection on a long press of the timeline. | |
| (void) | - tapGesture: |
| Resets the current selection on a single tap of the timeline. | |
| (void) | - dpGesture: |
| Positions the paste button at the double-tapped sector. | |
| (void) | - resumeInPauseView |
| Resumes animation and BGM when returning from a paused popover. | |
| (void) | - endInPauseView |
| Ends the edit session and returns to the root controller from a paused popover. | |
| (void) | - end |
| Dismisses the editor and ends the session. | |
| (void) | - suspend |
| Suspends the editor when backgrounded, saving if playing. | |
| (void) | - resume |
| Resumes the editor's animation. | |
| (void) | - terminate |
| Fully resets the editor to a clean state, releasing per-chart resources. | |
| (void) | - templateRelease |
| Releases the system-menu popover reference. | |
| (void) | - selectLoadSlot: |
| The system-menu load-slot selection callback. | |
| (void) | - selectExit |
| The system-menu exit selection callback. | |
| (void) | - selectSave |
| Presents the save-confirmation alert, warning about conflicting markers. | |
| (void) | - editFileListViewCancel |
| The file-list cancel callback (no-op). | |
| (void) | - editFileListViewDecideItem: |
| The file-list decide callback (no-op). | |
| (void) | - popoverPresentationControllerDidDismissPopover: |
| Clears the ignore-press flag when a popover is dismissed. | |
| (void) | - editBtnSelect:tag: |
| The editor-button popover selection callback. | |
| (void) | - alertSelect: |
| The confirmation-alert button callback: routes save, load, and exit confirmations. | |
| (void) | - editModalViewClose: |
| Dismisses the metadata modal. | |
| (void) | - editModalViewDelegateSaveEditFile |
| Saves the edited metadata after the modal reports a save. | |
| (float) | - adjustTime: |
| Applies the adjust-time offset, clamped to zero. | |
| (float) | - reverseAdjustTime: |
| Removes the adjust-time offset, clamped to zero. | |
| Instance Methods inherited from <AlertViewManagerDelegate> | |
| (void) | - alertSelect: |
Sent when the user taps a button in an alert built with makeAlert:. | |
| (void) | - alertClose: |
Sent when a UIAlertController -based alert finishes dismissing. | |
| Instance Methods inherited from <EditButtonViewControllerDelegate> | |
| (void) | - editBtnSelect:tag: |
| Sent when one of the buttons is tapped. | |
| Instance Methods inherited from <EditModalViewDelegate> | |
| (void) | - editModalViewClose: |
| Sent when the modal is dismissed. | |
| (void) | - selectUpdate: |
| Sent when the edited entry should be re-selected after saving. | |
| Instance Methods inherited from <EditFileListViewDelegate> | |
| (void) | - editFileListViewSelectItem: |
| Sent when a chart is chosen. | |
Properties | |
| TuneInfo * | currentTune |
| The tune being edited. | |
| NSString * | jcfName |
| The saved chart file name. | |
| unsigned int | currentDiff |
| The current difficulty. | |
| NSString * | currentMarker |
| The current marker resource name. | |
| NSData * | musicData |
| The compressed music data for the current chart. | |
| EAGLView * | glView |
| The OpenGL view. | |
| EditNoteRenderer * | mainGameRenderer |
| The edit-mode note renderer. | |
| CADisplayLink * | displayLink |
The per-frame display link driving loop: . | |
| EditSequence * | sequence |
| The editable note sequence. | |
| UIButton * | btnPause |
| The pause / play button. | |
| UIButton * | btnMode |
| The add/delete mode button. | |
| UIButton * | btnSysMenu |
| The system-menu button. | |
| UIButton * | btnClap |
| The clap-toggle button. | |
| UIImageView * | clapBtnView |
| The clap button's decorative image view. | |
| UIButton * | btnRewind |
| The rewind button. | |
| UIButton * | btnHelp |
| The help button. | |
| UIButton * | btnSelGrid |
| The grid-division button. | |
| UIButton * | btnAreaCpy |
| The area-copy button. | |
| UIButton * | btnAreaDel |
| The area-delete button. | |
| UIButton * | btnAreaPst |
| The area-paste button. | |
| UIButton * | btnUndo |
| The undo button. | |
| UIButton * | btnRedo |
| The redo button. | |
| NSArray * | editData |
| The loaded sequence table for the current chart. | |
| NSMutableDictionary * | editorInfo |
| The editor metadata dictionary. | |
| NSMutableDictionary * | editSimpleData |
| The summary metadata dictionary. | |
| UIView * | timeLineView |
| The timeline scrubbing view. | |
The chart-editor top-level view controller.
| - (void) addNote: | (BOOL) | isSwitch |
Adds notes to the sequence at every held panel, warning when the marker limit is hit.
| isSwitch | Whether the add is a mode-switch add. |
| - (float) adjustTime: | (float) | time |
Applies the adjust-time offset, clamped to zero.
| time | The raw time. |
| - (void) alertSelect: | (nullable NSDictionary *) | info |
The confirmation-alert button callback: routes save, load, and exit confirmations.
| info | The alert result dictionary. |
| - (void) autoSave: | (BOOL) | force |
Bumps the auto-save counter and saves the chart when it overflows or when forced.
| force | Whether to save immediately regardless of the counter. |
| - (void) changeModeImage: | (nullable NSString *) | imageName |
Sets the mode button's background image from an image resource name.
| imageName | The image resource name. |
| - (void) controllMusic |
Clamps playback to the sequence duration and stops music when it runs past the end.
| - (void) createTimeLineView |
Builds the timeline scrubbing view and its gesture recognisers.
| - (void) deleteNote |
Deletes notes from the sequence at every held panel.
| - (void) deletePasteBtn |
Hides the paste button.
| - (void) dpGesture: | (nullable UITapGestureRecognizer *) | gesture |
Positions the paste button at the double-tapped sector.
| gesture | The double-tap recogniser. |
| - (void) editBtnSelect: | (nullable EditButtonViewController *) | controller | |
| tag: | (nullable NSDictionary *) | info |
The editor-button popover selection callback.
| controller | The button popover. |
| info | The selection info dictionary. |
| - (void) editFileListViewCancel |
The file-list cancel callback (no-op).
| - (void) editFileListViewDecideItem: | (int) | index |
The file-list decide callback (no-op).
| index | The chosen row. |
| - (void) editModalViewClose: | (nullable EditModalView *) | view |
Dismisses the metadata modal.
| view | The modal being closed. |
| - (void) editModalViewDelegateSaveEditFile |
Saves the edited metadata after the modal reports a save.
Reimplemented from <EditModalViewDelegate>.
| - (void) end |
Dismisses the editor and ends the session.
| - (void) endInPauseView |
Ends the edit session and returns to the root controller from a paused popover.
| - (void) exeClap |
Plays the clap sound effect when the sequence passes a clap point.
| - (void) finishMusic: | (nullable NSNotification *) | notification |
Handles the BGM-finished notification by clearing the playing flag.
| notification | The finish notification. |
| - (NSString *) getDirectoryPath: | (unsigned int) | tuneID |
Resolves (creating if needed) the on-disk directory for a tune's edit charts.
| tuneID | The tune identifier. |
| - (void) handleSwipe: | (nullable UISwipeGestureRecognizer *) | gesture |
Reads the swipe direction (result discarded).
| gesture | The swipe recogniser. |
| - (void) importNotesData: | (nullable NSString *) | fileName |
Imports a downloaded chart file into the editor, merging its metadata over the current editor info.
| fileName | The chart file to import. |
| - (instancetype) init |
Initialises the editor: reads the saved adjust-sector offset, resolves the device idiom, builds the EAGLView sized to the screen, and resets the editing state.
| - (void) loadNotesData |
Loads the note data for the current tune from EditDataManager into the editor state.
| - (void) loadResources |
Loads the button images, renderer, sequence, audio, and artwork for the current chart.
| - (void) loadView |
Builds and lays out the editor's OpenGL view and button bar.
| - (void) longPressBtnMode: | (nullable UILongPressGestureRecognizer *) | gesture |
Presents the add/delete mode popover on a long press of the mode button.
| gesture | The long-press recogniser. |
| - (void) longPressEnable: | (BOOL) | enable |
Enables or disables the editor buttons and renderer panel during a long press.
| enable | Whether the controls are enabled. |
| - (void) longPressGesture: | (nullable UILongPressGestureRecognizer *) | gesture |
Begins an area selection on a long press of the timeline.
| gesture | The long-press recogniser. |
| - (void) loop: | (nullable CADisplayLink *) | displayLink |
The display-link callback: reads touches, updates the sequence, and draws a frame.
| displayLink | The display link that fired. |
| - (void) pinchGesture: | (nullable UIPinchGestureRecognizer *) | gesture |
Applies the pinch gesture's scale to the renderer.
| gesture | The pinch recogniser. |
| - (void) popoverPresentationControllerDidDismissPopover: | (nullable UIPopoverPresentationController *) | popoverPresentationController |
Clears the ignore-press flag when a popover is dismissed.
| popoverPresentationController | The dismissed popover controller. |
| - (void) pushAreaCopy: | (nullable id) | sender |
Copies the selected area into the paste buffer.
| sender | The copy button. |
| - (void) pushAreaDelete: | (nullable id) | sender |
Deletes the selected area.
| sender | The delete button. |
| - (void) pushAreaPaste2: | (nullable id) | sender |
Pastes the paste buffer at the current sector.
| sender | The paste button. |
| - (void) pushAreaPaste: | (nullable id) | sender |
Pastes the paste buffer at the paste sector, warning on conflict.
| sender | The paste button. |
| - (void) pushBtnAdd: | (nullable id) | sender |
Switches to add mode.
| sender | The add button. |
| - (void) pushBtnDelete: | (nullable id) | sender |
Switches to delete mode.
| sender | The delete button. |
| - (void) pushBtnGridChange: | (nullable id) | sender |
Presents the grid-division popover from the grid button.
| sender | The grid button. |
| - (void) pushBtnMode: | (nullable id) | sender |
Toggles between the two edit modes.
| sender | The mode button. |
| - (void) pushBtnPause: | (nullable id) | sender |
Toggles BGM playback from the pause button.
| sender | The pause button. |
| - (void) pushBtnRedo: | (nullable id) | sender |
Applies a redo and auto-saves.
| sender | The redo button. |
| - (void) pushbtnSysMenu: | (nullable id) | sender |
Presents the system-menu popover from the system-menu button.
| sender | The system-menu button. |
| - (void) pushBtnUndo: | (nullable id) | sender |
Applies an undo and auto-saves.
| sender | The undo button. |
| - (void) pushClap: | (nullable id) | sender |
Toggles the clap sound effect on or off.
| sender | The clap button. |
| - (void) pushHelp: | (nullable id) | sender |
Presents the how-to help popover.
| sender | The help button. |
| - (void) pushRewind: | (nullable id) | sender |
Rewinds playback to the current measure start.
| sender | The rewind button. |
| - (void) releaseResources |
Tears down the renderer, sequence, framebuffer, and audio resources.
| - (void) ReleaseSelectArea |
Clears the current area selection.
| - (void) resetEditMember |
Resets the editor's per-session state to its defaults.
| - (void) resetGesture |
Resets both the paste and long-press selections.
| - (void) resetLongPress |
Resets the long-press area selection.
| - (void) resetPaste |
Resets the paste selection.
| - (void) resume |
Resumes the editor's animation.
| - (void) resumeInPauseView |
Resumes animation and BGM when returning from a paused popover.
| - (float) reverseAdjustTime: | (float) | time |
Removes the adjust-time offset, clamped to zero.
| time | The adjusted time. |
| - (void) saveNotesData |
Persists the current chart, its editor info, and its summary data to disk.
| - (void) saveScore |
Discarded persistence stub kept for the interface.
| - (void) selectExit |
The system-menu exit selection callback.
| - (void) selectGridType: | (int) | type |
Applies a grid-division type, updating the button image and the renderer.
| type | The grid-division type. |
| - (void) selectLoadSlot: | (nullable NSNumber *) | slot |
The system-menu load-slot selection callback.
| slot | The chosen slot number. |
| - (void) selectSave |
Presents the save-confirmation alert, warning about conflicting markers.
| - (void) setGridButton: | (nullable UIButton *) | button | |
| type: | (int) | type | |
| pos: | (CGPoint) | pos |
Sets a grid button's image and frame from a division type and origin.
| button | The grid button to configure. |
| type | The grid-division type. |
| pos | The button's origin. |
| - (void) startAnimation |
Starts the per-frame display link that drives loop: .
| - (void) startGame |
Starts play mode: re-reads the adjust offset, resets the sequence, and applies prefs.
| - (void) stopAnimation |
Stops the per-frame display link.
| - (void) stopMusic |
Stops BGM playback and restores the play button image.
| - (void) suspend |
Suspends the editor when backgrounded, saving if playing.
| - (void) tapGesture: | (nullable UITapGestureRecognizer *) | gesture |
Resets the current selection on a single tap of the timeline.
| gesture | The tap recogniser. |
| - (void) templateRelease |
Releases the system-menu popover reference.
| - (void) terminate |
Fully resets the editor to a clean state, releasing per-chart resources.