FIX: add text link to bed type
Change-Id: Ic051bc37f87ec355865c3ce5fb857ad0a38c1d32 (cherry picked from commit 5573fdca645ba3721df25ae538c76b2f0abb2149)
This commit is contained in:
parent
ac0b383858
commit
a66aa0a259
|
@ -520,6 +520,24 @@ Sidebar::Sidebar(Plater *parent)
|
||||||
m_bed_type_list->AppendString(_L(item.first));
|
m_bed_type_list->AppendString(_L(item.first));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bed_type_title->Bind(wxEVT_ENTER_WINDOW, [bed_type_title, this](wxMouseEvent &e) {
|
||||||
|
e.Skip();
|
||||||
|
auto font = bed_type_title->GetFont();
|
||||||
|
font.SetUnderlined(true);
|
||||||
|
bed_type_title->SetFont(font);
|
||||||
|
SetCursor(wxCURSOR_HAND);
|
||||||
|
});
|
||||||
|
bed_type_title->Bind(wxEVT_LEAVE_WINDOW, [bed_type_title, this](wxMouseEvent &e) {
|
||||||
|
e.Skip();
|
||||||
|
auto font = bed_type_title->GetFont();
|
||||||
|
font.SetUnderlined(false);
|
||||||
|
bed_type_title->SetFont(font);
|
||||||
|
SetCursor(wxCURSOR_ARROW);
|
||||||
|
});
|
||||||
|
bed_type_title->Bind(wxEVT_LEFT_UP, [bed_type_title, this](wxMouseEvent &e) {
|
||||||
|
wxLaunchDefaultBrowser("https://wiki.bambulab.com/en/x1/manual/compatibility-and-parameter-settings-of-filaments");
|
||||||
|
});
|
||||||
|
|
||||||
m_bed_type_list->Select(0);
|
m_bed_type_list->Select(0);
|
||||||
bed_type_sizer->Add(bed_type_title, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, FromDIP(10));
|
bed_type_sizer->Add(bed_type_title, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, FromDIP(10));
|
||||||
bed_type_sizer->Add(m_bed_type_list, 1, wxLEFT | wxRIGHT | wxEXPAND, FromDIP(10));
|
bed_type_sizer->Add(m_bed_type_list, 1, wxLEFT | wxRIGHT | wxEXPAND, FromDIP(10));
|
||||||
|
|
Loading…
Reference in New Issue