Replaced wxSVG with wxStaticBitmap and removed the libwxsvg-dev and libwxsvg3 from dependencies.

This commit is contained in:
apoorv569
2021-07-19 09:02:58 +05:30
parent 25a4c1a5cc
commit 779b027d11
4 changed files with 4 additions and 10 deletions
+1 -3
View File
@@ -255,9 +255,7 @@ MainFrame::MainFrame()
// Temporary widget to show a waveform sample image
// TODO: Replace with actual waveform display
m_WaveformViewer = new wxSVGCtrl(m_TopPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize);
m_WaveformViewer->Load(WAVEFORM_SVG);
m_WaveformViewer->Show();
m_WaveformViewer = new wxStaticBitmap(m_TopPanel, wxID_ANY, wxBitmap(WAVEFORM_SVG));
// Initialize browser control buttons
m_PlayButton = new wxButton(m_TopPanel, BC_Play, _("Play"), wxDefaultPosition, wxDefaultSize, 0);
+1 -4
View File
@@ -51,9 +51,6 @@
#include <wx/treectrl.h>
#include <wx/window.h>
#include <wxSVG/svgctrl.h>
#include <wxSVG/SVGDocument.h>
#include <taglib/taglib.h>
#include <taglib/fileref.h>
#include <taglib/tstring.h>
@@ -112,7 +109,7 @@ class MainFrame : public wxFrame
wxBoxSizer* m_TopSizer;
wxBoxSizer* m_TopPanelMainSizer;
wxBoxSizer* m_WaveformDisplaySizer;
wxSVGCtrl* m_WaveformViewer;
wxStaticBitmap* m_WaveformViewer;
wxBoxSizer* m_BrowserControlSizer;
wxButton* m_PlayButton;
wxToggleButton* m_LoopButton;