mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-02 08:58:43 +03:00
PRUSA 2.7.0
This commit is contained in:
@@ -483,7 +483,11 @@ SearchDialog::SearchDialog(OptionsSearcher* searcher)
|
||||
searcher(searcher)
|
||||
{
|
||||
SetFont(GUI::wxGetApp().normal_font());
|
||||
#if _WIN32
|
||||
GUI::wxGetApp().UpdateDarkUI(this);
|
||||
#elif __WXGTK__
|
||||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
||||
#endif
|
||||
|
||||
default_string = _L("Enter a search term");
|
||||
int border = 10;
|
||||
@@ -521,9 +525,9 @@ SearchDialog::SearchDialog(OptionsSearcher* searcher)
|
||||
|
||||
wxBoxSizer* check_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
|
||||
check_category = new wxCheckBox(this, wxID_ANY, _L("Category"));
|
||||
check_category = new ::CheckBox(this, _L("Category"));
|
||||
if (GUI::wxGetApp().is_localized())
|
||||
check_english = new wxCheckBox(this, wxID_ANY, _L("Search in English"));
|
||||
check_english = new ::CheckBox(this, _L("Search in English"));
|
||||
|
||||
wxStdDialogButtonSizer* cancel_btn = this->CreateStdDialogButtonSizer(wxCANCEL);
|
||||
GUI::wxGetApp().UpdateDarkUI(static_cast<wxButton*>(this->FindWindowById(wxID_CANCEL, this)));
|
||||
@@ -571,6 +575,11 @@ SearchDialog::SearchDialog(OptionsSearcher* searcher)
|
||||
topSizer->SetSizeHints(this);
|
||||
}
|
||||
|
||||
SearchDialog::~SearchDialog()
|
||||
{
|
||||
if (search_list_model)
|
||||
search_list_model->DecRef();
|
||||
}
|
||||
void SearchDialog::Popup(wxPoint position /*= wxDefaultPosition*/)
|
||||
{
|
||||
const std::string& line = searcher->search_string();
|
||||
|
||||
Reference in New Issue
Block a user