NetPlaySetupFrame.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Copyright 2015 Dolphin Emulator Project
  2. // Licensed under GPLv2+
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <algorithm>
  6. #include <string>
  7. #include <wx/frame.h>
  8. class CGameListCtrl;
  9. class wxCheckBox;
  10. class wxChoice;
  11. class wxListBox;
  12. class wxStaticText;
  13. class wxTextCtrl;
  14. class NetPlaySetupFrame final : public wxFrame
  15. {
  16. public:
  17. NetPlaySetupFrame(wxWindow* const parent, const CGameListCtrl* const game_list);
  18. ~NetPlaySetupFrame();
  19. private:
  20. void OnJoin(wxCommandEvent& event);
  21. void OnHost(wxCommandEvent& event);
  22. void OnQuit(wxCommandEvent& event);
  23. void OnChoice(wxCommandEvent& event);
  24. void OnResetTraversal(wxCommandEvent& event);
  25. void MakeNetPlayDiag(int port, const std::string& game, bool is_hosting);
  26. wxStaticText* m_ip_lbl;
  27. wxStaticText* m_client_port_lbl;
  28. wxTextCtrl* m_nickname_text;
  29. wxStaticText* m_host_port_lbl;
  30. wxTextCtrl* m_host_port_text;
  31. wxTextCtrl* m_connect_port_text;
  32. wxTextCtrl* m_connect_ip_text;
  33. wxChoice* m_direct_traversal;
  34. wxStaticText* m_traversal_lbl;
  35. wxButton* m_trav_reset_btn;
  36. wxListBox* m_game_lbox;
  37. #ifdef USE_UPNP
  38. wxCheckBox* m_upnp_chk;
  39. #endif
  40. const CGameListCtrl* const m_game_list;
  41. };