mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
FIX:add x1c and x1e picture
jira:[STUDIO-13716][STUDIO-14124] Change-Id: Ia793986f1891c2ee57c95a6db536e71f725ddb3c (cherry picked from commit e29b9cf3a319666c896fc839329448dde435c46d)
This commit is contained in:
274
resources/images/printer_thumbnail_x1c.svg
Normal file
274
resources/images/printer_thumbnail_x1c.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 86 KiB |
90
resources/images/printer_thumbnail_x1c_dark.svg
Normal file
90
resources/images/printer_thumbnail_x1c_dark.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 87 KiB |
274
resources/images/printer_thumbnail_x1e.svg
Normal file
274
resources/images/printer_thumbnail_x1e.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 86 KiB |
90
resources/images/printer_thumbnail_x1e_dark.svg
Normal file
90
resources/images/printer_thumbnail_x1e_dark.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 87 KiB |
@@ -55,7 +55,7 @@
|
|||||||
"support_wrapping_detection": false,
|
"support_wrapping_detection": false,
|
||||||
"auto_pa_cali_thumbnail_image": "fd_calibration_auto",
|
"auto_pa_cali_thumbnail_image": "fd_calibration_auto",
|
||||||
"printer_type": "3DPrinter-X1-Carbon",
|
"printer_type": "3DPrinter-X1-Carbon",
|
||||||
"printer_thumbnail_image": "printer_thumbnail",
|
"printer_thumbnail_image": "printer_thumbnail_x1c",
|
||||||
"printer_connect_help_image": "input_access_code_x1",
|
"printer_connect_help_image": "input_access_code_x1",
|
||||||
"printer_use_ams_image": "ams_icon",
|
"printer_use_ams_image": "ams_icon",
|
||||||
"printer_ext_image": ["ext_image_xp"],
|
"printer_ext_image": ["ext_image_xp"],
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
"compatible_machine": [ "BL-P001", "BL-P002", "C11", "C12" ],
|
"compatible_machine": [ "BL-P001", "BL-P002", "C11", "C12" ],
|
||||||
"auto_cali_not_support_filaments": [ "GFU03", "GFU04" ],
|
"auto_cali_not_support_filaments": [ "GFU03", "GFU04" ],
|
||||||
"printer_type": "C13",
|
"printer_type": "C13",
|
||||||
"printer_thumbnail_image": "printer_thumbnail",
|
"printer_thumbnail_image": "printer_thumbnail_x1e",
|
||||||
"printer_connect_help_image": "input_access_code_x1",
|
"printer_connect_help_image": "input_access_code_x1",
|
||||||
"printer_use_ams_image": "ams_icon",
|
"printer_use_ams_image": "ams_icon",
|
||||||
"printer_ext_image": ["ext_image_xp"],
|
"printer_ext_image": ["ext_image_xp"],
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ wxString get_fail_reason(int code)
|
|||||||
return _L("Failed to post ticket to server");
|
return _L("Failed to post ticket to server");
|
||||||
|
|
||||||
else if (code == BAMBU_NETWORK_ERR_BIND_PARSE_LOGIN_REPORT_FAILED)
|
else if (code == BAMBU_NETWORK_ERR_BIND_PARSE_LOGIN_REPORT_FAILED)
|
||||||
return _L("Failed to parse login report reason");
|
return _L("Failed to parse login report reason");
|
||||||
|
|
||||||
else if (code == BAMBU_NETWORK_ERR_BIND_ECODE_LOGIN_REPORT_FAILED)
|
else if (code == BAMBU_NETWORK_ERR_BIND_ECODE_LOGIN_REPORT_FAILED)
|
||||||
return _L("Failed to parse login report reason");
|
return _L("Failed to parse login report reason");
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ PingCodeBindDialog::PingCodeBindDialog(Plater* plater /*= nullptr*/)
|
|||||||
wxBoxSizer* m_sizer_main = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* m_sizer_main = new wxBoxSizer(wxVERTICAL);
|
||||||
auto m_line_top = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(-1, 1), wxTAB_TRAVERSAL);
|
auto m_line_top = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(-1, 1), wxTAB_TRAVERSAL);
|
||||||
m_line_top->SetBackgroundColour(wxColour(166, 169, 170));
|
m_line_top->SetBackgroundColour(wxColour(166, 169, 170));
|
||||||
|
|
||||||
|
|
||||||
m_simplebook = new wxSimplebook(this);
|
m_simplebook = new wxSimplebook(this);
|
||||||
m_simplebook->SetSize(wxSize(FromDIP(460), FromDIP(240)));
|
m_simplebook->SetSize(wxSize(FromDIP(460), FromDIP(240)));
|
||||||
@@ -121,7 +121,7 @@ PingCodeBindDialog::PingCodeBindDialog(Plater* plater /*= nullptr*/)
|
|||||||
for (int i = 0; i < PING_CODE_LENGTH; i++) {
|
for (int i = 0; i < PING_CODE_LENGTH; i++) {
|
||||||
m_text_input_single_code[i] = new TextInput(request_bind_panel, wxEmptyString, "", "", wxDefaultPosition, wxSize(FromDIP(38), FromDIP(38)), wxTE_PROCESS_ENTER | wxTE_CENTER);
|
m_text_input_single_code[i] = new TextInput(request_bind_panel, wxEmptyString, "", "", wxDefaultPosition, wxSize(FromDIP(38), FromDIP(38)), wxTE_PROCESS_ENTER | wxTE_CENTER);
|
||||||
wxTextAttr textAttr;
|
wxTextAttr textAttr;
|
||||||
textAttr.SetAlignment(wxTEXT_ALIGNMENT_CENTER);
|
textAttr.SetAlignment(wxTEXT_ALIGNMENT_CENTER);
|
||||||
textAttr.SetTextColour(wxColour(34, 139, 34));
|
textAttr.SetTextColour(wxColour(34, 139, 34));
|
||||||
m_text_input_single_code[i]->GetTextCtrl()->SetDefaultStyle(textAttr);
|
m_text_input_single_code[i]->GetTextCtrl()->SetDefaultStyle(textAttr);
|
||||||
m_text_input_single_code[i]->SetFont(Label::Body_16);
|
m_text_input_single_code[i]->SetFont(Label::Body_16);
|
||||||
@@ -242,11 +242,11 @@ void PingCodeBindDialog::on_key_input(wxKeyEvent& evt)
|
|||||||
|
|
||||||
if (keyCode == WXK_BACK || (keyCode >= '0' && keyCode <= '9') || (keyCode >= 'a' && keyCode <= 'z') || (keyCode >= 'A' && keyCode <= 'Z'))
|
if (keyCode == WXK_BACK || (keyCode >= '0' && keyCode <= '9') || (keyCode >= 'a' && keyCode <= 'z') || (keyCode >= 'A' && keyCode <= 'Z'))
|
||||||
{
|
{
|
||||||
evt.Skip();
|
evt.Skip();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxBell();
|
wxBell();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -264,7 +264,7 @@ void PingCodeBindDialog::on_text_changed(wxCommandEvent& event) {
|
|||||||
|
|
||||||
if (idx != -1 && text_input->GetValue().Length() == 1) {
|
if (idx != -1 && text_input->GetValue().Length() == 1) {
|
||||||
if (idx < PING_CODE_LENGTH-1) {
|
if (idx < PING_CODE_LENGTH-1) {
|
||||||
m_text_input_single_code[idx + 1]->SetFocus();
|
m_text_input_single_code[idx + 1]->SetFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto has_empty = false;
|
auto has_empty = false;
|
||||||
@@ -298,7 +298,7 @@ void PingCodeBindDialog::on_key_backspace(wxKeyEvent& event)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.GetKeyCode() == WXK_BACK && idx >= 0) {
|
if (event.GetKeyCode() == WXK_BACK && idx >= 0) {
|
||||||
CallAfter([this, idx]() {
|
CallAfter([this, idx]() {
|
||||||
m_text_input_single_code[idx - 1]->SetFocus();
|
m_text_input_single_code[idx - 1]->SetFocus();
|
||||||
@@ -308,7 +308,7 @@ void PingCodeBindDialog::on_key_backspace(wxKeyEvent& event)
|
|||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PingCodeBindDialog::on_bind_printer(wxCommandEvent& event)
|
void PingCodeBindDialog::on_bind_printer(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
wxString ping_code;
|
wxString ping_code;
|
||||||
|
|
||||||
@@ -329,7 +329,7 @@ void PingCodeBindDialog::on_bind_printer(wxCommandEvent& event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PingCodeBindDialog::on_cancel(wxCommandEvent& event)
|
void PingCodeBindDialog::on_cancel(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
EndModal(wxCLOSE);
|
EndModal(wxCLOSE);
|
||||||
}
|
}
|
||||||
@@ -427,7 +427,7 @@ PingCodeBindDialog::~PingCodeBindDialog() {
|
|||||||
|
|
||||||
|
|
||||||
m_link_show_error = new wxStaticText(this, wxID_ANY, _L("Check the reason"));
|
m_link_show_error = new wxStaticText(this, wxID_ANY, _L("Check the reason"));
|
||||||
m_link_show_error->SetForegroundColour(wxColour(0x6b6b6b));
|
m_link_show_error->SetForegroundColour(wxColour("#6b6b6b"));
|
||||||
m_link_show_error->SetFont(::Label::Head_13);
|
m_link_show_error->SetFont(::Label::Head_13);
|
||||||
|
|
||||||
m_bitmap_show_error_close = create_scaled_bitmap("link_more_error_close",nullptr, 7);
|
m_bitmap_show_error_close = create_scaled_bitmap("link_more_error_close",nullptr, 7);
|
||||||
@@ -463,8 +463,8 @@ PingCodeBindDialog::~PingCodeBindDialog() {
|
|||||||
m_panel_agreement->SetBackgroundColour(*wxWHITE);
|
m_panel_agreement->SetBackgroundColour(*wxWHITE);
|
||||||
m_panel_agreement->SetMinSize(wxSize(FromDIP(450), -1));
|
m_panel_agreement->SetMinSize(wxSize(FromDIP(450), -1));
|
||||||
m_panel_agreement->SetMaxSize(wxSize(FromDIP(450), -1));
|
m_panel_agreement->SetMaxSize(wxSize(FromDIP(450), -1));
|
||||||
|
|
||||||
|
|
||||||
wxWrapSizer* sizer_privacy_agreement = new wxWrapSizer( wxHORIZONTAL, wxWRAPSIZER_DEFAULT_FLAGS );
|
wxWrapSizer* sizer_privacy_agreement = new wxWrapSizer( wxHORIZONTAL, wxWRAPSIZER_DEFAULT_FLAGS );
|
||||||
wxWrapSizer* sizere_notice_agreement= new wxWrapSizer( wxHORIZONTAL, wxWRAPSIZER_DEFAULT_FLAGS );
|
wxWrapSizer* sizere_notice_agreement= new wxWrapSizer( wxHORIZONTAL, wxWRAPSIZER_DEFAULT_FLAGS );
|
||||||
wxBoxSizer* sizer_privacy_body = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* sizer_privacy_body = new wxBoxSizer(wxHORIZONTAL);
|
||||||
@@ -577,7 +577,7 @@ PingCodeBindDialog::~PingCodeBindDialog() {
|
|||||||
wxBoxSizer* sizer_agreement = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* sizer_agreement = new wxBoxSizer(wxVERTICAL);
|
||||||
sizer_agreement->Add(sizer_privacy_body, 1, wxEXPAND, 0);
|
sizer_agreement->Add(sizer_privacy_body, 1, wxEXPAND, 0);
|
||||||
sizer_agreement->Add(sizere_notice_body, 1, wxEXPAND, 0);
|
sizer_agreement->Add(sizere_notice_body, 1, wxEXPAND, 0);
|
||||||
|
|
||||||
|
|
||||||
m_checkbox_privacy->Bind(wxEVT_TOGGLEBUTTON, [this, m_checkbox_privacy](auto& e) {
|
m_checkbox_privacy->Bind(wxEVT_TOGGLEBUTTON, [this, m_checkbox_privacy](auto& e) {
|
||||||
m_allow_privacy = m_checkbox_privacy->GetValue();
|
m_allow_privacy = m_checkbox_privacy->GetValue();
|
||||||
@@ -608,7 +608,7 @@ PingCodeBindDialog::~PingCodeBindDialog() {
|
|||||||
m_link_network_state->Bind(wxEVT_ENTER_WINDOW, [this](auto& e) {m_link_network_state->SetCursor(wxCURSOR_HAND); });
|
m_link_network_state->Bind(wxEVT_ENTER_WINDOW, [this](auto& e) {m_link_network_state->SetCursor(wxCURSOR_HAND); });
|
||||||
m_link_network_state->Bind(wxEVT_LEAVE_WINDOW, [this](auto& e) {m_link_network_state->SetCursor(wxCURSOR_ARROW); });
|
m_link_network_state->Bind(wxEVT_LEAVE_WINDOW, [this](auto& e) {m_link_network_state->SetCursor(wxCURSOR_ARROW); });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
wxBoxSizer* sizer_error_code = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* sizer_error_code = new wxBoxSizer(wxHORIZONTAL);
|
||||||
wxBoxSizer* sizer_error_desc = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* sizer_error_desc = new wxBoxSizer(wxHORIZONTAL);
|
||||||
@@ -921,8 +921,12 @@ void BindMachineDialog::on_show(wxShowEvent &event)
|
|||||||
if (event.IsShown()) {
|
if (event.IsShown()) {
|
||||||
auto img = m_machine_info->get_printer_thumbnail_img_str();
|
auto img = m_machine_info->get_printer_thumbnail_img_str();
|
||||||
if (wxGetApp().dark_mode()) { img += "_dark"; }
|
if (wxGetApp().dark_mode()) { img += "_dark"; }
|
||||||
auto bitmap = create_scaled_bitmap(img, this, FromDIP(80));
|
try {
|
||||||
m_printer_img->SetBitmap(bitmap);
|
auto bitmap = create_scaled_bitmap(img, this, FromDIP(80));
|
||||||
|
m_printer_img->SetBitmap(bitmap);
|
||||||
|
}
|
||||||
|
catch (...){}
|
||||||
|
|
||||||
m_printer_img->Refresh();
|
m_printer_img->Refresh();
|
||||||
m_printer_img->Show();
|
m_printer_img->Show();
|
||||||
|
|
||||||
@@ -969,7 +973,7 @@ UnBindMachineDialog::UnBindMachineDialog(Plater *plater /*= nullptr*/)
|
|||||||
SetBackgroundColour(*wxWHITE);
|
SetBackgroundColour(*wxWHITE);
|
||||||
wxBoxSizer *m_sizer_main = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer *m_sizer_main = new wxBoxSizer(wxVERTICAL);
|
||||||
auto m_line_top = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(-1, 1), wxTAB_TRAVERSAL);
|
auto m_line_top = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(-1, 1), wxTAB_TRAVERSAL);
|
||||||
m_line_top->SetBackgroundColour(wxColour(166, 169, 170));
|
m_line_top->SetBackgroundColour(wxColour("#A6A9AA"));
|
||||||
m_sizer_main->Add(m_line_top, 0, wxEXPAND, 0);
|
m_sizer_main->Add(m_line_top, 0, wxEXPAND, 0);
|
||||||
m_sizer_main->Add(0, 0, 0, wxTOP, FromDIP(38));
|
m_sizer_main->Add(0, 0, 0, wxTOP, FromDIP(38));
|
||||||
|
|
||||||
@@ -1138,8 +1142,11 @@ void UnBindMachineDialog::on_show(wxShowEvent &event)
|
|||||||
if (event.IsShown()) {
|
if (event.IsShown()) {
|
||||||
auto img = m_machine_info->get_printer_thumbnail_img_str();
|
auto img = m_machine_info->get_printer_thumbnail_img_str();
|
||||||
if (wxGetApp().dark_mode()) { img += "_dark"; }
|
if (wxGetApp().dark_mode()) { img += "_dark"; }
|
||||||
auto bitmap = create_scaled_bitmap(img, this, FromDIP(80));
|
try {
|
||||||
m_printer_img->SetBitmap(bitmap);
|
auto bitmap = create_scaled_bitmap(img, this, FromDIP(80));
|
||||||
|
m_printer_img->SetBitmap(bitmap);
|
||||||
|
} catch (...) {}
|
||||||
|
|
||||||
m_printer_img->Refresh();
|
m_printer_img->Refresh();
|
||||||
m_printer_img->Show();
|
m_printer_img->Show();
|
||||||
|
|
||||||
@@ -1149,7 +1156,7 @@ void UnBindMachineDialog::on_show(wxShowEvent &event)
|
|||||||
if (wxGetApp().is_user_login()) {
|
if (wxGetApp().is_user_login()) {
|
||||||
wxString username_text = from_u8(wxGetApp().getAgent()->get_user_name());
|
wxString username_text = from_u8(wxGetApp().getAgent()->get_user_name());
|
||||||
m_user_name->SetLabelText(username_text);
|
m_user_name->SetLabelText(username_text);
|
||||||
|
|
||||||
std::string avatar_url = wxGetApp().getAgent()->get_user_avatar();
|
std::string avatar_url = wxGetApp().getAgent()->get_user_avatar();
|
||||||
Slic3r::Http http = Slic3r::Http::get(avatar_url);
|
Slic3r::Http http = Slic3r::Http::get(avatar_url);
|
||||||
std::string suffix = avatar_url.substr(avatar_url.find_last_of(".") + 1);
|
std::string suffix = avatar_url.substr(avatar_url.find_last_of(".") + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user