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

The settings-menu screen: a grouped table of settings entries, each routing to a sub-settings controller. More...

#include <SettingsViewController.h>

Inheritance diagram for SettingsViewController:
Collaboration diagram for SettingsViewController:

Instance Methods

(void) - createMenuTable
 Builds menuTable (row-type numbers grouped into sections) and menuTypeTable (the matching cell-style numbers), gated by the current theme, the iPad idiom, and bEnableMyPage.
(instancetype) - initWithStyle:
 Sets the navigation title to "SETTINGS", seeds bEnableMyPage from the presence and decodability of the stored jubeat Lab URL, and builds the menu.
(void) - loadView
 Loads the table view and creates the combo-display switch (a 94x27 UISwitch wired to -comboChanged:), seeding it from the "PrefShowCombo" default.
(UITableViewCell *) - tableView:cellForRowAtIndexPath:
 Dequeues and configures the cell for a row, keyed on the row's cell-style number.
(NSInteger) - numberOfSectionsInTableView:
 Returns the number of sections, which is menuTable.count.
(NSInteger) - tableView:numberOfRowsInSection:
 Returns the number of rows in a section, which is menuTable[section].count.
(void) - comboChanged:
 Action for the combo-display switch; writes its state to the "PrefShowCombo" default.
(void) - settingClose
 Closes any open alert and pops to the navigation stack root.
(void) - tableView:didSelectRowAtIndexPath:
 Routes a tapped row to its sub-settings controller (or the delete-sequence alert).
(nullable NSIndexPath *) - getTargetPath:inSection:
 Finds the index path of the first row in a section whose row-type equals type.
(nullable NSIndexPath *) - getTargetPath:
 Finds the index path of the first row of the given row-type across all sections.
(void) - didReceiveMemoryWarning
 Standard memory-warning forward.
(void) - viewDidLoad
 Disables exclusive-touch propagation issues by enabling exclusive touch on the navigation bar and each of its subviews.
(void) - viewDidUnload
 Releases the combo switch on unload.
(void) - viewWillAppear:
 Deselects any selected row and reloads the theme, Twitter, and rating-chip rows so their detail text refreshes.
(void) - viewDidAppear:
 Standard appearance forward.
(void) - viewWillDisappear:
 Standard disappearance forward.
(void) - viewDidDisappear:
 Standard disappearance forward.
(BOOL) - shouldAutorotateToInterfaceOrientation:
 Permits the two portrait orientations.
(UIInterfaceOrientationMask) - supportedInterfaceOrientations
 The supported orientations mask (portrait and portrait-upside-down).
(BOOL) - shouldAutorotate
 Always allows autorotation.
(void) - dealloc
 Chains up to UITableViewController.
(void) - alertSelect:
 AlertViewManager delegate reply; deletes the custom sequences when the delete-confirm alert (tag 0) reports its confirmation button (index 1) was tapped.
(void) - deleteCustomSequence
 Removes every custom-sequence directory the player no longer owns music for.
Instance Methods inherited from <AlertViewManagerDelegate>
(void) - alertClose:
 Sent when a UIAlertController -based alert finishes dismissing.

Properties

id settingsDelegate
 The object forwarded to sub-controllers that need to notify the settings owner (for example the rating-chip picker and the notification page).
UISwitch * switchCombo
 The switch hosted in the "show combos" row, toggling the combo display.

Detailed Description

The settings-menu screen: a grouped table of settings entries, each routing to a sub-settings controller.

The controller is its own data source and delegate, and acts as the AlertViewManager delegate for the delete-custom-sequence confirmation (see -alertSelect:).

Method Documentation

◆ alertSelect:

- (void) alertSelect: (nonnull NSDictionary *) info

AlertViewManager delegate reply; deletes the custom sequences when the delete-confirm alert (tag 0) reports its confirmation button (index 1) was tapped.

Parameters
infoThe reply dictionary carrying "Tag" and "btnMessage".
Ghidra address:
0xe7a00

Reimplemented from <AlertViewManagerDelegate>.

◆ comboChanged:

- (void) comboChanged: (nullable id) sender

Action for the combo-display switch; writes its state to the "PrefShowCombo" default.

Parameters
senderThe switch that changed.
Ghidra address:
0xe668c

◆ createMenuTable

- (void) createMenuTable

Builds menuTable (row-type numbers grouped into sections) and menuTypeTable (the matching cell-style numbers), gated by the current theme, the iPad idiom, and bEnableMyPage.

Ghidra address:
0xe4dbc

◆ dealloc

- (void) dealloc

Chains up to UITableViewController.

Ghidra address:
0xe79c8

◆ deleteCustomSequence

- (void) deleteCustomSequence

Removes every custom-sequence directory the player no longer owns music for.

Ghidra address:
0xe7af8

◆ didReceiveMemoryWarning

- (void) didReceiveMemoryWarning

Standard memory-warning forward.

Ghidra address:
0xe7230

◆ getTargetPath:

- (NSIndexPath *) getTargetPath: (int) type

Finds the index path of the first row of the given row-type across all sections.

Parameters
typeThe row-type number to locate.
Returns
The matching index path, or nil if none exists.
Ghidra address:
0xe786c
Ghidra address:
0xe786c

◆ getTargetPath:inSection:

- (NSIndexPath *) getTargetPath: (int) type
inSection: (int) section 

Finds the index path of the first row in a section whose row-type equals type.

Parameters
typeThe row-type number to locate.
sectionThe section to search.
Returns
The matching index path, or nil if the section has no such row.
Ghidra address:
0xe76e0
Ghidra address:
0xe76e0

◆ initWithStyle:

- (instancetype) initWithStyle: (UITableViewStyle) style

Sets the navigation title to "SETTINGS", seeds bEnableMyPage from the presence and decodability of the stored jubeat Lab URL, and builds the menu.

Parameters
styleThe table-view style handed to UITableViewController.
Returns
The initialised controller.
Ghidra address:
0xe52b8
Ghidra address:
0xe52b8

◆ loadView

- (void) loadView

Loads the table view and creates the combo-display switch (a 94x27 UISwitch wired to -comboChanged:), seeding it from the "PrefShowCombo" default.

Ghidra address:
0xe5498

◆ numberOfSectionsInTableView:

- (NSInteger) numberOfSectionsInTableView: (nonnull UITableView *) tableView

Returns the number of sections, which is menuTable.count.

Parameters
tableViewThe table view.
Returns
The section count.
Ghidra address:
0xe6618

◆ settingClose

- (void) settingClose

Closes any open alert and pops to the navigation stack root.

Ghidra address:
0xe6718

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Always allows autorotation.

Returns
YES.
Ghidra address:
0xe79c0
Ghidra address:
0xe79c0

◆ shouldAutorotateToInterfaceOrientation:

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation

Permits the two portrait orientations.

Parameters
interfaceOrientationThe orientation to test.
Returns
YES for portrait and portrait-upside-down.
Ghidra address:
0xe79a8
Ghidra address:
0xe79a8

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

The supported orientations mask (portrait and portrait-upside-down).

Returns
UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown.
Ghidra address:
0xe79b8
Ghidra address:
0xe79b8

◆ tableView:cellForRowAtIndexPath:

- (UITableViewCell *) tableView: (nonnull UITableView *) tableView
cellForRowAtIndexPath: (nonnull NSIndexPath *) indexPath 

Dequeues and configures the cell for a row, keyed on the row's cell-style number.

Parameters
tableViewThe table view requesting the cell.
indexPathThe row's index path.
Returns
The configured cell.
Ghidra address:
0xe5678

◆ tableView:didSelectRowAtIndexPath:

- (void) tableView: (nonnull UITableView *) tableView
didSelectRowAtIndexPath: (nonnull NSIndexPath *) indexPath 

Routes a tapped row to its sub-settings controller (or the delete-sequence alert).

Parameters
tableViewThe table view.
indexPathThe tapped row's index path.
Ghidra address:
0xe67a0

◆ tableView:numberOfRowsInSection:

- (NSInteger) tableView: (nonnull UITableView *) tableView
numberOfRowsInSection: (NSInteger) section 

Returns the number of rows in a section, which is menuTable[section].count.

Parameters
tableViewThe table view.
sectionThe section index.
Returns
The row count.
Ghidra address:
0xe6630

◆ viewDidAppear:

- (void) viewDidAppear: (BOOL) animated

Standard appearance forward.

Parameters
animatedWhether the appearance is animated.
Ghidra address:
0xe7900
Ghidra address:
0xe7900

◆ viewDidDisappear:

- (void) viewDidDisappear: (BOOL) animated

Standard disappearance forward.

Parameters
animatedWhether the disappearance is animated.
Ghidra address:
0xe7970
Ghidra address:
0xe7970

◆ viewDidLoad

- (void) viewDidLoad

Disables exclusive-touch propagation issues by enabling exclusive touch on the navigation bar and each of its subviews.

Ghidra address:
0xe7268

◆ viewDidUnload

- (void) viewDidUnload

Releases the combo switch on unload.

Ghidra address:
0xe7448

◆ viewWillAppear:

- (void) viewWillAppear: (BOOL) animated

Deselects any selected row and reloads the theme, Twitter, and rating-chip rows so their detail text refreshes.

Parameters
animatedWhether the appearance is animated.
Ghidra address:
0xe74a0
Ghidra address:
0xe74a0

◆ viewWillDisappear:

- (void) viewWillDisappear: (BOOL) animated

Standard disappearance forward.

Parameters
animatedWhether the disappearance is animated.
Ghidra address:
0xe7938
Ghidra address:
0xe7938

Property Documentation

◆ settingsDelegate

- (id) settingsDelegate
readwritenonatomicweak

The object forwarded to sub-controllers that need to notify the settings owner (for example the rating-chip picker and the notification page).

Held weakly.

Ghidra address:
0xe7d5c (getter)
Ghidra address:
0xe7d7c (setter)

◆ switchCombo

- (UISwitch*) switchCombo
readwritenonatomicstrong

The switch hosted in the "show combos" row, toggling the combo display.

Ghidra address:
0xe7d90 (getter)
Ghidra address:
0xe7da0 (setter)

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