A table of saved edit charts that supports deleting a chart by swiping a row.
More...
#include <EditFileListViewDeleteController.h>
A table of saved edit charts that supports deleting a chart by swiping a row.
The table has three sections: a menu (new-chart / download-chart), the saved charts, and a run of empty slots.
◆ getNewFileCell:row:
| - (UITableViewCell *) getNewFileCell: |
|
(UITableView *) | tableView |
| row: |
|
(int) | row |
Builds (or dequeues) a menu cell for one of the top-section entries.
- Parameters
-
| tableView | The table asking for the cell. |
| row | The menu index: 0 is "make a chart", 1 is "find a chart to download". |
- Returns
- The configured menu cell.
- Ghidra address:
- 0x1f8db0
- Ghidra address:
- 0x1f8db0
◆ initWithSize:
| - (instancetype) initWithSize: |
|
(CGSize) | size |
|
Initialises the controller at a given size and seeds the slot limit.
Chains to the superclass initialiser, clears the highlighted file name, and reads the editable slot limit from the shared EditDataManager.
- Parameters
-
| size | The table view size passed to the superclass. |
- Returns
- The initialised controller, or
nil.
- Ghidra address:
- 0x1f8d10
- Ghidra address:
- 0x1f8d10
Reimplemented from EditFileListViewController.
◆ numberOfSectionsInTableView:
| - (NSInteger) numberOfSectionsInTableView: |
|
(UITableView *) | tableView |
|
Returns the section count (always three).
- Parameters
-
| tableView | The table asking. |
- Returns
- Always three: the blank slots, the saved charts, and the menu.
- Ghidra address:
- 0x1f9c7c
- Ghidra address:
- 0x1f9c7c
◆ reloadTable
Reloads the backing table view.
- Ghidra address:
- 0x1fab04
◆ setFileList:
| - (void) setFileList: |
|
(nullable NSMutableArray *) | fileList |
|
Adopts a new chart list and recomputes the used and blank slot counts.
- Parameters
-
| fileList | The charts to list. |
- Ghidra address:
- 0x1faa48
◆ setTargetFileName:
| - (void) setTargetFileName: |
|
(nullable NSString *) | targetFileName |
|
Records the file name of the chart to highlight in the list.
- Parameters
-
| targetFileName | The chart file name, or nil. |
- Ghidra address:
- 0x1faa34
◆ tableView:canEditRowAtIndexPath:
| - (BOOL) tableView: |
|
(UITableView *) | tableView |
| canEditRowAtIndexPath: |
|
(NSIndexPath *) | indexPath |
Only saved-chart rows that exist may be edited (deleted).
- Parameters
-
| tableView | The table asking. |
| indexPath | The row's index path. |
- Returns
- YES for a populated saved-chart row, NO otherwise.
- Ghidra address:
- 0x1fa274
- Ghidra address:
- 0x1fa274
◆ tableView:cellForRowAtIndexPath:
| - (UITableViewCell *) tableView: |
|
(UITableView *) | tableView |
| cellForRowAtIndexPath: |
|
(NSIndexPath *) | indexPath |
Returns the cell for a row across all three sections.
- Parameters
-
| tableView | The table asking. |
| indexPath | The row's index path. |
- Returns
- The cell for the row: a blank slot, a saved chart, or a menu action.
- Ghidra address:
- 0x1f8f78
- Ghidra address:
- 0x1f8f78
◆ tableView:commitEditingStyle:forRowAtIndexPath:
| - (void) tableView: |
|
(UITableView *) | tableView |
| commitEditingStyle: |
|
(UITableViewCellEditingStyle) | editingStyle |
| forRowAtIndexPath: |
|
(NSIndexPath *) | indexPath |
Deletes a saved chart, updates the counts, and re-lays the table.
- Parameters
-
| tableView | The table asking. |
| editingStyle | The editing action committed. |
| indexPath | The row's index path. |
- Ghidra address:
- 0x1f9c84
- Ghidra address:
- 0x1f9c84
◆ tableView:didSelectRowAtIndexPath:
| - (void) tableView: |
|
(UITableView *) | tableView |
| didSelectRowAtIndexPath: |
|
(NSIndexPath *) | indexPath |
Handles taps: opens the menu actions or reports the chosen chart.
- Parameters
-
| tableView | The table sending the message. |
| indexPath | The tapped row's index path. |
- Ghidra address:
- 0x1fa5e4
- Ghidra address:
- 0x1fa5e4
◆ tableView:heightForFooterInSection:
| - (CGFloat) tableView: |
|
(UITableView *) | tableView |
| heightForFooterInSection: |
|
(NSInteger) | section |
Returns the footer height for a section.
- Parameters
-
| tableView | The table asking. |
| section | The section asked about. |
- Returns
- The section's footer height, in points.
- Ghidra address:
- 0x1fa3d0
- Ghidra address:
- 0x1fa3d0
◆ tableView:numberOfRowsInSection:
| - (NSInteger) tableView: |
|
(UITableView *) | tableView |
| numberOfRowsInSection: |
|
(NSInteger) | section |
Returns the row count for a section.
- Parameters
-
| tableView | The table asking. |
| section | The section asked about. |
- Returns
- The blank-slot, saved-chart, or menu-action count for that section.
- Ghidra address:
- 0x1f9ba8
- Ghidra address:
- 0x1f9ba8
◆ tableView:viewForFooterInSection:
| - (UIView *) tableView: |
|
(UITableView *) | tableView |
| viewForFooterInSection: |
|
(NSInteger) | section |
Builds the coloured footer strip for a section once the slots are full.
- Parameters
-
| tableView | The table asking. |
| section | The section asked about. |
- Returns
- The footer strip, or nil when the section needs none.
- Ghidra address:
- 0x1fa3f0
- Ghidra address:
- 0x1fa3f0
◆ tableView:willDisplayCell:forRowAtIndexPath:
| - (void) tableView: |
|
(UITableView *) | tableView |
| willDisplayCell: |
|
(UITableViewCell *) | cell |
| forRowAtIndexPath: |
|
(NSIndexPath *) | indexPath |
Tints a cell's background just before it is shown.
- Parameters
-
| tableView | The table asking. |
| cell | The cell about to be drawn. |
| indexPath | The row's index path. |
- Ghidra address:
- 0x1f97b0
- Ghidra address:
- 0x1f97b0
◆ isFirst
Whether this is the first appearance (suppresses the new-chart highlight).
- Ghidra address:
- 0x1fab44
◆ isShared
Whether the list is a shared (read-only) list.
- Ghidra address:
- 0x1fab64
◆ parentCtrl
The owning edit controller.
- Ghidra address:
- 0x1faba4
◆ tuneID
The music id the download action opens.
- Ghidra address:
- 0x1fab84
The documentation for this class was generated from the following files: