mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 18:27:58 -06:00
ENH:removed tips for flow calibration of N1
jira:[for a1 mini] Change-Id: Ibf069524964dfeb861db277d58efd8eaad079355
This commit is contained in:
parent
e8257103b7
commit
537e0ae31c
2 changed files with 21 additions and 12 deletions
|
@ -3442,18 +3442,17 @@ wxImage *SelectMachineDialog::LoadImageFromBlob(const unsigned char *data, int s
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SelectMachineDialog::set_flow_calibration_state(bool state)
|
void SelectMachineDialog::set_flow_calibration_state(bool state, bool show_tips)
|
||||||
{
|
{
|
||||||
if (!state) {
|
if (!state) {
|
||||||
m_checkbox_list["flow_cali"]->SetValue(state);
|
m_checkbox_list["flow_cali"]->SetValue(state);
|
||||||
auto tool_tip = _L("Caution to use! Flow calibration on Textured PEI Plate may fail due to the scattered surface.");
|
auto tool_tip = _L("Caution to use! Flow calibration on Textured PEI Plate may fail due to the scattered surface.");
|
||||||
m_checkbox_list["flow_cali"]->SetToolTip(tool_tip);
|
m_checkbox_list["flow_cali"]->SetToolTip(tool_tip);
|
||||||
m_checkbox_list["flow_cali"]->Enable();
|
m_checkbox_list["flow_cali"]->Enable();
|
||||||
//m_checkbox_state_list["flow_cali"] = state;
|
|
||||||
for (auto win : select_flow->GetWindowChildren()) {
|
for (auto win : select_flow->GetWindowChildren()) {
|
||||||
win->SetToolTip(tool_tip);
|
win->SetToolTip(tool_tip);
|
||||||
}
|
}
|
||||||
select_flow->SetToolTip(tool_tip);
|
//select_flow->SetToolTip(tool_tip);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
@ -3466,11 +3465,16 @@ void SelectMachineDialog::set_flow_calibration_state(bool state)
|
||||||
}
|
}
|
||||||
|
|
||||||
m_checkbox_list["flow_cali"]->Enable();
|
m_checkbox_list["flow_cali"]->Enable();
|
||||||
//m_checkbox_state_list["flow_cali"] = state;
|
|
||||||
for (auto win : select_flow->GetWindowChildren()) {
|
for (auto win : select_flow->GetWindowChildren()) {
|
||||||
win->SetToolTip( _L("Automatic flow calibration using Micro Lidar"));
|
win->SetToolTip( _L("Automatic flow calibration using Micro Lidar"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!show_tips) {
|
||||||
|
for (auto win : select_flow->GetWindowChildren()) {
|
||||||
|
win->SetToolTip(wxEmptyString);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SelectMachineDialog::set_default()
|
void SelectMachineDialog::set_default()
|
||||||
|
@ -3633,6 +3637,10 @@ void SelectMachineDialog::set_default_normal()
|
||||||
m_materialList.clear();
|
m_materialList.clear();
|
||||||
m_filaments.clear();
|
m_filaments.clear();
|
||||||
|
|
||||||
|
DeviceManager* dev_manager = Slic3r::GUI::wxGetApp().getDeviceManager();
|
||||||
|
if (!dev_manager) return;
|
||||||
|
MachineObject* obj_ = dev_manager->get_selected_machine();
|
||||||
|
|
||||||
for (auto i = 0; i < extruders.size(); i++) {
|
for (auto i = 0; i < extruders.size(); i++) {
|
||||||
auto extruder = extruders[i] - 1;
|
auto extruder = extruders[i] - 1;
|
||||||
auto colour = wxGetApp().preset_bundle->project_config.opt_string("filament_colour", (unsigned int) extruder);
|
auto colour = wxGetApp().preset_bundle->project_config.opt_string("filament_colour", (unsigned int) extruder);
|
||||||
|
@ -3647,7 +3655,7 @@ void SelectMachineDialog::set_default_normal()
|
||||||
m_sizer_material->Add(item, 0, wxALL, FromDIP(4));
|
m_sizer_material->Add(item, 0, wxALL, FromDIP(4));
|
||||||
|
|
||||||
item->Bind(wxEVT_LEFT_UP, [this, item, materials, extruder](wxMouseEvent& e) {});
|
item->Bind(wxEVT_LEFT_UP, [this, item, materials, extruder](wxMouseEvent& e) {});
|
||||||
item->Bind(wxEVT_LEFT_DOWN, [this, item, materials, extruder](wxMouseEvent& e) {
|
item->Bind(wxEVT_LEFT_DOWN, [this, item, materials, extruder, obj_](wxMouseEvent& e) {
|
||||||
MaterialHash::iterator iter = m_materialList.begin();
|
MaterialHash::iterator iter = m_materialList.begin();
|
||||||
while (iter != m_materialList.end()) {
|
while (iter != m_materialList.end()) {
|
||||||
int id = iter->first;
|
int id = iter->first;
|
||||||
|
@ -3664,10 +3672,7 @@ void SelectMachineDialog::set_default_normal()
|
||||||
auto mouse_pos = ClientToScreen(e.GetPosition());
|
auto mouse_pos = ClientToScreen(e.GetPosition());
|
||||||
wxPoint rect = item->ClientToScreen(wxPoint(0, 0));
|
wxPoint rect = item->ClientToScreen(wxPoint(0, 0));
|
||||||
// update ams data
|
// update ams data
|
||||||
DeviceManager* dev_manager = Slic3r::GUI::wxGetApp().getDeviceManager();
|
|
||||||
if (!dev_manager) return;
|
|
||||||
MachineObject* obj_ = dev_manager->get_selected_machine();
|
|
||||||
|
|
||||||
if (obj_ && obj_->is_support_ams_mapping()) {
|
if (obj_ && obj_->is_support_ams_mapping()) {
|
||||||
if (m_mapping_popup.IsShown()) return;
|
if (m_mapping_popup.IsShown()) return;
|
||||||
wxPoint pos = item->ClientToScreen(wxPoint(0, 0));
|
wxPoint pos = item->ClientToScreen(wxPoint(0, 0));
|
||||||
|
@ -3720,11 +3725,15 @@ void SelectMachineDialog::set_default_normal()
|
||||||
|
|
||||||
//disable pei bed
|
//disable pei bed
|
||||||
auto bed_type = m_plater->get_partplate_list().get_curr_plate()->get_bed_type(true);
|
auto bed_type = m_plater->get_partplate_list().get_curr_plate()->get_bed_type(true);
|
||||||
|
auto show_cali_tips = true;
|
||||||
|
|
||||||
|
if (obj_ && obj_->printer_type == "N1") { show_cali_tips = false; }
|
||||||
|
|
||||||
if (bed_type == BedType::btPTE) {
|
if (bed_type == BedType::btPTE) {
|
||||||
set_flow_calibration_state(false);
|
set_flow_calibration_state(false, show_cali_tips);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
set_flow_calibration_state(true);
|
set_flow_calibration_state(true, show_cali_tips);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxSize screenSize = wxGetDisplaySize();
|
wxSize screenSize = wxGetDisplaySize();
|
||||||
|
|
|
@ -442,7 +442,7 @@ public:
|
||||||
void update_priner_status_msg(wxString msg, bool is_warning = false);
|
void update_priner_status_msg(wxString msg, bool is_warning = false);
|
||||||
void update_print_status_msg(wxString msg, bool is_warning = false, bool is_printer = true);
|
void update_print_status_msg(wxString msg, bool is_warning = false, bool is_printer = true);
|
||||||
void update_print_error_info(int code, std::string msg, std::string extra);
|
void update_print_error_info(int code, std::string msg, std::string extra);
|
||||||
void set_flow_calibration_state(bool state);
|
void set_flow_calibration_state(bool state, bool show_tips = true);
|
||||||
bool is_show_timelapse();
|
bool is_show_timelapse();
|
||||||
bool has_timelapse_warning();
|
bool has_timelapse_warning();
|
||||||
void update_timelapse_enable_status();
|
void update_timelapse_enable_status();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue