Forward Declare GUI Panels in MainFrame.hpp (#16842)

* Forward Declare GUI Panels in MainFrame.hpp

* Include wx/statline.h Directly Where wxStaticLine Is Used

The Windows builds failed in AboutDialog.cpp because MainFrame.hpp no longer brings in wx/statline.h.

* Include BBLTopbar.hpp Directly in GUI_App.cpp

The Windows builds failed in GUI_App.cpp with member access into incomplete type BBLTopbar.
This commit is contained in:
HanifKoh authored and GitHub committed 2026-10-26 12:40:27 +08:00
1 parent cbbe590230
commit 2a6e7a199b
27 files changed
+62 -17

No files matched your search

+5
View File
@@ -47,6 +47,9 @@
#include <ctime>
#include <boost/filesystem/operations.hpp>
#include "slic3r/GUI/calib_dlg.hpp"
#include "slic3r/GUI/ParamsPanel.hpp"
#include "slic3r/GUI/UnsavedChangesDialog.hpp"
#include "slic3r/GUI/Widgets/SideButton.hpp"
#include <wx/panel.h>
#include <wx/settings.h>
#include <wx/textentry.h>
@@ -398,6 +401,8 @@ static wxIcon main_frame_icon(GUI_App::EAppMode app_mode)
wxDEFINE_EVENT(EVT_SYNC_CLOUD_PRESET, SimpleEvent);
MainFrame::~MainFrame() = default;
MainFrame::MainFrame() :
DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, BORDERLESS_FRAME_STYLE, "mainframe")
, m_printhost_queue_dlg(new PrintHostQueueDialog(this))