Merge main

This commit is contained in:
Lam Wei Lun
2026-10-12 19:55:28 +08:00
895 changed files with 86139 additions and 78120 deletions
+9
View File
@@ -30,6 +30,7 @@
#include "slic3r/GUI/Jobs/UpgradeNetworkJob.hpp"
#include "slic3r/GUI/HttpServer.hpp"
#include "../Utils/PrintHost.hpp"
#include "libslic3r/Point.hpp"
#include <vector>
#include <utility>
@@ -372,6 +373,7 @@ public:
std::string get_local_models_path();
bool OnInit() override;
int OnExit() override;
void CleanUp() override;
bool initialized() const { return m_initialized; }
inline bool is_enable_multi_machine() { return this->app_config&& this->app_config->get("enable_multi_machine") == "true"; }
#ifdef SLIC3R_CAD
@@ -395,6 +397,8 @@ public:
Slic3r::TaskManager* getTaskManager() { return m_task_manager; }
HMSQuery* get_hms_query() { return hms_query; }
NetworkAgent* getAgent() { return m_agent; }
// Version that wrote the app config before this run; empty when there was no app config.
const boost::optional<Semver>& last_config_version() const { return m_last_config_version; }
// Reconcile the live printer agent with the stored preset selection.
void switch_printer_agent();
@@ -437,6 +441,9 @@ public:
bool show_outline() const { return app_config->get_bool("show_outline"); }
void toggle_show_outline() const { app_config->set_bool("show_outline", !show_outline()); }
bool show_center_of_mass() const { return app_config->get_bool("show_center_of_mass"); }
void toggle_show_center_of_mass() const { app_config->set_bool("show_center_of_mass", !show_center_of_mass()); }
wxString get_inf_dialog_contect () {return m_info_dialog_content;};
std::vector<std::string> split_str(std::string src, std::string separator);
@@ -881,6 +888,8 @@ bool is_support_filament(int extruder_id, bool strict_check = true);
bool is_soluble_filament(int extruder_id);
// check if the filament for model is in the list
bool has_filaments(const std::vector<std::string>& model_filaments);
// Up direction of the edited printer's tilted build plate (+Z when untilted).
Vec3d build_plate_tilt_up_direction();
} // namespace GUI
} // Slic3r