mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Search: Implemented SearchDialog.
Search window on Plater: set flag SelectAll for search line
This commit is contained in:
parent
83782e59b6
commit
07411e795c
9 changed files with 241 additions and 195 deletions
|
@ -160,8 +160,6 @@ void Tab::create_preset_tab()
|
|||
|
||||
// search combox
|
||||
m_search = new Search::SearchCtrl(panel);
|
||||
// search combox
|
||||
m_search_btn = new Search::SearchButton(panel);
|
||||
|
||||
auto color = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
|
||||
|
||||
|
@ -184,10 +182,12 @@ void Tab::create_preset_tab()
|
|||
m_btn_delete_preset->Disable();
|
||||
|
||||
add_scaled_button(panel, &m_question_btn, "question");
|
||||
|
||||
m_question_btn->SetToolTip(_(L("Hover the cursor over buttons to find more information \n"
|
||||
"or click this button.")));
|
||||
|
||||
add_scaled_button(panel, &m_search_btn, "search");
|
||||
m_question_btn->SetToolTip(_L("Find option"));
|
||||
|
||||
// Determine the theme color of OS (dark or light)
|
||||
auto luma = wxGetApp().get_colour_approx_luma(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
||||
// Bitmaps to be shown on the "Revert to system" aka "Lock to system" button next to each input field.
|
||||
|
@ -218,6 +218,7 @@ void Tab::create_preset_tab()
|
|||
}
|
||||
}
|
||||
}));
|
||||
m_search_btn->Bind(wxEVT_BUTTON, [this](wxCommandEvent) { wxGetApp().plater()->search(false); });
|
||||
|
||||
// Colors for ui "decoration"
|
||||
m_sys_label_clr = wxGetApp().get_label_clr_sys();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue