From f344a43657f609343fec125f374e014692e4ca6a Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sat, 22 Feb 2014 23:36:30 +0100 Subject: [PATCH] Make DolphinWX/ mostly IWYU clean. --- Source/Core/DolphinWX/ARCodeAddEdit.cpp | 23 ++++++++ Source/Core/DolphinWX/ARCodeAddEdit.h | 15 ++++- Source/Core/DolphinWX/AboutDolphin.cpp | 16 +++++- Source/Core/DolphinWX/AboutDolphin.h | 13 +++-- Source/Core/DolphinWX/Android/ButtonManager.h | 2 - Source/Core/DolphinWX/CheatsWindow.cpp | 38 ++++++++++++- Source/Core/DolphinWX/CheatsWindow.h | 37 +++++++----- Source/Core/DolphinWX/ConfigMain.cpp | 17 ++++++ Source/Core/DolphinWX/ConfigMain.h | 38 ++++++++++--- .../Core/DolphinWX/Debugger/BreakpointDlg.cpp | 12 ++++ .../Core/DolphinWX/Debugger/BreakpointDlg.h | 4 +- .../DolphinWX/Debugger/BreakpointView.cpp | 18 +++++- .../Core/DolphinWX/Debugger/BreakpointView.h | 3 +- .../DolphinWX/Debugger/BreakpointWindow.cpp | 19 +++++++ .../DolphinWX/Debugger/BreakpointWindow.h | 13 ++++- Source/Core/DolphinWX/Debugger/CodeView.cpp | 20 +++++++ Source/Core/DolphinWX/Debugger/CodeView.h | 7 ++- Source/Core/DolphinWX/Debugger/CodeWindow.cpp | 43 ++++++++++---- Source/Core/DolphinWX/Debugger/CodeWindow.h | 21 +++++-- .../Debugger/CodeWindowFunctions.cpp | 30 +++++++--- .../DolphinWX/Debugger/DSPDebugWindow.cpp | 24 +++++++- .../Core/DolphinWX/Debugger/DSPDebugWindow.h | 28 ++++------ .../DolphinWX/Debugger/DSPRegisterView.cpp | 14 ++++- .../Core/DolphinWX/Debugger/DSPRegisterView.h | 7 +++ .../Core/DolphinWX/Debugger/DebuggerPanel.cpp | 25 +++++++-- .../Core/DolphinWX/Debugger/DebuggerPanel.h | 14 ++++- .../DolphinWX/Debugger/DebuggerUIUtil.cpp | 3 + .../Core/DolphinWX/Debugger/DebuggerUIUtil.h | 2 +- Source/Core/DolphinWX/Debugger/JitWindow.cpp | 22 +++++--- Source/Core/DolphinWX/Debugger/JitWindow.h | 20 ++++--- .../DolphinWX/Debugger/MemoryCheckDlg.cpp | 14 +++++ .../Core/DolphinWX/Debugger/MemoryCheckDlg.h | 5 +- Source/Core/DolphinWX/Debugger/MemoryView.cpp | 21 ++++++- Source/Core/DolphinWX/Debugger/MemoryView.h | 10 +++- .../Core/DolphinWX/Debugger/MemoryWindow.cpp | 33 +++++++++-- Source/Core/DolphinWX/Debugger/MemoryWindow.h | 24 +++++--- .../Core/DolphinWX/Debugger/RegisterView.cpp | 13 ++++- Source/Core/DolphinWX/Debugger/RegisterView.h | 6 ++ .../DolphinWX/Debugger/RegisterWindow.cpp | 12 +++- .../Core/DolphinWX/Debugger/RegisterWindow.h | 10 +++- Source/Core/DolphinWX/FifoPlayerDlg.cpp | 32 ++++++++++- Source/Core/DolphinWX/FifoPlayerDlg.h | 20 ++++++- Source/Core/DolphinWX/Frame.cpp | 47 ++++++++++++---- Source/Core/DolphinWX/Frame.h | 50 ++++++++++------- Source/Core/DolphinWX/FrameAui.cpp | 33 +++++++++++ Source/Core/DolphinWX/FrameTools.cpp | 45 +++++++++++++-- Source/Core/DolphinWX/GameListCtrl.cpp | 42 +++++++++++++- Source/Core/DolphinWX/GameListCtrl.h | 11 +++- Source/Core/DolphinWX/GeckoCodeDiag.cpp | 23 +++++++- Source/Core/DolphinWX/GeckoCodeDiag.h | 14 ++++- Source/Core/DolphinWX/Globals.h | 20 +------ Source/Core/DolphinWX/HotkeyDlg.cpp | 22 ++++++++ Source/Core/DolphinWX/HotkeyDlg.h | 21 ++++--- Source/Core/DolphinWX/ISOFile.cpp | 14 ++++- Source/Core/DolphinWX/ISOFile.h | 2 +- Source/Core/DolphinWX/ISOProperties.cpp | 56 ++++++++++++++++++- Source/Core/DolphinWX/ISOProperties.h | 38 ++++++++----- Source/Core/DolphinWX/InputConfigDiag.cpp | 48 ++++++++++++++++ Source/Core/DolphinWX/InputConfigDiag.h | 35 ++++++++---- .../Core/DolphinWX/InputConfigDiagBitmaps.cpp | 24 ++++++++ Source/Core/DolphinWX/LogConfigWindow.cpp | 20 +++++++ Source/Core/DolphinWX/LogConfigWindow.h | 11 +++- Source/Core/DolphinWX/LogWindow.cpp | 29 +++++++++- Source/Core/DolphinWX/LogWindow.h | 27 ++++++--- Source/Core/DolphinWX/Main.cpp | 35 ++++++++++-- Source/Core/DolphinWX/Main.h | 12 +++- Source/Core/DolphinWX/MainAndroid.cpp | 1 + Source/Core/DolphinWX/MainNoGUI.cpp | 7 +-- Source/Core/DolphinWX/MemcardManager.cpp | 26 +++++++++ Source/Core/DolphinWX/MemcardManager.h | 27 ++++++--- .../DolphinWX/MemoryCards/WiiSaveCrypted.cpp | 12 +++- .../DolphinWX/MemoryCards/WiiSaveCrypted.h | 6 +- Source/Core/DolphinWX/NetWindow.cpp | 32 ++++++++++- Source/Core/DolphinWX/NetWindow.h | 21 ++++--- Source/Core/DolphinWX/PHackSettings.cpp | 21 ++++++- Source/Core/DolphinWX/PHackSettings.h | 15 ++++- Source/Core/DolphinWX/PatchAddEdit.cpp | 24 ++++++++ Source/Core/DolphinWX/PatchAddEdit.h | 19 ++++++- Source/Core/DolphinWX/TASInputDlg.cpp | 23 +++++++- Source/Core/DolphinWX/TASInputDlg.h | 17 +++++- Source/Core/DolphinWX/UDPConfigDiag.cpp | 14 ++++- Source/Core/DolphinWX/UDPConfigDiag.h | 17 ++---- Source/Core/DolphinWX/VideoConfigDiag.cpp | 32 ++++++++++- Source/Core/DolphinWX/VideoConfigDiag.h | 26 ++++++--- Source/Core/DolphinWX/WXInputBase.cpp | 5 ++ Source/Core/DolphinWX/WXInputBase.h | 3 +- Source/Core/DolphinWX/WiimoteConfigDiag.cpp | 28 +++++++++- Source/Core/DolphinWX/WiimoteConfigDiag.h | 19 +++---- Source/Core/DolphinWX/WxUtils.cpp | 15 ++++- Source/Core/DolphinWX/WxUtils.h | 7 +++ Source/Core/DolphinWX/X11Utils.cpp | 4 ++ Source/Core/DolphinWX/X11Utils.h | 7 +-- 92 files changed, 1511 insertions(+), 344 deletions(-) diff --git a/Source/Core/DolphinWX/ARCodeAddEdit.cpp b/Source/Core/DolphinWX/ARCodeAddEdit.cpp index 0143e153fe..7c90b726b8 100644 --- a/Source/Core/DolphinWX/ARCodeAddEdit.cpp +++ b/Source/Core/DolphinWX/ARCodeAddEdit.cpp @@ -2,10 +2,33 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Common/Common.h" +#include "Common/StringUtil.h" +#include "Core/ActionReplay.h" #include "Core/ARDecrypt.h" #include "DolphinWX/ARCodeAddEdit.h" #include "DolphinWX/WxUtils.h" +class wxWindow; + extern std::vector arCodes; BEGIN_EVENT_TABLE(CARCodeAddEdit, wxDialog) diff --git a/Source/Core/DolphinWX/ARCodeAddEdit.h b/Source/Core/DolphinWX/ARCodeAddEdit.h index 9f22a0c2f4..d2ebbe505c 100644 --- a/Source/Core/DolphinWX/ARCodeAddEdit.h +++ b/Source/Core/DolphinWX/ARCodeAddEdit.h @@ -4,10 +4,19 @@ #pragma once -#include -#include +#include +#include +#include +#include +#include +#include -#include "DolphinWX/ISOProperties.h" +class wxSpinButton; +class wxSpinEvent; +class wxTextCtrl; +class wxWindow; + +namespace ActionReplay { struct ARCode; } class CARCodeAddEdit : public wxDialog { diff --git a/Source/Core/DolphinWX/AboutDolphin.cpp b/Source/Core/DolphinWX/AboutDolphin.cpp index c17c219b11..470baea8f6 100644 --- a/Source/Core/DolphinWX/AboutDolphin.cpp +++ b/Source/Core/DolphinWX/AboutDolphin.cpp @@ -2,11 +2,25 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include "Common/Common.h" #include "DolphinWX/AboutDolphin.h" -#include "DolphinWX/WxUtils.h" #include "DolphinWX/resources/dolphin_logo.cpp" +class wxWindow; + AboutDolphin::AboutDolphin(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style) diff --git a/Source/Core/DolphinWX/AboutDolphin.h b/Source/Core/DolphinWX/AboutDolphin.h index 4c1f43053d..5ea8b9184a 100644 --- a/Source/Core/DolphinWX/AboutDolphin.h +++ b/Source/Core/DolphinWX/AboutDolphin.h @@ -4,13 +4,14 @@ #pragma once -#include +#include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include + +class wxWindow; class AboutDolphin : public wxDialog { diff --git a/Source/Core/DolphinWX/Android/ButtonManager.h b/Source/Core/DolphinWX/Android/ButtonManager.h index f56157d7d1..54d403a7ff 100644 --- a/Source/Core/DolphinWX/Android/ButtonManager.h +++ b/Source/Core/DolphinWX/Android/ButtonManager.h @@ -6,8 +6,6 @@ #include #include -#include "Common/CommonPaths.h" -#include "VideoCommon/VideoBackendBase.h" namespace ButtonManager { diff --git a/Source/Core/DolphinWX/CheatsWindow.cpp b/Source/Core/DolphinWX/CheatsWindow.cpp index 398b981fc4..4318fb912c 100644 --- a/Source/Core/DolphinWX/CheatsWindow.cpp +++ b/Source/Core/DolphinWX/CheatsWindow.cpp @@ -2,18 +2,50 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include "Common/CommonPaths.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Common/Common.h" +#include "Common/IniFile.h" #include "Core/ActionReplay.h" #include "Core/ConfigManager.h" #include "Core/Core.h" -#include "Core/VolumeHandler.h" +#include "Core/CoreParameter.h" +#include "Core/GeckoCode.h" +#include "Core/GeckoCodeConfig.h" #include "Core/HW/Memmap.h" #include "DolphinWX/CheatsWindow.h" #include "DolphinWX/Frame.h" -#include "DolphinWX/Globals.h" +#include "DolphinWX/GeckoCodeDiag.h" #include "DolphinWX/ISOProperties.h" #include "DolphinWX/WxUtils.h" +class wxWindow; #define MAX_CHEAT_SEARCH_RESULTS_DISPLAY 256 extern std::vector arCodes; diff --git a/Source/Core/DolphinWX/CheatsWindow.h b/Source/Core/DolphinWX/CheatsWindow.h index d7823a982c..7a82822f56 100644 --- a/Source/Core/DolphinWX/CheatsWindow.h +++ b/Source/Core/DolphinWX/CheatsWindow.h @@ -4,25 +4,32 @@ #pragma once +#include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include "Common/CommonTypes.h" #include "Common/IniFile.h" -#include "Core/ActionReplay.h" -#include "DiscIO/Filesystem.h" -#include "DolphinWX/GeckoCodeDiag.h" + +class wxButton; +class wxCheckBox; +class wxCheckListBox; +class wxChoice; +class wxCloseEvent; +class wxCommandEvent; +class wxEvent; +class wxListBox; +class wxNotebook; +class wxRadioButton; +class wxStaticBox; +class wxStaticText; +class wxTextCtrl; +class wxWindow; + +namespace Gecko { class CodeConfigPanel; } class CreateCodeDialog : public wxDialog { diff --git a/Source/Core/DolphinWX/ConfigMain.cpp b/Source/Core/DolphinWX/ConfigMain.cpp index 62e41de79d..716a47b93b 100644 --- a/Source/Core/DolphinWX/ConfigMain.cpp +++ b/Source/Core/DolphinWX/ConfigMain.cpp @@ -6,7 +6,22 @@ #include #include #include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include #include "Common/Common.h" #include "Common/CommonPaths.h" @@ -15,6 +30,7 @@ #include "Core/ConfigManager.h" #include "Core/Core.h" +#include "Core/Movie.h" #include "Core/NetPlayProto.h" #include "Core/HW/EXI.h" #include "Core/HW/GCMemcard.h" @@ -31,6 +47,7 @@ #include "DolphinWX/HotkeyDlg.h" #include "DolphinWX/Main.h" #include "DolphinWX/WxUtils.h" +#include "DolphinWX/Debugger/CodeWindow.h" #include "VideoCommon/VideoBackendBase.h" diff --git a/Source/Core/DolphinWX/ConfigMain.h b/Source/Core/DolphinWX/ConfigMain.h index 9aafeedf0e..5ae0aeb352 100644 --- a/Source/Core/DolphinWX/ConfigMain.h +++ b/Source/Core/DolphinWX/ConfigMain.h @@ -4,18 +4,42 @@ #pragma once -#include -#include -#include -#include -#include -#include +#include +#include -#include "Core/ConfigManager.h" +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Common/CommonTypes.h" #if defined(HAVE_XRANDR) && HAVE_XRANDR #include "DolphinWX/X11Utils.h" #endif +class wxBoxSizer; +class wxButton; +class wxCheckBox; +class wxChoice; +class wxDirPickerCtrl; +class wxFileDirPickerEvent; +class wxFilePickerCtrl; +class wxGridBagSizer; +class wxListBox; +class wxNotebook; +class wxPanel; +class wxRadioBox; +class wxSlider; +class wxSpinCtrl; +class wxSpinEvent; +class wxStaticBoxSizer; +class wxStaticText; +class wxWindow; + class CConfigMain : public wxDialog { public: diff --git a/Source/Core/DolphinWX/Debugger/BreakpointDlg.cpp b/Source/Core/DolphinWX/Debugger/BreakpointDlg.cpp index 047464e044..120bb76359 100644 --- a/Source/Core/DolphinWX/Debugger/BreakpointDlg.cpp +++ b/Source/Core/DolphinWX/Debugger/BreakpointDlg.cpp @@ -2,6 +2,18 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Common/BreakPoints.h" +#include "Common/Common.h" #include "Common/StringUtil.h" #include "Core/PowerPC/PowerPC.h" #include "DolphinWX/WxUtils.h" diff --git a/Source/Core/DolphinWX/Debugger/BreakpointDlg.h b/Source/Core/DolphinWX/Debugger/BreakpointDlg.h index 3699fc9212..7e4312a350 100644 --- a/Source/Core/DolphinWX/Debugger/BreakpointDlg.h +++ b/Source/Core/DolphinWX/Debugger/BreakpointDlg.h @@ -4,9 +4,11 @@ #pragma once -#include +#include +#include class CBreakPointWindow; +class wxTextCtrl; class BreakPointDlg : public wxDialog { diff --git a/Source/Core/DolphinWX/Debugger/BreakpointView.cpp b/Source/Core/DolphinWX/Debugger/BreakpointView.cpp index 4934122ee0..1f5ed38e13 100644 --- a/Source/Core/DolphinWX/Debugger/BreakpointView.cpp +++ b/Source/Core/DolphinWX/Debugger/BreakpointView.cpp @@ -2,16 +2,28 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include +#include +#include -#include "Core/Debugger/Debugger_SymbolMap.h" -#include "Core/HW/Memmap.h" +#include +#include +#include +#include +#include +#include +#include + +#include "Common/BreakPoints.h" +#include "Common/CommonTypes.h" #include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/PPCSymbolDB.h" #include "DolphinWX/WxUtils.h" #include "DolphinWX/Debugger/BreakpointView.h" #include "DolphinWX/Debugger/DebuggerUIUtil.h" +class wxWindow; +struct Symbol; + CBreakPointView::CBreakPointView(wxWindow* parent, const wxWindowID id) : wxListCtrl(parent, id, wxDefaultPosition, wxDefaultSize, wxLC_REPORT | wxSUNKEN_BORDER | wxLC_ALIGN_LEFT | wxLC_SINGLE_SEL | wxLC_SORT_ASCENDING) diff --git a/Source/Core/DolphinWX/Debugger/BreakpointView.h b/Source/Core/DolphinWX/Debugger/BreakpointView.h index e53eacd20a..74dd63648e 100644 --- a/Source/Core/DolphinWX/Debugger/BreakpointView.h +++ b/Source/Core/DolphinWX/Debugger/BreakpointView.h @@ -5,8 +5,9 @@ #pragma once #include +#include -#include "Common/Common.h" +class wxWindow; class CBreakPointView : public wxListCtrl { diff --git a/Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp b/Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp index 8afc73fab0..b16f150d74 100644 --- a/Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp +++ b/Source/Core/DolphinWX/Debugger/BreakpointWindow.cpp @@ -2,9 +2,26 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Common/BreakPoints.h" +#include "Common/CommonTypes.h" #include "Common/FileUtil.h" +#include "Common/IniFile.h" #include "Core/HW/Memmap.h" #include "Core/PowerPC/PowerPC.h" +#include "DolphinWX/WxUtils.h" #include "DolphinWX/Debugger/BreakpointDlg.h" #include "DolphinWX/Debugger/BreakpointView.h" #include "DolphinWX/Debugger/BreakpointWindow.h" @@ -17,6 +34,8 @@ extern "C" { #include "DolphinWX/resources/toolbar_debugger_delete.c" } +class wxWindow; + class CBreakPointBar : public wxAuiToolBar { public: diff --git a/Source/Core/DolphinWX/Debugger/BreakpointWindow.h b/Source/Core/DolphinWX/Debugger/BreakpointWindow.h index 6e8235be0a..106ccea155 100644 --- a/Source/Core/DolphinWX/Debugger/BreakpointWindow.h +++ b/Source/Core/DolphinWX/Debugger/BreakpointWindow.h @@ -4,12 +4,19 @@ #pragma once -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include class CBreakPointView; class CCodeWindow; +class wxListEvent; +class wxWindow; class CBreakPointWindow : public wxPanel { diff --git a/Source/Core/DolphinWX/Debugger/CodeView.cpp b/Source/Core/DolphinWX/Debugger/CodeView.cpp index 9dc5237461..bd27777399 100644 --- a/Source/Core/DolphinWX/Debugger/CodeView.cpp +++ b/Source/Core/DolphinWX/Debugger/CodeView.cpp @@ -2,9 +2,29 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include #include +#include +#include #include "Common/Common.h" #include "Common/DebugInterface.h" diff --git a/Source/Core/DolphinWX/Debugger/CodeView.h b/Source/Core/DolphinWX/Debugger/CodeView.h index 8d41e5eb3e..fde58decb7 100644 --- a/Source/Core/DolphinWX/Debugger/CodeView.h +++ b/Source/Core/DolphinWX/Debugger/CodeView.h @@ -9,7 +9,10 @@ #include -#include +#include +#include +#include +#include #include "Common/Common.h" @@ -17,6 +20,8 @@ DECLARE_EVENT_TYPE(wxEVT_CODEVIEW_CHANGE, -1); class DebugInterface; class SymbolDB; +class wxPaintDC; +class wxWindow; class CCodeView : public wxControl { diff --git a/Source/Core/DolphinWX/Debugger/CodeWindow.cpp b/Source/Core/DolphinWX/Debugger/CodeWindow.cpp index 8e58eaa152..a5189fa3a3 100644 --- a/Source/Core/DolphinWX/Debugger/CodeWindow.cpp +++ b/Source/Core/DolphinWX/Debugger/CodeWindow.cpp @@ -2,41 +2,62 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "Common/BreakPoints.h" #include "Common/Common.h" -#include "Common/FileUtil.h" -#include "Common/LogManager.h" -#include "Core/ConfigManager.h" +#include "Common/StringUtil.h" +#include "Common/SymbolDB.h" #include "Core/Core.h" +#include "Core/CoreParameter.h" #include "Core/Host.h" -#include "Core/Boot/Boot.h" #include "Core/Debugger/Debugger_SymbolMap.h" #include "Core/Debugger/PPCDebugInterface.h" -#include "Core/HLE/HLE.h" #include "Core/HW/CPU.h" #include "Core/HW/Memmap.h" +#include "Core/PowerPC/Gekko.h" #include "Core/PowerPC/JitInterface.h" #include "Core/PowerPC/PowerPC.h" -#include "Core/PowerPC/PPCAnalyst.h" #include "Core/PowerPC/PPCSymbolDB.h" #include "Core/PowerPC/PPCTables.h" -#include "Core/PowerPC/SignatureDB.h" +#include "DolphinWX/Frame.h" +#include "DolphinWX/Globals.h" #include "DolphinWX/WxUtils.h" #include "DolphinWX/Debugger/BreakpointWindow.h" #include "DolphinWX/Debugger/CodeView.h" #include "DolphinWX/Debugger/CodeWindow.h" -#include "DolphinWX/Debugger/JitWindow.h" -#include "DolphinWX/Debugger/MemoryWindow.h" +#include "DolphinWX/Debugger/DebuggerUIUtil.h" #include "DolphinWX/Debugger/RegisterWindow.h" - extern "C" // Bitmaps { #include "DolphinWX/resources/toolbar_add_memorycheck.c" // NOLINT #include "DolphinWX/resources/toolbar_add_breakpoint.c" // NOLINT } +class DebugInterface; + // ------- // Main diff --git a/Source/Core/DolphinWX/Debugger/CodeWindow.h b/Source/Core/DolphinWX/Debugger/CodeWindow.h index 1dd52871b4..8804a794ff 100644 --- a/Source/Core/DolphinWX/Debugger/CodeWindow.h +++ b/Source/Core/DolphinWX/Debugger/CodeWindow.h @@ -4,14 +4,17 @@ #pragma once -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "Common/CommonTypes.h" #include "Common/Thread.h" -#include "Core/CoreParameter.h" -#include "DolphinWX/Frame.h" #include "DolphinWX/Globals.h" class CFrame; @@ -22,6 +25,12 @@ class CJitWindow; class CCodeView; class DSPDebuggerLLE; class GFXDebuggerPanel; +struct SCoreStartupParameter; + +class wxAuiToolBar; +class wxListBox; +class wxMenu; +class wxMenuBar; class CCodeWindow : public wxPanel diff --git a/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp b/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp index 0de5320038..d42d227c94 100644 --- a/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp +++ b/Source/Core/DolphinWX/Debugger/CodeWindowFunctions.cpp @@ -2,34 +2,48 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include #include +#include +#include +#include +#include #include "Common/Common.h" #include "Common/CommonPaths.h" #include "Common/FileUtil.h" -#include "Common/LogManager.h" +#include "Common/IniFile.h" +#include "Common/SymbolDB.h" -#include "Core/ConfigManager.h" #include "Core/Core.h" #include "Core/Host.h" #include "Core/Boot/Boot.h" -#include "Core/Debugger/Debugger_SymbolMap.h" -#include "Core/Debugger/PPCDebugInterface.h" #include "Core/HLE/HLE.h" -#include "Core/HW/CPU.h" #include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/PPCAnalyst.h" #include "Core/PowerPC/PPCSymbolDB.h" -#include "Core/PowerPC/PPCTables.h" #include "Core/PowerPC/Profiler.h" #include "Core/PowerPC/SignatureDB.h" #include "Core/PowerPC/JitCommon/JitBase.h" -#include "Core/PowerPC/JitCommon/JitCache.h" // for ClearCache() +#include "DolphinWX/Frame.h" +#include "DolphinWX/Globals.h" #include "DolphinWX/WxUtils.h" #include "DolphinWX/Debugger/BreakpointWindow.h" -#include "DolphinWX/Debugger/CodeView.h" #include "DolphinWX/Debugger/CodeWindow.h" #include "DolphinWX/Debugger/DebuggerPanel.h" #include "DolphinWX/Debugger/DebuggerUIUtil.h" diff --git a/Source/Core/DolphinWX/Debugger/DSPDebugWindow.cpp b/Source/Core/DolphinWX/Debugger/DSPDebugWindow.cpp index 681209c39c..b755af5993 100644 --- a/Source/Core/DolphinWX/Debugger/DSPDebugWindow.cpp +++ b/Source/Core/DolphinWX/Debugger/DSPDebugWindow.cpp @@ -2,13 +2,29 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include -#include -#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "Common/Common.h" #include "Common/StringUtil.h" +#include "Common/SymbolDB.h" +#include "Core/DSP/DSPCore.h" +#include "Core/HW/DSPLLE/DSPDebugInterface.h" #include "Core/HW/DSPLLE/DSPSymbols.h" #include "DolphinWX/WxUtils.h" #include "DolphinWX/Debugger/CodeView.h" @@ -16,6 +32,8 @@ #include "DolphinWX/Debugger/DSPRegisterView.h" #include "DolphinWX/Debugger/MemoryView.h" +class wxWindow; + DSPDebuggerLLE* m_DebuggerFrame = NULL; BEGIN_EVENT_TABLE(DSPDebuggerLLE, wxPanel) diff --git a/Source/Core/DolphinWX/Debugger/DSPDebugWindow.h b/Source/Core/DolphinWX/Debugger/DSPDebugWindow.h index e0bf61f8da..773a49a17d 100644 --- a/Source/Core/DolphinWX/Debugger/DSPDebugWindow.h +++ b/Source/Core/DolphinWX/Debugger/DSPDebugWindow.h @@ -4,30 +4,22 @@ #pragma once -// general things -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include -#include "Core/DSP/disassemble.h" -#include "Core/DSP/DSPInterpreter.h" -#include "Core/DSP/DSPMemoryMap.h" +#include "Common/CommonTypes.h" #include "Core/HW/DSPLLE/DSPDebugInterface.h" class DSPRegisterView; class CCodeView; class CMemoryView; +class wxAuiNotebook; +class wxAuiToolBar; +class wxListBox; +class wxWindow; class DSPDebuggerLLE : public wxPanel { diff --git a/Source/Core/DolphinWX/Debugger/DSPRegisterView.cpp b/Source/Core/DolphinWX/Debugger/DSPRegisterView.cpp index 8adbb32222..5ef966b0fd 100644 --- a/Source/Core/DolphinWX/Debugger/DSPRegisterView.cpp +++ b/Source/Core/DolphinWX/Debugger/DSPRegisterView.cpp @@ -2,10 +2,22 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include + +#include "Common/CommonTypes.h" +#include "Core/DSP/DSPCore.h" +#include "Core/DSP/DSPTables.h" #include "DolphinWX/WxUtils.h" -#include "DolphinWX/Debugger/DSPDebugWindow.h" #include "DolphinWX/Debugger/DSPRegisterView.h" +class wxWindow; + wxString CDSPRegTable::GetValue(int row, int col) { if (row < 32) // 32 "normal" regs diff --git a/Source/Core/DolphinWX/Debugger/DSPRegisterView.h b/Source/Core/DolphinWX/Debugger/DSPRegisterView.h index 946a540b30..5f5a9b5bef 100644 --- a/Source/Core/DolphinWX/Debugger/DSPRegisterView.h +++ b/Source/Core/DolphinWX/Debugger/DSPRegisterView.h @@ -4,8 +4,15 @@ #pragma once +#include +#include #include +#include +#include +#include "Common/CommonTypes.h" + +class wxWindow; class CDSPRegTable : public wxGridTableBase { diff --git a/Source/Core/DolphinWX/Debugger/DebuggerPanel.cpp b/Source/Core/DolphinWX/Debugger/DebuggerPanel.cpp index bc28c6ccfb..16944ba968 100644 --- a/Source/Core/DolphinWX/Debugger/DebuggerPanel.cpp +++ b/Source/Core/DolphinWX/Debugger/DebuggerPanel.cpp @@ -2,15 +2,32 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include "Common/FileUtil.h" #include "Common/IniFile.h" #include "Core/ConfigManager.h" +#include "Core/CoreParameter.h" #include "DolphinWX/Debugger/DebuggerPanel.h" -#include "VideoCommon/NativeVertexFormat.h" -#include "VideoCommon/PixelShaderGen.h" +#include "VideoCommon/Debugger.h" #include "VideoCommon/TextureCacheBase.h" -#include "VideoCommon/VertexShaderGen.h" -#include "VideoCommon/VideoConfig.h" + +class wxWindow; BEGIN_EVENT_TABLE(GFXDebuggerPanel, wxPanel) EVT_CLOSE(GFXDebuggerPanel::OnClose) diff --git a/Source/Core/DolphinWX/Debugger/DebuggerPanel.h b/Source/Core/DolphinWX/Debugger/DebuggerPanel.h index cdf5144be3..796f015bd8 100644 --- a/Source/Core/DolphinWX/Debugger/DebuggerPanel.h +++ b/Source/Core/DolphinWX/Debugger/DebuggerPanel.h @@ -4,11 +4,21 @@ #pragma once -#include -#include +#include +#include +#include +#include +#include +#include +#include #include "VideoCommon/Debugger.h" +class wxButton; +class wxChoice; +class wxTextCtrl; +class wxWindow; + class GFXDebuggerPanel : public wxPanel, public GFXDebuggerBase { public: diff --git a/Source/Core/DolphinWX/Debugger/DebuggerUIUtil.cpp b/Source/Core/DolphinWX/Debugger/DebuggerUIUtil.cpp index 406d23910e..37c1c26b08 100644 --- a/Source/Core/DolphinWX/Debugger/DebuggerUIUtil.cpp +++ b/Source/Core/DolphinWX/Debugger/DebuggerUIUtil.cpp @@ -2,6 +2,9 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include #include "DolphinWX/Debugger/DebuggerUIUtil.h" diff --git a/Source/Core/DolphinWX/Debugger/DebuggerUIUtil.h b/Source/Core/DolphinWX/Debugger/DebuggerUIUtil.h index 783a1fdbfe..5955579317 100644 --- a/Source/Core/DolphinWX/Debugger/DebuggerUIUtil.h +++ b/Source/Core/DolphinWX/Debugger/DebuggerUIUtil.h @@ -4,6 +4,6 @@ #pragma once -#include +#include extern wxFont DebuggerFont; diff --git a/Source/Core/DolphinWX/Debugger/JitWindow.cpp b/Source/Core/DolphinWX/Debugger/JitWindow.cpp index 5e3511b8cd..61810a032a 100644 --- a/Source/Core/DolphinWX/Debugger/JitWindow.cpp +++ b/Source/Core/DolphinWX/Debugger/JitWindow.cpp @@ -2,20 +2,28 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include #include // Bochs #include // Bochs #include +#include +#include +#include +#include +#include #include +#include +#include +#include #include -#include +#include +#include +#include -#include "Common/LogManager.h" +#include "Common/Common.h" #include "Common/StringUtil.h" -#include "Core/Core.h" -#include "Core/Debugger/Debugger_SymbolMap.h" -#include "Core/Debugger/PPCDebugInterface.h" -#include "Core/HW/CPU.h" -#include "Core/PowerPC/PowerPC.h" +#include "Core/PowerPC/Gekko.h" #include "Core/PowerPC/PPCAnalyst.h" #include "Core/PowerPC/JitCommon/JitBase.h" #include "Core/PowerPC/JitCommon/JitCache.h" diff --git a/Source/Core/DolphinWX/Debugger/JitWindow.h b/Source/Core/DolphinWX/Debugger/JitWindow.h index 6eb0869284..44a8a52c6d 100644 --- a/Source/Core/DolphinWX/Debugger/JitWindow.h +++ b/Source/Core/DolphinWX/Debugger/JitWindow.h @@ -5,15 +5,21 @@ #pragma once #include - -#include -#include +#include +#include +#include #include -#include +#include +#include +#include +#include -#include "Common/Thread.h" -#include "Core/CoreParameter.h" -#include "DolphinWX/Debugger/MemoryView.h" +#include "Common/CommonTypes.h" + +class wxButton; +class wxListBox; +class wxTextCtrl; +class wxWindow; class JitBlockList : public wxListCtrl { diff --git a/Source/Core/DolphinWX/Debugger/MemoryCheckDlg.cpp b/Source/Core/DolphinWX/Debugger/MemoryCheckDlg.cpp index f8ed8ba5d2..5408be8884 100644 --- a/Source/Core/DolphinWX/Debugger/MemoryCheckDlg.cpp +++ b/Source/Core/DolphinWX/Debugger/MemoryCheckDlg.cpp @@ -2,6 +2,20 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Common/BreakPoints.h" #include "Common/Common.h" #include "Common/StringUtil.h" #include "Core/PowerPC/PowerPC.h" diff --git a/Source/Core/DolphinWX/Debugger/MemoryCheckDlg.h b/Source/Core/DolphinWX/Debugger/MemoryCheckDlg.h index f53a90ef60..bb392db1b8 100644 --- a/Source/Core/DolphinWX/Debugger/MemoryCheckDlg.h +++ b/Source/Core/DolphinWX/Debugger/MemoryCheckDlg.h @@ -4,9 +4,12 @@ #pragma once -#include +#include +#include class CBreakPointWindow; +class wxCheckBox; +class wxTextCtrl; class MemoryCheckDlg : public wxDialog { diff --git a/Source/Core/DolphinWX/Debugger/MemoryView.cpp b/Source/Core/DolphinWX/Debugger/MemoryView.cpp index 832c13ca9f..d39f672dcf 100644 --- a/Source/Core/DolphinWX/Debugger/MemoryView.cpp +++ b/Source/Core/DolphinWX/Debugger/MemoryView.cpp @@ -2,13 +2,30 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include #include "Common/Common.h" +#include "Common/DebugInterface.h" #include "Core/Host.h" -#include "Core/HW/Memmap.h" -#include "Core/PowerPC/PowerPC.h" #include "DolphinWX/WxUtils.h" #include "DolphinWX/Debugger/DebuggerUIUtil.h" #include "DolphinWX/Debugger/MemoryView.h" diff --git a/Source/Core/DolphinWX/Debugger/MemoryView.h b/Source/Core/DolphinWX/Debugger/MemoryView.h index b018669295..76cfb7da5a 100644 --- a/Source/Core/DolphinWX/Debugger/MemoryView.h +++ b/Source/Core/DolphinWX/Debugger/MemoryView.h @@ -4,9 +4,13 @@ #pragma once -#include "Common/Common.h" -#include "Common/DebugInterface.h" -#include "DolphinWX/Debugger/DebuggerUIUtil.h" +#include +#include + +#include "Common/CommonTypes.h" + +class DebugInterface; +class wxWindow; class CMemoryView : public wxControl { diff --git a/Source/Core/DolphinWX/Debugger/MemoryWindow.cpp b/Source/Core/DolphinWX/Debugger/MemoryWindow.cpp index 516ab41788..b52305fe1a 100644 --- a/Source/Core/DolphinWX/Debugger/MemoryWindow.cpp +++ b/Source/Core/DolphinWX/Debugger/MemoryWindow.cpp @@ -2,25 +2,46 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include +#include +#include +#include +#include +#include "Common/Common.h" #include "Common/FileUtil.h" -#include "Common/LogManager.h" +#include "Common/IniFile.h" +#include "Common/StringUtil.h" +#include "Common/SymbolDB.h" #include "Core/ConfigManager.h" -#include "Core/Core.h" +#include "Core/CoreParameter.h" #include "Core/Debugger/PPCDebugInterface.h" -#include "Core/HW/CPU.h" #include "Core/HW/DSP.h" #include "Core/HW/Memmap.h" #include "Core/PowerPC/PowerPC.h" -#include "Core/PowerPC/PPCSymbolDB.h" #include "DolphinWX/Globals.h" #include "DolphinWX/WxUtils.h" +#include "DolphinWX/Debugger/MemoryView.h" #include "DolphinWX/Debugger/MemoryWindow.h" +class DebugInterface; + enum { IDM_MEM_ADDRBOX = 350, diff --git a/Source/Core/DolphinWX/Debugger/MemoryWindow.h b/Source/Core/DolphinWX/Debugger/MemoryWindow.h index 19fbe1cb29..b3ffb13230 100644 --- a/Source/Core/DolphinWX/Debugger/MemoryWindow.h +++ b/Source/Core/DolphinWX/Debugger/MemoryWindow.h @@ -4,17 +4,23 @@ #pragma once -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include -#include "Common/StringUtil.h" -#include "Common/Thread.h" -#include "Core/CoreParameter.h" -#include "DolphinWX/Debugger/MemoryView.h" +#include "Common/CommonTypes.h" -class CRegisterWindow; -class CBreakPointWindow; +class CMemoryView; +class IniFile; +class wxButton; +class wxCheckBox; +class wxListBox; +class wxTextCtrl; +class wxWindow; class CMemoryWindow : public wxPanel diff --git a/Source/Core/DolphinWX/Debugger/RegisterView.cpp b/Source/Core/DolphinWX/Debugger/RegisterView.cpp index b2045c82f1..8d44cab4e6 100644 --- a/Source/Core/DolphinWX/Debugger/RegisterView.cpp +++ b/Source/Core/DolphinWX/Debugger/RegisterView.cpp @@ -2,13 +2,24 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include "Common/IniFile.h" +#include +#include +#include +#include +#include +#include + +#include "Common/CommonTypes.h" +#include "Common/StringUtil.h" #include "Core/HW/ProcessorInterface.h" +#include "Core/PowerPC/Gekko.h" #include "Core/PowerPC/PowerPC.h" #include "DolphinWX/WxUtils.h" #include "DolphinWX/Debugger/DebuggerUIUtil.h" #include "DolphinWX/Debugger/RegisterView.h" +class wxWindow; + // F-zero 80005e60 wtf?? extern const char* GetGPRName(unsigned int index); diff --git a/Source/Core/DolphinWX/Debugger/RegisterView.h b/Source/Core/DolphinWX/Debugger/RegisterView.h index 6bcd46a36f..9b91cae47a 100644 --- a/Source/Core/DolphinWX/Debugger/RegisterView.h +++ b/Source/Core/DolphinWX/Debugger/RegisterView.h @@ -4,10 +4,16 @@ #pragma once +#include +#include #include +#include +#include #include "Common/Common.h" +class wxWindow; + // New register view: // R0 0x8000000 F0 0.0000 F0_PS1 0.0000 // R1 0x8000000 F1 0.0000 F1_PS1 0.0000 diff --git a/Source/Core/DolphinWX/Debugger/RegisterWindow.cpp b/Source/Core/DolphinWX/Debugger/RegisterWindow.cpp index c18d207f8d..5188f87186 100644 --- a/Source/Core/DolphinWX/Debugger/RegisterWindow.cpp +++ b/Source/Core/DolphinWX/Debugger/RegisterWindow.cpp @@ -2,12 +2,20 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include +#include +#include +#include +#include +#include +#include +#include +#include -#include "Core/PowerPC/PowerPC.h" #include "DolphinWX/Debugger/RegisterView.h" #include "DolphinWX/Debugger/RegisterWindow.h" +class wxWindow; + extern const char* GetGRPName(unsigned int index); BEGIN_EVENT_TABLE(CRegisterWindow, wxPanel) diff --git a/Source/Core/DolphinWX/Debugger/RegisterWindow.h b/Source/Core/DolphinWX/Debugger/RegisterWindow.h index f1d8db1125..f0b38b84b7 100644 --- a/Source/Core/DolphinWX/Debugger/RegisterWindow.h +++ b/Source/Core/DolphinWX/Debugger/RegisterWindow.h @@ -4,8 +4,16 @@ #pragma once +#include +#include +#include +#include +#include +#include +#include + class CRegisterView; -class IniFile; +class wxWindow; class CRegisterWindow : public wxPanel diff --git a/Source/Core/DolphinWX/FifoPlayerDlg.cpp b/Source/Core/DolphinWX/FifoPlayerDlg.cpp index 5a8a39bbe3..9dbced73c7 100644 --- a/Source/Core/DolphinWX/FifoPlayerDlg.cpp +++ b/Source/Core/DolphinWX/FifoPlayerDlg.cpp @@ -3,19 +3,47 @@ // Refer to the license.txt file included. #include +#include +#include +#include #include + +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include #include "Common/Common.h" -#include "Common/FileUtil.h" -#include "Common/Thread.h" +#include "Core/FifoPlayer/FifoDataFile.h" +#include "Core/FifoPlayer/FifoPlaybackAnalyzer.h" #include "Core/FifoPlayer/FifoPlayer.h" #include "Core/FifoPlayer/FifoRecorder.h" #include "DolphinWX/FifoPlayerDlg.h" #include "DolphinWX/WxUtils.h" +#include "VideoCommon/BPMemory.h" #include "VideoCommon/OpcodeDecoding.h" +class wxWindow; + DECLARE_EVENT_TYPE(RECORDING_FINISHED_EVENT, -1) DEFINE_EVENT_TYPE(RECORDING_FINISHED_EVENT) diff --git a/Source/Core/DolphinWX/FifoPlayerDlg.h b/Source/Core/DolphinWX/FifoPlayerDlg.h index 4e72878fc7..7fa8868a41 100644 --- a/Source/Core/DolphinWX/FifoPlayerDlg.h +++ b/Source/Core/DolphinWX/FifoPlayerDlg.h @@ -4,12 +4,28 @@ #pragma once +#include #include -#include -#include +#include +#include +#include +#include "Common/CommonTypes.h" + +class wxButton; +class wxCheckBox; +class wxCommandEvent; +class wxEvent; +class wxEvtHandler; +class wxListBox; +class wxNotebook; +class wxPaintEvent; +class wxPanel; class wxSpinCtrl; class wxSpinEvent; +class wxStaticText; +class wxTextCtrl; +class wxWindow; class FifoPlayerDlg : public wxDialog { diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp index 2a17f6c21c..f1c27733b2 100644 --- a/Source/Core/DolphinWX/Frame.cpp +++ b/Source/Core/DolphinWX/Frame.cpp @@ -13,31 +13,58 @@ #ifdef __APPLE__ #include #endif -#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "Common/Common.h" #include "Common/FileUtil.h" -#include "Common/Timer.h" +#include "Common/Thread.h" -#include "Core/BootManager.h" #include "Core/ConfigManager.h" #include "Core/Core.h" +#include "Core/CoreParameter.h" #include "Core/Movie.h" #include "Core/State.h" -#include "Core/VolumeHandler.h" -#include "Core/HW/DVDInterface.h" -#include "Core/HW/GCPad.h" -#include "Core/IPC_HLE/WII_IPC_HLE_Device_usb.h" -#include "DolphinWX/CheatsWindow.h" -#include "DolphinWX/ConfigMain.h" #include "DolphinWX/Frame.h" #include "DolphinWX/GameListCtrl.h" #include "DolphinWX/Globals.h" +#include "DolphinWX/LogWindow.h" +#include "DolphinWX/TASInputDlg.h" +#include "DolphinWX/WxUtils.h" +#include "DolphinWX/Debugger/CodeWindow.h" + +#include "InputCommon/GCPadStatus.h" #include "VideoCommon/RenderBase.h" #include "VideoCommon/VertexShaderManager.h" -#include "VideoCommon/VideoBackendBase.h" #include "VideoCommon/VideoConfig.h" // Resources diff --git a/Source/Core/DolphinWX/Frame.h b/Source/Core/DolphinWX/Frame.h index 6894f9d733..9cfbdb6e7b 100644 --- a/Source/Core/DolphinWX/Frame.h +++ b/Source/Core/DolphinWX/Frame.h @@ -4,44 +4,52 @@ #pragma once +#include +#include #include #include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include +#include +#include +#include +#include -#include "Common/CDUtils.h" -#include "Core/Movie.h" +#include "Common/CommonTypes.h" +#include "Common/Thread.h" #include "DolphinWX/Globals.h" -#include "DolphinWX/LogConfigWindow.h" -#include "DolphinWX/LogWindow.h" -#include "DolphinWX/TASInputDlg.h" -#include "DolphinWX/Debugger/CodeWindow.h" +#include "InputCommon/GCPadStatus.h" #if defined(HAVE_X11) && HAVE_X11 #include "DolphinWX/X11Utils.h" #endif -// A shortcut to access the bitmaps -#define wxGetBitmapFromMemory(name) _wxGetBitmapFromMemory(name, sizeof(name)) -static inline wxBitmap _wxGetBitmapFromMemory(const unsigned char* data, int length) -{ - wxMemoryInputStream is(data, length); - return(wxBitmap(wxImage(is, wxBITMAP_TYPE_ANY, -1), -1)); -} - // Class declarations class CGameListCtrl; -class GameListItem; +class CCodeWindow; class CLogWindow; class FifoPlayerDlg; +class LogConfigWindow; class NetPlaySetupDiag; +class TASInputDlg; class wxCheatsWindow; +class wxAuiManager; +class wxAuiManagerEvent; +class wxAuiNotebook; +class wxAuiNotebookEvent; +class wxAuiToolBar; +class wxAuiToolBarEvent; +class wxListEvent; +class wxMenuItem; +class wxWindow; + // The CPanel class to receive MSWWindowProc messages from the video backend. class CPanel : public wxPanel { diff --git a/Source/Core/DolphinWX/FrameAui.cpp b/Source/Core/DolphinWX/FrameAui.cpp index ccba858a33..faa3a7e1db 100644 --- a/Source/Core/DolphinWX/FrameAui.cpp +++ b/Source/Core/DolphinWX/FrameAui.cpp @@ -2,12 +2,45 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include "Common/Common.h" +#include "Common/FileUtil.h" +#include "Common/IniFile.h" +#include "Common/StringUtil.h" #include "Core/ConfigManager.h" #include "DolphinWX/Frame.h" #include "DolphinWX/Globals.h" +#include "DolphinWX/LogConfigWindow.h" #include "DolphinWX/LogWindow.h" #include "DolphinWX/WxUtils.h" +#include "DolphinWX/Debugger/CodeWindow.h" // ------------ // Aui events diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 897da874d9..06ae7b962b 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -14,32 +14,60 @@ window handle that is returned by CreateWindow() can be accessed from Core::GetWindowHandle(). */ -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #ifdef __APPLE__ #include #endif +#include "Common/CDUtils.h" #include "Common/Common.h" #include "Common/FileSearch.h" #include "Common/FileUtil.h" #include "Common/NandPaths.h" -#include "Common/Timer.h" #include "Core/BootManager.h" #include "Core/ConfigManager.h" #include "Core/Core.h" +#include "Core/CoreParameter.h" #include "Core/Host.h" #include "Core/Movie.h" #include "Core/State.h" -#include "Core/VolumeHandler.h" #include "Core/HW/CPU.h" #include "Core/HW/DVDInterface.h" #include "Core/HW/GCPad.h" #include "Core/HW/ProcessorInterface.h" +#include "Core/HW/SI_Device.h" #include "Core/HW/Wiimote.h" -//#include "IPC_HLE/WII_IPC_HLE_Device_FileIO.h" #include "Core/IPC_HLE/WII_IPC_HLE_Device_usb.h" +#include "Core/IPC_HLE/WII_IPC_HLE_WiiMote.h" #include "Core/PowerPC/PowerPC.h" #include "DiscIO/NANDContentLoader.h" @@ -53,7 +81,7 @@ Core::GetWindowHandle(). #include "DolphinWX/Globals.h" #include "DolphinWX/HotkeyDlg.h" #include "DolphinWX/InputConfigDiag.h" -#include "DolphinWX/LogConfigWindow.h" +#include "DolphinWX/ISOFile.h" #include "DolphinWX/LogWindow.h" #include "DolphinWX/MemcardManager.h" #include "DolphinWX/NetWindow.h" @@ -61,6 +89,10 @@ Core::GetWindowHandle(). #include "DolphinWX/WiimoteConfigDiag.h" #include "DolphinWX/WXInputBase.h" #include "DolphinWX/WxUtils.h" +#include "DolphinWX/Debugger/CodeWindow.h" +#include "DolphinWX/MemoryCards/WiiSaveCrypted.h" + +#include "InputCommon/ControllerInterface/ControllerInterface.h" #include "VideoCommon/VideoBackendBase.h" @@ -84,6 +116,9 @@ extern "C" { #include "DolphinWX/resources/Dolphin.c" // NOLINT: Dolphin icon }; +class InputPlugin; +class wxFrame; + bool confirmStop = false; // Create menu items diff --git a/Source/Core/DolphinWX/GameListCtrl.cpp b/Source/Core/DolphinWX/GameListCtrl.cpp index 800cee9694..bd420f8156 100644 --- a/Source/Core/DolphinWX/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/GameListCtrl.cpp @@ -4,25 +4,65 @@ #include #include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "Common/CDUtils.h" +#include "Common/Common.h" #include "Common/FileSearch.h" #include "Common/FileUtil.h" #include "Common/MathUtil.h" #include "Common/StringUtil.h" +#include "Common/SysConf.h" #include "Core/ConfigManager.h" #include "Core/Core.h" +#include "Core/CoreParameter.h" +#include "Core/Movie.h" +#include "Core/Boot/Boot.h" #include "Core/HW/DVDInterface.h" #include "DiscIO/Blob.h" +#include "DiscIO/Volume.h" +#include "DiscIO/VolumeCreator.h" +#include "DolphinWX/Frame.h" #include "DolphinWX/GameListCtrl.h" #include "DolphinWX/Globals.h" +#include "DolphinWX/ISOFile.h" #include "DolphinWX/ISOProperties.h" #include "DolphinWX/Main.h" #include "DolphinWX/WxUtils.h" +#include "DolphinWX/MemoryCards/WiiSaveCrypted.h" #include "DolphinWX/resources/Flag_Europe.xpm" #include "DolphinWX/resources/Flag_France.xpm" #include "DolphinWX/resources/Flag_Germany.xpm" diff --git a/Source/Core/DolphinWX/GameListCtrl.h b/Source/Core/DolphinWX/GameListCtrl.h index 7b3009d7d3..1c183a550e 100644 --- a/Source/Core/DolphinWX/GameListCtrl.h +++ b/Source/Core/DolphinWX/GameListCtrl.h @@ -4,14 +4,21 @@ #pragma once -#include +#include +#include #include +#include +#include #include +#include #include +#include #include "DolphinWX/ISOFile.h" -#include "DolphinWX/MemoryCards/WiiSaveCrypted.h" + +class wxListEvent; +class wxWindow; class wxEmuStateTip : public wxTipWindow { diff --git a/Source/Core/DolphinWX/GeckoCodeDiag.cpp b/Source/Core/DolphinWX/GeckoCodeDiag.cpp index 7e48bf53d0..cbdb19e0f5 100644 --- a/Source/Core/DolphinWX/GeckoCodeDiag.cpp +++ b/Source/Core/DolphinWX/GeckoCodeDiag.cpp @@ -3,13 +3,34 @@ // Refer to the license.txt file included. #include - +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "Common/Common.h" +#include "Common/StringUtil.h" #include "Core/Core.h" +#include "Core/GeckoCode.h" +#include "Core/GeckoCodeConfig.h" #include "DolphinWX/GeckoCodeDiag.h" #include "DolphinWX/WxUtils.h" +class IniFile; + namespace Gecko { diff --git a/Source/Core/DolphinWX/GeckoCodeDiag.h b/Source/Core/DolphinWX/GeckoCodeDiag.h index bf3fb06c62..eb569e7455 100644 --- a/Source/Core/DolphinWX/GeckoCodeDiag.h +++ b/Source/Core/DolphinWX/GeckoCodeDiag.h @@ -4,10 +4,20 @@ #pragma once -#include +#include +#include +#include #include "Core/GeckoCode.h" -#include "Core/GeckoCodeConfig.h" + +class IniFile; +class wxButton; +class wxCheckListBox; +class wxCommandEvent; +class wxListBox; +class wxStaticText; +class wxTextCtrl; +class wxWindow; namespace Gecko { diff --git a/Source/Core/DolphinWX/Globals.h b/Source/Core/DolphinWX/Globals.h index f114b8f8f4..9b60c4554e 100644 --- a/Source/Core/DolphinWX/Globals.h +++ b/Source/Core/DolphinWX/Globals.h @@ -7,24 +7,8 @@ #pragma once -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "Common/Common.h" +#include +#include enum { diff --git a/Source/Core/DolphinWX/HotkeyDlg.cpp b/Source/Core/DolphinWX/HotkeyDlg.cpp index 12b4bd8ec8..07369c772a 100644 --- a/Source/Core/DolphinWX/HotkeyDlg.cpp +++ b/Source/Core/DolphinWX/HotkeyDlg.cpp @@ -2,10 +2,32 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include #include "Core/ConfigManager.h" +#include "Core/CoreParameter.h" #include "DolphinWX/HotkeyDlg.h" +#include "DolphinWX/WXInputBase.h" + +class wxWindow; BEGIN_EVENT_TABLE(HotkeyConfigDialog,wxDialog) EVT_COMMAND_RANGE(0, NUM_HOTKEYS - 1, diff --git a/Source/Core/DolphinWX/HotkeyDlg.h b/Source/Core/DolphinWX/HotkeyDlg.h index 8ca4fc9af8..d78dca0247 100644 --- a/Source/Core/DolphinWX/HotkeyDlg.h +++ b/Source/Core/DolphinWX/HotkeyDlg.h @@ -4,17 +4,15 @@ #pragma once -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include -#include "Common/Common.h" #include "Core/CoreParameter.h" -#include "DolphinWX/WXInputBase.h" #if defined(HAVE_X11) && HAVE_X11 #include "InputCommon/X11InputBase.h" @@ -22,6 +20,11 @@ #include #endif +class wxButton; +class wxTimer; +class wxTimerEvent; +class wxWindow; + class HotkeyConfigDialog : public wxDialog { public: diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp index fabdd9ec55..a8b20a4719 100644 --- a/Source/Core/DolphinWX/ISOFile.cpp +++ b/Source/Core/DolphinWX/ISOFile.cpp @@ -3,26 +3,34 @@ // Refer to the license.txt file included. #include +#include +#include #include #include -#include +#include +#include +#include +#include +#include #include "Common/ChunkFile.h" #include "Common/Common.h" #include "Common/CommonPaths.h" -#include "Common/FileSearch.h" #include "Common/FileUtil.h" #include "Common/Hash.h" #include "Common/IniFile.h" #include "Common/StringUtil.h" #include "Core/ConfigManager.h" +#include "Core/CoreParameter.h" +#include "Core/Boot/Boot.h" #include "DiscIO/BannerLoader.h" #include "DiscIO/CompressedBlob.h" #include "DiscIO/Filesystem.h" +#include "DiscIO/Volume.h" +#include "DiscIO/VolumeCreator.h" -#include "DolphinWX/Globals.h" #include "DolphinWX/ISOFile.h" #include "DolphinWX/WxUtils.h" diff --git a/Source/Core/DolphinWX/ISOFile.h b/Source/Core/DolphinWX/ISOFile.h index dc6d2119c6..889bfee874 100644 --- a/Source/Core/DolphinWX/ISOFile.h +++ b/Source/Core/DolphinWX/ISOFile.h @@ -7,8 +7,8 @@ #include #include +#include "Common/Common.h" #include "DiscIO/Volume.h" -#include "DiscIO/VolumeCreator.h" #if defined(HAVE_WX) && HAVE_WX #include diff --git a/Source/Core/DolphinWX/ISOProperties.cpp b/Source/Core/DolphinWX/ISOProperties.cpp index e632340a6a..8b59c4b68e 100644 --- a/Source/Core/DolphinWX/ISOProperties.cpp +++ b/Source/Core/DolphinWX/ISOProperties.cpp @@ -7,17 +7,69 @@ #endif #include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "Common/Common.h" #include "Common/CommonPaths.h" +#include "Common/FileUtil.h" +#include "Common/IniFile.h" #include "Common/StringUtil.h" +#include "Common/SysConf.h" +#include "Core/ActionReplay.h" #include "Core/ConfigManager.h" +#include "Core/CoreParameter.h" +#include "Core/GeckoCodeConfig.h" +#include "Core/PatchEngine.h" +#include "Core/Boot/Boot.h" #include "DiscIO/Filesystem.h" +#include "DiscIO/Volume.h" #include "DiscIO/VolumeCreator.h" #include "DolphinWX/ARCodeAddEdit.h" #include "DolphinWX/GeckoCodeDiag.h" -#include "DolphinWX/Globals.h" +#include "DolphinWX/ISOFile.h" #include "DolphinWX/ISOProperties.h" #include "DolphinWX/PatchAddEdit.h" #include "DolphinWX/PHackSettings.h" @@ -26,6 +78,8 @@ #include "DolphinWX/resources/isoprop_file.xpm" #include "DolphinWX/resources/isoprop_folder.xpm" +class wxWindow; + struct WiiPartition { DiscIO::IVolume *Partition; diff --git a/Source/Core/DolphinWX/ISOProperties.h b/Source/Core/DolphinWX/ISOProperties.h index da10c2b728..d36fad03ba 100644 --- a/Source/Core/DolphinWX/ISOProperties.h +++ b/Source/Core/DolphinWX/ISOProperties.h @@ -4,25 +4,33 @@ #pragma once +#include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "Common/IniFile.h" -#include "Core/ActionReplay.h" -#include "Core/PatchEngine.h" -#include "DiscIO/Filesystem.h" -#include "DolphinWX/GeckoCodeDiag.h" -#include "DolphinWX/ISOFile.h" + +class GameListItem; +class wxButton; +class wxCheckBox; +class wxCheckListBox; +class wxChoice; +class wxStaticBitmap; +class wxTextCtrl; +class wxTreeCtrl; +class wxWindow; +namespace DiscIO { struct SFileInfo; } +namespace Gecko { class CodeConfigPanel; } struct PHackData { diff --git a/Source/Core/DolphinWX/InputConfigDiag.cpp b/Source/Core/DolphinWX/InputConfigDiag.cpp index d707eacf93..2675d3c801 100644 --- a/Source/Core/DolphinWX/InputConfigDiag.cpp +++ b/Source/Core/DolphinWX/InputConfigDiag.cpp @@ -2,12 +2,60 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Common/FileSearch.h" +#include "Common/FileUtil.h" +#include "Common/IniFile.h" +#include "Common/MsgHandler.h" #include "Core/HW/Wiimote.h" #include "DolphinWX/InputConfigDiag.h" #include "DolphinWX/UDPConfigDiag.h" #include "DolphinWX/WxUtils.h" +#include "InputCommon/ControllerEmu.h" +#include "InputCommon/InputConfig.h" +#include "InputCommon/ControllerInterface/ControllerInterface.h" +#include "InputCommon/ControllerInterface/Device.h" #include "InputCommon/ControllerInterface/ExpressionParser.h" +class UDPWrapper; +class wxWindow; + using namespace ciface::ExpressionParser; void GamepadPage::ConfigUDPWii(wxCommandEvent &event) diff --git a/Source/Core/DolphinWX/InputConfigDiag.h b/Source/Core/DolphinWX/InputConfigDiag.h index d265e87713..f4eeafee08 100644 --- a/Source/Core/DolphinWX/InputConfigDiag.h +++ b/Source/Core/DolphinWX/InputConfigDiag.h @@ -11,24 +11,37 @@ // might have to change this setup for wiimote #define PROFILES_PATH "Profiles/" -#include +#include +#include #include #include -#include -#include -#include -#include +#include +#include +#include #include +#include #include -#include -#include -#include +#include +#include -#include "Common/FileSearch.h" #include "InputCommon/ControllerEmu.h" -#include "InputCommon/InputConfig.h" -#include "InputCommon/UDPWrapper.h" #include "InputCommon/ControllerInterface/ControllerInterface.h" +#include "InputCommon/ControllerInterface/Device.h" + +class InputPlugin; +class UDPWrapper; +class wxComboBox; +class wxCommandEvent; +class wxEvent; +class wxListBox; +class wxNotebook; +class wxSlider; +class wxStaticBitmap; +class wxStaticText; +class wxTextCtrl; +class wxTimer; +class wxTimerEvent; +class wxWindow; class PadSetting { diff --git a/Source/Core/DolphinWX/InputConfigDiagBitmaps.cpp b/Source/Core/DolphinWX/InputConfigDiagBitmaps.cpp index 2e722ff53c..e41f155908 100644 --- a/Source/Core/DolphinWX/InputConfigDiagBitmaps.cpp +++ b/Source/Core/DolphinWX/InputConfigDiagBitmaps.cpp @@ -2,9 +2,33 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include "DolphinWX/InputConfigDiag.h" #include "DolphinWX/WxUtils.h" +#include "InputCommon/ControllerEmu.h" +#include "InputCommon/ControllerInterface/ControllerInterface.h" +#include "InputCommon/ControllerInterface/Device.h" + +class wxTimerEvent; + void InputConfigDialog::UpdateBitmaps(wxTimerEvent& WXUNUSED(event)) { wxFont small_font(6, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD); diff --git a/Source/Core/DolphinWX/LogConfigWindow.cpp b/Source/Core/DolphinWX/LogConfigWindow.cpp index 1ec51c7050..26cd3c1d51 100644 --- a/Source/Core/DolphinWX/LogConfigWindow.cpp +++ b/Source/Core/DolphinWX/LogConfigWindow.cpp @@ -2,12 +2,32 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include "Common/FileUtil.h" +#include "Common/IniFile.h" +#include "Common/Log.h" #include "Common/LogManager.h" #include "DolphinWX/LogConfigWindow.h" #include "DolphinWX/LogWindow.h" #include "DolphinWX/WxUtils.h" +class wxWindow; + LogConfigWindow::LogConfigWindow(wxWindow* parent, CLogWindow *log_window, wxWindowID id) : wxPanel(parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _("Log Configuration")) , m_LogWindow(log_window), enableAll(true) diff --git a/Source/Core/DolphinWX/LogConfigWindow.h b/Source/Core/DolphinWX/LogConfigWindow.h index a465c74dc8..50d2b39981 100644 --- a/Source/Core/DolphinWX/LogConfigWindow.h +++ b/Source/Core/DolphinWX/LogConfigWindow.h @@ -4,12 +4,17 @@ #pragma once -#include -#include +#include +#include +#include -class CFrame; class LogManager; class CLogWindow; +class wxCheckBox; +class wxCheckListBox; +class wxCommandEvent; +class wxRadioBox; +class wxWindow; class LogConfigWindow : public wxPanel { diff --git a/Source/Core/DolphinWX/LogWindow.cpp b/Source/Core/DolphinWX/LogWindow.cpp index 8376149f28..5a8be5e9fe 100644 --- a/Source/Core/DolphinWX/LogWindow.cpp +++ b/Source/Core/DolphinWX/LogWindow.cpp @@ -2,10 +2,37 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "Common/Common.h" #include "Common/FileUtil.h" #include "Common/IniFile.h" +#include "Common/LogManager.h" +#include "DolphinWX/Frame.h" #include "DolphinWX/LogWindow.h" #include "DolphinWX/WxUtils.h" #include "DolphinWX/Debugger/DebuggerUIUtil.h" diff --git a/Source/Core/DolphinWX/LogWindow.h b/Source/Core/DolphinWX/LogWindow.h index bb1b59cc12..2d92e16329 100644 --- a/Source/Core/DolphinWX/LogWindow.h +++ b/Source/Core/DolphinWX/LogWindow.h @@ -4,11 +4,29 @@ #pragma once +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "Common/Common.h" #include "Common/LogManager.h" -#include "Common/Thread.h" -#include "DolphinWX/Frame.h" + +class CFrame; +class wxBoxSizer; +class wxCheckBox; +class wxChoice; +class wxTextCtrl; +class wxTimer; +class wxTimerEvent; enum { @@ -21,11 +39,6 @@ enum IDM_SUBMITCMD }; -class wxTextCtrl; -class wxCheckListBox; -class wxString; -class CFrame; - // Uses multiple inheritance - only sane because LogListener is a pure virtual interface. class CLogWindow : public wxPanel, LogListener { diff --git a/Source/Core/DolphinWX/Main.cpp b/Source/Core/DolphinWX/Main.cpp index 97cded8c3b..f86a9db5e5 100644 --- a/Source/Core/DolphinWX/Main.cpp +++ b/Source/Core/DolphinWX/Main.cpp @@ -2,21 +2,43 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "Common/Common.h" #include "Common/CommonPaths.h" #include "Common/CPUDetect.h" -#include "Common/ExtendedTrace.h" #include "Common/FileUtil.h" #include "Common/IniFile.h" +#include "Common/LogManager.h" +#include "Common/Thread.h" -#include "Core/BootManager.h" #include "Core/ConfigManager.h" -#include "Core/Host.h" +#include "Core/CoreParameter.h" +#include "Core/Movie.h" #include "Core/HW/Wiimote.h" #include "DolphinWX/Frame.h" @@ -34,6 +56,7 @@ #ifdef _WIN32 #include +#include "Common/ExtendedTrace.h" #ifndef SM_XVIRTUALSCREEN #define SM_XVIRTUALSCREEN 76 @@ -54,6 +77,8 @@ #import #endif +class wxFrame; + // Nvidia drivers >= v302 will check if the application exports a global // variable named NvOptimusEnablement to know if it should run the app in high // performance graphics mode or using the IGP. diff --git a/Source/Core/DolphinWX/Main.h b/Source/Core/DolphinWX/Main.h index 3901e017ad..1e4b7c6bb7 100644 --- a/Source/Core/DolphinWX/Main.h +++ b/Source/Core/DolphinWX/Main.h @@ -4,10 +4,18 @@ #pragma once -#include "DolphinWX/Frame.h" +#include +#include +#include +#include +#include + +class CFrame; +class wxLocale; +class wxTimer; +class wxTimerEvent; // Define a new application -class CFrame; class DolphinApp : public wxApp { public: diff --git a/Source/Core/DolphinWX/MainAndroid.cpp b/Source/Core/DolphinWX/MainAndroid.cpp index 7f49b1dc28..3d3b052a09 100644 --- a/Source/Core/DolphinWX/MainAndroid.cpp +++ b/Source/Core/DolphinWX/MainAndroid.cpp @@ -24,6 +24,7 @@ #include "Android/ButtonManager.h" #include "Common/Common.h" +#include "Common/CommonPaths.h" #include "Common/CPUDetect.h" #include "Common/FileUtil.h" #include "Common/LogManager.h" diff --git a/Source/Core/DolphinWX/MainNoGUI.cpp b/Source/Core/DolphinWX/MainNoGUI.cpp index ac7941d87e..630beb8876 100644 --- a/Source/Core/DolphinWX/MainNoGUI.cpp +++ b/Source/Core/DolphinWX/MainNoGUI.cpp @@ -3,20 +3,19 @@ // Refer to the license.txt file included. #include +#include #include -#include +#include #include #include "Common/Common.h" -#include "Common/CPUDetect.h" -#include "Common/FileUtil.h" #include "Common/LogManager.h" #include "Common/Thread.h" #include "Core/BootManager.h" #include "Core/ConfigManager.h" #include "Core/Core.h" -#include "Core/Host.h" +#include "Core/CoreParameter.h" #include "Core/HW/Wiimote.h" #include "Core/PowerPC/PowerPC.h" diff --git a/Source/Core/DolphinWX/MemcardManager.cpp b/Source/Core/DolphinWX/MemcardManager.cpp index e7d2466e01..d35559f59c 100644 --- a/Source/Core/DolphinWX/MemcardManager.cpp +++ b/Source/Core/DolphinWX/MemcardManager.cpp @@ -2,9 +2,35 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include #include "Common/Common.h" +#include "Common/FileUtil.h" +#include "Common/IniFile.h" +#include "Common/StringUtil.h" +#include "Core/HW/GCMemcard.h" #include "DolphinWX/MemcardManager.h" #include "DolphinWX/WxUtils.h" diff --git a/Source/Core/DolphinWX/MemcardManager.h b/Source/Core/DolphinWX/MemcardManager.h index 775146f4a2..c2857368f5 100644 --- a/Source/Core/DolphinWX/MemcardManager.h +++ b/Source/Core/DolphinWX/MemcardManager.h @@ -4,18 +4,27 @@ #pragma once -#include -#include -#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include +#include +#include +#include +#include -#include "Common/FileUtil.h" +#include "Common/Common.h" #include "Common/IniFile.h" -#include "Core/HW/GCMemcard.h" + +class GCMemcard; +class wxButton; +class wxFileDirPickerEvent; +class wxFilePickerCtrl; +class wxStaticText; +class wxWindow; #undef MEMCARD_MANAGER_STYLE #define MEMCARD_MANAGER_STYLE wxCAPTION | wxSYSTEM_MENU | wxDIALOG_NO_PARENT | wxCLOSE_BOX | wxRESIZE_BORDER | wxMAXIMIZE_BOX diff --git a/Source/Core/DolphinWX/MemoryCards/WiiSaveCrypted.cpp b/Source/Core/DolphinWX/MemoryCards/WiiSaveCrypted.cpp index 1703b79ba0..7bbd2f0524 100644 --- a/Source/Core/DolphinWX/MemoryCards/WiiSaveCrypted.cpp +++ b/Source/Core/DolphinWX/MemoryCards/WiiSaveCrypted.cpp @@ -7,12 +7,22 @@ // Licensed under the terms of the GNU GPL, version 2 // http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt -#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include "Common/Common.h" #include "Common/FileUtil.h" #include "Common/MathUtil.h" #include "Common/NandPaths.h" +#include "Common/StringUtil.h" +#include "Common/Crypto/tools.h" #include "DolphinWX/MemoryCards/WiiSaveCrypted.h" static Common::replace_v replacements; diff --git a/Source/Core/DolphinWX/MemoryCards/WiiSaveCrypted.h b/Source/Core/DolphinWX/MemoryCards/WiiSaveCrypted.h index c2c85cb333..583f9f4611 100644 --- a/Source/Core/DolphinWX/MemoryCards/WiiSaveCrypted.h +++ b/Source/Core/DolphinWX/MemoryCards/WiiSaveCrypted.h @@ -4,11 +4,11 @@ #pragma once +#include +#include #include -#include -#include "Common/StringUtil.h" -#include "Common/Crypto/tools.h" +#include "Common/CommonTypes.h" // --- this is used for encrypted Wii save files diff --git a/Source/Core/DolphinWX/NetWindow.cpp b/Source/Core/DolphinWX/NetWindow.cpp index a5eadd1e97..82f0dd4db6 100644 --- a/Source/Core/DolphinWX/NetWindow.cpp +++ b/Source/Core/DolphinWX/NetWindow.cpp @@ -2,21 +2,51 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "Common/Common.h" +#include "Common/FifoQueue.h" #include "Common/FileUtil.h" #include "Common/IniFile.h" #include "Core/ConfigManager.h" -#include "Core/Core.h" +#include "Core/CoreParameter.h" #include "Core/NetPlayClient.h" +#include "Core/NetPlayProto.h" #include "Core/NetPlayServer.h" +#include "Core/HW/EXI_Device.h" #include "DolphinWX/Frame.h" +#include "DolphinWX/GameListCtrl.h" +#include "DolphinWX/ISOFile.h" #include "DolphinWX/NetWindow.h" #include "DolphinWX/WxUtils.h" +class wxWindow; + #define NETPLAY_TITLEBAR "Dolphin NetPlay" #define INITIAL_PAD_BUFFER_SIZE 20 diff --git a/Source/Core/DolphinWX/NetWindow.h b/Source/Core/DolphinWX/NetWindow.h index b02f735f6c..e9e70929ea 100644 --- a/Source/Core/DolphinWX/NetWindow.h +++ b/Source/Core/DolphinWX/NetWindow.h @@ -4,21 +4,24 @@ #pragma once -#include #include +#include #include #include -#include -#include -#include -#include -#include -#include +#include -#include "Common/CommonTypes.h" #include "Common/FifoQueue.h" #include "Core/NetPlayClient.h" -#include "DolphinWX/GameListCtrl.h" +#include "Core/NetPlayProto.h" + +class CGameListCtrl; +class wxButton; +class wxCheckBox; +class wxChoice; +class wxListBox; +class wxString; +class wxTextCtrl; +class wxWindow; enum { diff --git a/Source/Core/DolphinWX/PHackSettings.cpp b/Source/Core/DolphinWX/PHackSettings.cpp index 086303ebdf..c3cbc77e3f 100644 --- a/Source/Core/DolphinWX/PHackSettings.cpp +++ b/Source/Core/DolphinWX/PHackSettings.cpp @@ -2,11 +2,30 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include "Common/CommonPaths.h" -#include "Core/ConfigManager.h" +#include "Common/FileUtil.h" +#include "Common/IniFile.h" +#include "DolphinWX/ISOProperties.h" #include "DolphinWX/PHackSettings.h" #include "DolphinWX/WxUtils.h" +class wxWindow; + extern PHackData PHack_Data; BEGIN_EVENT_TABLE(CPHackSettings, wxDialog) diff --git a/Source/Core/DolphinWX/PHackSettings.h b/Source/Core/DolphinWX/PHackSettings.h index 18965b7b5f..76f562d30d 100644 --- a/Source/Core/DolphinWX/PHackSettings.h +++ b/Source/Core/DolphinWX/PHackSettings.h @@ -4,10 +4,19 @@ #pragma once -#include -#include +#include +#include +#include +#include +#include +#include -#include "DolphinWX/ISOProperties.h" +#include "Common/IniFile.h" + +class wxCheckBox; +class wxChoice; +class wxTextCtrl; +class wxWindow; class CPHackSettings : public wxDialog { diff --git a/Source/Core/DolphinWX/PatchAddEdit.cpp b/Source/Core/DolphinWX/PatchAddEdit.cpp index 09a77a52be..ac72e67453 100644 --- a/Source/Core/DolphinWX/PatchAddEdit.cpp +++ b/Source/Core/DolphinWX/PatchAddEdit.cpp @@ -2,9 +2,33 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Common/Common.h" +#include "Core/PatchEngine.h" #include "DolphinWX/PatchAddEdit.h" #include "DolphinWX/WxUtils.h" +class wxWindow; + extern std::vector onFrame; BEGIN_EVENT_TABLE(CPatchAddEdit, wxDialog) diff --git a/Source/Core/DolphinWX/PatchAddEdit.h b/Source/Core/DolphinWX/PatchAddEdit.h index e57c80a109..7763bc4619 100644 --- a/Source/Core/DolphinWX/PatchAddEdit.h +++ b/Source/Core/DolphinWX/PatchAddEdit.h @@ -4,10 +4,23 @@ #pragma once -#include -#include +#include +#include +#include +#include +#include +#include +#include -#include "DolphinWX/ISOProperties.h" +#include "Core/PatchEngine.h" + +class wxButton; +class wxRadioBox; +class wxSpinButton; +class wxSpinEvent; +class wxStaticBoxSizer; +class wxTextCtrl; +class wxWindow; class CPatchAddEdit : public wxDialog { diff --git a/Source/Core/DolphinWX/TASInputDlg.cpp b/Source/Core/DolphinWX/TASInputDlg.cpp index 0ccb8bc890..c619e5a70c 100644 --- a/Source/Core/DolphinWX/TASInputDlg.cpp +++ b/Source/Core/DolphinWX/TASInputDlg.cpp @@ -2,8 +2,29 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include "Core/Movie.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Common/CommonTypes.h" #include "DolphinWX/TASInputDlg.h" +#include "InputCommon/GCPadStatus.h" BEGIN_EVENT_TABLE(TASInputDlg, wxDialog) diff --git a/Source/Core/DolphinWX/TASInputDlg.h b/Source/Core/DolphinWX/TASInputDlg.h index 45d54efdd5..d06c3ecab7 100644 --- a/Source/Core/DolphinWX/TASInputDlg.h +++ b/Source/Core/DolphinWX/TASInputDlg.h @@ -4,12 +4,25 @@ #pragma once -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "Common/Common.h" -#include "Core/CoreParameter.h" #include "InputCommon/GCPadStatus.h" +class wxCheckBox; +class wxSlider; +class wxStaticBitmap; +class wxTextCtrl; +class wxWindow; + class TASInputDlg : public wxDialog { public: diff --git a/Source/Core/DolphinWX/UDPConfigDiag.cpp b/Source/Core/DolphinWX/UDPConfigDiag.cpp index c01d913569..0887fd8649 100644 --- a/Source/Core/DolphinWX/UDPConfigDiag.cpp +++ b/Source/Core/DolphinWX/UDPConfigDiag.cpp @@ -1,12 +1,20 @@ #include +#include +#include +#include +#include +#include +#include +#include +#include +#include -#include "Common/Common.h" -#include "Common/IniFile.h" #include "DolphinWX/UDPConfigDiag.h" #include "DolphinWX/WxUtils.h" -#include "InputCommon/ControllerEmu.h" #include "InputCommon/UDPWrapper.h" +class wxWindow; + UDPConfigDiag::UDPConfigDiag(wxWindow * const parent, UDPWrapper * _wrp) : wxDialog(parent, -1, _("UDP Wiimote"), wxDefaultPosition, wxDefaultSize), wrp(_wrp) diff --git a/Source/Core/DolphinWX/UDPConfigDiag.h b/Source/Core/DolphinWX/UDPConfigDiag.h index 97d5f04d3a..5638599487 100644 --- a/Source/Core/DolphinWX/UDPConfigDiag.h +++ b/Source/Core/DolphinWX/UDPConfigDiag.h @@ -1,17 +1,12 @@ #pragma once -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include -#include "InputCommon/UDPWrapper.h" +class UDPWrapper; +class wxCheckBox; +class wxCommandEvent; +class wxTextCtrl; +class wxWindow; class UDPConfigDiag : public wxDialog { diff --git a/Source/Core/DolphinWX/VideoConfigDiag.cpp b/Source/Core/DolphinWX/VideoConfigDiag.cpp index dfd958ce5c..6a87fc3ae3 100644 --- a/Source/Core/DolphinWX/VideoConfigDiag.cpp +++ b/Source/Core/DolphinWX/VideoConfigDiag.cpp @@ -1,11 +1,37 @@ -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "Common/FileUtil.h" +#include "Common/SysConf.h" +#include "Core/ConfigManager.h" #include "Core/Core.h" +#include "Core/CoreParameter.h" #include "DolphinWX/Frame.h" #include "DolphinWX/VideoConfigDiag.h" -#include "VideoCommon/TextureCacheBase.h" - +#include "DolphinWX/WxUtils.h" +#include "VideoCommon/VideoBackendBase.h" +#include "VideoCommon/VideoConfig.h" #ifdef __APPLE__ #include diff --git a/Source/Core/DolphinWX/VideoConfigDiag.h b/Source/Core/DolphinWX/VideoConfigDiag.h index fca4e1371d..c9f37cc978 100644 --- a/Source/Core/DolphinWX/VideoConfigDiag.h +++ b/Source/Core/DolphinWX/VideoConfigDiag.h @@ -1,24 +1,34 @@ #pragma once +#include #include #include #include -#include #include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include -#include -#include +#include +#include +#include -#include "Common/MsgHandler.h" +#include "Common/CommonTypes.h" +#include "Common/SysConf.h" #include "Core/ConfigManager.h" -#include "Core/Core.h" +#include "Core/CoreParameter.h" #include "DolphinWX/WxUtils.h" +#include "VideoCommon/VideoBackendBase.h" #include "VideoCommon/VideoConfig.h" +class wxBoxSizer; +class wxControl; +class wxPanel; + template class BoolSetting : public W { diff --git a/Source/Core/DolphinWX/WXInputBase.cpp b/Source/Core/DolphinWX/WXInputBase.cpp index 22a1d5fcc4..979c94139b 100644 --- a/Source/Core/DolphinWX/WXInputBase.cpp +++ b/Source/Core/DolphinWX/WXInputBase.cpp @@ -2,6 +2,11 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include + #include "DolphinWX/WXInputBase.h" namespace InputCommon diff --git a/Source/Core/DolphinWX/WXInputBase.h b/Source/Core/DolphinWX/WXInputBase.h index d47e2f3b75..ebc151dd27 100644 --- a/Source/Core/DolphinWX/WXInputBase.h +++ b/Source/Core/DolphinWX/WXInputBase.h @@ -4,9 +4,8 @@ #pragma once -#include "Common/Common.h" #if defined(HAVE_WX) && HAVE_WX -#include +#include #endif namespace InputCommon diff --git a/Source/Core/DolphinWX/WiimoteConfigDiag.cpp b/Source/Core/DolphinWX/WiimoteConfigDiag.cpp index 2de3bf05a9..e366567a35 100644 --- a/Source/Core/DolphinWX/WiimoteConfigDiag.cpp +++ b/Source/Core/DolphinWX/WiimoteConfigDiag.cpp @@ -1,9 +1,35 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "Common/Common.h" +#include "Common/FileUtil.h" +#include "Common/IniFile.h" +#include "Common/SysConf.h" +#include "Core/ConfigManager.h" +#include "Core/Core.h" #include "Core/NetPlayProto.h" #include "Core/HW/Wiimote.h" #include "Core/HW/WiimoteReal/WiimoteReal.h" -#include "DolphinWX/Frame.h" +#include "DolphinWX/InputConfigDiag.h" #include "DolphinWX/WiimoteConfigDiag.h" +class InputPlugin; + WiimoteConfigDiag::WiimoteConfigDiag(wxWindow* const parent, InputPlugin& plugin) : wxDialog(parent, -1, _("Dolphin Wiimote Configuration"), wxDefaultPosition, wxDefaultSize) , m_plugin(plugin) diff --git a/Source/Core/DolphinWX/WiimoteConfigDiag.h b/Source/Core/DolphinWX/WiimoteConfigDiag.h index 5ae4d88dfd..e36ba95d06 100644 --- a/Source/Core/DolphinWX/WiimoteConfigDiag.h +++ b/Source/Core/DolphinWX/WiimoteConfigDiag.h @@ -1,20 +1,17 @@ #pragma once #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include "Common/SysConf.h" #include "Core/ConfigManager.h" #include "Core/HW/Wiimote.h" -#include "DolphinWX/InputConfigDiag.h" + +class InputPlugin; +class wxButton; +class wxWindow; class WiimoteConfigDiag : public wxDialog { diff --git a/Source/Core/DolphinWX/WxUtils.cpp b/Source/Core/DolphinWX/WxUtils.cpp index a7ad6d4852..fa7d91e0d9 100644 --- a/Source/Core/DolphinWX/WxUtils.cpp +++ b/Source/Core/DolphinWX/WxUtils.cpp @@ -2,10 +2,15 @@ // Licensed under GPLv2 // Refer to the license.txt file included. +#include +#include +#include +#include +#include +#include #include -#include +#include -#include "Common/Common.h" #include "DolphinWX/WxUtils.h" #ifdef __APPLE__ @@ -57,6 +62,12 @@ double GetCurrentBitmapLogicalScale() return 1.0; } +wxBitmap _wxGetBitmapFromMemory(const unsigned char* data, int length) +{ + wxMemoryInputStream is(data, length); + return(wxBitmap(wxImage(is, wxBITMAP_TYPE_ANY, -1), -1)); +} + } // namespace std::string WxStrToStr(const wxString& str) diff --git a/Source/Core/DolphinWX/WxUtils.h b/Source/Core/DolphinWX/WxUtils.h index a3bd1ec620..f4a77e9f21 100644 --- a/Source/Core/DolphinWX/WxUtils.h +++ b/Source/Core/DolphinWX/WxUtils.h @@ -7,6 +7,11 @@ #include #include +class wxBitmap; + +// A shortcut to access the bitmaps +#define wxGetBitmapFromMemory(name) WxUtils::_wxGetBitmapFromMemory(name, sizeof(name)) + namespace WxUtils { @@ -18,6 +23,8 @@ void Explore(const char *path); double GetCurrentBitmapLogicalScale(); +wxBitmap _wxGetBitmapFromMemory(const unsigned char* data, int length); + } // namespace std::string WxStrToStr(const wxString& str); diff --git a/Source/Core/DolphinWX/X11Utils.cpp b/Source/Core/DolphinWX/X11Utils.cpp index 8b9971d96f..2a5f40b061 100644 --- a/Source/Core/DolphinWX/X11Utils.cpp +++ b/Source/Core/DolphinWX/X11Utils.cpp @@ -6,6 +6,10 @@ #include #include +#include "Common/Log.h" +#include "Core/ConfigManager.h" +#include "Core/Core.h" +#include "Core/CoreParameter.h" #include "DolphinWX/X11Utils.h" extern char **environ; diff --git a/Source/Core/DolphinWX/X11Utils.h b/Source/Core/DolphinWX/X11Utils.h index 8139e26884..55e7e72c00 100644 --- a/Source/Core/DolphinWX/X11Utils.h +++ b/Source/Core/DolphinWX/X11Utils.h @@ -15,18 +15,15 @@ #if defined(HAVE_WX) && HAVE_WX #include #include -#include +#include #endif #if defined(HAVE_XRANDR) && HAVE_XRANDR #include #endif +#include #include -#include "Common/Common.h" -#include "Core/ConfigManager.h" -#include "Core/Core.h" - // EWMH state actions, see // http://freedesktop.org/wiki/Specifications/wm-spec?action=show&redirect=Standards%2Fwm-spec