mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-06 15:21:09 +00:00
Add Missing Includes Across src/slic3r/GUI (#16048)
* Add Missing Includes Across src/slic3r/GUI Every GUI source and header now directly includes the headers declaring what it uses, rather than relying on the precompiled header or transitive includes. Generated with clang-tidy misc-include-cleaner, plus one hand edit making CalibrationPanel.hpp self-contained. * Drop the OS-Specific Includes Added Outside Their Platform Guards GLib, GTK, D-Bus and POSIX headers are only used inside platform #if blocks, which already include them. Added unconditionally at the top of the file they broke the Windows build. * Add the clang-tidy Configuration That Generated These Includes Only misc-include-cleaner's missing-include check, with the headers it must never suggest: per-platform, internal and OS-specific ones that would break other platforms or are not meant to be included directly. * Match Windows Paths in the clang-tidy Ignore List Header paths use backslashes on Windows, so every / in a pattern is now [/\\]. The Windows SDK headers are ignored alongside the other OS-specific ones, and the list is one pattern per line. Suggested by @raistlin7447 from a Windows clang-cl run.
This commit is contained in:
@@ -1,6 +1,54 @@
|
||||
#include "MainFrame.hpp"
|
||||
|
||||
#include <wx/event.h>
|
||||
#include "slic3r/GUI/Event.hpp"
|
||||
#include <wx/gdicmn.h>
|
||||
#include <wx/dcclient.h>
|
||||
#include "libslic3r/Utils.hpp"
|
||||
#include "slic3r/GUI/GUI_Utils.hpp"
|
||||
#include <wx/filehistory.h>
|
||||
#include "slic3r/GUI/BBLTopbar.hpp"
|
||||
#include "libslic3r/Format/bbs_3mf.hpp"
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <optional>
|
||||
#include "slic3r/GUI/GLToolbar.hpp"
|
||||
#include "libslic3r/Preset.hpp"
|
||||
#include <functional>
|
||||
#include <wx/busycursor.h>
|
||||
#include <cstddef>
|
||||
#include "slic3r/GUI/Project.hpp"
|
||||
#include <wx/bookctrl.h>
|
||||
#include "slic3r/GUI/LazyPage.hpp"
|
||||
#include "slic3r/GUI/Monitor.hpp"
|
||||
#include "slic3r/GUI/PrinterWebView.hpp"
|
||||
#include "slic3r/GUI/MultiMachinePage.hpp"
|
||||
#include "slic3r/GUI/CalibrationPanel.hpp"
|
||||
#include "slic3r/GUI/ReleaseNote.hpp"
|
||||
#include "slic3r/GUI/GUI.hpp"
|
||||
#include <vector>
|
||||
#include "libslic3r/PublishSettings.hpp"
|
||||
#include "libslic3r/Config.hpp"
|
||||
#include "slic3r/GUI/Widgets/StateColor.hpp"
|
||||
#include <wx/colour.h>
|
||||
#include "slic3r/GUI/FilamentGroupPopup.hpp"
|
||||
#include "slic3r/GUI/Widgets/SideMenuPopup.hpp"
|
||||
#include <utility>
|
||||
#include "libslic3r/libslic3r.h"
|
||||
#include "slic3r/GUI/Printer/PrinterFileSystem.h"
|
||||
#include <algorithm>
|
||||
#include <wx/dirdlg.h>
|
||||
#include <exception>
|
||||
#include <wx/filedlg.h>
|
||||
#include "slic3r/GUI/Lazy.hpp"
|
||||
#include <wx/filefn.h>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <wx/base64.h>
|
||||
#include <ctime>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include "slic3r/GUI/calib_dlg.hpp"
|
||||
#include <wx/panel.h>
|
||||
#include <wx/settings.h>
|
||||
#include <wx/textentry.h>
|
||||
#include <wx/notebook.h>
|
||||
#include <wx/listbook.h>
|
||||
@@ -13,11 +61,13 @@
|
||||
//#include <wx/glcanvas.h>
|
||||
#include <wx/filename.h>
|
||||
#include <wx/debug.h>
|
||||
#include <wx/toplevel.h>
|
||||
#include <wx/utils.h>
|
||||
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
#include <boost/log/trivial.hpp>
|
||||
#include <boost/property_tree/ptree.hpp>
|
||||
#include <wx/webview.h>
|
||||
|
||||
#include "libslic3r/Print.hpp"
|
||||
#include "libslic3r/Polygon.hpp"
|
||||
@@ -30,6 +80,7 @@
|
||||
#include "3DScene.hpp"
|
||||
#include "ParamsDialog.hpp"
|
||||
#include "PrintHostDialogs.hpp"
|
||||
#include "libslic3r_version.h"
|
||||
#include "wxExtensions.hpp"
|
||||
#include "GUI_ObjectList.hpp"
|
||||
#include "Mouse3DController.hpp"
|
||||
|
||||
Reference in New Issue
Block a user