GameListCtrl: minor cleanup

This commit is contained in:
Shawn Hoffman 2017-06-19 02:25:30 -07:00
parent 668c6b5ce9
commit 79961b6f76
2 changed files with 93 additions and 88 deletions

View File

@ -252,7 +252,7 @@ struct GameListCtrl::ColumnInfo
GameListCtrl::GameListCtrl(wxWindow* parent, const wxWindowID id, const wxPoint& pos, GameListCtrl::GameListCtrl(wxWindow* parent, const wxWindowID id, const wxPoint& pos,
const wxSize& size, long style) const wxSize& size, long style)
: wxListCtrl(parent, id, pos, size, style), toolTip(nullptr), : wxListCtrl(parent, id, pos, size, style), m_tooltip(nullptr),
m_columns({// {COLUMN, {default_width (without platform padding), resizability, visibility}} m_columns({// {COLUMN, {default_width (without platform padding), resizability, visibility}}
{COLUMN_PLATFORM, 32 + 1 /* icon padding */, false, {COLUMN_PLATFORM, 32 + 1 /* icon padding */, false,
SConfig::GetInstance().m_showSystemColumn}, SConfig::GetInstance().m_showSystemColumn},
@ -312,56 +312,60 @@ void GameListCtrl::InitBitmaps()
wxImageList* img_list = new wxImageList(size.GetWidth(), size.GetHeight()); wxImageList* img_list = new wxImageList(size.GetWidth(), size.GetHeight());
AssignImageList(img_list, wxIMAGE_LIST_SMALL); AssignImageList(img_list, wxIMAGE_LIST_SMALL);
m_FlagImageIndex.resize(static_cast<size_t>(DiscIO::Country::NUMBER_OF_COUNTRIES)); auto& flag_indexes = m_image_indexes.flag;
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_JAPAN, flag_indexes.resize(static_cast<size_t>(DiscIO::Country::NUMBER_OF_COUNTRIES));
InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_JAPAN,
"Flag_Japan"); "Flag_Japan");
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_EUROPE, InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_EUROPE,
"Flag_Europe"); "Flag_Europe");
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_USA, InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_USA,
"Flag_USA"); "Flag_USA");
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_AUSTRALIA, InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_AUSTRALIA,
"Flag_Australia"); "Flag_Australia");
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_FRANCE, InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_FRANCE,
"Flag_France"); "Flag_France");
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_GERMANY, InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_GERMANY,
"Flag_Germany"); "Flag_Germany");
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_ITALY, InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_ITALY,
"Flag_Italy"); "Flag_Italy");
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_KOREA, InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_KOREA,
"Flag_Korea"); "Flag_Korea");
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_NETHERLANDS, InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_NETHERLANDS,
"Flag_Netherlands"); "Flag_Netherlands");
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_RUSSIA, InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_RUSSIA,
"Flag_Russia"); "Flag_Russia");
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_SPAIN, InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_SPAIN,
"Flag_Spain"); "Flag_Spain");
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_TAIWAN, InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_TAIWAN,
"Flag_Taiwan"); "Flag_Taiwan");
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_WORLD, InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_WORLD,
"Flag_International"); "Flag_International");
InitBitmap(img_list, &m_FlagImageIndex, this, flag_bmp_size, DiscIO::Country::COUNTRY_UNKNOWN, InitBitmap(img_list, &flag_indexes, this, flag_bmp_size, DiscIO::Country::COUNTRY_UNKNOWN,
"Flag_Unknown"); "Flag_Unknown");
m_PlatformImageIndex.resize(static_cast<size_t>(DiscIO::Platform::NUMBER_OF_PLATFORMS)); auto& platform_indexes = m_image_indexes.platform;
InitBitmap(img_list, &m_PlatformImageIndex, this, platform_bmp_size, platform_indexes.resize(static_cast<size_t>(DiscIO::Platform::NUMBER_OF_PLATFORMS));
InitBitmap(img_list, &platform_indexes, this, platform_bmp_size,
DiscIO::Platform::GAMECUBE_DISC, "Platform_Gamecube"); DiscIO::Platform::GAMECUBE_DISC, "Platform_Gamecube");
InitBitmap(img_list, &m_PlatformImageIndex, this, platform_bmp_size, DiscIO::Platform::WII_DISC, InitBitmap(img_list, &platform_indexes, this, platform_bmp_size, DiscIO::Platform::WII_DISC,
"Platform_Wii"); "Platform_Wii");
InitBitmap(img_list, &m_PlatformImageIndex, this, platform_bmp_size, DiscIO::Platform::WII_WAD, InitBitmap(img_list, &platform_indexes, this, platform_bmp_size, DiscIO::Platform::WII_WAD,
"Platform_Wad"); "Platform_Wad");
InitBitmap(img_list, &m_PlatformImageIndex, this, platform_bmp_size, DiscIO::Platform::ELF_DOL, InitBitmap(img_list, &platform_indexes, this, platform_bmp_size, DiscIO::Platform::ELF_DOL,
"Platform_File"); "Platform_File");
m_EmuStateImageIndex.resize(6); auto& emu_state_indexes = m_image_indexes.emu_state;
InitBitmap(img_list, &m_EmuStateImageIndex, this, rating_bmp_size, 0, "rating0", true); emu_state_indexes.resize(6);
InitBitmap(img_list, &m_EmuStateImageIndex, this, rating_bmp_size, 1, "rating1", true); InitBitmap(img_list, &emu_state_indexes, this, rating_bmp_size, 0, "rating0", true);
InitBitmap(img_list, &m_EmuStateImageIndex, this, rating_bmp_size, 2, "rating2", true); InitBitmap(img_list, &emu_state_indexes, this, rating_bmp_size, 1, "rating1", true);
InitBitmap(img_list, &m_EmuStateImageIndex, this, rating_bmp_size, 3, "rating3", true); InitBitmap(img_list, &emu_state_indexes, this, rating_bmp_size, 2, "rating2", true);
InitBitmap(img_list, &m_EmuStateImageIndex, this, rating_bmp_size, 4, "rating4", true); InitBitmap(img_list, &emu_state_indexes, this, rating_bmp_size, 3, "rating3", true);
InitBitmap(img_list, &m_EmuStateImageIndex, this, rating_bmp_size, 5, "rating5", true); InitBitmap(img_list, &emu_state_indexes, this, rating_bmp_size, 4, "rating4", true);
InitBitmap(img_list, &emu_state_indexes, this, rating_bmp_size, 5, "rating5", true);
m_utility_game_banners.resize(1); auto& utility_banner_indexes = m_image_indexes.utility_banner;
InitBitmap(img_list, &m_utility_game_banners, this, size, 0, "nobanner"); utility_banner_indexes.resize(1);
InitBitmap(img_list, &utility_banner_indexes, this, size, 0, "nobanner");
} }
void GameListCtrl::BrowseForDirectory() void GameListCtrl::BrowseForDirectory()
@ -384,9 +388,8 @@ void GameListCtrl::BrowseForDirectory()
{ {
SConfig::GetInstance().m_ISOFolder.push_back(sPath); SConfig::GetInstance().m_ISOFolder.push_back(sPath);
SConfig::GetInstance().SaveSettings(); SConfig::GetInstance().SaveSettings();
ReloadList();
} }
ReloadList();
} }
} }
@ -440,7 +443,7 @@ void GameListCtrl::ReloadList()
// Sort items by Title // Sort items by Title
if (!sorted) if (!sorted)
last_column = 0; m_last_column = 0;
sorted = false; sorted = false;
wxListEvent event; wxListEvent event;
event.m_col = SConfig::GetInstance().m_ListSort2; event.m_col = SConfig::GetInstance().m_ListSort2;
@ -474,7 +477,7 @@ void GameListCtrl::ReloadList()
errorString = _("Dolphin could not find any GameCube/Wii ISOs or WADs. Double-click here to " errorString = _("Dolphin could not find any GameCube/Wii ISOs or WADs. Double-click here to "
"set a games directory..."); "set a games directory...");
} }
InsertColumn(0, ""); InsertColumn(COLUMN_DUMMY, "");
long index = InsertItem(0, errorString); long index = InsertItem(0, errorString);
SetItemFont(index, *wxITALIC_FONT); SetItemFont(index, *wxITALIC_FONT);
SetColumnWidth(0, wxLIST_AUTOSIZE); SetColumnWidth(0, wxLIST_AUTOSIZE);
@ -511,34 +514,34 @@ static wxString NiceSizeFormat(u64 size)
// Update the column content of the item at _Index // Update the column content of the item at _Index
void GameListCtrl::UpdateItemAtColumn(long index, int column) void GameListCtrl::UpdateItemAtColumn(long index, int column)
{ {
GameListItem& rISOFile = *m_ISOFiles[GetItemData(_Index)]; const auto& iso_file = *GetISO(GetItemData(index));
switch (column) switch (column)
{ {
case COLUMN_PLATFORM: case COLUMN_PLATFORM:
{ {
SetItemColumnImage(_Index, COLUMN_PLATFORM, SetItemColumnImage(index, COLUMN_PLATFORM,
m_PlatformImageIndex[static_cast<size_t>(rISOFile.GetPlatform())]); m_image_indexes.platform[static_cast<size_t>(iso_file.GetPlatform())]);
break; break;
} }
case COLUMN_BANNER: case COLUMN_BANNER:
{ {
int ImageIndex = m_utility_game_banners[0]; // nobanner int image_index = m_image_indexes.utility_banner[0]; // nobanner
if (rISOFile.GetBannerImage().IsOk()) if (iso_file.GetBannerImage().IsOk())
{ {
wxImageList* img_list = GetImageList(wxIMAGE_LIST_SMALL); wxImageList* img_list = GetImageList(wxIMAGE_LIST_SMALL);
ImageIndex = img_list->Add( image_index = img_list->Add(
WxUtils::ScaleImageToBitmap(rISOFile.GetBannerImage(), this, img_list->GetSize())); WxUtils::ScaleImageToBitmap(iso_file.GetBannerImage(), this, img_list->GetSize()));
} }
SetItemColumnImage(_Index, COLUMN_BANNER, ImageIndex); SetItemColumnImage(index, COLUMN_BANNER, image_index);
break; break;
} }
case COLUMN_TITLE: case COLUMN_TITLE:
{ {
wxString name = StrToWxStr(rISOFile.GetName()); wxString name = StrToWxStr(iso_file.GetName());
int disc_number = rISOFile.GetDiscNumber() + 1; int disc_number = iso_file.GetDiscNumber() + 1;
if (disc_number > 1 && if (disc_number > 1 &&
name.Lower().find(wxString::Format("disc %i", disc_number)) == std::string::npos && name.Lower().find(wxString::Format("disc %i", disc_number)) == std::string::npos &&
@ -547,28 +550,28 @@ void GameListCtrl::UpdateItemAtColumn(long index, int column)
name = wxString::Format(_("%s (Disc %i)"), name.c_str(), disc_number); name = wxString::Format(_("%s (Disc %i)"), name.c_str(), disc_number);
} }
SetItem(_Index, COLUMN_TITLE, name, -1); SetItem(index, COLUMN_TITLE, name, -1);
break; break;
} }
case COLUMN_MAKER: case COLUMN_MAKER:
SetItem(_Index, COLUMN_MAKER, StrToWxStr(rISOFile.GetCompany()), -1); SetItem(index, COLUMN_MAKER, StrToWxStr(iso_file.GetCompany()), -1);
break; break;
case COLUMN_FILENAME: case COLUMN_FILENAME:
SetItem(_Index, COLUMN_FILENAME, wxFileNameFromPath(StrToWxStr(rISOFile.GetFileName())), -1); SetItem(index, COLUMN_FILENAME, wxFileNameFromPath(StrToWxStr(iso_file.GetFileName())), -1);
break; break;
case COLUMN_EMULATION_STATE: case COLUMN_EMULATION_STATE:
SetItemColumnImage(_Index, COLUMN_EMULATION_STATE, SetItemColumnImage(index, COLUMN_EMULATION_STATE,
m_EmuStateImageIndex[rISOFile.GetEmuState()]); m_image_indexes.emu_state[iso_file.GetEmuState()]);
break; break;
case COLUMN_COUNTRY: case COLUMN_COUNTRY:
SetItemColumnImage(_Index, COLUMN_COUNTRY, SetItemColumnImage(index, COLUMN_COUNTRY,
m_FlagImageIndex[static_cast<size_t>(rISOFile.GetCountry())]); m_image_indexes.flag[static_cast<size_t>(iso_file.GetCountry())]);
break; break;
case COLUMN_SIZE: case COLUMN_SIZE:
SetItem(_Index, COLUMN_SIZE, NiceSizeFormat(rISOFile.GetFileSize()), -1); SetItem(index, COLUMN_SIZE, NiceSizeFormat(iso_file.GetFileSize()), -1);
break; break;
case COLUMN_ID: case COLUMN_ID:
SetItem(_Index, COLUMN_ID, rISOFile.GetGameID(), -1); SetItem(index, COLUMN_ID, iso_file.GetGameID(), -1);
break; break;
} }
} }
@ -580,7 +583,7 @@ void GameListCtrl::InsertItemInReportView(long index)
// title: 0xFF0000 // title: 0xFF0000
// company: 0x007030 // company: 0x007030
// Insert a first column with nothing in it, that will be used as the Index // Insert a first column (COLUMN_DUMMY) with nothing in it to use as the Index
long item_index; long item_index;
{ {
wxListItem li; wxListItem li;
@ -591,7 +594,7 @@ void GameListCtrl::InsertItemInReportView(long index)
} }
// Iterate over all columns and fill them with content if they are visible // Iterate over all columns and fill them with content if they are visible
for (int i = 1; i < NUMBER_OF_COLUMN; i++) for (int i = FIRST_COLUMN_WITH_CONTENT; i < NUMBER_OF_COLUMN; i++)
{ {
if (GetColumnWidth(i) != 0) if (GetColumnWidth(i) != 0)
UpdateItemAtColumn(item_index, i); UpdateItemAtColumn(item_index, i);
@ -710,7 +713,7 @@ void GameListCtrl::OnLocalIniModified(wxCommandEvent& ev)
continue; continue;
// Update all the columns // Update all the columns
for (int j = 1; j < NUMBER_OF_COLUMN; ++j) for (int j = FIRST_COLUMN_WITH_CONTENT; j < NUMBER_OF_COLUMN; ++j)
{ {
// NOTE: Banner is not modified by the INI and updating it will // NOTE: Banner is not modified by the INI and updating it will
// duplicate it in memory which is not wanted. // duplicate it in memory which is not wanted.
@ -755,25 +758,25 @@ void GameListCtrl::OnColumnClick(wxListEvent& event)
int current_column = event.GetColumn(); int current_column = event.GetColumn();
if (sorted) if (sorted)
{ {
if (last_column == current_column) if (m_last_column == current_column)
{ {
last_sort = -last_sort; m_last_sort = -m_last_sort;
} }
else else
{ {
SConfig::GetInstance().m_ListSort2 = last_sort; SConfig::GetInstance().m_ListSort2 = m_last_sort;
last_column = current_column; m_last_column = current_column;
last_sort = current_column; m_last_sort = current_column;
} }
SConfig::GetInstance().m_ListSort = last_sort; SConfig::GetInstance().m_ListSort = m_last_sort;
} }
else else
{ {
last_sort = current_column; m_last_sort = current_column;
last_column = current_column; m_last_column = current_column;
} }
caller = this; caller = this;
SortItems(wxListCompare, last_sort); SortItems(wxListCompare, m_last_sort);
} }
SetColors(); SetColors();
@ -855,7 +858,7 @@ void GameListCtrl::OnMouseMotion(wxMouseEvent& event)
if (Rect.GetX() + Rect.GetWidth() - GetColumnWidth(COLUMN_EMULATION_STATE) < event.GetX()) if (Rect.GetX() + Rect.GetWidth() - GetColumnWidth(COLUMN_EMULATION_STATE) < event.GetX())
#endif #endif
{ {
if (toolTip || lastItem == item || this != FindFocus()) if (m_tooltip || lastItem == item || this != FindFocus())
{ {
if (lastItem != item) if (lastItem != item)
lastItem = -1; lastItem = -1;
@ -866,7 +869,7 @@ void GameListCtrl::OnMouseMotion(wxMouseEvent& event)
// Emulation status // Emulation status
static const char* const emuState[] = {"Broken", "Intro", "In-Game", "Playable", "Perfect"}; static const char* const emuState[] = {"Broken", "Intro", "In-Game", "Playable", "Perfect"};
const GameListItem* iso = m_ISOFiles[GetItemData(item)].get(); const GameListItem* iso = GetISO(GetItemData(item));
const int emu_state = iso->GetEmuState(); const int emu_state = iso->GetEmuState();
const std::string& issues = iso->GetIssues(); const std::string& issues = iso->GetIssues();
@ -877,11 +880,11 @@ void GameListCtrl::OnMouseMotion(wxMouseEvent& event)
char temp[2048]; char temp[2048];
sprintf(temp, "^ %s%s%s", emuState[emu_state - 1], issues.size() > 0 ? " :\n" : "", sprintf(temp, "^ %s%s%s", emuState[emu_state - 1], issues.size() > 0 ? " :\n" : "",
issues.c_str()); issues.c_str());
toolTip = new wxEmuStateTip(this, StrToWxStr(temp), &toolTip); m_tooltip = new wxEmuStateTip(this, StrToWxStr(temp), &m_tooltip);
} }
else else
{ {
toolTip = new wxEmuStateTip(this, _("Not Set"), &toolTip); m_tooltip = new wxEmuStateTip(this, _("Not Set"), &m_tooltip);
} }
// Get item Coords // Get item Coords
@ -896,14 +899,14 @@ void GameListCtrl::OnMouseMotion(wxMouseEvent& event)
#endif #endif
// Convert to screen coordinates // Convert to screen coordinates
ClientToScreen(&mx, &my); ClientToScreen(&mx, &my);
toolTip->SetBoundingRect(wxRect(mx - GetColumnWidth(COLUMN_EMULATION_STATE), my, m_tooltip->SetBoundingRect(wxRect(mx - GetColumnWidth(COLUMN_EMULATION_STATE), my,
GetColumnWidth(COLUMN_EMULATION_STATE), Rect.GetHeight())); GetColumnWidth(COLUMN_EMULATION_STATE), Rect.GetHeight()));
toolTip->SetPosition( m_tooltip->SetPosition(
wxPoint(mx - GetColumnWidth(COLUMN_EMULATION_STATE), my - 5 + Rect.GetHeight())); wxPoint(mx - GetColumnWidth(COLUMN_EMULATION_STATE), my - 5 + Rect.GetHeight()));
lastItem = item; lastItem = item;
} }
} }
if (!toolTip) if (!m_tooltip)
lastItem = -1; lastItem = -1;
event.Skip(); event.Skip();
@ -1051,7 +1054,7 @@ const GameListItem* GameListCtrl::GetSelectedISO() const
if (item == wxNOT_FOUND) if (item == wxNOT_FOUND)
return nullptr; return nullptr;
return m_ISOFiles[GetItemData(item)].get(); return GetISO(GetItemData(item));
} }
std::vector<const GameListItem*> GameListCtrl::GetAllSelectedISOs() const std::vector<const GameListItem*> GameListCtrl::GetAllSelectedISOs() const
@ -1063,7 +1066,7 @@ std::vector<const GameListItem*> GameListCtrl::GetAllSelectedISOs() const
item = GetNextItem(item, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); item = GetNextItem(item, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
if (item == wxNOT_FOUND) if (item == wxNOT_FOUND)
return result; return result;
result.push_back(m_ISOFiles[GetItemData(item)].get()); result.push_back(GetISO(GetItemData(item)));
} }
} }
@ -1399,10 +1402,10 @@ void GameListCtrl::OnChangeDisc(wxCommandEvent& WXUNUSED(event))
void GameListCtrl::OnSize(wxSizeEvent& event) void GameListCtrl::OnSize(wxSizeEvent& event)
{ {
event.Skip(); event.Skip();
if (lastpos == event.GetSize()) if (m_lastpos == event.GetSize())
return; return;
lastpos = event.GetSize(); m_lastpos = event.GetSize();
AutomaticColumnWidth(); AutomaticColumnWidth();
} }

View File

@ -50,7 +50,8 @@ public:
enum enum
{ {
COLUMN_DUMMY = 0, COLUMN_DUMMY = 0,
COLUMN_PLATFORM, FIRST_COLUMN_WITH_CONTENT,
COLUMN_PLATFORM = FIRST_COLUMN_WITH_CONTENT,
COLUMN_BANNER, COLUMN_BANNER,
COLUMN_TITLE, COLUMN_TITLE,
COLUMN_MAKER, COLUMN_MAKER,
@ -71,10 +72,9 @@ private:
void ReloadList(); void ReloadList();
void ClearIsoFiles() { m_ISOFiles.clear(); }
void InitBitmaps(); void InitBitmaps();
void UpdateItemAtColumn(long _Index, int column); void UpdateItemAtColumn(long index, int column);
void InsertItemInReportView(long _Index); void InsertItemInReportView(long index);
void SetColors(); void SetColors();
void ScanForISOs(); void ScanForISOs();
@ -109,16 +109,18 @@ private:
static bool MultiCompressCB(const std::string& text, float percent, void* arg); static bool MultiCompressCB(const std::string& text, float percent, void* arg);
static bool WiiCompressWarning(); static bool WiiCompressWarning();
std::vector<int> m_FlagImageIndex;
std::vector<int> m_PlatformImageIndex;
std::vector<int> m_EmuStateImageIndex;
std::vector<int> m_utility_game_banners;
std::vector<std::unique_ptr<GameListItem>> m_ISOFiles; std::vector<std::unique_ptr<GameListItem>> m_ISOFiles;
struct {
std::vector<int> flag;
std::vector<int> platform;
std::vector<int> utility_banner;
std::vector<int> emu_state;
} m_image_indexes;
int last_column; int m_last_column;
int last_sort; int m_last_sort;
wxSize lastpos; wxSize m_lastpos;
wxEmuStateTip* toolTip; wxEmuStateTip* m_tooltip;
std::vector<ColumnInfo> m_columns; std::vector<ColumnInfo> m_columns;
}; };