Revert the latest GUI change (Emulation Notes column). We don't care for it.
This commit is contained in:
parent
ed1bfdf293
commit
98d22d0e03
|
@ -91,6 +91,16 @@ static int CompareGameListItems(const GameListItem* iso1, const GameListItem* is
|
||||||
case CGameListCtrl::COLUMN_TITLE:
|
case CGameListCtrl::COLUMN_TITLE:
|
||||||
return strcasecmp(iso1->GetName(indexOne).c_str(),
|
return strcasecmp(iso1->GetName(indexOne).c_str(),
|
||||||
iso2->GetName(indexOther).c_str()) * t;
|
iso2->GetName(indexOther).c_str()) * t;
|
||||||
|
case CGameListCtrl::COLUMN_NOTES:
|
||||||
|
{
|
||||||
|
std::string cmp1 =
|
||||||
|
(iso1->GetPlatform() == GameListItem::GAMECUBE_DISC) ?
|
||||||
|
iso1->GetCompany() : iso1->GetDescription(indexOne);
|
||||||
|
std::string cmp2 =
|
||||||
|
(iso2->GetPlatform() == GameListItem::GAMECUBE_DISC) ?
|
||||||
|
iso2->GetCompany() : iso2->GetDescription(indexOther);
|
||||||
|
return strcasecmp(cmp1.c_str(), cmp2.c_str()) * t;
|
||||||
|
}
|
||||||
case CGameListCtrl::COLUMN_COUNTRY:
|
case CGameListCtrl::COLUMN_COUNTRY:
|
||||||
if(iso1->GetCountry() > iso2->GetCountry())
|
if(iso1->GetCountry() > iso2->GetCountry())
|
||||||
return 1 * t;
|
return 1 * t;
|
||||||
|
@ -123,10 +133,7 @@ static int CompareGameListItems(const GameListItem* iso1, const GameListItem* is
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case CGameListCtrl::COLUMN_EMULATION_NOTES:
|
break;
|
||||||
return strcasecmp(iso1->GetIssues().c_str(),
|
|
||||||
iso2->GetIssues().c_str()) * t;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -287,20 +294,19 @@ void CGameListCtrl::Update()
|
||||||
// Instead of showing the notes + the company, which is unknown with
|
// Instead of showing the notes + the company, which is unknown with
|
||||||
// wii titles We show in the same column : company for GC games and
|
// wii titles We show in the same column : company for GC games and
|
||||||
// description for wii/wad games
|
// description for wii/wad games
|
||||||
InsertColumn(COLUMN_EMULATION_NOTES, _("Emulation Notes"));
|
InsertColumn(COLUMN_NOTES, _("Notes"));
|
||||||
InsertColumn(COLUMN_COUNTRY, _T(""));
|
InsertColumn(COLUMN_COUNTRY, _T(""));
|
||||||
InsertColumn(COLUMN_SIZE, _("Size"));
|
InsertColumn(COLUMN_SIZE, _("Size"));
|
||||||
InsertColumn(COLUMN_EMULATION_STATE, _("State"));
|
InsertColumn(COLUMN_EMULATION_STATE, _("State"));
|
||||||
|
|
||||||
|
|
||||||
// set initial sizes for columns
|
// set initial sizes for columns
|
||||||
SetColumnWidth(COLUMN_PLATFORM, 35);
|
SetColumnWidth(COLUMN_PLATFORM, 35);
|
||||||
SetColumnWidth(COLUMN_BANNER, 96);
|
SetColumnWidth(COLUMN_BANNER, 96);
|
||||||
SetColumnWidth(COLUMN_TITLE, 200);
|
SetColumnWidth(COLUMN_TITLE, 200);
|
||||||
SetColumnWidth(COLUMN_EMULATION_NOTES, 200);
|
SetColumnWidth(COLUMN_NOTES, 200);
|
||||||
SetColumnWidth(COLUMN_COUNTRY, 32);
|
SetColumnWidth(COLUMN_COUNTRY, 32);
|
||||||
SetColumnWidth(COLUMN_EMULATION_STATE, 50);
|
SetColumnWidth(COLUMN_EMULATION_STATE, 50);
|
||||||
|
|
||||||
|
|
||||||
// add all items
|
// add all items
|
||||||
for (int i = 0; i < (int)m_ISOFiles.size(); i++)
|
for (int i = 0; i < (int)m_ISOFiles.size(); i++)
|
||||||
|
@ -477,12 +483,18 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
||||||
wxString name = wxString(rISOFile.GetName(0).c_str(), SJISConv);
|
wxString name = wxString(rISOFile.GetName(0).c_str(), SJISConv);
|
||||||
m_gameList.append(StringFromFormat("%s (J)\n", (const char *)name.c_str()));
|
m_gameList.append(StringFromFormat("%s (J)\n", (const char *)name.c_str()));
|
||||||
SetItem(_Index, COLUMN_TITLE, name, -1);
|
SetItem(_Index, COLUMN_TITLE, name, -1);
|
||||||
|
SetItem(_Index, COLUMN_NOTES, wxString(company.size() ?
|
||||||
|
company.c_str() : rISOFile.GetDescription(0).c_str(),
|
||||||
|
SJISConv), -1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DiscIO::IVolume::COUNTRY_USA:
|
case DiscIO::IVolume::COUNTRY_USA:
|
||||||
m_gameList.append(StringFromFormat("%s (U)\n", rISOFile.GetName(0).c_str()));
|
m_gameList.append(StringFromFormat("%s (U)\n", rISOFile.GetName(0).c_str()));
|
||||||
SetItem(_Index, COLUMN_TITLE,
|
SetItem(_Index, COLUMN_TITLE,
|
||||||
wxString::From8BitData(rISOFile.GetName(0).c_str()), -1);
|
wxString::From8BitData(rISOFile.GetName(0).c_str()), -1);
|
||||||
|
SetItem(_Index, COLUMN_NOTES,
|
||||||
|
wxString::From8BitData(company.size() ?
|
||||||
|
company.c_str() : rISOFile.GetDescription(0).c_str()), -1);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
m_gameList.append(StringFromFormat("%s (E)\n",
|
m_gameList.append(StringFromFormat("%s (E)\n",
|
||||||
|
@ -491,6 +503,11 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
||||||
wxString::From8BitData(
|
wxString::From8BitData(
|
||||||
rISOFile.GetName(SConfig::GetInstance().m_LocalCoreStartupParameter.SelectedLanguage).c_str()),
|
rISOFile.GetName(SConfig::GetInstance().m_LocalCoreStartupParameter.SelectedLanguage).c_str()),
|
||||||
-1);
|
-1);
|
||||||
|
SetItem(_Index, COLUMN_NOTES,
|
||||||
|
wxString::From8BitData(company.size() ?
|
||||||
|
company.c_str() :
|
||||||
|
rISOFile.GetDescription(SConfig::GetInstance().m_LocalCoreStartupParameter.SelectedLanguage).c_str()),
|
||||||
|
-1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -499,6 +516,8 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
||||||
m_gameList.append(StringFromFormat("%s (WAD)\n", rISOFile.GetName(0).c_str()));
|
m_gameList.append(StringFromFormat("%s (WAD)\n", rISOFile.GetName(0).c_str()));
|
||||||
SetItem(_Index, COLUMN_TITLE,
|
SetItem(_Index, COLUMN_TITLE,
|
||||||
wxString(rISOFile.GetName(0).c_str(), SJISConv), -1);
|
wxString(rISOFile.GetName(0).c_str(), SJISConv), -1);
|
||||||
|
SetItem(_Index, COLUMN_NOTES,
|
||||||
|
wxString(rISOFile.GetDescription(0).c_str(), SJISConv), -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
@ -512,10 +531,6 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
||||||
// File size
|
// File size
|
||||||
SetItem(_Index, COLUMN_SIZE, NiceSizeFormat(rISOFile.GetFileSize()), -1);
|
SetItem(_Index, COLUMN_SIZE, NiceSizeFormat(rISOFile.GetFileSize()), -1);
|
||||||
|
|
||||||
// Emulation notes
|
|
||||||
SetItem(_Index, COLUMN_EMULATION_NOTES, wxString::From8BitData(rISOFile.GetIssues().c_str()), -1);
|
|
||||||
SetColumnWidth(COLUMN_SIZE, wxLIST_AUTOSIZE);
|
|
||||||
|
|
||||||
// Background color
|
// Background color
|
||||||
SetBackgroundColor();
|
SetBackgroundColor();
|
||||||
|
|
||||||
|
@ -698,7 +713,7 @@ void CGameListCtrl::ScanForISOs()
|
||||||
|
|
||||||
void CGameListCtrl::OnColBeginDrag(wxListEvent& event)
|
void CGameListCtrl::OnColBeginDrag(wxListEvent& event)
|
||||||
{
|
{
|
||||||
if (event.GetColumn() != COLUMN_TITLE && event.GetColumn() != COLUMN_EMULATION_NOTES)
|
if (event.GetColumn() != COLUMN_TITLE && event.GetColumn() != COLUMN_NOTES)
|
||||||
event.Veto();
|
event.Veto();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1316,13 +1331,13 @@ void CGameListCtrl::AutomaticColumnWidth()
|
||||||
// We hide the Notes column if the window is too small
|
// We hide the Notes column if the window is too small
|
||||||
if (resizable > 400)
|
if (resizable > 400)
|
||||||
{
|
{
|
||||||
SetColumnWidth(COLUMN_TITLE, resizable / 2 );
|
SetColumnWidth(COLUMN_TITLE, resizable / 2);
|
||||||
SetColumnWidth(COLUMN_EMULATION_NOTES, resizable / 2 );
|
SetColumnWidth(COLUMN_NOTES, resizable / 2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetColumnWidth(COLUMN_TITLE, resizable);
|
SetColumnWidth(COLUMN_TITLE, resizable);
|
||||||
SetColumnWidth(COLUMN_EMULATION_NOTES, 0);
|
SetColumnWidth(COLUMN_NOTES, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ public:
|
||||||
COLUMN_PLATFORM = 0,
|
COLUMN_PLATFORM = 0,
|
||||||
COLUMN_BANNER,
|
COLUMN_BANNER,
|
||||||
COLUMN_TITLE,
|
COLUMN_TITLE,
|
||||||
COLUMN_EMULATION_NOTES,
|
COLUMN_NOTES,
|
||||||
COLUMN_COUNTRY,
|
COLUMN_COUNTRY,
|
||||||
COLUMN_SIZE,
|
COLUMN_SIZE,
|
||||||
COLUMN_EMULATION_STATE,
|
COLUMN_EMULATION_STATE,
|
||||||
|
|
Loading…
Reference in New Issue