Rename some screen classes

This commit is contained in:
Henrik Rydgård committed 2025-10-29 00:02:43 +01:00
1 parent 0a0b390fd3
commit 7ffd72b32e
49 files changed
+116 -148

No files matched your search

+9 -9
View File
@@ -7,7 +7,7 @@
#include "Common/UI/TabHolder.h"
#include "UI/TabbedDialogScreen.h"
void TabbedUIDialogScreenWithGameBackground::AddTab(const char *tag, std::string_view title, std::function<void(UI::LinearLayout *)> createCallback, TabFlags flags) {
void UITabbedBaseDialogScreen::AddTab(const char *tag, std::string_view title, std::function<void(UI::LinearLayout *)> createCallback, TabFlags flags) {
using namespace UI;
tabHolder_->AddTabDeferred(title, [createCallback = std::move(createCallback), tag, flags]() -> UI::ViewGroup * {
@@ -28,7 +28,7 @@ void TabbedUIDialogScreenWithGameBackground::AddTab(const char *tag, std::string
});
}
void TabbedUIDialogScreenWithGameBackground::CreateViews() {
void UITabbedBaseDialogScreen::CreateViews() {
PreCreateViews();
bool portrait = UsePortraitLayout() || ForceHorizontalTabs();
@@ -104,8 +104,8 @@ void TabbedUIDialogScreenWithGameBackground::CreateViews() {
}
}
void TabbedUIDialogScreenWithGameBackground::sendMessage(UIMessage message, const char *value) {
UIDialogScreenWithGameBackground::sendMessage(message, value);
void UITabbedBaseDialogScreen::sendMessage(UIMessage message, const char *value) {
UIBaseDialogScreen::sendMessage(message, value);
if (message == UIMessage::GAMESETTINGS_SEARCH) {
std::string filter = value ? value : "";
searchFilter_.resize(filter.size());
@@ -115,27 +115,27 @@ void TabbedUIDialogScreenWithGameBackground::sendMessage(UIMessage message, cons
}
}
void TabbedUIDialogScreenWithGameBackground::RecreateViews() {
void UITabbedBaseDialogScreen::RecreateViews() {
oldSettingInfo_ = settingInfo_ ? settingInfo_->GetText() : "N/A";
UIScreen::RecreateViews();
}
void TabbedUIDialogScreenWithGameBackground::EnsureTabs() {
void UITabbedBaseDialogScreen::EnsureTabs() {
_dbg_assert_(tabHolder_);
if (tabHolder_) {
tabHolder_->EnsureAllCreated();
}
}
int TabbedUIDialogScreenWithGameBackground::GetCurrentTab() const {
int UITabbedBaseDialogScreen::GetCurrentTab() const {
return tabHolder_->GetCurrentTab();
}
void TabbedUIDialogScreenWithGameBackground::SetCurrentTab(int tab) {
void UITabbedBaseDialogScreen::SetCurrentTab(int tab) {
tabHolder_->SetCurrentTab(tab);
}
void TabbedUIDialogScreenWithGameBackground::ApplySearchFilter() {
void UITabbedBaseDialogScreen::ApplySearchFilter() {
using namespace UI;
auto se = GetI18NCategory(I18NCat::SEARCH);