mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
DolphinWX: Make the main config dialog modeless
This commit is contained in:
@ -31,6 +31,8 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
wxDECLARE_EVENT(DOLPHIN_EVT_RELOAD_GAMELIST, wxCommandEvent);
|
||||
|
||||
class CGameListCtrl : public wxListCtrl
|
||||
{
|
||||
public:
|
||||
@ -38,8 +40,6 @@ public:
|
||||
long style);
|
||||
~CGameListCtrl();
|
||||
|
||||
void ReloadList();
|
||||
|
||||
void BrowseForDirectory();
|
||||
const GameListItem* GetISO(size_t index) const;
|
||||
const GameListItem* GetSelectedISO() const;
|
||||
@ -67,17 +67,9 @@ public:
|
||||
#endif
|
||||
|
||||
private:
|
||||
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;
|
||||
void ReloadList();
|
||||
|
||||
void ClearIsoFiles() { m_ISOFiles.clear(); }
|
||||
int last_column;
|
||||
int last_sort;
|
||||
wxSize lastpos;
|
||||
wxEmuStateTip* toolTip;
|
||||
void InitBitmaps();
|
||||
void UpdateItemAtColumn(long _Index, int column);
|
||||
void InsertItemInReportView(long _Index);
|
||||
@ -85,6 +77,7 @@ private:
|
||||
void ScanForISOs();
|
||||
|
||||
// events
|
||||
void OnReloadGameList(wxCommandEvent& event);
|
||||
void OnLeftClick(wxMouseEvent& event);
|
||||
void OnRightClick(wxMouseEvent& event);
|
||||
void OnMouseMotion(wxMouseEvent& event);
|
||||
@ -113,4 +106,15 @@ private:
|
||||
static bool CompressCB(const std::string& text, float percent, void* arg);
|
||||
static bool MultiCompressCB(const std::string& text, float percent, void* arg);
|
||||
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;
|
||||
|
||||
int last_column;
|
||||
int last_sort;
|
||||
wxSize lastpos;
|
||||
wxEmuStateTip* toolTip;
|
||||
};
|
||||
|
Reference in New Issue
Block a user