mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 10:51:22 +00:00
Merge branch 'main' into publish_3mf
This commit is contained in:
@@ -114,7 +114,6 @@ bool AMSinfo::parse_ams_info(MachineObject *obj, DevAms *ams, bool remain_flag,
|
||||
info.ctype = 0;
|
||||
info.material_colour = AMS_TRAY_DEFAULT_COL;
|
||||
info.material_state = AMSCanType::AMS_CAN_TYPE_THIRDBRAND;
|
||||
wxColour(255, 255, 255);
|
||||
}
|
||||
|
||||
if (it->second->is_tray_info_ready() && obj->cali_version >= 0) {
|
||||
@@ -171,7 +170,6 @@ void AMSinfo::parse_ext_info(MachineObject* obj, DevAmsTray tray) {
|
||||
info.filament_id = "";
|
||||
info.ctype = 0;
|
||||
info.material_colour = AMS_TRAY_DEFAULT_COL;
|
||||
wxColour(255, 255, 255);
|
||||
}
|
||||
info.material_state = AMSCanType::AMS_CAN_TYPE_VIRTUAL;
|
||||
if (tray.is_tray_info_ready() && obj->cali_version >= 0) {
|
||||
|
||||
@@ -684,7 +684,6 @@ public:
|
||||
|
||||
private:
|
||||
int m_nozzle_num = {1};
|
||||
AMSRoadShowMode m_single_ext_rode_mode = {AMSRoadShowMode::AMS_ROAD_MODE_FOUR};
|
||||
AMSRoadShowMode m_left_rode_mode = {AMSRoadShowMode::AMS_ROAD_MODE_FOUR};
|
||||
AMSRoadShowMode m_right_rode_mode = {AMSRoadShowMode::AMS_ROAD_MODE_FOUR};
|
||||
bool m_selected = {false};
|
||||
@@ -693,7 +692,6 @@ private:
|
||||
int m_right_road_length = {-1};
|
||||
int m_passroad_width = {6};
|
||||
double m_radius = {4};
|
||||
AMSPassRoadType m_pass_road_type = {AMSPassRoadType::AMS_ROAD_TYPE_NONE};
|
||||
AMSPassRoadSTEP m_pass_road_left_step = {AMSPassRoadSTEP::AMS_ROAD_STEP_NONE};
|
||||
AMSPassRoadSTEP m_pass_road_right_step = {AMSPassRoadSTEP::AMS_ROAD_STEP_NONE};
|
||||
|
||||
@@ -866,11 +864,7 @@ private:
|
||||
AMSinfo m_info;
|
||||
wxBoxSizer * sizer_can = {nullptr};
|
||||
wxGridSizer* sizer_can_extra = { nullptr };
|
||||
wxBoxSizer * sizer_humidity = { nullptr };
|
||||
wxBoxSizer * sizer_item = { nullptr };
|
||||
wxBoxSizer * sizer_can_middle = {nullptr};
|
||||
wxBoxSizer * sizer_can_left = {nullptr};
|
||||
wxBoxSizer * sizer_can_right = {nullptr};
|
||||
AMSExtImage* m_ext_image = { nullptr }; //the ext image upon the ext ams
|
||||
AMSExtText* m_ext_text = { nullptr }; //the ext text upon the ext ams
|
||||
};
|
||||
|
||||
@@ -1014,8 +1014,12 @@ void FanControlPopupNew::init_names(MachineObject* obj) {
|
||||
if (obj) {
|
||||
const std::string& special_cooling_text = DevPrinterConfigUtil::get_fan_text(obj->printer_type, "special_cooling_text");
|
||||
if (!special_cooling_text.empty()) {
|
||||
L("Cooling mode is suitable for printing PLA/PETG/TPU materials."); //some potential text, add i18n flags
|
||||
L("Cooling mode is suitable for printing PLA/PETG/TPU materials and filters the chamber air.");
|
||||
// Possible runtime values of special_cooling_text, marked for extraction.
|
||||
static const char *const markers[] = {
|
||||
L("Cooling mode is suitable for printing PLA/PETG/TPU materials."),
|
||||
L("Cooling mode is suitable for printing PLA/PETG/TPU materials and filters the chamber air."),
|
||||
};
|
||||
(void) markers;
|
||||
label_text[AIR_DUCT::AIR_DUCT_COOLING_FILT] = _L(special_cooling_text);
|
||||
}
|
||||
}
|
||||
@@ -1028,9 +1032,13 @@ wxString FanControlPopupNew::get_fan_func_name(int mode, int submode, AIR_FUN fu
|
||||
const std::string& func_text = DevPrinterConfigUtil::get_fan_text(m_obj->printer_type, mode, (int)func, submode);
|
||||
if (!func_text.empty())
|
||||
{
|
||||
L_CONTEXT("Right(Aux)", "air_duct");
|
||||
L_CONTEXT("Right(Filter)", "air_duct");
|
||||
L_CONTEXT("Left(Aux)", "air_duct");
|
||||
// Possible runtime values of func_text, marked for extraction.
|
||||
static const char *const markers[] = {
|
||||
L_CONTEXT("Right(Aux)", "air_duct"),
|
||||
L_CONTEXT("Right(Filter)", "air_duct"),
|
||||
L_CONTEXT("Left(Aux)", "air_duct"),
|
||||
};
|
||||
(void) markers;
|
||||
return _L_CONTEXT(func_text, "air_duct");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,7 +109,6 @@ public:
|
||||
void decrease_fan_speeds();
|
||||
private:
|
||||
int m_current_speeds;
|
||||
int m_target_speed;
|
||||
int m_min_speeds;
|
||||
int m_max_speeds;
|
||||
ScalableBitmap m_bitmap_add;
|
||||
|
||||
@@ -204,7 +204,6 @@ private:
|
||||
Label* m_caution;
|
||||
|
||||
wxTimer* m_refresh_timer {nullptr};
|
||||
size_t m_rack_event_token;
|
||||
Button* m_cancel_btn;
|
||||
Button* m_confirm_btn;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user