mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-23 04:20:58 +00:00
placed the issues column to the back. i still got huge plans for the notes column but for now this will do.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1852 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
8768d875d4
commit
394b040f61
@ -148,11 +148,11 @@ void CGameListCtrl::Update()
|
|||||||
InsertColumn(COLUMN_BANNER, _("Banner"));
|
InsertColumn(COLUMN_BANNER, _("Banner"));
|
||||||
InsertColumn(COLUMN_TITLE, _("Title"));
|
InsertColumn(COLUMN_TITLE, _("Title"));
|
||||||
InsertColumn(COLUMN_COMPANY, _("Company"));
|
InsertColumn(COLUMN_COMPANY, _("Company"));
|
||||||
InsertColumn(COLUMN_ISSUES, wxT("Issues"));
|
InsertColumn(COLUMN_NOTES, _("Notes"));
|
||||||
InsertColumn(COLUMN_COUNTRY, _(""));
|
InsertColumn(COLUMN_COUNTRY, _(""));
|
||||||
InsertColumn(COLUMN_SIZE, _("Size"));
|
InsertColumn(COLUMN_SIZE, _("Size"));
|
||||||
InsertColumn(COLUMN_EMULATION_STATE, _("Emulation"));
|
InsertColumn(COLUMN_EMULATION_STATE, _("Emulation"));
|
||||||
InsertColumn(COLUMN_NOTES, _("Notes"));
|
InsertColumn(COLUMN_ISSUES, _("Issues"));
|
||||||
|
|
||||||
|
|
||||||
// set initial sizes for columns
|
// set initial sizes for columns
|
||||||
@ -249,33 +249,35 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
|||||||
item.SetId(_Index);
|
item.SetId(_Index);
|
||||||
std::string EmuState;
|
std::string EmuState;
|
||||||
item.SetColumn(COLUMN_EMULATION_STATE);
|
item.SetColumn(COLUMN_EMULATION_STATE);
|
||||||
//NOTE (Daco): i dont like the fact of having so much ini's just to have
|
|
||||||
//the game emulation state of every game you have. but 1 huge ini is no option
|
|
||||||
ini.Get("EmuState","EmulationStateId",&EmuState);
|
ini.Get("EmuState","EmulationStateId",&EmuState);
|
||||||
if (!EmuState.empty())
|
if (!EmuState.empty())
|
||||||
{
|
{
|
||||||
if(EmuState == "5")
|
switch(atoi(EmuState.c_str()))
|
||||||
|
{
|
||||||
|
case 5:
|
||||||
item.SetText(_("Perfect"));
|
item.SetText(_("Perfect"));
|
||||||
else if(EmuState == "4")
|
break;
|
||||||
|
case 4:
|
||||||
item.SetText(_("In Game"));
|
item.SetText(_("In Game"));
|
||||||
else if(EmuState == "3")
|
break;
|
||||||
|
case 3:
|
||||||
item.SetText(_("Intro"));
|
item.SetText(_("Intro"));
|
||||||
else if(EmuState == "2")
|
break;
|
||||||
{
|
case 2:
|
||||||
|
//NOTE (Daco): IMO under 2 goes problems like music and games that only work with specific settings
|
||||||
item.SetText(_("Problems: Other"));
|
item.SetText(_("Problems: Other"));
|
||||||
//NOTE (Daco): IMO under 2 i see problems like music and games that only work
|
//TODO (Daco): maybe 2 should get a function to present more info instead of the notes column... o.o
|
||||||
//with GL or only with DX9
|
break;
|
||||||
//TODO (Daco): maybe 2 should get a function to present more info... o.o
|
case 1:
|
||||||
}
|
|
||||||
else if(EmuState == "1")
|
|
||||||
item.SetText(_("Broken"));
|
item.SetText(_("Broken"));
|
||||||
else if(EmuState == "0")
|
break;
|
||||||
|
case 0:
|
||||||
item.SetText(_("Not Set"));
|
item.SetText(_("Not Set"));
|
||||||
else
|
break;
|
||||||
{
|
default:
|
||||||
//if the EmuState isn't a number between 0 & 5 we dont know the state
|
//if the EmuState isn't a number between 0 & 5 we dont know the state D:
|
||||||
//hence why it should say unknown
|
|
||||||
item.SetText(_("unknown emu ID"));
|
item.SetText(_("unknown emu ID"));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SetItem(item);
|
SetItem(item);
|
||||||
@ -287,7 +289,10 @@ void CGameListCtrl::InsertItemInReportView(long _Index)
|
|||||||
item.SetColumn(COLUMN_ISSUES);
|
item.SetColumn(COLUMN_ISSUES);
|
||||||
std::string issues;
|
std::string issues;
|
||||||
ini.Get("EmuState","Issues",&issues);
|
ini.Get("EmuState","Issues",&issues);
|
||||||
item.SetText(wxString::FromAscii(issues.c_str()));
|
if (!issues.empty())
|
||||||
|
{
|
||||||
|
item.SetText(issues);
|
||||||
|
}
|
||||||
SetItem(item);
|
SetItem(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -810,7 +815,7 @@ void CGameListCtrl::AutomaticColumnWidth()
|
|||||||
SetColumnWidth(COLUMN_TITLE, wxMax(0.3*resizable, 100));
|
SetColumnWidth(COLUMN_TITLE, wxMax(0.3*resizable, 100));
|
||||||
SetColumnWidth(COLUMN_COMPANY, wxMax(0.2*resizable, 100));
|
SetColumnWidth(COLUMN_COMPANY, wxMax(0.2*resizable, 100));
|
||||||
SetColumnWidth(COLUMN_NOTES, wxMax(0.5*resizable, 100));
|
SetColumnWidth(COLUMN_NOTES, wxMax(0.5*resizable, 100));
|
||||||
SetColumnWidth(COLUMN_ISSUES, wxMax(0.5*resizable, 100));
|
SetColumnWidth(COLUMN_ISSUES, wxMax(0.2*resizable, 100));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,11 +41,11 @@ public:
|
|||||||
COLUMN_BANNER = 0,
|
COLUMN_BANNER = 0,
|
||||||
COLUMN_TITLE,
|
COLUMN_TITLE,
|
||||||
COLUMN_COMPANY,
|
COLUMN_COMPANY,
|
||||||
COLUMN_ISSUES,
|
COLUMN_NOTES,
|
||||||
COLUMN_COUNTRY,
|
COLUMN_COUNTRY,
|
||||||
COLUMN_SIZE,
|
COLUMN_SIZE,
|
||||||
COLUMN_EMULATION_STATE,
|
COLUMN_EMULATION_STATE,
|
||||||
COLUMN_NOTES,
|
COLUMN_ISSUES,
|
||||||
NUMBER_OF_COLUMN
|
NUMBER_OF_COLUMN
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user