Drop the transitional device-layer shims

This commit is contained in:
SoftFever
2026-07-17 12:46:45 +08:00
parent 37e27a24c4
commit 38ab986c5f
10 changed files with 23 additions and 33 deletions

View File

@@ -1059,8 +1059,8 @@ void AmsMapingPopup::show_reset_button() {
m_reset_btn->Show();
}
// Orca: transitional shim (removed in resync cluster 8) — restored verbatim from the pre-resync Orca
// implementation so SelectMachine (cluster 7, not yet resynced) keeps compiling.
// Orca: kept surface for the reverse-direction SelectMachine — this helper (dropped by the reference)
// is still consumed by SelectMachine, so it stays as a permanent compatibility surface.
std::vector<TrayData> AmsMapingPopup::parse_ams_mapping(const std::map<std::string, DevAms*, NumericStrCompare>& amsList)
{
std::vector<TrayData> m_tray_data;

View File

@@ -352,12 +352,11 @@ public:
void paintEvent(wxPaintEvent &evt);
void set_parent_item(MaterialItem* item) {m_parent_item = item;};
void set_show_type(ShowType type) { m_show_type = type; };
// Orca: transitional shim (removed in resync cluster 8) — keeps SelectMachine (cluster 7, not yet
// resynced) compiling. Its only caller passes false, which equals the copied update path's default
// (all slots shown), so a no-op preserves behavior.
// Orca: kept surface for the reverse-direction SelectMachine — its only caller passes false, which
// equals the update path's default (all slots shown), so this no-op preserves behavior.
void set_only_show_ext_spool(bool /*flag*/) {}
// Orca: transitional shim (removed in resync cluster 8) — SelectMachine (cluster 7) still calls this
// dropped-from-REF helper; restored verbatim from the pre-resync Orca implementation.
// Orca: kept surface for the reverse-direction SelectMachine — this helper (dropped by the reference)
// is still consumed by SelectMachine, so it stays as a permanent compatibility surface.
std::vector<TrayData> parse_ams_mapping(const std::map<std::string, DevAms*, NumericStrCompare>& amsList);
#ifdef __APPLE__

View File

@@ -148,8 +148,8 @@ enum class DevFirmwareUpgradeState : int
UpgradingFinished = 3
};
// Orca: transitional shim (removed in resync cluster 8) — DeviceManager/UpgradePanel still use the
// pre-resync name; alias keeps them compiling until they are resynced to the reference name.
// Orca: permanent compatibility alias — the reverse-direction DeviceManager/UpgradePanel keep the
// Orca spelling of this enum, so the alias to the reference name is a kept surface, not transitional.
using DevFirmwareUpgradingState = DevFirmwareUpgradeState;
class devPrinterUtil

View File

@@ -610,9 +610,7 @@ void DeviceErrorDialog::on_button_click(ActionButton btn_id)
}
case DeviceErrorDialog::OK_JUMP_RACK: { // Orca: ported REF error action
Slic3r::GUI::wxGetApp().mainframe->jump_to_monitor();
// Orca: transitional shim (removed in resync cluster 8)
if (auto* mon = Slic3r::GUI::wxGetApp().mainframe->m_monitor)
mon->get_status_panel()->jump_to_Rack();
Slic3r::GUI::wxGetApp().mainframe->m_monitor->jump_to_Rack();
break;
}
case DeviceErrorDialog::ABORT: { // Orca: ported REF error action

View File

@@ -3365,6 +3365,7 @@ int MachineObject::parse_json(std::string tunnel, std::string payload, bool key_
is_support_filament_setting_inprinting = get_flag_bits(flag3, 3);
is_enable_ams_np = get_flag_bits(flag3, 9);
is_support_fila_change_abort = get_flag_bits(flag3, 13); // Orca: REF-additive, now ported (filament-change Stop button)
is_support_ext_change_assist_old = get_flag_bits(flag3, 16); // Orca: REF-additive, now ported (A/P-series multi-color external change assist)
is_support_filament_32_colors = get_flag_bits(flag3, 17); // Orca: REF-additive, now ported (post-review)
}
}
@@ -5810,7 +5811,9 @@ wxString MachineObject::get_nozzle_replace_url() const
return link_map["en"].get<wxString>();
}/*retry with en*/
return "https://wiki.bambulab.com/en/h2/maintenance/replace-hotend";
// Orca: no neutral wiki equivalent for this fallback — return empty so the caller hides the link
// (PrinterPartsDialog::OnWikiClicked reports "No wiki link available" instead of opening a browser)
return wxEmptyString;
}
std::string MachineObject::get_error_code_str(int error_code)

View File

@@ -130,9 +130,9 @@ private:
DevBed * m_bed;
DevStorage* m_storage;
/* Orca: adopt DeviceCore split — axis/calib/chamber/status/upgrade modules.
Provide the reference-shape surface for later resync clusters; MachineObject's inline
handling of these concerns stays authoritative during the transition (removed in cluster 8). */
/* Orca: adopt DeviceCore split — axis/calib/chamber/status/upgrade modules alongside
MachineObject's inline handling of these concerns, which stays authoritative here (Orca keeps
the inline model permanently; the split modules coexist with it via accessors). */
std::shared_ptr<DevAxis> m_axis;
std::shared_ptr<DevChamber> m_chamber;
DevCalib* m_calib{ nullptr };
@@ -929,6 +929,7 @@ public:
bool is_enable_ams_np{ false };
bool is_support_filament_32_colors{ false }; // Orca: REF-additive, now ported (post-review)
bool is_support_fila_change_abort{ false }; // Orca: REF-additive, now ported (filament-change Stop button)
bool is_support_ext_change_assist_old{ false }; // Orca: REF-additive, now ported (A/P-series multi-color external change assist)
// Orca: REF-additive, now ported (post-review). Max filament color count for the send
// gate; returns 0 when there is no explicit upper bound.

View File

@@ -1,13 +0,0 @@
//**********************************************************/
/* File: wgtDeviceNozzleRackNozzleItem.h
* Description: Compatibility header for the single-nozzle-cell widget.
//**********************************************************/
#pragma once
// Orca: transitional shim (removed in resync cluster 8)
// The wgtDeviceNozzleRackNozzleItem class and its EVT_NOZZLE_RACK_NOZZLE_ITEM_SELECTED event now
// live inline in wgtDeviceNozzleRack.{h,cpp} (folded back to the reference shape). This header is
// kept only so the not-yet-resynced GUI/Widgets/MultiNozzleSync includer keeps resolving; it is
// deleted once that consumer is resynced to include wgtDeviceNozzleRack.h directly.
#include "wgtDeviceNozzleRack.h"

View File

@@ -267,7 +267,7 @@ std::string HMSQuery::hms_language_code()
// set language code to en by default
return "en";
std::string lang_code = wxGetApp().app_config->get_language_code();
// The HMS host ships no catalog for these locales, so fall back to english to avoid empty texts + retries
// Orca: the HMS host ships no catalog for these locales, so fall back to english to avoid empty texts + retries
if (lang_code.compare("uk") == 0
|| lang_code.compare("cs") == 0
|| lang_code.compare("ru") == 0

View File

@@ -4680,10 +4680,12 @@ void SelectMachineDialog::update_show_status(MachineObject* obj_)
}
/* multi color external change assist*/
if(obj_->is_support_ext_change_assist && !m_check_ext_change_assist->IsShown()){
// Orca: REF-additive, now ported — A/P-series expose this via flag3 bit-16 (is_support_ext_change_assist_old)
bool is_support_mutile_color = obj_->is_support_ext_change_assist_old || obj_->is_support_ext_change_assist;
if (is_support_mutile_color && !m_check_ext_change_assist->IsShown()) {
m_check_ext_change_assist->Show(true);
m_label_ext_change_assist->Show(true);
}else if(!obj_->is_support_ext_change_assist &&m_check_ext_change_assist->IsShown()){
} else if (!is_support_mutile_color && m_check_ext_change_assist->IsShown()) {
m_check_ext_change_assist->Hide();
m_label_ext_change_assist->Hide();
}

View File

@@ -21,7 +21,7 @@
#include "libslic3r/PrintConfig.hpp"
#include "libslic3r/MultiNozzleUtils.hpp"
#include "slic3r/GUI/DeviceCore/DevNozzleRack.h"
#include "slic3r/GUI/DeviceTab/wgtDeviceNozzleRackNozzleItem.h"
#include "slic3r/GUI/DeviceTab/wgtDeviceNozzleRack.h"
#include <wx/panel.h>
#include <wx/webview.h>