Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9aacb96
commit fa7150e
Showing
20 changed files
with
377 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...n/java/org/dolphinemu/dolphinemu/features/settings/model/view/HyperLinkHeaderSetting.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
package org.dolphinemu.dolphinemu.features.settings.model.view; | ||
|
||
import android.content.Context; | ||
|
||
public final class HyperLinkHeaderSetting extends HeaderSetting | ||
{ | ||
public HyperLinkHeaderSetting(Context context, int titleId, int descriptionId) | ||
{ | ||
super(context, titleId, descriptionId); | ||
} | ||
|
||
@Override | ||
public int getType() | ||
{ | ||
return SettingsItem.TYPE_HYPERLINK_HEADER; | ||
} | ||
} |
74 changes: 74 additions & 0 deletions
74
.../main/java/org/dolphinemu/dolphinemu/features/settings/model/view/InputStringSetting.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
package org.dolphinemu.dolphinemu.features.settings.model.view; | ||
|
||
import android.content.Context; | ||
|
||
import org.dolphinemu.dolphinemu.features.settings.model.AbstractSetting; | ||
import org.dolphinemu.dolphinemu.features.settings.model.AbstractStringSetting; | ||
import org.dolphinemu.dolphinemu.features.settings.model.Settings; | ||
import org.dolphinemu.dolphinemu.features.settings.ui.MenuTag; | ||
|
||
public class InputStringSetting extends SettingsItem | ||
{ | ||
private AbstractStringSetting mSetting; | ||
|
||
private MenuTag mMenuTag; | ||
|
||
public InputStringSetting(Context context, AbstractStringSetting setting, int titleId, | ||
int descriptionId, MenuTag menuTag) | ||
{ | ||
super(context, titleId, descriptionId); | ||
mSetting = setting; | ||
mMenuTag = menuTag; | ||
} | ||
|
||
public InputStringSetting(Context context, AbstractStringSetting setting, int titleId, | ||
int descriptionId) | ||
{ | ||
this(context, setting, titleId, descriptionId,null); | ||
} | ||
|
||
public InputStringSetting(Context context, AbstractStringSetting setting, int titleId, | ||
int descriptionId, int choicesId, int valuesId, MenuTag menuTag) | ||
{ | ||
super(context, titleId, descriptionId); | ||
mSetting = setting; | ||
mMenuTag = menuTag; | ||
} | ||
|
||
public InputStringSetting(Context context, AbstractStringSetting setting, int titleId, | ||
int descriptionId, int choicesId, int valuesId) | ||
{ | ||
this(context, setting, titleId, descriptionId, choicesId, valuesId, null); | ||
} | ||
|
||
public String getSelectedValue(Settings settings) | ||
{ | ||
return mSetting.getString(settings); | ||
} | ||
|
||
public MenuTag getMenuTag() | ||
{ | ||
return mMenuTag; | ||
} | ||
|
||
public void setSelectedValue(Settings settings, String selection) | ||
{ | ||
mSetting.setString(settings, selection); | ||
} | ||
|
||
@Override | ||
public int getType() | ||
{ | ||
return TYPE_STRING; | ||
} | ||
|
||
@Override | ||
public AbstractSetting getSetting() | ||
{ | ||
return mSetting; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.