mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
DolphinWX: rename CGameListCtrl -> GameListCtrl
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
#include "DolphinWX/NetPlay/ChangeGameDialog.h"
|
||||
#include "DolphinWX/NetPlay/NetWindow.h"
|
||||
|
||||
ChangeGameDialog::ChangeGameDialog(wxWindow* parent, const CGameListCtrl* const game_list)
|
||||
ChangeGameDialog::ChangeGameDialog(wxWindow* parent, const GameListCtrl* const game_list)
|
||||
: wxDialog(parent, wxID_ANY, _("Select Game"))
|
||||
{
|
||||
const int space5 = FromDIP(5);
|
||||
|
@ -6,13 +6,13 @@
|
||||
|
||||
#include <wx/dialog.h>
|
||||
|
||||
class CGameListCtrl;
|
||||
class GameListCtrl;
|
||||
class wxListBox;
|
||||
|
||||
class ChangeGameDialog final : public wxDialog
|
||||
{
|
||||
public:
|
||||
ChangeGameDialog(wxWindow* parent, const CGameListCtrl* const game_list);
|
||||
ChangeGameDialog(wxWindow* parent, const GameListCtrl* const game_list);
|
||||
|
||||
wxString GetChosenGameName() const;
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/IniFile.h"
|
||||
|
||||
class CGameListCtrl;
|
||||
class GameListCtrl;
|
||||
class wxRect;
|
||||
class wxWindow;
|
||||
|
||||
@ -24,7 +24,7 @@ public:
|
||||
const wxRect window_defaults{wxDefaultCoord, wxDefaultCoord, 768, 768 - 128};
|
||||
|
||||
std::string player_name;
|
||||
const CGameListCtrl* game_list_ctrl;
|
||||
const GameListCtrl* game_list_ctrl;
|
||||
wxWindow* parent_window;
|
||||
bool use_traversal;
|
||||
std::string traversal_host;
|
||||
|
@ -36,7 +36,7 @@ wxString GetTraversalLabelText(IniFile::Section& section)
|
||||
}
|
||||
} // Anonymous namespace
|
||||
|
||||
NetPlaySetupFrame::NetPlaySetupFrame(wxWindow* const parent, const CGameListCtrl* const game_list)
|
||||
NetPlaySetupFrame::NetPlaySetupFrame(wxWindow* const parent, const GameListCtrl* const game_list)
|
||||
: wxFrame(parent, wxID_ANY, _("Dolphin NetPlay Setup")), m_game_list(game_list)
|
||||
{
|
||||
IniFile inifile;
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <string>
|
||||
#include <wx/frame.h>
|
||||
|
||||
class CGameListCtrl;
|
||||
class GameListCtrl;
|
||||
class wxCheckBox;
|
||||
class wxChoice;
|
||||
class wxListBox;
|
||||
@ -20,7 +20,7 @@ class wxTextCtrl;
|
||||
class NetPlaySetupFrame final : public wxFrame
|
||||
{
|
||||
public:
|
||||
NetPlaySetupFrame(wxWindow* const parent, const CGameListCtrl* const game_list);
|
||||
NetPlaySetupFrame(wxWindow* const parent, const GameListCtrl* const game_list);
|
||||
~NetPlaySetupFrame();
|
||||
|
||||
private:
|
||||
@ -66,5 +66,5 @@ private:
|
||||
#endif
|
||||
|
||||
wxString m_traversal_string;
|
||||
const CGameListCtrl* const m_game_list;
|
||||
const GameListCtrl* const m_game_list;
|
||||
};
|
||||
|
@ -58,13 +58,13 @@ NetPlayServer* NetPlayDialog::netplay_server = nullptr;
|
||||
NetPlayClient* NetPlayDialog::netplay_client = nullptr;
|
||||
NetPlayDialog* NetPlayDialog::npd = nullptr;
|
||||
|
||||
void NetPlayDialog::FillWithGameNames(wxListBox* game_lbox, const CGameListCtrl& game_list)
|
||||
void NetPlayDialog::FillWithGameNames(wxListBox* game_lbox, const GameListCtrl& game_list)
|
||||
{
|
||||
for (u32 i = 0; auto game = game_list.GetISO(i); ++i)
|
||||
game_lbox->Append(StrToWxStr(game->GetUniqueIdentifier()));
|
||||
}
|
||||
|
||||
NetPlayDialog::NetPlayDialog(wxWindow* const parent, const CGameListCtrl* const game_list,
|
||||
NetPlayDialog::NetPlayDialog(wxWindow* const parent, const GameListCtrl* const game_list,
|
||||
const std::string& game, const bool is_hosting)
|
||||
: wxFrame(parent, wxID_ANY, _("Dolphin NetPlay")), m_selected_game(game), m_start_btn(nullptr),
|
||||
m_host_label(nullptr), m_host_type_choice(nullptr), m_host_copy_btn(nullptr),
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include <wx/msw/winundef.h>
|
||||
#endif
|
||||
|
||||
class CGameListCtrl;
|
||||
class GameListCtrl;
|
||||
class MD5Dialog;
|
||||
class wxButton;
|
||||
class wxCheckBox;
|
||||
@ -78,7 +78,7 @@ enum class MD5Target
|
||||
class NetPlayDialog : public wxFrame, public NetPlayUI
|
||||
{
|
||||
public:
|
||||
NetPlayDialog(wxWindow* parent, const CGameListCtrl* const game_list, const std::string& game,
|
||||
NetPlayDialog(wxWindow* parent, const GameListCtrl* const game_list, const std::string& game,
|
||||
const bool is_hosting = false);
|
||||
~NetPlayDialog();
|
||||
|
||||
@ -107,7 +107,7 @@ public:
|
||||
static NetPlayDialog*& GetInstance() { return npd; }
|
||||
static NetPlayClient*& GetNetPlayClient() { return netplay_client; }
|
||||
static NetPlayServer*& GetNetPlayServer() { return netplay_server; }
|
||||
static void FillWithGameNames(wxListBox* game_lbox, const CGameListCtrl& game_list);
|
||||
static void FillWithGameNames(wxListBox* game_lbox, const GameListCtrl& game_list);
|
||||
|
||||
bool IsRecording() override;
|
||||
|
||||
@ -163,7 +163,7 @@ private:
|
||||
std::vector<int> m_playerids;
|
||||
Common::FifoQueue<std::string> m_chat_msgs;
|
||||
|
||||
const CGameListCtrl* const m_game_list;
|
||||
const GameListCtrl* const m_game_list;
|
||||
|
||||
static NetPlayDialog* npd;
|
||||
static NetPlayServer* netplay_server;
|
||||
|
Reference in New Issue
Block a user