mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	ENH: hide auto switch filament for P1P
show video when printing for P1P Change-Id: I0f35385b849a0c3081c004916258134ef161982e Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
		
							parent
							
								
									ad22dec6d9
								
							
						
					
					
						commit
						77a37f086d
					
				
					 5 changed files with 18 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -179,7 +179,7 @@ void AMSSetting::create()
 | 
			
		|||
    m_sizer_switch_filament_inline = new wxBoxSizer(wxVERTICAL);
 | 
			
		||||
 | 
			
		||||
    m_tip_switch_filament_line1 = new wxStaticText(m_panel_body, wxID_ANY,
 | 
			
		||||
        _L("AMS switches to the same type of filament automatically when the current filament runs out."),
 | 
			
		||||
        _L("AMS will continue to another spool with the same properties of filament automatically when current filament runs out"),
 | 
			
		||||
        wxDefaultPosition, wxDefaultSize, 0);
 | 
			
		||||
    m_tip_switch_filament_line1->SetFont(::Label::Body_13);
 | 
			
		||||
    m_tip_switch_filament_line1->SetForegroundColour(AMS_SETTING_GREY700);
 | 
			
		||||
| 
						 | 
				
			
			@ -272,6 +272,17 @@ void AMSSetting::update_remain_mode(bool selected)
 | 
			
		|||
 | 
			
		||||
void AMSSetting::update_switch_filament(bool selected)
 | 
			
		||||
{
 | 
			
		||||
    if (obj->is_function_supported(PrinterFunction::FUNC_AUTO_SWITCH_FILAMENT)) {
 | 
			
		||||
        m_checkbox_switch_filament->Show();
 | 
			
		||||
        m_title_switch_filament->Show();
 | 
			
		||||
        m_tip_switch_filament_line1->Show();
 | 
			
		||||
        Layout();
 | 
			
		||||
    } else {
 | 
			
		||||
        m_checkbox_switch_filament->Hide();
 | 
			
		||||
        m_title_switch_filament->Hide();
 | 
			
		||||
        m_tip_switch_filament_line1->Hide();
 | 
			
		||||
        Layout();
 | 
			
		||||
    }
 | 
			
		||||
    m_checkbox_switch_filament->SetValue(selected);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -53,7 +53,7 @@ CameraPopup::CameraPopup(wxWindow *parent, MachineObject* obj)
 | 
			
		|||
        m_switch_timelapse->SetValue(obj->camera_timelapse);
 | 
			
		||||
 | 
			
		||||
    //recording
 | 
			
		||||
    m_text_recording = new wxStaticText(m_panel, wxID_ANY, _L("Monitoring Recording"));
 | 
			
		||||
    m_text_recording = new wxStaticText(m_panel, wxID_ANY, _L("Video when printing"));
 | 
			
		||||
    m_text_recording->Wrap(-1);
 | 
			
		||||
    m_text_recording->SetFont(Label::Head_14);
 | 
			
		||||
    m_text_recording->SetForegroundColour(TEXT_COL);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1956,6 +1956,9 @@ bool MachineObject::is_function_supported(PrinterFunction func)
 | 
			
		|||
    case FUNC_SEND_TO_SDCARD:
 | 
			
		||||
        func_name = "FUNC_SEND_TO_SDCARD";
 | 
			
		||||
        break;
 | 
			
		||||
    case FUNC_AUTO_SWITCH_FILAMENT:
 | 
			
		||||
        func_name = "FUNC_AUTO_SWITCH_FILAMENT";
 | 
			
		||||
        break;
 | 
			
		||||
    default:
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -81,6 +81,7 @@ enum PrinterFunction {
 | 
			
		|||
    FUNC_USE_AMS,
 | 
			
		||||
    FUNC_ALTER_RESOLUTION,
 | 
			
		||||
    FUNC_SEND_TO_SDCARD,
 | 
			
		||||
    FUNC_AUTO_SWITCH_FILAMENT,
 | 
			
		||||
    FUNC_MAX
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue