From 34cf1ff7c7b87db50fb16a22fb19b210294860cf Mon Sep 17 00:00:00 2001 From: scribam Date: Sat, 2 Sep 2017 16:05:03 +0200 Subject: [PATCH] Remove old wxWidgets-related references --- Utilities/MTProgressDialog.h | 98 -------------- rpcs3/rpcs3.vcxproj | 4 +- rpcs3/rpcs3_old.vcxproj.filters | 232 -------------------------------- 3 files changed, 2 insertions(+), 332 deletions(-) delete mode 100644 Utilities/MTProgressDialog.h delete mode 100644 rpcs3/rpcs3_old.vcxproj.filters diff --git a/Utilities/MTProgressDialog.h b/Utilities/MTProgressDialog.h deleted file mode 100644 index 60002aac86..0000000000 --- a/Utilities/MTProgressDialog.h +++ /dev/null @@ -1,98 +0,0 @@ -#pragma once - -class MTProgressDialog : public wxDialog -{ - wxGauge** m_gauge; - wxStaticText** m_msg; - - wxArrayLong m_maximum; - const u8 m_cores; - - static const uint layout = 16; - static const uint maxdial = 65536; - wxArrayInt m_lastupdate; - -public: - MTProgressDialog(wxWindow* parent, const wxSize& size, const wxString& title, - const wxString& msg, const wxArrayLong& maximum, const u8 cores) - : wxDialog(parent, wxID_ANY, title, wxDefaultPosition) - , m_maximum(maximum) - , m_cores(cores) - { - wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL); - - m_gauge = new wxGauge*[m_cores]; - m_msg = new wxStaticText*[m_cores]; - - m_lastupdate.SetCount(cores); - - for(uint i=0; iAdd(m_msg[i], 0, wxLEFT | wxTOP, layout); - - m_gauge[i] = new wxGauge(this, wxID_ANY, maxdial, - wxDefaultPosition, wxDefaultSize, - wxGA_HORIZONTAL ); - - sizer->Add(m_gauge[i], 0, wxLEFT | wxRIGHT | wxTOP | wxEXPAND, layout); - m_gauge[i]->SetValue(0); - - sizer->AddSpacer(5); - } - - SetSizerAndFit(sizer); - if(size != wxDefaultSize) - { - SetSize(size); - } - else - { - wxSize ws; - ws.x = 400; - ws.y = GetSize().y + 8; - SetSize(ws); - } - - m_maximum.SetCount(m_cores); - - Show(); - } - - void Update(const u8 thread_id, const u64 value, const wxString& msg) - { - if(thread_id > m_cores) return; - - const int curupdate = (int)(((double)value/(double)m_maximum[thread_id])*1000); - if(curupdate == m_lastupdate[thread_id]) return; - m_lastupdate[thread_id] = curupdate; - - m_msg[thread_id]->SetLabel(msg); - - if(value >= (u32)m_maximum[thread_id]) return; - m_gauge[thread_id]->SetValue(((double)value / (double)m_maximum[thread_id]) * maxdial); - } - - const u32 GetMaxValue(const uint thread_id) const - { - if(thread_id > m_cores) return 0; - return m_maximum[thread_id]; - } - - void SetMaxFor(const uint thread_id, const u64 val) - { - if(thread_id > m_cores) return; - m_maximum[thread_id] = val; - m_lastupdate[thread_id] = 0; - } - - virtual void Close(bool force = false) - { - m_lastupdate.Empty(); - m_maximum.Empty(); - - wxDialog::Close(force); - } -}; diff --git a/rpcs3/rpcs3.vcxproj b/rpcs3/rpcs3.vcxproj index 935627b901..4dbb1183b4 100644 --- a/rpcs3/rpcs3.vcxproj +++ b/rpcs3/rpcs3.vcxproj @@ -116,11 +116,11 @@ $(SolutionDir)lib\$(Configuration)-$(Platform)\;$(UniversalCRT_LibraryPath_x64);$(LibraryPath) - ..\3rdparty\hidapi\hidapi;.\;..\;..\asmjit\src\asmjit;..\Utilities\yaml-cpp\include;..\wxWidgets\src\zlib;..\3rdparty\ffmpeg\WindowsInclude;..\3rdparty\cereal\include;..\3rdparty\ffmpeg\Windows\x86_64\Include;$(VC_IncludePath);$(WindowsSDK_IncludePath);$(UniversalCRT_IncludePath);..\3rdparty\minidx12\Include;..\3rdparty\GSL\include;..\3rdparty\libpng;..\3rdparty\GL;..\3rdparty\stblib;..\3rdparty\OpenAL\include;..\3rdparty\pugixml\src + ..\3rdparty\hidapi\hidapi;.\;..\;..\asmjit\src\asmjit;..\Utilities\yaml-cpp\include;..\3rdparty\ffmpeg\WindowsInclude;..\3rdparty\cereal\include;..\3rdparty\ffmpeg\Windows\x86_64\Include;$(VC_IncludePath);$(WindowsSDK_IncludePath);$(UniversalCRT_IncludePath);..\3rdparty\minidx12\Include;..\3rdparty\GSL\include;..\3rdparty\libpng;..\3rdparty\GL;..\3rdparty\stblib;..\3rdparty\OpenAL\include;..\3rdparty\pugixml\src $(SolutionDir)lib\Release-x64;$(SolutionDir)lib\$(Configuration)-$(Platform)\;$(UniversalCRT_LibraryPath_x64);$(LibraryPath) - ..\3rdparty\hidapi\hidapi;.\;..\;..\asmjit\src\asmjit;..\Utilities\yaml-cpp\include;..\wxWidgets\src\zlib;..\3rdparty\ffmpeg\WindowsInclude;..\3rdparty\cereal\include;..\3rdparty\ffmpeg\Windows\x86_64\Include;$(VC_IncludePath);$(WindowsSDK_IncludePath);$(UniversalCRT_IncludePath);..\3rdparty\minidx12\Include;..\3rdparty\GSL\include;..\3rdparty\libpng;..\3rdparty\GL;..\3rdparty\stblib;..\3rdparty\OpenAL\include;..\3rdparty\pugixml\src + ..\3rdparty\hidapi\hidapi;.\;..\;..\asmjit\src\asmjit;..\Utilities\yaml-cpp\include;..\3rdparty\ffmpeg\WindowsInclude;..\3rdparty\cereal\include;..\3rdparty\ffmpeg\Windows\x86_64\Include;$(VC_IncludePath);$(WindowsSDK_IncludePath);$(UniversalCRT_IncludePath);..\3rdparty\minidx12\Include;..\3rdparty\GSL\include;..\3rdparty\libpng;..\3rdparty\GL;..\3rdparty\stblib;..\3rdparty\OpenAL\include;..\3rdparty\pugixml\src diff --git a/rpcs3/rpcs3_old.vcxproj.filters b/rpcs3/rpcs3_old.vcxproj.filters deleted file mode 100644 index a59ba7e06e..0000000000 --- a/rpcs3/rpcs3_old.vcxproj.filters +++ /dev/null @@ -1,232 +0,0 @@ - - - - - {98fb6fa5-9a9a-48a6-a6b4-be4b9a69b76e} - - - {9bd88f78-8528-48f3-b9e0-78e06476b04d} - - - {6da015d7-ee99-4d6b-9588-42414b63ee0e} - - - {b30572ce-b602-4c10-ad69-bd3f1c8a0144} - - - {47155d25-741d-42c0-8850-f22aafca082a} - - - {ce9ce942-07dd-4cbc-9b76-0f754c363eda} - - - {92e92511-88b9-4187-9c94-80790248d337} - - - {a3a0bd9d-fcf7-4440-81b7-13fdd39601ae} - - - - - rpcs3 - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Io\Basic - - - Io\XInput - - - Io\Basic - - - Io\Basic - - - Gui - - - Gui - - - Gui - - - Io\MMJoystick - - - Io\DS4 - - - - - Utilities - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - rpcs3 - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - Gui - - - rpcs3 - - - Gui - - - Gui - - - Gui - - - Gui - - - - Gui - - - Gui - - - Gui - - - Gui - - - Io\XInput - - - Io\Basic - - - Io\Basic - - - Io\Basic - - - Io\MMJoystick - - - Io\DS4 - - - - - - - - - \ No newline at end of file