FIX:Don't display other printing options except for enable AMS
Change-Id: I16a92c09518ee8e803ee50483b3b9e1f99658320
This commit is contained in:
parent
68e2cb6ca2
commit
fae1c17e44
|
@ -3126,6 +3126,9 @@ void SelectMachineDialog::on_timer(wxTimerEvent &event)
|
|||
if(!dev) return;
|
||||
MachineObject* obj_ = dev->get_selected_machine();
|
||||
if(!obj_) return;
|
||||
|
||||
update_ams_check(obj_);
|
||||
update_select_layout(obj_);
|
||||
if (!obj_
|
||||
|| obj_->amsList.empty()
|
||||
|| obj_->ams_exist_bits == 0
|
||||
|
@ -3295,7 +3298,7 @@ void SelectMachineDialog::update_show_status()
|
|||
}
|
||||
|
||||
reset_timeout();
|
||||
update_ams_check(obj_);
|
||||
//update_ams_check(obj_);
|
||||
|
||||
if (!obj_->is_support_print_all && m_print_plate_idx == PLATE_ALL_IDX) {
|
||||
show_status(PrintDialogStatus::PrintStatusNotSupportedPrintAll);
|
||||
|
@ -3731,7 +3734,7 @@ void SelectMachineDialog::set_default()
|
|||
else if (m_print_type == PrintFromType::FROM_SDCARD_VIEW) {
|
||||
set_default_from_sdcard();
|
||||
}
|
||||
|
||||
|
||||
Layout();
|
||||
Fit();
|
||||
}
|
||||
|
|
|
@ -480,7 +480,7 @@ void AMSextruder::doRender(wxDC& dc)
|
|||
|
||||
if (m_vams_loading) {
|
||||
|
||||
if (m_current_colur.Alpha() == 0) { dc.SetPen(wxPen(*wxBLACK, 6, wxSOLID)); }
|
||||
if (m_current_colur.Alpha() == 0) { dc.SetPen(wxPen(*wxWHITE, 6, wxSOLID)); }
|
||||
else { dc.SetPen(wxPen(m_current_colur, 6, wxSOLID)); }
|
||||
dc.DrawRoundedRectangle(-size.x / 2, size.y * 0.1, size.x, size.y, 4);
|
||||
|
||||
|
@ -492,7 +492,7 @@ void AMSextruder::doRender(wxDC& dc)
|
|||
}
|
||||
|
||||
if (m_ams_loading && !m_none_ams_mode) {
|
||||
if (m_current_colur.Alpha() == 0) {dc.SetPen(wxPen(*wxBLACK, 6, wxSOLID));}
|
||||
if (m_current_colur.Alpha() == 0) {dc.SetPen(wxPen(*wxWHITE, 6, wxSOLID));}
|
||||
else {dc.SetPen(wxPen(m_current_colur, 6, wxSOLID));}
|
||||
dc.DrawLine(size.x / 2, -1, size.x / 2, size.y * 0.6 - 1);
|
||||
|
||||
|
@ -505,7 +505,7 @@ void AMSextruder::doRender(wxDC& dc)
|
|||
}
|
||||
else {
|
||||
if (m_ams_loading) {
|
||||
if (m_current_colur.Alpha() == 0) { dc.SetPen(wxPen(*wxBLACK, 6, wxSOLID)); }
|
||||
if (m_current_colur.Alpha() == 0) { dc.SetPen(wxPen(*wxWHITE, 6, wxSOLID)); }
|
||||
else { dc.SetPen(wxPen(m_current_colur, 6, wxSOLID)); }
|
||||
dc.DrawLine(size.x / 2, -1, size.x / 2, size.y * 0.6 - 1);
|
||||
|
||||
|
@ -583,7 +583,7 @@ void AMSVirtualRoad::doRender(wxDC& dc)
|
|||
|
||||
wxSize size = GetSize();
|
||||
if (m_vams_loading) {
|
||||
if (m_current_color.Alpha() == 0) { dc.SetPen(wxPen(*wxBLACK, 6, wxSOLID)); }
|
||||
if (m_current_color.Alpha() == 0) { dc.SetPen(wxPen(*wxWHITE, 6, wxSOLID)); }
|
||||
else { dc.SetPen(wxPen(m_current_color, 6, wxSOLID)); }
|
||||
}
|
||||
else {
|
||||
|
@ -1413,7 +1413,7 @@ void AMSRoad::doRender(wxDC &dc)
|
|||
// mode none
|
||||
// if (m_pass_rode_mode.size() == 1 && m_pass_rode_mode[0] == AMSPassRoadMode::AMS_ROAD_MODE_NONE) return;
|
||||
|
||||
if (m_road_color.Alpha() == 0) {dc.SetPen(wxPen(*wxBLACK, m_passroad_width, wxSOLID));}
|
||||
if (m_road_color.Alpha() == 0) {dc.SetPen(wxPen(*wxWHITE, m_passroad_width, wxSOLID));}
|
||||
else {dc.SetPen(wxPen(m_road_color, m_passroad_width, wxSOLID));}
|
||||
|
||||
dc.SetBrush(wxBrush(*wxTRANSPARENT_BRUSH));
|
||||
|
|
Loading…
Reference in New Issue