diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 8e4b934f6f..9444b2fe41 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -13,7 +13,6 @@ target_sources(common PRIVATE VirtualMemory.cpp EventSource.inl SafeArray.inl - CheckedStaticBox.cpp Console.cpp EventSource.cpp Exceptions.cpp @@ -23,8 +22,6 @@ target_sources(common PRIVATE PathUtils.cpp PrecompiledHeader.cpp Perf.cpp - pxCheckBox.cpp - pxRadioPanel.cpp pxStaticText.cpp pxStreams.cpp pxTranslate.cpp @@ -32,9 +29,7 @@ target_sources(common PRIVATE RwMutex.cpp Semaphore.cpp StringHelpers.cpp - ThreadingDialogs.cpp ThreadTools.cpp - wxAppWithHelpers.cpp wxGuiTools.cpp wxHelpers.cpp emitter/bmi.cpp @@ -64,7 +59,6 @@ target_sources(common PRIVATE target_sources(common PRIVATE Assertions.h boost_spsc_queue.hpp - CheckedStaticBox.h Console.h Dependencies.h EventSource.h @@ -75,9 +69,7 @@ target_sources(common PRIVATE Path.h PageFaultSource.h PrecompiledHeader.h - pxCheckBox.h pxForwardDefs.h - pxRadioPanel.h pxStaticText.h pxStreams.h RedtapeWindows.h @@ -87,9 +79,7 @@ target_sources(common PRIVATE ScopedPtrMT.h StringHelpers.h Threading.h - ThreadingDialogs.h TraceLog.h - wxAppWithHelpers.h wxBaseTools.h wxGuiTools.h emitter/cpudetect_internal.h diff --git a/common/common.vcxproj b/common/common.vcxproj index b0dad8a215..7006422fd0 100644 --- a/common/common.vcxproj +++ b/common/common.vcxproj @@ -40,7 +40,6 @@ - @@ -48,7 +47,6 @@ - @@ -56,11 +54,8 @@ Create - - - @@ -95,7 +90,6 @@ - @@ -105,14 +99,10 @@ - - - - diff --git a/common/common.vcxproj.filters b/common/common.vcxproj.filters index 1d8dc9db76..e4415b41aa 100644 --- a/common/common.vcxproj.filters +++ b/common/common.vcxproj.filters @@ -7,9 +7,6 @@ Source Files - - Source Files - Source Files @@ -70,12 +67,6 @@ Source Files - - Source Files - - - Source Files - Source Files @@ -100,9 +91,6 @@ Source Files - - Source Files - Source Files @@ -121,9 +109,6 @@ Source Files - - Source Files - Source Files @@ -144,9 +129,6 @@ Header Files - - Header Files - Header Files @@ -219,15 +201,6 @@ Header Files - - Header Files - - - Header Files - - - Header Files - Header Files @@ -276,9 +249,6 @@ Header Files - - Header Files - Header Files diff --git a/pcsx2/CMakeLists.txt b/pcsx2/CMakeLists.txt index 2ef3b06510..6257a9a34f 100644 --- a/pcsx2/CMakeLists.txt +++ b/pcsx2/CMakeLists.txt @@ -969,6 +969,7 @@ set(pcsx2GuiSources gui/AppInit.cpp gui/AppMain.cpp gui/AppRes.cpp + gui/CheckedStaticBox.cpp gui/ConsoleLogger.cpp gui/CpuUsageProvider.cpp gui/Dialogs/AboutBoxDialog.cpp @@ -1017,10 +1018,14 @@ set(pcsx2GuiSources gui/Panels/PathsPanel.cpp gui/Panels/SpeedhacksPanel.cpp gui/Panels/VideoPanel.cpp + gui/pxCheckBox.cpp + gui/pxRadioPanel.cpp gui/RecentIsoList.cpp gui/Saveslots.cpp gui/SysState.cpp + gui/ThreadingDialogs.cpp gui/UpdateUI.cpp + gui/wxAppWithHelpers.cpp ) # gui headers @@ -1035,6 +1040,7 @@ set(pcsx2GuiHeaders gui/App.h gui/ApplyState.h gui/AppSaveStates.h + gui/CheckedStaticBox.h gui/ConsoleLogger.h gui/CpuUsageProvider.h gui/Debugger/BreakpointWindow.h @@ -1059,9 +1065,14 @@ set(pcsx2GuiHeaders gui/Panels/ConfigurationPanels.h gui/Panels/LogOptionsPanels.h gui/Panels/MemoryCardPanels.h + gui/pxCheckBox.h + gui/pxEvents.h gui/pxEventThread.h + gui/pxRadioPanel.h gui/RecentIsoList.h gui/Saveslots.h + gui/ThreadingDialogs.h + gui/ThreadingDialogs.cpp ) # Warning: the declaration of the .h are mandatory in case of resources files. It will ensure the creation diff --git a/pcsx2/gui/App.h b/pcsx2/gui/App.h index 36780fc7bd..9146eb8385 100644 --- a/pcsx2/gui/App.h +++ b/pcsx2/gui/App.h @@ -15,7 +15,7 @@ #pragma once -#include "common/wxAppWithHelpers.h" +#include "gui/wxAppWithHelpers.h" #include #include diff --git a/pcsx2/gui/AppCommon.h b/pcsx2/gui/AppCommon.h index 6641c52186..5766e6abb1 100644 --- a/pcsx2/gui/AppCommon.h +++ b/pcsx2/gui/AppCommon.h @@ -20,10 +20,10 @@ #include "common/PersistentThread.h" #include "common/wxGuiTools.h" -#include "common/pxRadioPanel.h" -#include "common/pxCheckBox.h" +#include "gui/pxRadioPanel.h" +#include "gui/pxCheckBox.h" #include "common/pxStaticText.h" -#include "common/CheckedStaticBox.h" +#include "gui/CheckedStaticBox.h" #include "AppForwardDefs.h" #include "AppConfig.h" diff --git a/pcsx2/gui/AppEventListeners.h b/pcsx2/gui/AppEventListeners.h index 3e49d9ec55..27446e6ffe 100644 --- a/pcsx2/gui/AppEventListeners.h +++ b/pcsx2/gui/AppEventListeners.h @@ -16,7 +16,7 @@ #pragma once #include "common/EventSource.h" -#include "common/pxEvents.h" +#include "gui/pxEvents.h" #include "common/IniInterface.h" enum CoreThreadStatus diff --git a/common/CheckedStaticBox.cpp b/pcsx2/gui/CheckedStaticBox.cpp similarity index 97% rename from common/CheckedStaticBox.cpp rename to pcsx2/gui/CheckedStaticBox.cpp index 178acdc9ba..d2d707c8a5 100644 --- a/common/CheckedStaticBox.cpp +++ b/pcsx2/gui/CheckedStaticBox.cpp @@ -13,7 +13,8 @@ * If not, see . */ -#include "common/CheckedStaticBox.h" +#include "PrecompiledHeader.h" +#include "gui/CheckedStaticBox.h" CheckedStaticBox::CheckedStaticBox(wxWindow* parent, int orientation, const wxString& title) : wxPanelWithHelpers(parent, wxVERTICAL) diff --git a/common/CheckedStaticBox.h b/pcsx2/gui/CheckedStaticBox.h similarity index 100% rename from common/CheckedStaticBox.h rename to pcsx2/gui/CheckedStaticBox.h diff --git a/pcsx2/gui/Dialogs/LogOptionsDialog.h b/pcsx2/gui/Dialogs/LogOptionsDialog.h index 7b82ad482d..7a9f16ed7e 100644 --- a/pcsx2/gui/Dialogs/LogOptionsDialog.h +++ b/pcsx2/gui/Dialogs/LogOptionsDialog.h @@ -19,7 +19,7 @@ #include "ConfigurationDialog.h" #include "common/wxGuiTools.h" -#include "common/CheckedStaticBox.h" +#include "gui/CheckedStaticBox.h" namespace Dialogs { diff --git a/common/ThreadingDialogs.cpp b/pcsx2/gui/ThreadingDialogs.cpp similarity index 97% rename from common/ThreadingDialogs.cpp rename to pcsx2/gui/ThreadingDialogs.cpp index 0723fafe01..a65505e08e 100644 --- a/common/ThreadingDialogs.cpp +++ b/pcsx2/gui/ThreadingDialogs.cpp @@ -13,7 +13,8 @@ * If not, see . */ -#include "common/ThreadingDialogs.h" +#include "PrecompiledHeader.h" +#include "gui/ThreadingDialogs.h" #include "common/pxStaticText.h" using namespace pxSizerFlags; diff --git a/common/ThreadingDialogs.h b/pcsx2/gui/ThreadingDialogs.h similarity index 96% rename from common/ThreadingDialogs.h rename to pcsx2/gui/ThreadingDialogs.h index 9cd9b38237..baba36a861 100644 --- a/common/ThreadingDialogs.h +++ b/pcsx2/gui/ThreadingDialogs.h @@ -15,8 +15,8 @@ #pragma once -#include "Threading.h" -#include "wxAppWithHelpers.h" +#include "common/Threading.h" +#include "pcsx2/gui/wxAppWithHelpers.h" wxDECLARE_EVENT(pxEvt_ThreadedTaskComplete, wxCommandEvent); diff --git a/common/pxCheckBox.cpp b/pcsx2/gui/pxCheckBox.cpp similarity index 98% rename from common/pxCheckBox.cpp rename to pcsx2/gui/pxCheckBox.cpp index c7ee06cbe5..a1ea22b594 100644 --- a/common/pxCheckBox.cpp +++ b/pcsx2/gui/pxCheckBox.cpp @@ -13,7 +13,8 @@ * If not, see . */ -#include "common/pxCheckBox.h" +#include "PrecompiledHeader.h" +#include "gui/pxCheckBox.h" #include "common/pxStaticText.h" using namespace pxSizerFlags; diff --git a/common/pxCheckBox.h b/pcsx2/gui/pxCheckBox.h similarity index 100% rename from common/pxCheckBox.h rename to pcsx2/gui/pxCheckBox.h diff --git a/pcsx2/gui/pxEventThread.h b/pcsx2/gui/pxEventThread.h index 02c25fe98b..2a36f97604 100644 --- a/pcsx2/gui/pxEventThread.h +++ b/pcsx2/gui/pxEventThread.h @@ -16,7 +16,7 @@ #pragma once #include "common/PersistentThread.h" -#include "common/pxEvents.h" +#include "gui/pxEvents.h" #include #include diff --git a/common/pxEvents.h b/pcsx2/gui/pxEvents.h similarity index 100% rename from common/pxEvents.h rename to pcsx2/gui/pxEvents.h diff --git a/common/pxRadioPanel.cpp b/pcsx2/gui/pxRadioPanel.cpp similarity index 99% rename from common/pxRadioPanel.cpp rename to pcsx2/gui/pxRadioPanel.cpp index 4421667bdd..20f0a8187d 100644 --- a/common/pxRadioPanel.cpp +++ b/pcsx2/gui/pxRadioPanel.cpp @@ -13,7 +13,8 @@ * If not, see . */ -#include "common/pxRadioPanel.h" +#include "PrecompiledHeader.h" +#include "gui/pxRadioPanel.h" #include "common/pxStaticText.h" #include "common/SafeArray.inl" diff --git a/common/pxRadioPanel.h b/pcsx2/gui/pxRadioPanel.h similarity index 100% rename from common/pxRadioPanel.h rename to pcsx2/gui/pxRadioPanel.h diff --git a/common/wxAppWithHelpers.cpp b/pcsx2/gui/wxAppWithHelpers.cpp similarity index 99% rename from common/wxAppWithHelpers.cpp rename to pcsx2/gui/wxAppWithHelpers.cpp index 5e72e36e3d..bd5f67c664 100644 --- a/common/wxAppWithHelpers.cpp +++ b/pcsx2/gui/wxAppWithHelpers.cpp @@ -13,7 +13,8 @@ * If not, see . */ -#include "common/wxAppWithHelpers.h" +#include "PrecompiledHeader.h" +#include "gui/wxAppWithHelpers.h" #include "common/ThreadingInternal.h" #include "common/PersistentThread.h" diff --git a/common/wxAppWithHelpers.h b/pcsx2/gui/wxAppWithHelpers.h similarity index 99% rename from common/wxAppWithHelpers.h rename to pcsx2/gui/wxAppWithHelpers.h index 7537d341a3..cec7c8f403 100644 --- a/common/wxAppWithHelpers.h +++ b/pcsx2/gui/wxAppWithHelpers.h @@ -19,7 +19,7 @@ #include "common/Threading.h" #include "common/wxGuiTools.h" -#include "common/pxEvents.h" +#include "gui/pxEvents.h" #include "common/AppTrait.h" using namespace Threading; diff --git a/pcsx2/pcsx2.vcxproj b/pcsx2/pcsx2.vcxproj index c880579082..30185514b6 100644 --- a/pcsx2/pcsx2.vcxproj +++ b/pcsx2/pcsx2.vcxproj @@ -301,6 +301,7 @@ + @@ -313,6 +314,10 @@ + + + + @@ -743,8 +748,12 @@ + + + + @@ -754,6 +763,8 @@ + + diff --git a/pcsx2/pcsx2.vcxproj.filters b/pcsx2/pcsx2.vcxproj.filters index 3ff6ca7e42..d443788e02 100644 --- a/pcsx2/pcsx2.vcxproj.filters +++ b/pcsx2/pcsx2.vcxproj.filters @@ -368,9 +368,9 @@ Misc - - Misc - + + Misc + Misc @@ -1640,6 +1640,21 @@ System\Ps2\GS\Window + + AppHost + + + AppHost + + + AppHost + + + AppHost + + + AppHost + @@ -2564,8 +2579,8 @@ System\Ps2\GS - System\Ps2\GS - + System\Ps2\GS + System\Ps2 @@ -2713,6 +2728,24 @@ System\Ps2\GS\Window + + AppHost + + + AppHost + + + AppHost + + + AppHost + + + AppHost + + + AppHost +