JubeatPlus 3.9.11
Loading...
Searching...
No Matches
EditFileListViewDeleteController Class Reference

A table of saved edit charts that supports deleting a chart by swiping a row. More...

#include <EditFileListViewDeleteController.h>

Inheritance diagram for EditFileListViewDeleteController:
Collaboration diagram for EditFileListViewDeleteController:

Instance Methods

(instancetype) - initWithSize:
 Initialises the controller at a given size and seeds the slot limit.
(UITableViewCell *) - getNewFileCell:row:
 Builds (or dequeues) a menu cell for one of the top-section entries.
(UITableViewCell *) - tableView:cellForRowAtIndexPath:
 Returns the cell for a row across all three sections.
(void) - tableView:willDisplayCell:forRowAtIndexPath:
 Tints a cell's background just before it is shown.
(NSInteger) - tableView:numberOfRowsInSection:
 Returns the row count for a section.
(NSInteger) - numberOfSectionsInTableView:
 Returns the section count (always three).
(void) - tableView:commitEditingStyle:forRowAtIndexPath:
 Deletes a saved chart, updates the counts, and re-lays the table.
(BOOL) - tableView:canEditRowAtIndexPath:
 Only saved-chart rows that exist may be edited (deleted).
(CGFloat) - tableView:heightForFooterInSection:
 Returns the footer height for a section.
(nullable UIView *) - tableView:viewForFooterInSection:
 Builds the coloured footer strip for a section once the slots are full.
(void) - tableView:didSelectRowAtIndexPath:
 Handles taps: opens the menu actions or reports the chosen chart.
(void) - setTargetFileName:
 Records the file name of the chart to highlight in the list.
(void) - setFileList:
 Adopts a new chart list and recomputes the used and blank slot counts.
(void) - reloadTable
 Reloads the backing table view.

Properties

BOOL isFirst
 Whether this is the first appearance (suppresses the new-chart highlight).
BOOL isShared
 Whether the list is a shared (read-only) list.
int tuneID
 The music id the download action opens.
EditFileListViewDeleteController * parentCtrl
 The owning edit controller.
Properties inherited from EditFileListViewController
id< EditFileListViewDelegate > delegate
 The object told which chart was chosen.
NSMutableArray * fileList
 The charts to list.

Additional Inherited Members

Class Methods inherited from EditFileListViewController
(Class) + layerClass
 Returns CAGradientLayer .

Detailed Description

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.

Method Documentation

◆ getNewFileCell:row:

- (UITableViewCell *) getNewFileCell: (UITableView *) tableView
row: (int) row 

Builds (or dequeues) a menu cell for one of the top-section entries.

Parameters
tableViewThe table asking for the cell.
rowThe 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
sizeThe 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
tableViewThe table asking.
Returns
Always three: the blank slots, the saved charts, and the menu.
Ghidra address:
0x1f9c7c
Ghidra address:
0x1f9c7c

◆ reloadTable

- (void) 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
fileListThe 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
targetFileNameThe 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
tableViewThe table asking.
indexPathThe 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
tableViewThe table asking.
indexPathThe 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
tableViewThe table asking.
editingStyleThe editing action committed.
indexPathThe 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
tableViewThe table sending the message.
indexPathThe 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
tableViewThe table asking.
sectionThe 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
tableViewThe table asking.
sectionThe 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
tableViewThe table asking.
sectionThe 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
tableViewThe table asking.
cellThe cell about to be drawn.
indexPathThe row's index path.
Ghidra address:
0x1f97b0
Ghidra address:
0x1f97b0

Property Documentation

◆ isFirst

- (BOOL) isFirst
readwritenonatomicassign

Whether this is the first appearance (suppresses the new-chart highlight).

Ghidra address:
0x1fab44

◆ isShared

- (BOOL) isShared
readwritenonatomicassign

Whether the list is a shared (read-only) list.

Ghidra address:
0x1fab64

◆ parentCtrl

- (EditFileListViewDeleteController*) parentCtrl
readwritenonatomicstrong

The owning edit controller.

Ghidra address:
0x1faba4

◆ tuneID

- (int) tuneID
readwritenonatomicassign

The music id the download action opens.

Ghidra address:
0x1fab84

The documentation for this class was generated from the following files: