// Copyright (C) 2003 Dolphin Project. // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, version 2.0. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License 2.0 for more details. // A copy of the GPL 2.0 should have been included with the program. // If not, see http://www.gnu.org/licenses/ // Official SVN repository and contact information can be found at // http://code.google.com/p/dolphin-emu/ #ifndef _NETWINDOW_H_ #define _NETWINDOW_H_ #include "CommonTypes.h" #include #include #include #include #include #include #include #include //#include #include "GameListCtrl.h" // just leaving these here so i can find something later if i need it //#include "Frame.h" //#include "Globals.h" //#include "BootManager.h" //#include "Common.h" //#include "NetStructs.h" //#include "Core.h" //#include "pluginspecs_pad.h" //#include "HW/SI.h" //#include "HW/SI_Device.h" //#include "HW/SI_DeviceGCController.h" //#include "Timer.h" #include "LockingQueue.h" class NetPlaySetupDiag : public wxFrame { public: NetPlaySetupDiag(wxWindow* parent, const CGameListCtrl* const game_list); private: void OnJoin(wxCommandEvent& event); void OnHost(wxCommandEvent& event); void OnQuit(wxCommandEvent& event); wxTextCtrl *m_nickname_text, *m_host_port_text, *m_connect_port_text, *m_connect_ip_text; wxListBox* m_game_lbox; const CGameListCtrl* const m_game_list; }; class NetPlayDiag : public wxFrame { public: NetPlayDiag(wxWindow* parent, const CGameListCtrl* const game_list , const std::string& game, const bool is_hosting = false); ~NetPlayDiag(); LockingQueue chat_msgs; //std::string chat_msg; void OnStart(wxCommandEvent& event); private: DECLARE_EVENT_TABLE() void OnChat(wxCommandEvent& event); void OnQuit(wxCommandEvent& event); void OnThread(wxCommandEvent& event); wxListBox* m_player_lbox; wxTextCtrl* m_chat_text; wxTextCtrl* m_chat_msg_text; std::string m_selected_game; wxButton* m_game_btn; const CGameListCtrl* const m_game_list; //NetPlay* const m_netplay; }; DECLARE_EVENT_TYPE(wxEVT_THREAD, -1) #endif // _NETWINDOW_H_