build: trim GUI_App.hpp includes so edits stop rebuilding the whole GUI (#15644)

This commit is contained in:
Kris Austin
2026-09-12 12:09:39 -03:00
committed by GitHub
parent 0888e331b5
commit e7ca4fb87e
73 changed files with 149 additions and 15 deletions
+2 -1
View File
@@ -78,8 +78,9 @@ using namespace nlohmann;
#include "libslic3r/ObjColorUtils.hpp" #include "libslic3r/ObjColorUtils.hpp"
#include "OrcaSlicer.hpp" #include "OrcaSlicer.hpp"
//BBS: add exception handler for win32 #include <wx/filename.h>
#include <wx/stdpaths.h> #include <wx/stdpaths.h>
//BBS: add exception handler for win32
#ifdef WIN32 #ifdef WIN32
#include "dev-utils/BaseException.h" #include "dev-utils/BaseException.h"
#endif #endif
+1
View File
@@ -1,6 +1,7 @@
#include "AMSDryControl.hpp" #include "AMSDryControl.hpp"
#include "slic3r/GUI/DeviceCore/DevFilaSystem.h" #include "slic3r/GUI/DeviceCore/DevFilaSystem.h"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "I18N.hpp" #include "I18N.hpp"
#include "slic3r/GUI/DeviceCore/DevExtruderSystem.h" #include "slic3r/GUI/DeviceCore/DevExtruderSystem.h"
+1
View File
@@ -14,6 +14,7 @@
//Previous defintions //Previous defintions
class wxGrid; class wxGrid;
class ProgressBar;
namespace Slic3r { namespace Slic3r {
+2
View File
@@ -2,6 +2,8 @@
#include "ExtrusionCalibration.hpp" #include "ExtrusionCalibration.hpp"
#include "MsgDialog.hpp" #include "MsgDialog.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "GUI.hpp"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "libslic3r/Preset.hpp" #include "libslic3r/Preset.hpp"
#include "I18N.hpp" #include "I18N.hpp"
#include <algorithm> #include <algorithm>
@@ -5,8 +5,10 @@
#include <thread> #include <thread>
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "GUI_Utils.hpp" #include "GUI_Utils.hpp"
#include <wx/timer.h>
class Button; class Button;
class Label;
class CheckBox; class CheckBox;
namespace Slic3r { namespace GUI { namespace Slic3r { namespace GUI {
class CapsuleButton; class CapsuleButton;
+1
View File
@@ -1,6 +1,7 @@
#include "CalibrationWizard.hpp" #include "CalibrationWizard.hpp"
#include "I18N.hpp" #include "I18N.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "MsgDialog.hpp" #include "MsgDialog.hpp"
#include "CalibrationWizardPage.hpp" #include "CalibrationWizardPage.hpp"
#include "../../libslic3r/calib.hpp" #include "../../libslic3r/calib.hpp"
@@ -1,5 +1,7 @@
#include <regex> #include <regex>
#include "CalibrationWizardPresetPage.hpp" #include "CalibrationWizardPresetPage.hpp"
#include "GUI.hpp"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "I18N.hpp" #include "I18N.hpp"
#include "Widgets/Label.hpp" #include "Widgets/Label.hpp"
#include "MsgDialog.hpp" #include "MsgDialog.hpp"
@@ -1,4 +1,5 @@
#include "CalibrationWizardSavePage.hpp" #include "CalibrationWizardSavePage.hpp"
#include "GUI.hpp"
#include "I18N.hpp" #include "I18N.hpp"
#include "Widgets/Label.hpp" #include "Widgets/Label.hpp"
#include "MsgDialog.hpp" #include "MsgDialog.hpp"
+1
View File
@@ -1,5 +1,6 @@
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "CapsuleButton.hpp" #include "CapsuleButton.hpp"
#include "Widgets/StateColor.hpp"
#include <wx/dcbuffer.h> #include <wx/dcbuffer.h>
#include "wx/graphics.h" #include "wx/graphics.h"
#include "Widgets/Label.hpp" #include "Widgets/Label.hpp"
+1
View File
@@ -1,4 +1,5 @@
#include "ColorDecomposeSupport.hpp" #include "ColorDecomposeSupport.hpp"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "MixedFilamentDialog.hpp" #include "MixedFilamentDialog.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "MsgDialog.hpp" #include "MsgDialog.hpp"
+1
View File
@@ -2,6 +2,7 @@
#include "ConfigManipulation.hpp" #include "ConfigManipulation.hpp"
#include "I18N.hpp" #include "I18N.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "DeviceCore/DevConfigUtil.h"
#include "format.hpp" #include "format.hpp"
#include "libslic3r/Config.hpp" #include "libslic3r/Config.hpp"
#include "libslic3r/Model.hpp" #include "libslic3r/Model.hpp"
+1
View File
@@ -1,4 +1,5 @@
#include "DailyTips.hpp" #include "DailyTips.hpp"
#include "slic3r/GUI/Widgets/Label.hpp"
#ifndef IMGUI_DEFINE_MATH_OPERATORS #ifndef IMGUI_DEFINE_MATH_OPERATORS
#define IMGUI_DEFINE_MATH_OPERATORS #define IMGUI_DEFINE_MATH_OPERATORS
+2
View File
@@ -1,5 +1,7 @@
#include <boost/log/trivial.hpp> #include <boost/log/trivial.hpp>
#include "slic3r/GUI/GUI_App.hpp" #include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/DeviceManager.hpp"
#include "slic3r/GUI/UserNotification.hpp" #include "slic3r/GUI/UserNotification.hpp"
#include "libslic3r/PrintConfig.hpp" #include "libslic3r/PrintConfig.hpp"
@@ -4,6 +4,8 @@
#include <set> #include <set>
#include "DevFilaBlackList.h" #include "DevFilaBlackList.h"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "slic3r/GUI/DeviceManager.hpp"
#include "DevFilaSystem.h" #include "DevFilaSystem.h"
#include "DevManager.h" #include "DevManager.h"
#include "DevConfigUtil.h" #include "DevConfigUtil.h"
@@ -1,5 +1,6 @@
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include "DevFilaSystem.h" #include "DevFilaSystem.h"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "DevNozzleSystem.h" // DevNozzle / DevNozzleSystem for GetNozzleFlowStringByAmsId #include "DevNozzleSystem.h" // DevNozzle / DevNozzleSystem for GetNozzleFlowStringByAmsId
// TODO: remove this include // TODO: remove this include
+2
View File
@@ -1,5 +1,7 @@
#include "libslic3r/libslic3r.h" #include "libslic3r/libslic3r.h"
#include "DeviceManager.hpp" #include "DeviceManager.hpp"
#include "HMS.hpp"
#include "I18N.hpp"
#include "libslic3r/Time.hpp" #include "libslic3r/Time.hpp"
#include "libslic3r/Thread.hpp" #include "libslic3r/Thread.hpp"
#include "slic3r/Utils/NetworkAgent.hpp" #include "slic3r/Utils/NetworkAgent.hpp"
+1
View File
@@ -1,6 +1,7 @@
#include "wgtMsgPanel.h" #include "wgtMsgPanel.h"
#include "slic3r/GUI/GUI_App.hpp" #include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/Widgets/Label.hpp" #include "slic3r/GUI/Widgets/Label.hpp"
#include "slic3r/GUI/Widgets/StateColor.hpp" #include "slic3r/GUI/Widgets/StateColor.hpp"
#include "slic3r/GUI/wxExtensions.hpp" #include "slic3r/GUI/wxExtensions.hpp"
+1
View File
@@ -1,6 +1,7 @@
#include "DragCanvas.hpp" #include "DragCanvas.hpp"
#include "wxExtensions.hpp" #include "wxExtensions.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "Widgets/StateColor.hpp"
namespace Slic3r { namespace GUI { namespace Slic3r { namespace GUI {
+3
View File
@@ -1,7 +1,10 @@
#include "EncodedFilament.hpp" #include "EncodedFilament.hpp"
#include <nlohmann/json.hpp>
#include "GUI_App.hpp" #include "GUI_App.hpp"
using json = nlohmann::json;
namespace Slic3r namespace Slic3r
{ {
@@ -1,4 +1,5 @@
#include "ExportPresetBundleDialog.hpp" #include "ExportPresetBundleDialog.hpp"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "ConfigWizard.hpp" #include "ConfigWizard.hpp"
#include "I18N.hpp" #include "I18N.hpp"
@@ -12,7 +13,11 @@
#include <libslic3r/PresetBundle.hpp> #include <libslic3r/PresetBundle.hpp>
#include <wx/string.h> #include <wx/string.h>
#include <miniz.h> #include <miniz.h>
#include <nlohmann/json.hpp>
#include <slic3r/GUI/MsgDialog.hpp> #include <slic3r/GUI/MsgDialog.hpp>
using json = nlohmann::json;
namespace Slic3r { namespace GUI { namespace Slic3r { namespace GUI {
ExportPresetBundleDialog::ExportPresetBundleDialog( ExportPresetBundleDialog::ExportPresetBundleDialog(
+1
View File
@@ -1,6 +1,7 @@
#include "ExtraRenderers.hpp" #include "ExtraRenderers.hpp"
#include "wxExtensions.hpp" #include "wxExtensions.hpp"
#include "GUI.hpp" #include "GUI.hpp"
#include "I18N.hpp"
#include "BitmapComboBox.hpp" #include "BitmapComboBox.hpp"
#include "Plater.hpp" #include "Plater.hpp"
#include "Widgets/ComboBox.hpp" #include "Widgets/ComboBox.hpp"
+1
View File
@@ -1,5 +1,6 @@
#include "ExtrusionCalibration.hpp" #include "ExtrusionCalibration.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "GUI.hpp"
#include "MsgDialog.hpp" #include "MsgDialog.hpp"
#include "libslic3r/Preset.hpp" #include "libslic3r/Preset.hpp"
#include <algorithm> #include <algorithm>
+1
View File
@@ -1,5 +1,6 @@
#include "FilamentMapPanel.hpp" #include "FilamentMapPanel.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "I18N.hpp"
#include "Plater.hpp" #include "Plater.hpp"
#include "Widgets/MultiNozzleSync.hpp" // manuallySetNozzleCount producer for extruder_nozzle_stats #include "Widgets/MultiNozzleSync.hpp" // manuallySetNozzleCount producer for extruder_nozzle_stats
#include <algorithm> #include <algorithm>
+2
View File
@@ -9,6 +9,7 @@
#include "3DScene.hpp" #include "3DScene.hpp"
#include "OpenGLManager.hpp" #include "OpenGLManager.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "GUI.hpp"
#include "GLModel.hpp" #include "GLModel.hpp"
#include <glad/gl.h> #include <glad/gl.h>
@@ -31,6 +32,7 @@
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include <boost/log/trivial.hpp> #include <boost/log/trivial.hpp>
#include <wx/dcgraph.h> #include <wx/dcgraph.h>
#include <wx/dcmemory.h>
namespace Slic3r { namespace Slic3r {
namespace GUI { namespace GUI {
+8
View File
@@ -3,6 +3,14 @@
#include "libslic3r/Technologies.hpp" #include "libslic3r/Technologies.hpp"
#include "libslic3r/Platform.hpp" #include "libslic3r/Platform.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "BindDialog.hpp"
#include "DeviceManager.hpp"
#include "HMS.hpp"
#include "PresetBundleDialog.hpp"
#include "WebUserLoginDialog.hpp"
#include "WebViewDialog.hpp"
#include "slic3r/Utils/BBLCloudServiceAgent.hpp"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "GUI_Init.hpp" #include "GUI_Init.hpp"
#include "GUI_ObjectList.hpp" #include "GUI_ObjectList.hpp"
#include "slic3r/GUI/UserManager.hpp" #include "slic3r/GUI/UserManager.hpp"
+10 -9
View File
@@ -1,23 +1,17 @@
#ifndef slic3r_GUI_App_hpp_ #ifndef slic3r_GUI_App_hpp_
#define slic3r_GUI_App_hpp_ #define slic3r_GUI_App_hpp_
#include <functional>
#include <memory> #include <memory>
#include <string> #include <string>
#include "ActionRegistry.hpp" #include "ActionRegistry.hpp"
#include "ImGuiWrapper.hpp" #include "ImGuiWrapper.hpp"
#include "ConfigWizard.hpp" #include "ConfigWizard.hpp"
#include "OpenGLManager.hpp" #include "OpenGLManager.hpp"
#include "PresetBundleDialog.hpp"
#include "libslic3r/Preset.hpp" #include "libslic3r/Preset.hpp"
#include "libslic3r/PresetBundle.hpp" #include "libslic3r/PresetBundle.hpp"
#include "slic3r/GUI/DeviceManager.hpp"
#include "slic3r/GUI/UserNotification.hpp" #include "slic3r/GUI/UserNotification.hpp"
#include "slic3r/Utils/NetworkAgent.hpp" #include "slic3r/Utils/CloudProvider.hpp"
#include "slic3r/Utils/BBLCloudServiceAgent.hpp"
#include "slic3r/GUI/WebViewDialog.hpp"
#include "slic3r/GUI/WebUserLoginDialog.hpp"
#include "slic3r/GUI/BindDialog.hpp"
#include "slic3r/GUI/HMS.hpp"
#include "slic3r/GUI/Jobs/UpgradeNetworkJob.hpp" #include "slic3r/GUI/Jobs/UpgradeNetworkJob.hpp"
#include "slic3r/GUI/HttpServer.hpp" #include "slic3r/GUI/HttpServer.hpp"
#include "../Utils/PrintHost.hpp" #include "../Utils/PrintHost.hpp"
@@ -64,9 +58,14 @@ class ModelObject;
class Model; class Model;
class UserManager; class UserManager;
class DeviceManager; class DeviceManager;
class MachineObject;
class NetworkAgent; class NetworkAgent;
class IPrinterAgent;
class TaskManager; class TaskManager;
// Same typedef as in bambu_networking.hpp, so this header need not include it.
typedef std::function<bool()> WasCancelledFn;
namespace GUI{ namespace GUI{
class RemovableDriveManager; class RemovableDriveManager;
@@ -85,6 +84,8 @@ class ParamsDialog;
class HMSQuery; class HMSQuery;
class ModelMallDialog; class ModelMallDialog;
class PingCodeBindDialog; class PingCodeBindDialog;
class PresetBundleDialog;
class ZUserLogin;
class NetworkErrorDialog; class NetworkErrorDialog;
class PluginsDialog; class PluginsDialog;
class SpeedDialWebDialog; class SpeedDialWebDialog;
@@ -829,7 +830,7 @@ wxDECLARE_EVENT(EVT_UPDATE_BUNDLE_COMPLETE, wxCommandEvent);
bool is_support_filament(int extruder_id, bool strict_check = true); bool is_support_filament(int extruder_id, bool strict_check = true);
bool is_soluble_filament(int extruder_id); bool is_soluble_filament(int extruder_id);
// check if the filament for model is in the list // check if the filament for model is in the list
bool has_filaments(const std::vector<string>& model_filaments); bool has_filaments(const std::vector<std::string>& model_filaments);
} // namespace GUI } // namespace GUI
} // Slic3r } // Slic3r
@@ -1,5 +1,7 @@
// Include GLGizmoBase.hpp before I18N.hpp as it includes some libigl code, which overrides our localization "L" macro. // Include GLGizmoBase.hpp before I18N.hpp as it includes some libigl code, which overrides our localization "L" macro.
#include "GLGizmoAdvancedCut.hpp" #include "GLGizmoAdvancedCut.hpp"
#include "slic3r/GUI/Widgets/ProgressDialog.hpp"
#include "slic3r/GUI/GUI.hpp"
#include "slic3r/GUI/GLCanvas3D.hpp" #include "slic3r/GUI/GLCanvas3D.hpp"
#include <glad/gl.h> #include <glad/gl.h>
@@ -1,6 +1,7 @@
#include "GLGizmoBrimEars.hpp" #include "GLGizmoBrimEars.hpp"
#include <glad/gl.h> #include <glad/gl.h>
#include "slic3r/GUI/GLCanvas3D.hpp" #include "slic3r/GUI/GLCanvas3D.hpp"
#include "slic3r/GUI/GUI.hpp"
#include "slic3r/GUI/Camera.hpp" #include "slic3r/GUI/Camera.hpp"
#include "slic3r/GUI/Gizmos/GLGizmosCommon.hpp" #include "slic3r/GUI/Gizmos/GLGizmosCommon.hpp"
#include "slic3r/GUI/GUI_App.hpp" #include "slic3r/GUI/GUI_App.hpp"
@@ -4,6 +4,7 @@
#include "libslic3r/Print.hpp" #include "libslic3r/Print.hpp"
#include "slic3r/GUI/GLCanvas3D.hpp" #include "slic3r/GUI/GLCanvas3D.hpp"
#include "slic3r/GUI/GUI.hpp"
#include "slic3r/GUI/GUI_App.hpp" #include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/GUI/GUI_ObjectList.hpp" #include "slic3r/GUI/GUI_ObjectList.hpp"
#include "slic3r/GUI/ImGuiWrapper.hpp" #include "slic3r/GUI/ImGuiWrapper.hpp"
+1
View File
@@ -1,4 +1,5 @@
#include "GLGizmoMeasure.hpp" #include "GLGizmoMeasure.hpp"
#include "slic3r/GUI/GUI.hpp"
#include "slic3r/GUI/GLCanvas3D.hpp" #include "slic3r/GUI/GLCanvas3D.hpp"
#include "slic3r/GUI/GUI_App.hpp" #include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/GUI/Plater.hpp" #include "slic3r/GUI/Plater.hpp"
+2
View File
@@ -32,6 +32,8 @@
*/ */
using namespace std::string_view_literals;
namespace Slic3r::GUI::GLGizmoUtils { namespace Slic3r::GUI::GLGizmoUtils {
void render_tooltip_button( void render_tooltip_button(
+4
View File
@@ -4,6 +4,10 @@
#include "slic3r/Utils/Http.hpp" #include "slic3r/Utils/Http.hpp"
#include "slic3r/Utils/NetworkAgent.hpp" #include "slic3r/Utils/NetworkAgent.hpp"
#include "slic3r/Utils/BBLNetworkPlugin.hpp" #include "slic3r/Utils/BBLNetworkPlugin.hpp"
#include "libslic3r/Thread.hpp"
#include <nlohmann/json.hpp>
using json = nlohmann::json;
namespace Slic3r { namespace Slic3r {
namespace GUI { namespace GUI {
+1
View File
@@ -1,6 +1,7 @@
#include "IMSlider.hpp" #include "IMSlider.hpp"
#include "libslic3r/GCode.hpp" #include "libslic3r/GCode.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "GUI.hpp"
#include "NotificationManager.hpp" #include "NotificationManager.hpp"
#include "Widgets/StateColor.hpp" #include "Widgets/StateColor.hpp"
#ifndef IMGUI_DEFINE_MATH_OPERATORS #ifndef IMGUI_DEFINE_MATH_OPERATORS
+2
View File
@@ -3,6 +3,8 @@
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "GUI_Utils.hpp" #include "GUI_Utils.hpp"
#include <wx/stattext.h>
#include <wx/timer.h>
class wxStaticBitmap; class wxStaticBitmap;
namespace Slic3r { namespace GUI { namespace Slic3r { namespace GUI {
+1 -1
View File
@@ -521,7 +521,7 @@ void ImageGrid::render(wxDC& dc)
if (!m_status_msg.IsEmpty()) { if (!m_status_msg.IsEmpty()) {
auto si = m_status_icon.GetBmpSize(); auto si = m_status_icon.GetBmpSize();
auto st = dc.GetMultiLineTextExtent(m_status_msg); auto st = dc.GetMultiLineTextExtent(m_status_msg);
auto rect = wxRect{0, 0, max(st.x, si.x), si.y + 26 + st.y}.CenterIn(wxRect({0, 0}, size)); auto rect = wxRect{0, 0, std::max(st.x, si.x), si.y + 26 + st.y}.CenterIn(wxRect({0, 0}, size));
dc.DrawBitmap(m_status_icon.bmp(), rect.x + (rect.width - si.x) / 2, rect.y); dc.DrawBitmap(m_status_icon.bmp(), rect.x + (rect.width - si.x) / 2, rect.y);
dc.SetTextForeground(wxColor(0x909090)); dc.SetTextForeground(wxColor(0x909090));
dc.DrawText(m_status_msg, rect.x + (rect.width - st.x) / 2, rect.GetBottom() - st.y); dc.DrawText(m_status_msg, rect.x + (rect.width - st.x) / 2, rect.GetBottom() - st.y);
+4
View File
@@ -3,6 +3,10 @@
#include "slic3r/GUI/Plater.hpp" #include "slic3r/GUI/Plater.hpp"
#include "slic3r/GUI/GUI.hpp" #include "slic3r/GUI/GUI.hpp"
#include "slic3r/GUI/GUI_App.hpp" #include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/GUI/DeviceManager.hpp"
#include "slic3r/GUI/HMS.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "slic3r/GUI/DeviceCore/DevManager.h" #include "slic3r/GUI/DeviceCore/DevManager.h"
+2
View File
@@ -1,4 +1,6 @@
#include "SendJob.hpp" #include "SendJob.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "libslic3r/MTUtils.hpp" #include "libslic3r/MTUtils.hpp"
#include "libslic3r/Model.hpp" #include "libslic3r/Model.hpp"
#include "libslic3r/PresetBundle.hpp" #include "libslic3r/PresetBundle.hpp"
@@ -2,6 +2,7 @@
#include "slic3r/GUI/GUI.hpp" #include "slic3r/GUI/GUI.hpp"
#include "slic3r/GUI/GUI_App.hpp" #include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/Utils/Http.hpp" #include "slic3r/Utils/Http.hpp"
namespace Slic3r { namespace Slic3r {
+1
View File
@@ -66,6 +66,7 @@ class Tab;
class PrintHostQueueDialog; class PrintHostQueueDialog;
class Plater; class Plater;
class MainFrame; class MainFrame;
class WebViewPanel;
class ParamsDialog; class ParamsDialog;
#ifdef __WXGTK__ #ifdef __WXGTK__
class ResizeEdgePanel; class ResizeEdgePanel;
+3
View File
@@ -2,6 +2,9 @@
#include "ImageGrid.h" #include "ImageGrid.h"
#include "I18N.hpp" #include "I18N.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "GUI.hpp"
#include "DeviceManager.hpp"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "Plater.hpp" #include "Plater.hpp"
#include "Widgets/Button.hpp" #include "Widgets/Button.hpp"
#include "Widgets/SwitchButton.hpp" #include "Widgets/SwitchButton.hpp"
+6
View File
@@ -3,6 +3,11 @@
#include "Widgets/CheckBox.hpp" #include "Widgets/CheckBox.hpp"
#include "Widgets/Label.hpp" #include "Widgets/Label.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "GUI.hpp"
#include "DeviceManager.hpp"
#include "DeviceCore/DevConfigUtil.h"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "libslic3r/Thread.hpp"
#include "libslic3r/AppConfig.hpp" #include "libslic3r/AppConfig.hpp"
#include "I18N.hpp" #include "I18N.hpp"
#include "MsgDialog.hpp" #include "MsgDialog.hpp"
@@ -13,6 +18,7 @@
#include <boost/lexical_cast.hpp> #include <boost/lexical_cast.hpp>
#include <boost/log/trivial.hpp> #include <boost/log/trivial.hpp>
#include <boost/nowide/cstdio.hpp> #include <boost/nowide/cstdio.hpp>
#include <boost/nowide/fstream.hpp>
#include <boost/nowide/utf8_codecvt.hpp> #include <boost/nowide/utf8_codecvt.hpp>
#undef pid_t #undef pid_t
#include <boost/process.hpp> #include <boost/process.hpp>
+1
View File
@@ -1,6 +1,7 @@
#include "libslic3r/libslic3r.h" #include "libslic3r/libslic3r.h"
#include "libslic3r/PresetBundle.hpp" #include "libslic3r/PresetBundle.hpp"
#include "Mouse3DController.hpp" #include "Mouse3DController.hpp"
#include "GUI.hpp"
#include "Camera.hpp" #include "Camera.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
+1
View File
@@ -17,6 +17,7 @@
#include <boost/log/trivial.hpp> #include <boost/log/trivial.hpp>
#include <boost/nowide/convert.hpp> #include <boost/nowide/convert.hpp>
#include <boost/nowide/cstdio.hpp> #include <boost/nowide/cstdio.hpp>
#include <boost/nowide/fstream.hpp>
#include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string/predicate.hpp>
#include "libslic3r/libslic3r.h" #include "libslic3r/libslic3r.h"
+1
View File
@@ -1,5 +1,6 @@
#include "GUI_Utils.hpp" #include "GUI_Utils.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "slic3r/Utils/NetworkAgent.hpp"
#include <wx/panel.h> #include <wx/panel.h>
#include <wx/bitmap.h> #include <wx/bitmap.h>
#include <wx/image.h> #include <wx/image.h>
+1
View File
@@ -42,6 +42,7 @@ class Button;
namespace Slic3r { namespace Slic3r {
class BuildVolume; class BuildVolume;
class MachineObject;
enum class BuildVolume_Type : char; enum class BuildVolume_Type : char;
class Model; class Model;
class ModelObject; class ModelObject;
+1
View File
@@ -1,6 +1,7 @@
#include "PluginsConfigDialog.hpp" #include "PluginsConfigDialog.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "GUI.hpp"
#include "I18N.hpp" #include "I18N.hpp"
#include "format.hpp" #include "format.hpp"
+1
View File
@@ -2,6 +2,7 @@
#include "GUI.hpp" #include "GUI.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "slic3r/Utils/NetworkAgent.hpp"
#include "I18N.hpp" #include "I18N.hpp"
#include "OrcaCloudServiceAgent.hpp" #include "OrcaCloudServiceAgent.hpp"
#include "slic3r/plugin/PluginConfig.hpp" #include "slic3r/plugin/PluginConfig.hpp"
+1
View File
@@ -2,6 +2,7 @@
#include "OptionsGroup.hpp" #include "OptionsGroup.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "MainFrame.hpp" #include "MainFrame.hpp"
#include "WebViewDialog.hpp"
#include "Plater.hpp" #include "Plater.hpp"
#include "GLCanvas3D.hpp" // ORCA: for live preview refresh when toggling "Dim lower layers" #include "GLCanvas3D.hpp" // ORCA: for live preview refresh when toggling "Dim lower layers"
#include "MsgDialog.hpp" #include "MsgDialog.hpp"
+1
View File
@@ -1,5 +1,6 @@
#include "PrivacyUpdateDialog.hpp" #include "PrivacyUpdateDialog.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "GUI.hpp"
#include "BitmapCache.hpp" #include "BitmapCache.hpp"
#include <wx/dcgraph.h> #include <wx/dcgraph.h>
#include <slic3r/GUI/I18N.hpp> #include <slic3r/GUI/I18N.hpp>
+1
View File
@@ -7,6 +7,7 @@
#include "GUI.hpp" #include "GUI.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "I18N.hpp" #include "I18N.hpp"
#include "Widgets/StateColor.hpp"
wxDEFINE_EVENT(EVT_WIPE_TOWER_CHART_CHANGED, wxCommandEvent); wxDEFINE_EVENT(EVT_WIPE_TOWER_CHART_CHANGED, wxCommandEvent);
+1
View File
@@ -35,6 +35,7 @@
#include "Widgets/CheckBox.hpp" #include "Widgets/CheckBox.hpp"
#include "Widgets/ComboBox.hpp" #include "Widgets/ComboBox.hpp"
#include "Widgets/ScrolledWindow.hpp" #include "Widgets/ScrolledWindow.hpp"
#include "Widgets/HyperLink.hpp"
#include <wx/hashmap.h> #include <wx/hashmap.h>
#include <wx/webview.h> #include <wx/webview.h>
+1
View File
@@ -3,6 +3,7 @@
#include "I18N.hpp" #include "I18N.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "slic3r/Utils/bambu_networking.hpp"
#include "MainFrame.hpp" #include "MainFrame.hpp"
#include "Widgets/RadioBox.hpp" #include "Widgets/RadioBox.hpp"
#include <wx/listimpl.cpp> #include <wx/listimpl.cpp>
+3
View File
@@ -15,6 +15,9 @@
#include "SelectMachine.hpp" #include "SelectMachine.hpp"
namespace Slic3r { namespace Slic3r {
struct PrintParams;
namespace GUI { namespace GUI {
#define SEND_LEFT_PADDING_LEFT 15 #define SEND_LEFT_PADDING_LEFT 15
#define SEND_LEFT_PRINTABLE 40 #define SEND_LEFT_PRINTABLE 40
+2
View File
@@ -6,6 +6,8 @@
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "MainFrame.hpp" #include "MainFrame.hpp"
#include <wx/filename.h>
#include <wx/stdpaths.h>
#include <wx/display.h> #include <wx/display.h>
#include <wx/wfstream.h> #include <wx/wfstream.h>
#include "wx/clipbrd.h" #include "wx/clipbrd.h"
+2
View File
@@ -1,9 +1,11 @@
#include "libslic3r/libslic3r.h" #include "libslic3r/libslic3r.h"
#include "UserManager.hpp" #include "UserManager.hpp"
#include "DeviceManager.hpp" #include "DeviceManager.hpp"
#include "BindDialog.hpp"
#include "NetworkAgent.hpp" #include "NetworkAgent.hpp"
#include "GUI.hpp" #include "GUI.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "I18N.hpp"
#include "MsgDialog.hpp" #include "MsgDialog.hpp"
#include "DeviceCore/DevManager.h" #include "DeviceCore/DevManager.h"
+2
View File
@@ -43,6 +43,8 @@ namespace Slic3r { namespace GUI {
class GuideFrame : public DPIDialog class GuideFrame : public DPIDialog
{ {
public: public:
using json = nlohmann::json;
GuideFrame(GUI_App *pGUI, long style = wxCAPTION | wxCLOSE_BOX | wxSYSTEM_MENU); GuideFrame(GUI_App *pGUI, long style = wxCAPTION | wxCLOSE_BOX | wxSYSTEM_MENU);
virtual ~GuideFrame(); virtual ~GuideFrame();
+1
View File
@@ -1,6 +1,7 @@
#include "CheckList.hpp" #include "CheckList.hpp"
#include "slic3r/GUI/GUI_App.hpp" #include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/GUI/I18N.hpp"
CheckList::CheckList( CheckList::CheckList(
wxWindow* parent, wxWindow* parent,
@@ -20,6 +20,8 @@
#include <set> #include <set>
#include <wx/choice.h> #include <wx/choice.h>
#include <wx/filename.h>
#include <wx/filesys.h>
#include <wx/sizer.h> #include <wx/sizer.h>
#include <wx/stattext.h> #include <wx/stattext.h>
+7 -1
View File
@@ -1,9 +1,13 @@
#include "WebView.hpp" #include "WebView.hpp"
#include "slic3r/GUI/Widgets/StateColor.hpp"
#include "slic3r/GUI/GUI_App.hpp" #include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/Utils/MacDarkMode.hpp" #include "slic3r/Utils/MacDarkMode.hpp"
#include <boost/log/trivial.hpp> #include <boost/log/trivial.hpp>
#include <chrono>
#include <thread>
#include <wx/webviewarchivehandler.h> #include <wx/webviewarchivehandler.h>
#include <wx/webviewfshandler.h> #include <wx/webviewfshandler.h>
#if wxUSE_WEBVIEW_EDGE #if wxUSE_WEBVIEW_EDGE
@@ -12,6 +16,8 @@
#include <wx/osx/webview_webkit.h> #include <wx/osx/webview_webkit.h>
#endif #endif
#include <wx/uri.h> #include <wx/uri.h>
#include <wx/filename.h>
#include <wx/stdpaths.h>
#if defined(__WIN32__) || defined(__WXMAC__) #if defined(__WIN32__) || defined(__WXMAC__)
#include "wx/private/jsscriptwrapper.h" #include "wx/private/jsscriptwrapper.h"
#endif #endif
@@ -73,7 +79,7 @@ DWORD DownloadAndInstallWV2RT() {
}) })
.perform_sync(); .perform_sync();
// Sleep for 1 second to wait for the buffer writen into disk // Sleep for 1 second to wait for the buffer writen into disk
std::this_thread::sleep_for(1000ms); std::this_thread::sleep_for(std::chrono::milliseconds(1000));
if (downloaded) { if (downloaded) {
// Either Package the WebView2 Bootstrapper with your app or download it using fwlink // Either Package the WebView2 Bootstrapper with your app or download it using fwlink
// Then invoke install at Runtime. // Then invoke install at Runtime.
+1
View File
@@ -6,6 +6,7 @@
#include "GUI.hpp" #include "GUI.hpp"
#include "I18N.hpp" #include "I18N.hpp"
#include "GUI_App.hpp" #include "GUI_App.hpp"
#include "WebViewDialog.hpp"
#include "MsgDialog.hpp" #include "MsgDialog.hpp"
#include "format.hpp" #include "format.hpp"
#include "libslic3r/Color.hpp" #include "libslic3r/Color.hpp"
+3
View File
@@ -8,6 +8,7 @@
#include <boost/property_tree/ptree.hpp> #include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp> #include <boost/property_tree/json_parser.hpp>
#include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string/predicate.hpp>
#include <nlohmann/json.hpp>
#include <wx/progdlg.h> #include <wx/progdlg.h>
#include <wx/string.h> #include <wx/string.h>
@@ -30,6 +31,8 @@
#include <wx/busyinfo.h> #include <wx/busyinfo.h>
using json = nlohmann::json;
namespace fs = boost::filesystem; namespace fs = boost::filesystem;
namespace pt = boost::property_tree; namespace pt = boost::property_tree;
@@ -8,6 +8,9 @@
#include <sstream> #include <sstream>
#include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/replace.hpp>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
using json = nlohmann::json;
namespace Slic3r { namespace Slic3r {
+1
View File
@@ -3,6 +3,7 @@
#include "../GUI/GUI_App.hpp" #include "../GUI/GUI_App.hpp"
#include "../GUI/DeviceCore/DevStorage.h" #include "../GUI/DeviceCore/DevStorage.h"
#include "../GUI/DeviceManager.hpp" #include "../GUI/DeviceManager.hpp"
#include "NetworkAgent.hpp"
#include "../GUI/Jobs/ProgressIndicator.hpp" #include "../GUI/Jobs/ProgressIndicator.hpp"
#include "../GUI/PartPlate.hpp" #include "../GUI/PartPlate.hpp"
#include "libslic3r/CutUtils.hpp" #include "libslic3r/CutUtils.hpp"
+11
View File
@@ -0,0 +1,11 @@
#pragma once
#include <string>
namespace Slic3r {
// Identifiers of the cloud services an ICloudServiceAgent can stand for.
static const std::string ORCA_CLOUD_PROVIDER("orca");
static const std::string BBL_CLOUD_PROVIDER("bbl");
} // namespace Slic3r
+2
View File
@@ -12,6 +12,8 @@
#include <map> #include <map>
#include <set> #include <set>
using json = nlohmann::json;
namespace Slic3r { namespace Slic3r {
namespace { namespace {
+1 -3
View File
@@ -2,6 +2,7 @@
#define __I_CLOUD_SERVICE_AGENT_HPP__ #define __I_CLOUD_SERVICE_AGENT_HPP__
#include "bambu_networking.hpp" #include "bambu_networking.hpp"
#include "CloudProvider.hpp"
#include "../../libslic3r/ProjectTask.hpp" #include "../../libslic3r/ProjectTask.hpp"
#include <string> #include <string>
#include <string_view> #include <string_view>
@@ -37,9 +38,6 @@ namespace Slic3r {
* implementation. * implementation.
*/ */
static const std::string ORCA_CLOUD_PROVIDER("orca");
static const std::string BBL_CLOUD_PROVIDER("bbl");
struct CloudEvent { struct CloudEvent {
std::string provider; // ORCA_CLOUD_PROVIDER or BBL_CLOUD_PROVIDER std::string provider; // ORCA_CLOUD_PROVIDER or BBL_CLOUD_PROVIDER
}; };
@@ -3,6 +3,7 @@
#include "libslic3r/Preset.hpp" #include "libslic3r/Preset.hpp"
#include "libslic3r/PresetBundle.hpp" #include "libslic3r/PresetBundle.hpp"
#include "slic3r/GUI/GUI_App.hpp" #include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/GUI/DeviceManager.hpp"
#include "slic3r/GUI/DeviceCore/DevFilaSystem.h" #include "slic3r/GUI/DeviceCore/DevFilaSystem.h"
#include "slic3r/GUI/DeviceCore/DevManager.h" #include "slic3r/GUI/DeviceCore/DevManager.h"
#include "../GUI/DeviceCore/DevStorage.h" #include "../GUI/DeviceCore/DevStorage.h"
@@ -16,6 +16,7 @@
#include <iostream> #include <iostream>
#include <libslic3r/Platform.hpp> #include <libslic3r/Platform.hpp>
#include <memory> #include <memory>
#include <nlohmann/json.hpp>
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/hmac.h> #include <openssl/hmac.h>
#include <openssl/rand.h> #include <openssl/rand.h>
+1
View File
@@ -42,6 +42,7 @@
#include "slic3r/GUI/format.hpp" #include "slic3r/GUI/format.hpp"
#include "slic3r/GUI/NotificationManager.hpp" #include "slic3r/GUI/NotificationManager.hpp"
#include "slic3r/Utils/Http.hpp" #include "slic3r/Utils/Http.hpp"
#include "slic3r/Utils/bambu_networking.hpp"
#include "slic3r/Config/Version.hpp" #include "slic3r/Config/Version.hpp"
#include "slic3r/Config/Snapshot.hpp" #include "slic3r/Config/Snapshot.hpp"
#include "slic3r/GUI/MarkdownTip.hpp" #include "slic3r/GUI/MarkdownTip.hpp"
+1
View File
@@ -21,6 +21,7 @@
#include <boost/process/args.hpp> #include <boost/process/args.hpp>
#endif #endif
#include <wx/filename.h>
#include <wx/stdpaths.h> #include <wx/stdpaths.h>
namespace Slic3r { namespace Slic3r {
+2
View File
@@ -9,6 +9,8 @@
#include <cctype> #include <cctype>
#include <sstream> #include <sstream>
using json = nlohmann::json;
namespace Slic3r { namespace Slic3r {
namespace { namespace {
@@ -6,6 +6,8 @@
#include "nlohmann/json.hpp" #include "nlohmann/json.hpp"
#include <boost/log/trivial.hpp> #include <boost/log/trivial.hpp>
using json = nlohmann::json;
namespace Slic3r { namespace Slic3r {
namespace { namespace {
+1
View File
@@ -3,6 +3,7 @@
#include "PluginManager.hpp" #include "PluginManager.hpp"
#include "../Utils/Http.hpp" #include "../Utils/Http.hpp"
#include "../Utils/OrcaCloudServiceAgent.hpp" #include "../Utils/OrcaCloudServiceAgent.hpp"
#include "../Utils/NetworkAgent.hpp"
#include "../GUI/GUI.hpp" #include "../GUI/GUI.hpp"
#include "../GUI/GUI_App.hpp" #include "../GUI/GUI_App.hpp"
#include "../GUI/I18N.hpp" #include "../GUI/I18N.hpp"