From d310e4ca348b568cbad4cd6bf5fee1f98a0c8e6d Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 21 Dec 2023 10:10:46 +0100 Subject: [PATCH] slic3r: Fix missing includes Fix a lot of "undeclared" errors during compilation on top of the current GNOME 45 Flatpak SDK. --- src/slic3r/GUI/AMSMaterialsSetting.cpp | 2 ++ src/slic3r/GUI/AMSMaterialsSetting.hpp | 1 + src/slic3r/GUI/Auxiliary.cpp | 2 ++ src/slic3r/GUI/AuxiliaryDataViewModel.cpp | 4 ++++ src/slic3r/GUI/AuxiliaryDataViewModel.hpp | 2 +- src/slic3r/GUI/AuxiliaryDialog.cpp | 2 ++ src/slic3r/GUI/BBLStatusBar.hpp | 1 + src/slic3r/GUI/BBLStatusBarSend.cpp | 2 +- src/slic3r/GUI/BBLTopbar.cpp | 3 +++ src/slic3r/GUI/BindDialog.cpp | 1 + src/slic3r/GUI/CameraPopup.hpp | 1 + src/slic3r/GUI/CreatePresetsDialog.cpp | 2 ++ src/slic3r/GUI/DeviceManager.hpp | 1 + src/slic3r/GUI/ExtrusionCalibration.cpp | 1 + src/slic3r/GUI/GCodeViewer.cpp | 1 + src/slic3r/GUI/GLTexture.cpp | 1 + src/slic3r/GUI/GLTexture.hpp | 3 +++ src/slic3r/GUI/GUI_App.cpp | 2 ++ src/slic3r/GUI/GUI_Colors.hpp | 1 + src/slic3r/GUI/GUI_Init.cpp | 1 + src/slic3r/GUI/GUI_ObjectTable.cpp | 1 + src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp | 1 + src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp | 2 ++ src/slic3r/GUI/Gizmos/GLGizmoText.cpp | 3 +++ src/slic3r/GUI/HMS.cpp | 2 +- src/slic3r/GUI/HttpServer.hpp | 1 + src/slic3r/GUI/IMSlider.hpp | 1 + src/slic3r/GUI/ImageGrid.cpp | 2 ++ src/slic3r/GUI/ImageGrid.h | 1 + src/slic3r/GUI/Jobs/PrintJob.hpp | 1 + src/slic3r/GUI/Jobs/ProgressIndicator.hpp | 1 + src/slic3r/GUI/Jobs/UpgradeNetworkJob.hpp | 2 ++ src/slic3r/GUI/MainFrame.cpp | 1 + src/slic3r/GUI/MainFrame.hpp | 2 ++ src/slic3r/GUI/MarkdownTip.cpp | 2 ++ src/slic3r/GUI/MediaFilePanel.h | 2 ++ src/slic3r/GUI/MediaPlayCtrl.cpp | 5 +++++ src/slic3r/GUI/MonitorPage.hpp | 1 + src/slic3r/GUI/NetworkTestDialog.cpp | 2 +- src/slic3r/GUI/Notebook.hpp | 1 + src/slic3r/GUI/ObjectDataViewModel.hpp | 2 ++ src/slic3r/GUI/ParamsPanel.hpp | 2 ++ src/slic3r/GUI/PartPlate.cpp | 1 + src/slic3r/GUI/PresetComboBoxes.hpp | 1 + src/slic3r/GUI/Printer/PrinterFileSystem.cpp | 4 ++++ src/slic3r/GUI/Printer/PrinterFileSystem.h | 1 + src/slic3r/GUI/PrivacyUpdateDialog.hpp | 1 + src/slic3r/GUI/Project.cpp | 2 ++ src/slic3r/GUI/SavePresetDialog.cpp | 1 + src/slic3r/GUI/SelectMachine.cpp | 1 + src/slic3r/GUI/SliceInfoPanel.cpp | 2 ++ src/slic3r/GUI/StatusPanel.cpp | 2 ++ src/slic3r/GUI/TabButton.cpp | 1 + src/slic3r/GUI/WebUserLoginDialog.hpp | 1 + src/slic3r/GUI/WebViewDialog.cpp | 3 +++ src/slic3r/GUI/Widgets/AMSControl.cpp | 3 +++ src/slic3r/GUI/Widgets/AxisCtrlButton.cpp | 2 ++ src/slic3r/GUI/Widgets/Button.cpp | 1 + src/slic3r/GUI/Widgets/DropDown.cpp | 2 ++ src/slic3r/GUI/Widgets/DropDown.hpp | 1 + src/slic3r/GUI/Widgets/ErrorMsgStaticText.cpp | 1 + src/slic3r/GUI/Widgets/ErrorMsgStaticText.hpp | 1 + src/slic3r/GUI/Widgets/ImageSwitchButton.cpp | 1 + src/slic3r/GUI/Widgets/Label.cpp | 3 +++ src/slic3r/GUI/Widgets/ProgressBar.cpp | 1 + src/slic3r/GUI/Widgets/ProgressDialog.hpp | 1 + src/slic3r/GUI/Widgets/RoundedRectangle.cpp | 1 + src/slic3r/GUI/Widgets/SideButton.cpp | 1 + src/slic3r/GUI/Widgets/SideMenuPopup.cpp | 1 + src/slic3r/GUI/Widgets/SpinInput.hpp | 3 +++ src/slic3r/GUI/Widgets/StateHandler.cpp | 1 + src/slic3r/GUI/Widgets/StateHandler.hpp | 1 + src/slic3r/GUI/Widgets/StaticBox.cpp | 1 + src/slic3r/GUI/Widgets/StaticLine.cpp | 1 + src/slic3r/GUI/Widgets/StepCtrl.cpp | 3 +++ src/slic3r/GUI/Widgets/SwitchButton.cpp | 2 ++ src/slic3r/GUI/Widgets/TabCtrl.cpp | 1 + src/slic3r/GUI/Widgets/TempInput.hpp | 1 + src/slic3r/GUI/Widgets/TextInput.cpp | 1 + src/slic3r/GUI/Widgets/WebView.cpp | 2 ++ src/slic3r/GUI/WipeTowerDialog.cpp | 3 --- src/slic3r/GUI/WipeTowerDialog.hpp | 1 + src/slic3r/GUI/wxExtensions.hpp | 1 + src/slic3r/Utils/ColorSpaceConvert.cpp | 1 + src/slic3r/Utils/ColorSpaceConvert.hpp | 2 ++ src/slic3r/Utils/FileHelp.cpp | 1 + src/slic3r/Utils/Http.hpp | 4 ++++ src/slic3r/Utils/json_diff.cpp | 4 ++++ 88 files changed, 140 insertions(+), 7 deletions(-) diff --git a/src/slic3r/GUI/AMSMaterialsSetting.cpp b/src/slic3r/GUI/AMSMaterialsSetting.cpp index ff1ebf3c11..99631c5d2d 100644 --- a/src/slic3r/GUI/AMSMaterialsSetting.cpp +++ b/src/slic3r/GUI/AMSMaterialsSetting.cpp @@ -4,6 +4,8 @@ #include "GUI_App.hpp" #include "libslic3r/Preset.hpp" #include "I18N.hpp" +#include +#include #include #include "CalibUtils.hpp" diff --git a/src/slic3r/GUI/AMSMaterialsSetting.hpp b/src/slic3r/GUI/AMSMaterialsSetting.hpp index 847bc83403..d0c5726222 100644 --- a/src/slic3r/GUI/AMSMaterialsSetting.hpp +++ b/src/slic3r/GUI/AMSMaterialsSetting.hpp @@ -6,6 +6,7 @@ #include "GUI_Utils.hpp" #include "DeviceManager.hpp" #include "wx/clrpicker.h" +#include "wx/colourdata.h" #include "Widgets/RadioBox.hpp" #include "Widgets/Button.hpp" #include "Widgets/RoundedRectangle.hpp" diff --git a/src/slic3r/GUI/Auxiliary.cpp b/src/slic3r/GUI/Auxiliary.cpp index 614d4f7f47..7ee2a44282 100644 --- a/src/slic3r/GUI/Auxiliary.cpp +++ b/src/slic3r/GUI/Auxiliary.cpp @@ -21,6 +21,8 @@ #include #include +#include + #include "wxExtensions.hpp" #include "GUI_App.hpp" #include "GUI_ObjectList.hpp" diff --git a/src/slic3r/GUI/AuxiliaryDataViewModel.cpp b/src/slic3r/GUI/AuxiliaryDataViewModel.cpp index 212566338e..f68f73306c 100644 --- a/src/slic3r/GUI/AuxiliaryDataViewModel.cpp +++ b/src/slic3r/GUI/AuxiliaryDataViewModel.cpp @@ -3,6 +3,10 @@ #include "libslic3r/Model.hpp" #include "libslic3r/Format/bbs_3mf.hpp" +#include + +#include + const static std::array s_default_folders = { _L("Model Pictures"), _L("Bill of Materials"), diff --git a/src/slic3r/GUI/AuxiliaryDataViewModel.hpp b/src/slic3r/GUI/AuxiliaryDataViewModel.hpp index 897d2450dd..5d937227e5 100644 --- a/src/slic3r/GUI/AuxiliaryDataViewModel.hpp +++ b/src/slic3r/GUI/AuxiliaryDataViewModel.hpp @@ -8,7 +8,7 @@ #include "I18N.hpp" -#include +#include class AuxiliaryModelNode; WX_DEFINE_ARRAY_PTR(AuxiliaryModelNode*, AuxiliaryModelNodePtrArray); diff --git a/src/slic3r/GUI/AuxiliaryDialog.cpp b/src/slic3r/GUI/AuxiliaryDialog.cpp index 5fadbf7ff1..01e7f4772c 100644 --- a/src/slic3r/GUI/AuxiliaryDialog.cpp +++ b/src/slic3r/GUI/AuxiliaryDialog.cpp @@ -4,6 +4,8 @@ #include "libslic3r/Utils.hpp" +#include + namespace pt = boost::property_tree; typedef pt::ptree JSON; diff --git a/src/slic3r/GUI/BBLStatusBar.hpp b/src/slic3r/GUI/BBLStatusBar.hpp index 02a3af3ca2..e643a9b536 100644 --- a/src/slic3r/GUI/BBLStatusBar.hpp +++ b/src/slic3r/GUI/BBLStatusBar.hpp @@ -2,6 +2,7 @@ #define BBLSTATUSBAR_HPP #include +#include #include #include diff --git a/src/slic3r/GUI/BBLStatusBarSend.cpp b/src/slic3r/GUI/BBLStatusBarSend.cpp index 35ebd0f1b8..3976ae7bb1 100644 --- a/src/slic3r/GUI/BBLStatusBarSend.cpp +++ b/src/slic3r/GUI/BBLStatusBarSend.cpp @@ -12,7 +12,7 @@ #include "I18N.hpp" #include - +#include namespace Slic3r { diff --git a/src/slic3r/GUI/BBLTopbar.cpp b/src/slic3r/GUI/BBLTopbar.cpp index 3e36b706d4..7a6ed81a2e 100644 --- a/src/slic3r/GUI/BBLTopbar.cpp +++ b/src/slic3r/GUI/BBLTopbar.cpp @@ -1,6 +1,7 @@ #include "BBLTopbar.hpp" #include "wx/artprov.h" #include "wx/aui/framemanager.h" +#include "wx/display.h" #include "I18N.hpp" #include "GUI_App.hpp" #include "GUI.hpp" @@ -10,6 +11,8 @@ #include "WebViewDialog.hpp" #include "PartPlate.hpp" +#include + #define TOPBAR_ICON_SIZE 18 #define TOPBAR_TITLE_WIDTH 300 diff --git a/src/slic3r/GUI/BindDialog.cpp b/src/slic3r/GUI/BindDialog.cpp index 3670809f99..91b5a242b0 100644 --- a/src/slic3r/GUI/BindDialog.cpp +++ b/src/slic3r/GUI/BindDialog.cpp @@ -2,6 +2,7 @@ #include "GUI_App.hpp" #include +#include #include #include #include "wx/evtloop.h" diff --git a/src/slic3r/GUI/CameraPopup.hpp b/src/slic3r/GUI/CameraPopup.hpp index a9b53a621e..f76d7bc610 100644 --- a/src/slic3r/GUI/CameraPopup.hpp +++ b/src/slic3r/GUI/CameraPopup.hpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include diff --git a/src/slic3r/GUI/CreatePresetsDialog.cpp b/src/slic3r/GUI/CreatePresetsDialog.cpp index e319bf8f61..0550a72424 100644 --- a/src/slic3r/GUI/CreatePresetsDialog.cpp +++ b/src/slic3r/GUI/CreatePresetsDialog.cpp @@ -5,7 +5,9 @@ #include #include #include +#include #include +#include #include "libslic3r/PresetBundle.hpp" #include "I18N.hpp" #include "GUI_App.hpp" diff --git a/src/slic3r/GUI/DeviceManager.hpp b/src/slic3r/GUI/DeviceManager.hpp index dfef539c96..9455fbb221 100644 --- a/src/slic3r/GUI/DeviceManager.hpp +++ b/src/slic3r/GUI/DeviceManager.hpp @@ -2,6 +2,7 @@ #define slic3r_DeviceManager_hpp_ #include +#include #include #include #include diff --git a/src/slic3r/GUI/ExtrusionCalibration.cpp b/src/slic3r/GUI/ExtrusionCalibration.cpp index 92149c4aff..e85b0cf80c 100644 --- a/src/slic3r/GUI/ExtrusionCalibration.cpp +++ b/src/slic3r/GUI/ExtrusionCalibration.cpp @@ -3,6 +3,7 @@ #include "MsgDialog.hpp" #include "libslic3r/Preset.hpp" #include "I18N.hpp" +#include #include namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index d72017b85a..9654685f4e 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -2,6 +2,7 @@ #include "GCodeViewer.hpp" #include "libslic3r/BuildVolume.hpp" +#include "libslic3r/ClipperUtils.hpp" #include "libslic3r/Print.hpp" #include "libslic3r/Geometry.hpp" #include "libslic3r/Model.hpp" diff --git a/src/slic3r/GUI/GLTexture.cpp b/src/slic3r/GUI/GLTexture.cpp index 0b15866943..b30836e2c9 100644 --- a/src/slic3r/GUI/GLTexture.cpp +++ b/src/slic3r/GUI/GLTexture.cpp @@ -27,6 +27,7 @@ #include "libslic3r/Utils.hpp" #include "GUI_App.hpp" +#include #include namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/GLTexture.hpp b/src/slic3r/GUI/GLTexture.hpp index d898a10bdf..cc446ab067 100644 --- a/src/slic3r/GUI/GLTexture.hpp +++ b/src/slic3r/GUI/GLTexture.hpp @@ -6,6 +6,9 @@ #include #include +#include +#include + class wxImage; namespace Slic3r { diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 1323207e9e..922e854e2f 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -27,6 +27,8 @@ #include #include #include +#include +#include #include #include diff --git a/src/slic3r/GUI/GUI_Colors.hpp b/src/slic3r/GUI/GUI_Colors.hpp index 32a0399181..df8a70d5d3 100644 --- a/src/slic3r/GUI/GUI_Colors.hpp +++ b/src/slic3r/GUI/GUI_Colors.hpp @@ -2,6 +2,7 @@ #define slic3r_GUI_Colors_hpp_ #include "imgui/imgui.h" +#include enum RenderCol_ { RenderCol_3D_Background = 0, diff --git a/src/slic3r/GUI/GUI_Init.cpp b/src/slic3r/GUI/GUI_Init.cpp index dfc59b32fe..36af47aa2d 100644 --- a/src/slic3r/GUI/GUI_Init.cpp +++ b/src/slic3r/GUI/GUI_Init.cpp @@ -13,6 +13,7 @@ // To show a message box if GUI initialization ends up with an exception thrown. #include +#include #include #include diff --git a/src/slic3r/GUI/GUI_ObjectTable.cpp b/src/slic3r/GUI/GUI_ObjectTable.cpp index 0657c63549..49bbbb5a3e 100644 --- a/src/slic3r/GUI/GUI_ObjectTable.cpp +++ b/src/slic3r/GUI/GUI_ObjectTable.cpp @@ -1,4 +1,5 @@ #include "wx/clipbrd.h" +#include "wx/display.h" #include "SelectMachine.hpp" #include "I18N.hpp" diff --git a/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp b/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp index c095c0915e..06c777621d 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoFdmSupports.cpp @@ -18,6 +18,7 @@ #include +#include namespace Slic3r::GUI { diff --git a/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp b/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp index 3ae8056d81..02a957d010 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoPainterBase.cpp @@ -3,6 +3,8 @@ #include "slic3r/GUI/GLCanvas3D.hpp" #include "slic3r/GUI/Gizmos/GLGizmosCommon.hpp" +#include + #include #include "slic3r/GUI/GUI_App.hpp" diff --git a/src/slic3r/GUI/Gizmos/GLGizmoText.cpp b/src/slic3r/GUI/Gizmos/GLGizmoText.cpp index 7f0e0f7646..1311420285 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoText.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoText.cpp @@ -1,5 +1,6 @@ // Include GLGizmoBase.hpp before I18N.hpp as it includes some libigl code, which overrides our localization "L" macro. #include "GLGizmoText.hpp" +#include "libslic3r/ClipperUtils.hpp" #include "slic3r/GUI/GLCanvas3D.hpp" #include "slic3r/GUI/Gizmos/GLGizmosCommon.hpp" #include "slic3r/GUI/GUI_App.hpp" @@ -14,6 +15,8 @@ #include +#include + #include #ifndef IMGUI_DEFINE_MATH_OPERATORS diff --git a/src/slic3r/GUI/HMS.cpp b/src/slic3r/GUI/HMS.cpp index c1b73f2c08..a7baa4c575 100644 --- a/src/slic3r/GUI/HMS.cpp +++ b/src/slic3r/GUI/HMS.cpp @@ -1,6 +1,6 @@ #include "HMS.hpp" - +#include namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/HttpServer.hpp b/src/slic3r/GUI/HttpServer.hpp index 2a6a980ecc..0d303814ce 100644 --- a/src/slic3r/GUI/HttpServer.hpp +++ b/src/slic3r/GUI/HttpServer.hpp @@ -1,6 +1,7 @@ #ifndef slic3r_Http_App_hpp_ #define slic3r_Http_App_hpp_ +#include #include #include diff --git a/src/slic3r/GUI/IMSlider.hpp b/src/slic3r/GUI/IMSlider.hpp index c83bd7c24a..75b92b9526 100644 --- a/src/slic3r/GUI/IMSlider.hpp +++ b/src/slic3r/GUI/IMSlider.hpp @@ -3,6 +3,7 @@ #include "TickCode.hpp" #include +#include #include diff --git a/src/slic3r/GUI/ImageGrid.cpp b/src/slic3r/GUI/ImageGrid.cpp index 56252b1cc3..f8d791e585 100644 --- a/src/slic3r/GUI/ImageGrid.cpp +++ b/src/slic3r/GUI/ImageGrid.cpp @@ -8,6 +8,8 @@ #include +#include + wxDEFINE_EVENT(EVT_ITEM_ACTION, wxCommandEvent); BEGIN_EVENT_TABLE(Slic3r::GUI::ImageGrid, wxPanel) diff --git a/src/slic3r/GUI/ImageGrid.h b/src/slic3r/GUI/ImageGrid.h index 8bded4b1ee..a2467562e6 100644 --- a/src/slic3r/GUI/ImageGrid.h +++ b/src/slic3r/GUI/ImageGrid.h @@ -9,6 +9,7 @@ #define ImageGrid_h #include +#include #include #include "Widgets/StateColor.hpp" diff --git a/src/slic3r/GUI/Jobs/PrintJob.hpp b/src/slic3r/GUI/Jobs/PrintJob.hpp index 9c12013a07..88318c1384 100644 --- a/src/slic3r/GUI/Jobs/PrintJob.hpp +++ b/src/slic3r/GUI/Jobs/PrintJob.hpp @@ -3,6 +3,7 @@ #include #include +#include "libslic3r/PrintConfig.hpp" #include "PlaterJob.hpp" namespace fs = boost::filesystem; diff --git a/src/slic3r/GUI/Jobs/ProgressIndicator.hpp b/src/slic3r/GUI/Jobs/ProgressIndicator.hpp index 7a0b883964..c70d53bf2b 100644 --- a/src/slic3r/GUI/Jobs/ProgressIndicator.hpp +++ b/src/slic3r/GUI/Jobs/ProgressIndicator.hpp @@ -3,6 +3,7 @@ #include #include +#include namespace Slic3r { diff --git a/src/slic3r/GUI/Jobs/UpgradeNetworkJob.hpp b/src/slic3r/GUI/Jobs/UpgradeNetworkJob.hpp index 20bbf2b4f3..18cbbda31b 100644 --- a/src/slic3r/GUI/Jobs/UpgradeNetworkJob.hpp +++ b/src/slic3r/GUI/Jobs/UpgradeNetworkJob.hpp @@ -1,6 +1,8 @@ #ifndef __UpgradeNetworkJob_HPP__ #define __UpgradeNetworkJob_HPP__ +#include +#include #include #include "Job.hpp" diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 8dcb7db1c4..76b4f74fac 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -15,6 +15,7 @@ #include #include +#include #include "libslic3r/Print.hpp" #include "libslic3r/Polygon.hpp" diff --git a/src/slic3r/GUI/MainFrame.hpp b/src/slic3r/GUI/MainFrame.hpp index c8e2c5cfa7..6be554deba 100644 --- a/src/slic3r/GUI/MainFrame.hpp +++ b/src/slic3r/GUI/MainFrame.hpp @@ -3,6 +3,8 @@ #include "libslic3r/PrintConfig.hpp" +#include + #include #include #include diff --git a/src/slic3r/GUI/MarkdownTip.cpp b/src/slic3r/GUI/MarkdownTip.cpp index 63eafd361b..7ffeae9e36 100644 --- a/src/slic3r/GUI/MarkdownTip.cpp +++ b/src/slic3r/GUI/MarkdownTip.cpp @@ -7,6 +7,8 @@ #include "libslic3r/Utils.hpp" #include "I18N.hpp" +#include + namespace fs = boost::filesystem; namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/MediaFilePanel.h b/src/slic3r/GUI/MediaFilePanel.h index 8b9d84ae47..a9f926a42c 100644 --- a/src/slic3r/GUI/MediaFilePanel.h +++ b/src/slic3r/GUI/MediaFilePanel.h @@ -8,6 +8,8 @@ #ifndef MediaFilePanel_h #define MediaFilePanel_h +#include + #include "GUI_Utils.hpp" #include "wxExtensions.hpp" diff --git a/src/slic3r/GUI/MediaPlayCtrl.cpp b/src/slic3r/GUI/MediaPlayCtrl.cpp index 941d1136e8..981d14dd47 100644 --- a/src/slic3r/GUI/MediaPlayCtrl.cpp +++ b/src/slic3r/GUI/MediaPlayCtrl.cpp @@ -9,6 +9,9 @@ #include "DownloadProgressDialog.hpp" #include +#include +#include +#include #include #undef pid_t #include @@ -19,6 +22,8 @@ #include #endif +#include + namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/MonitorPage.hpp b/src/slic3r/GUI/MonitorPage.hpp index 9cb05eecc4..3efaccda31 100644 --- a/src/slic3r/GUI/MonitorPage.hpp +++ b/src/slic3r/GUI/MonitorPage.hpp @@ -2,6 +2,7 @@ #define slic3r_MonitorPage_hpp_ #include +#include namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/NetworkTestDialog.cpp b/src/slic3r/GUI/NetworkTestDialog.cpp index 569071dc59..700c5ad14b 100644 --- a/src/slic3r/GUI/NetworkTestDialog.cpp +++ b/src/slic3r/GUI/NetworkTestDialog.cpp @@ -8,7 +8,7 @@ #include "slic3r/Utils/Http.hpp" #include "libslic3r/AppConfig.hpp" #include - +#include namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/Notebook.hpp b/src/slic3r/GUI/Notebook.hpp index d75898a7cd..7e6e94da3a 100644 --- a/src/slic3r/GUI/Notebook.hpp +++ b/src/slic3r/GUI/Notebook.hpp @@ -4,6 +4,7 @@ //#ifdef _WIN32 #include +#include class ModeSizer; class ScalableButton; diff --git a/src/slic3r/GUI/ObjectDataViewModel.hpp b/src/slic3r/GUI/ObjectDataViewModel.hpp index 624b432df3..0f21e84261 100644 --- a/src/slic3r/GUI/ObjectDataViewModel.hpp +++ b/src/slic3r/GUI/ObjectDataViewModel.hpp @@ -1,6 +1,8 @@ #ifndef slic3r_GUI_ObjectDataViewModel_hpp_ #define slic3r_GUI_ObjectDataViewModel_hpp_ +#include + #include #include #include diff --git a/src/slic3r/GUI/ParamsPanel.hpp b/src/slic3r/GUI/ParamsPanel.hpp index 1a20ec7d20..bdc40f1167 100644 --- a/src/slic3r/GUI/ParamsPanel.hpp +++ b/src/slic3r/GUI/ParamsPanel.hpp @@ -23,7 +23,9 @@ #include #include #include +#include #include +#include #include "wxExtensions.hpp" #include "GUI_Utils.hpp" diff --git a/src/slic3r/GUI/PartPlate.cpp b/src/slic3r/GUI/PartPlate.cpp index 31dd9170a3..ab70aa2682 100644 --- a/src/slic3r/GUI/PartPlate.cpp +++ b/src/slic3r/GUI/PartPlate.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include "libslic3r/libslic3r.h" diff --git a/src/slic3r/GUI/PresetComboBoxes.hpp b/src/slic3r/GUI/PresetComboBoxes.hpp index 4598b3dc32..8069e687ef 100644 --- a/src/slic3r/GUI/PresetComboBoxes.hpp +++ b/src/slic3r/GUI/PresetComboBoxes.hpp @@ -2,6 +2,7 @@ #define slic3r_PresetComboBoxes_hpp_ //#include +#include #include #include diff --git a/src/slic3r/GUI/Printer/PrinterFileSystem.cpp b/src/slic3r/GUI/Printer/PrinterFileSystem.cpp index 71483a6665..6702319d7d 100644 --- a/src/slic3r/GUI/Printer/PrinterFileSystem.cpp +++ b/src/slic3r/GUI/Printer/PrinterFileSystem.cpp @@ -8,9 +8,13 @@ #include "../BitmapCache.hpp" #include +#include +#include #include #include +#include + #include "nlohmann/json.hpp" #include diff --git a/src/slic3r/GUI/Printer/PrinterFileSystem.h b/src/slic3r/GUI/Printer/PrinterFileSystem.h index d648b785b3..ba60c54cef 100644 --- a/src/slic3r/GUI/Printer/PrinterFileSystem.h +++ b/src/slic3r/GUI/Printer/PrinterFileSystem.h @@ -4,6 +4,7 @@ #define BAMBU_DYNAMIC #include "BambuTunnel.h" +#include #include #include diff --git a/src/slic3r/GUI/PrivacyUpdateDialog.hpp b/src/slic3r/GUI/PrivacyUpdateDialog.hpp index b737bcd486..1f2f8f1046 100644 --- a/src/slic3r/GUI/PrivacyUpdateDialog.hpp +++ b/src/slic3r/GUI/PrivacyUpdateDialog.hpp @@ -6,6 +6,7 @@ #include "Widgets/Label.hpp" #include "Widgets/WebView.hpp" #include +#include #include namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/Project.cpp b/src/slic3r/GUI/Project.cpp index aefffccc09..78df2ed2f4 100644 --- a/src/slic3r/GUI/Project.cpp +++ b/src/slic3r/GUI/Project.cpp @@ -21,6 +21,8 @@ #include #include +#include + #include "wxExtensions.hpp" #include "GUI_App.hpp" #include "GUI_ObjectList.hpp" diff --git a/src/slic3r/GUI/SavePresetDialog.cpp b/src/slic3r/GUI/SavePresetDialog.cpp index 23364f1f6d..1dfde4a948 100644 --- a/src/slic3r/GUI/SavePresetDialog.cpp +++ b/src/slic3r/GUI/SavePresetDialog.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include diff --git a/src/slic3r/GUI/SelectMachine.cpp b/src/slic3r/GUI/SelectMachine.cpp index a2928e23a1..f902d4513d 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include "Plater.hpp" diff --git a/src/slic3r/GUI/SliceInfoPanel.cpp b/src/slic3r/GUI/SliceInfoPanel.cpp index ddf9eb647a..36f152ff3d 100644 --- a/src/slic3r/GUI/SliceInfoPanel.cpp +++ b/src/slic3r/GUI/SliceInfoPanel.cpp @@ -4,6 +4,8 @@ #include "Widgets/Label.hpp" #include "libslic3r/Utils.hpp" +#include + namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/StatusPanel.cpp b/src/slic3r/GUI/StatusPanel.cpp index 5be39c477b..e645c4e4a6 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -17,6 +17,8 @@ #include "RecenterDialog.hpp" #include "CalibUtils.hpp" #include +#include +#include #include #include diff --git a/src/slic3r/GUI/TabButton.cpp b/src/slic3r/GUI/TabButton.cpp index 74e8177c56..e075f9ae17 100644 --- a/src/slic3r/GUI/TabButton.cpp +++ b/src/slic3r/GUI/TabButton.cpp @@ -1,6 +1,7 @@ #include "TabButton.hpp" #include "Widgets/Label.hpp" +#include #include BEGIN_EVENT_TABLE(TabButton, StaticBox) diff --git a/src/slic3r/GUI/WebUserLoginDialog.hpp b/src/slic3r/GUI/WebUserLoginDialog.hpp index 6a820bef9a..ff3631496b 100644 --- a/src/slic3r/GUI/WebUserLoginDialog.hpp +++ b/src/slic3r/GUI/WebUserLoginDialog.hpp @@ -6,6 +6,7 @@ #include "wx/cmdline.h" #include "wx/notifmsg.h" #include "wx/settings.h" +#include "wx/timer.h" #include "wx/webview.h" #if wxUSE_WEBVIEW_IE diff --git a/src/slic3r/GUI/WebViewDialog.cpp b/src/slic3r/GUI/WebViewDialog.cpp index f861cac252..b6ce64802a 100644 --- a/src/slic3r/GUI/WebViewDialog.cpp +++ b/src/slic3r/GUI/WebViewDialog.cpp @@ -7,6 +7,9 @@ #include "libslic3r_version.h" #include "../Utils/Http.hpp" +#include +#include + #include #include #include diff --git a/src/slic3r/GUI/Widgets/AMSControl.cpp b/src/slic3r/GUI/Widgets/AMSControl.cpp index 95f141c7f1..5b23110b69 100644 --- a/src/slic3r/GUI/Widgets/AMSControl.cpp +++ b/src/slic3r/GUI/Widgets/AMSControl.cpp @@ -6,6 +6,9 @@ #include #include + +#include + #include "CalibUtils.hpp" namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/Widgets/AxisCtrlButton.cpp b/src/slic3r/GUI/Widgets/AxisCtrlButton.cpp index 02b3e343d7..737fe79c58 100644 --- a/src/slic3r/GUI/Widgets/AxisCtrlButton.cpp +++ b/src/slic3r/GUI/Widgets/AxisCtrlButton.cpp @@ -1,6 +1,8 @@ #include "AxisCtrlButton.hpp" #include "Label.hpp" +#include "libslic3r/libslic3r.h" +#include #include StateColor blank_bg(StateColor(std::make_pair(wxColour("#FFFFFF"), (int)StateColor::Normal))); diff --git a/src/slic3r/GUI/Widgets/Button.cpp b/src/slic3r/GUI/Widgets/Button.cpp index 024a502986..dfc62c4e55 100644 --- a/src/slic3r/GUI/Widgets/Button.cpp +++ b/src/slic3r/GUI/Widgets/Button.cpp @@ -1,6 +1,7 @@ #include "Button.hpp" #include "Label.hpp" +#include #include BEGIN_EVENT_TABLE(Button, StaticBox) diff --git a/src/slic3r/GUI/Widgets/DropDown.cpp b/src/slic3r/GUI/Widgets/DropDown.cpp index 43dd4a5f58..c831bde7e7 100644 --- a/src/slic3r/GUI/Widgets/DropDown.cpp +++ b/src/slic3r/GUI/Widgets/DropDown.cpp @@ -1,6 +1,8 @@ #include "DropDown.hpp" #include "Label.hpp" +#include +#include #include #ifdef __WXGTK__ diff --git a/src/slic3r/GUI/Widgets/DropDown.hpp b/src/slic3r/GUI/Widgets/DropDown.hpp index 4ff909c845..86f14aa278 100644 --- a/src/slic3r/GUI/Widgets/DropDown.hpp +++ b/src/slic3r/GUI/Widgets/DropDown.hpp @@ -1,6 +1,7 @@ #ifndef slic3r_GUI_DropDown_hpp_ #define slic3r_GUI_DropDown_hpp_ +#include #include #include "../wxExtensions.hpp" #include "StateHandler.hpp" diff --git a/src/slic3r/GUI/Widgets/ErrorMsgStaticText.cpp b/src/slic3r/GUI/Widgets/ErrorMsgStaticText.cpp index cdcbf489c1..8c0e52f8e5 100644 --- a/src/slic3r/GUI/Widgets/ErrorMsgStaticText.cpp +++ b/src/slic3r/GUI/Widgets/ErrorMsgStaticText.cpp @@ -1,4 +1,5 @@ #include "ErrorMsgStaticText.hpp" +#include ErrorMsgStaticText::ErrorMsgStaticText() {} diff --git a/src/slic3r/GUI/Widgets/ErrorMsgStaticText.hpp b/src/slic3r/GUI/Widgets/ErrorMsgStaticText.hpp index 6a455b208b..9c2e11ff25 100644 --- a/src/slic3r/GUI/Widgets/ErrorMsgStaticText.hpp +++ b/src/slic3r/GUI/Widgets/ErrorMsgStaticText.hpp @@ -2,6 +2,7 @@ #ifndef _WX_ERRORMSGSTATTEXT_H_ #define _WX_ERRORMSGSTATTEXT_H_ +#include #include "wx/stattext.h" class WXDLLIMPEXP_CORE ErrorMsgStaticText : public wxPanel diff --git a/src/slic3r/GUI/Widgets/ImageSwitchButton.cpp b/src/slic3r/GUI/Widgets/ImageSwitchButton.cpp index eff34e341d..f4c7986863 100644 --- a/src/slic3r/GUI/Widgets/ImageSwitchButton.cpp +++ b/src/slic3r/GUI/Widgets/ImageSwitchButton.cpp @@ -3,6 +3,7 @@ #include "StaticBox.hpp" #include "../wxExtensions.hpp" +#include #include BEGIN_EVENT_TABLE(ImageSwitchButton, StaticBox) diff --git a/src/slic3r/GUI/Widgets/Label.cpp b/src/slic3r/GUI/Widgets/Label.cpp index e5c471c1f0..861b8b1d64 100644 --- a/src/slic3r/GUI/Widgets/Label.cpp +++ b/src/slic3r/GUI/Widgets/Label.cpp @@ -2,6 +2,9 @@ #include "Label.hpp" #include "StaticBox.hpp" +#include +#include + wxFont Label::sysFont(int size, bool bold) { //#ifdef __linux__ diff --git a/src/slic3r/GUI/Widgets/ProgressBar.cpp b/src/slic3r/GUI/Widgets/ProgressBar.cpp index 0a8c642eb2..91b64067d5 100644 --- a/src/slic3r/GUI/Widgets/ProgressBar.cpp +++ b/src/slic3r/GUI/Widgets/ProgressBar.cpp @@ -1,5 +1,6 @@ #include "ProgressBar.hpp" #include "../I18N.hpp" +#include #include #include "Label.hpp" diff --git a/src/slic3r/GUI/Widgets/ProgressDialog.hpp b/src/slic3r/GUI/Widgets/ProgressDialog.hpp index f67f6b89b3..eb62d27bdb 100644 --- a/src/slic3r/GUI/Widgets/ProgressDialog.hpp +++ b/src/slic3r/GUI/Widgets/ProgressDialog.hpp @@ -2,6 +2,7 @@ #define slic3r_GUI_PROGRESSDIALOG_hpp_ #include "wx/dialog.h" +#include "wx/progdlg.h" #include "wx/weakref.h" #include "wx/simplebook.h" #include "Button.hpp" diff --git a/src/slic3r/GUI/Widgets/RoundedRectangle.cpp b/src/slic3r/GUI/Widgets/RoundedRectangle.cpp index a3c7c139a9..9f8e82d658 100644 --- a/src/slic3r/GUI/Widgets/RoundedRectangle.cpp +++ b/src/slic3r/GUI/Widgets/RoundedRectangle.cpp @@ -1,5 +1,6 @@ #include "RoundedRectangle.hpp" #include "../wxExtensions.hpp" +#include #include BEGIN_EVENT_TABLE(RoundedRectangle, wxPanel) diff --git a/src/slic3r/GUI/Widgets/SideButton.cpp b/src/slic3r/GUI/Widgets/SideButton.cpp index 6a325c44a4..e387f33cf6 100644 --- a/src/slic3r/GUI/Widgets/SideButton.cpp +++ b/src/slic3r/GUI/Widgets/SideButton.cpp @@ -1,6 +1,7 @@ #include "SideButton.hpp" #include "Label.hpp" +#include #include BEGIN_EVENT_TABLE(SideButton, wxPanel) diff --git a/src/slic3r/GUI/Widgets/SideMenuPopup.cpp b/src/slic3r/GUI/Widgets/SideMenuPopup.cpp index b50ed6b605..cde4fba39d 100644 --- a/src/slic3r/GUI/Widgets/SideMenuPopup.cpp +++ b/src/slic3r/GUI/Widgets/SideMenuPopup.cpp @@ -1,6 +1,7 @@ #include "SideMenuPopup.hpp" #include "Label.hpp" +#include #include #include "../GUI_App.hpp" diff --git a/src/slic3r/GUI/Widgets/SpinInput.hpp b/src/slic3r/GUI/Widgets/SpinInput.hpp index 5b0868880c..cc342276f9 100644 --- a/src/slic3r/GUI/Widgets/SpinInput.hpp +++ b/src/slic3r/GUI/Widgets/SpinInput.hpp @@ -1,7 +1,10 @@ #ifndef slic3r_GUI_SpinInput_hpp_ #define slic3r_GUI_SpinInput_hpp_ +#include +#include #include +#include #include "StaticBox.hpp" class Button; diff --git a/src/slic3r/GUI/Widgets/StateHandler.cpp b/src/slic3r/GUI/Widgets/StateHandler.cpp index f66585fa34..10b4dcb982 100644 --- a/src/slic3r/GUI/Widgets/StateHandler.cpp +++ b/src/slic3r/GUI/Widgets/StateHandler.cpp @@ -1,3 +1,4 @@ +#include #include "StateHandler.hpp" wxDEFINE_EVENT(EVT_ENABLE_CHANGED, wxCommandEvent); diff --git a/src/slic3r/GUI/Widgets/StateHandler.hpp b/src/slic3r/GUI/Widgets/StateHandler.hpp index c231b8f63f..a0af2cc285 100644 --- a/src/slic3r/GUI/Widgets/StateHandler.hpp +++ b/src/slic3r/GUI/Widgets/StateHandler.hpp @@ -1,6 +1,7 @@ #ifndef slic3r_GUI_StateHandler_hpp_ #define slic3r_GUI_StateHandler_hpp_ +#include #include #include "StateColor.hpp" diff --git a/src/slic3r/GUI/Widgets/StaticBox.cpp b/src/slic3r/GUI/Widgets/StaticBox.cpp index 00855eddf9..6eae5b3d6c 100644 --- a/src/slic3r/GUI/Widgets/StaticBox.cpp +++ b/src/slic3r/GUI/Widgets/StaticBox.cpp @@ -1,5 +1,6 @@ #include "StaticBox.hpp" #include "../GUI.hpp" +#include #include BEGIN_EVENT_TABLE(StaticBox, wxWindow) diff --git a/src/slic3r/GUI/Widgets/StaticLine.cpp b/src/slic3r/GUI/Widgets/StaticLine.cpp index d9b74f0ade..3dd564c02b 100644 --- a/src/slic3r/GUI/Widgets/StaticLine.cpp +++ b/src/slic3r/GUI/Widgets/StaticLine.cpp @@ -2,6 +2,7 @@ #include "Label.hpp" #include "StateColor.hpp" +#include #include BEGIN_EVENT_TABLE(StaticLine, wxWindow) diff --git a/src/slic3r/GUI/Widgets/StepCtrl.cpp b/src/slic3r/GUI/Widgets/StepCtrl.cpp index d9a3349fb2..04488c100c 100644 --- a/src/slic3r/GUI/Widgets/StepCtrl.cpp +++ b/src/slic3r/GUI/Widgets/StepCtrl.cpp @@ -1,3 +1,6 @@ +#include +#include + #include "StepCtrl.hpp" #include "Label.hpp" diff --git a/src/slic3r/GUI/Widgets/SwitchButton.cpp b/src/slic3r/GUI/Widgets/SwitchButton.cpp index 3dc182032f..b44506e717 100644 --- a/src/slic3r/GUI/Widgets/SwitchButton.cpp +++ b/src/slic3r/GUI/Widgets/SwitchButton.cpp @@ -5,7 +5,9 @@ #include "../wxExtensions.hpp" #include "../Utils/MacDarkMode.hpp" +#include #include +#include SwitchButton::SwitchButton(wxWindow* parent, wxWindowID id) : wxBitmapToggleButton(parent, id, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE | wxBU_EXACTFIT) diff --git a/src/slic3r/GUI/Widgets/TabCtrl.cpp b/src/slic3r/GUI/Widgets/TabCtrl.cpp index c983a7e725..27924574ee 100644 --- a/src/slic3r/GUI/Widgets/TabCtrl.cpp +++ b/src/slic3r/GUI/Widgets/TabCtrl.cpp @@ -1,3 +1,4 @@ +#include #include "TabCtrl.hpp" wxDEFINE_EVENT( wxEVT_TAB_SEL_CHANGING, wxCommandEvent ); diff --git a/src/slic3r/GUI/Widgets/TempInput.hpp b/src/slic3r/GUI/Widgets/TempInput.hpp index 7829b10824..4e340671cd 100644 --- a/src/slic3r/GUI/Widgets/TempInput.hpp +++ b/src/slic3r/GUI/Widgets/TempInput.hpp @@ -2,6 +2,7 @@ #define slic3r_GUI_TempInput_hpp_ #include "../wxExtensions.hpp" +#include #include #include "StaticBox.hpp" diff --git a/src/slic3r/GUI/Widgets/TextInput.cpp b/src/slic3r/GUI/Widgets/TextInput.cpp index a1dacdd2ff..2ac9be3f14 100644 --- a/src/slic3r/GUI/Widgets/TextInput.cpp +++ b/src/slic3r/GUI/Widgets/TextInput.cpp @@ -2,6 +2,7 @@ #include "Label.hpp" #include "TextCtrl.h" +#include #include BEGIN_EVENT_TABLE(TextInput, wxPanel) diff --git a/src/slic3r/GUI/Widgets/WebView.cpp b/src/slic3r/GUI/Widgets/WebView.cpp index f4d62bc654..a6642b1468 100644 --- a/src/slic3r/GUI/Widgets/WebView.cpp +++ b/src/slic3r/GUI/Widgets/WebView.cpp @@ -2,6 +2,8 @@ #include "slic3r/GUI/GUI_App.hpp" #include "slic3r/Utils/MacDarkMode.hpp" +#include + #include #include #if wxUSE_WEBVIEW_EDGE diff --git a/src/slic3r/GUI/WipeTowerDialog.cpp b/src/slic3r/GUI/WipeTowerDialog.cpp index d5b213bcb0..3c9deca2bd 100644 --- a/src/slic3r/GUI/WipeTowerDialog.cpp +++ b/src/slic3r/GUI/WipeTowerDialog.cpp @@ -11,9 +11,6 @@ #include "slic3r/Utils/ColorSpaceConvert.hpp" #include "MainFrame.hpp" -#include - - using namespace Slic3r::GUI; int scale(const int val) { return val * Slic3r::GUI::wxGetApp().em_unit() / 10; } diff --git a/src/slic3r/GUI/WipeTowerDialog.hpp b/src/slic3r/GUI/WipeTowerDialog.hpp index 31c5c68335..8e8cd7c2b9 100644 --- a/src/slic3r/GUI/WipeTowerDialog.hpp +++ b/src/slic3r/GUI/WipeTowerDialog.hpp @@ -3,6 +3,7 @@ #include "GUI_Utils.hpp" +#include #include #include #include diff --git a/src/slic3r/GUI/wxExtensions.hpp b/src/slic3r/GUI/wxExtensions.hpp index 44e289ed09..6ed6f2bab3 100644 --- a/src/slic3r/GUI/wxExtensions.hpp +++ b/src/slic3r/GUI/wxExtensions.hpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include diff --git a/src/slic3r/Utils/ColorSpaceConvert.cpp b/src/slic3r/Utils/ColorSpaceConvert.cpp index b0292a5153..2634d1c4c1 100644 --- a/src/slic3r/Utils/ColorSpaceConvert.cpp +++ b/src/slic3r/Utils/ColorSpaceConvert.cpp @@ -1,6 +1,7 @@ #include "ColorSpaceConvert.hpp" #include +#include const static float param_13 = 1.0f / 3.0f; const static float param_16116 = 16.0f / 116.0f; diff --git a/src/slic3r/Utils/ColorSpaceConvert.hpp b/src/slic3r/Utils/ColorSpaceConvert.hpp index 4f05379f08..9c3a659a0a 100644 --- a/src/slic3r/Utils/ColorSpaceConvert.hpp +++ b/src/slic3r/Utils/ColorSpaceConvert.hpp @@ -1,6 +1,8 @@ #ifndef slic3r_Utils_ColorSpaceConvert_hpp_ #define slic3r_Utils_ColorSpaceConvert_hpp_ +#include + std::tuple rgb_to_yuv(float r, float g, float b); double PivotRGB(double n); double PivotXYZ(double n); diff --git a/src/slic3r/Utils/FileHelp.cpp b/src/slic3r/Utils/FileHelp.cpp index c272112c73..4a06599b4e 100644 --- a/src/slic3r/Utils/FileHelp.cpp +++ b/src/slic3r/Utils/FileHelp.cpp @@ -1,5 +1,6 @@ #include "FileHelp.hpp" #include +#include #include namespace Slic3r { namespace Utils { diff --git a/src/slic3r/Utils/Http.hpp b/src/slic3r/Utils/Http.hpp index e8e4f41c04..c7f7ac2cd9 100644 --- a/src/slic3r/Utils/Http.hpp +++ b/src/slic3r/Utils/Http.hpp @@ -1,11 +1,15 @@ #ifndef __Http_hpp__ #define __Http_hpp__ +#include #include #include #include #include +#include "libslic3r/Exception.hpp" +#include "libslic3r_version.h" + #define MAX_SIZE_TO_FILE 3*1024 namespace Slic3r { diff --git a/src/slic3r/Utils/json_diff.cpp b/src/slic3r/Utils/json_diff.cpp index d82ef21342..171a44c63d 100644 --- a/src/slic3r/Utils/json_diff.cpp +++ b/src/slic3r/Utils/json_diff.cpp @@ -12,6 +12,10 @@ #include +#include +#include +#include + using namespace std; using json = nlohmann::json;