mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
FIX: update the plate check texts
jira: [STUDIO-10813] Change-Id: I0304908f7819be1482744e253332bfca1044732e (cherry picked from commit 3bd7bee74308566e15ae5f9ec4070386b38cc8c1)
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
"support_filament_backup": true,
|
||||
"support_send_to_sd": true,
|
||||
"support_build_plate_marker_detect": true,
|
||||
"support_build_plate_marker_detect_type": 1,
|
||||
"support_ai_monitoring": true
|
||||
}
|
||||
},
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
"support_filament_backup": true,
|
||||
"support_send_to_sd": true,
|
||||
"support_build_plate_marker_detect": true,
|
||||
"support_build_plate_marker_detect_type": 1,
|
||||
"support_ai_monitoring": true
|
||||
}
|
||||
},
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
"support_flow_calibration": true,
|
||||
"support_auto_flow_calibration": true,
|
||||
"support_build_plate_marker_detect": true,
|
||||
"support_build_plate_marker_detect_type": 1,
|
||||
"support_lidar_calibration": true,
|
||||
"support_ai_monitoring": true,
|
||||
"support_first_layer_inspect": true,
|
||||
|
||||
@@ -1 +1 @@
|
||||
02.00.00.06
|
||||
02.00.00.07
|
||||
@@ -3397,6 +3397,10 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
|
||||
}
|
||||
}
|
||||
|
||||
if(jj.contains("support_build_plate_marker_detect_type") && jj["support_build_plate_marker_detect_type"].is_number()) {
|
||||
m_plate_maker_detect_type = (PlateMakerDectect)jj["support_build_plate_marker_detect_type"].get<int>();
|
||||
}
|
||||
|
||||
if (jj.contains("support_flow_calibration") && jj["support_flow_calibration"].is_boolean())
|
||||
{
|
||||
is_support_flow_calibration = jj["support_flow_calibration"].get<bool>();
|
||||
|
||||
@@ -960,6 +960,12 @@ public:
|
||||
FR_TutkAgora
|
||||
} file_remote{ FR_None };
|
||||
|
||||
enum PlateMakerDectect : int
|
||||
{
|
||||
POS_CHECK = 1,
|
||||
TYPE_POS_CHECK = 2,
|
||||
};
|
||||
|
||||
enum DoorOpenCheckState : int
|
||||
{
|
||||
DOOR_OPEN_CHECK_DISABLE = 0,/*do nothing*/
|
||||
@@ -1002,7 +1008,10 @@ public:
|
||||
bool is_support_first_layer_inspect{false};
|
||||
bool is_support_ai_monitoring {false};
|
||||
bool is_support_lidar_calibration {false};
|
||||
|
||||
bool is_support_build_plate_marker_detect{false};
|
||||
PlateMakerDectect m_plate_maker_detect_type{ POS_CHECK };
|
||||
|
||||
bool is_support_pa_calibration{false};
|
||||
bool is_support_flow_calibration{false};
|
||||
bool is_support_auto_flow_calibration{false};/*The flag is used to distinguish auto/on/off or on/off */
|
||||
|
||||
@@ -151,6 +151,16 @@ void PrintOptionsDialog::update_options(MachineObject* obj_)
|
||||
}
|
||||
|
||||
if (obj_->is_support_build_plate_marker_detect) {
|
||||
if (obj_->m_plate_maker_detect_type == MachineObject::POS_CHECK && (text_plate_mark->GetLabel() != _L("Enable detection of build plate position"))) {
|
||||
text_plate_mark->SetLabel(_L("Enable detection of build plate position"));
|
||||
text_plate_mark_caption->SetLabel(_L("The localization tag of build plate is detected, and printing is paused if the tag is not in predefined range."));
|
||||
text_plate_mark_caption->Wrap(FromDIP(260));
|
||||
} else if (obj_->m_plate_maker_detect_type == MachineObject::TYPE_POS_CHECK && (text_plate_mark->GetLabel() != _L("Build Plate Detection"))) {
|
||||
text_plate_mark->SetLabel(_L("Build Plate Detection"));
|
||||
text_plate_mark_caption->SetLabel(_L("Identifies the type and position of the build plate on the heatbed. Pausing printing if a mismatch is detected."));
|
||||
text_plate_mark_caption->Wrap(FromDIP(260));
|
||||
}
|
||||
|
||||
text_plate_mark->Show();
|
||||
m_cb_plate_mark->Show();
|
||||
text_plate_mark_caption->Show();
|
||||
|
||||
Reference in New Issue
Block a user