diff options
author | YuSanka <yusanka@gmail.com> | 2020-04-24 12:01:14 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2020-04-24 12:01:14 +0300 |
commit | f9b3f2d45ed22dc506fa7a43cf86563b1e6710c8 (patch) | |
tree | 05c3c305306ca8ceeb902399dfe3044d6caecd13 /src/slic3r/GUI/Search.hpp | |
parent | 3ba4a2cf3d1bb8f53e3ce5fb761fed4cd02597be (diff) |
Search: Code cleaning
+ Reverted "Plater" tab to the Settings Notepad
Diffstat (limited to 'src/slic3r/GUI/Search.hpp')
-rw-r--r-- | src/slic3r/GUI/Search.hpp | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/src/slic3r/GUI/Search.hpp b/src/slic3r/GUI/Search.hpp index e7c1f6f58..d6e2689de 100644 --- a/src/slic3r/GUI/Search.hpp +++ b/src/slic3r/GUI/Search.hpp @@ -124,6 +124,7 @@ public: void apply(DynamicPrintConfig *config, Preset::Type type, ConfigOptionMode mode); + bool search(); bool search(const std::string& search, bool force = false); void add_key(const std::string& opt_key, const wxString& group, const wxString& category); @@ -135,7 +136,7 @@ public: const std::vector<FoundOption>& found_options() { return found; } const GroupAndCategory& get_group_and_category (const std::string& opt_key) { return groups_and_categories[opt_key]; } - const std::string& search_string() { return search_line; } + std::string& search_string() { return search_line; } }; @@ -171,30 +172,6 @@ protected: wxString m_input_string; }; -class SearchCtrl : public wxComboCtrl -{ - SearchComboPopup* popupListBox {nullptr}; - - bool prevent_update { false }; - wxString default_string; - bool editing {false}; - - void PopupList(wxCommandEvent& event); - void OnInputText(wxCommandEvent& event); - - void OnSelect(wxCommandEvent& event); - void OnLeftUpInTextCtrl(wxEvent& event); - -public: - SearchCtrl(wxWindow* parent); - ~SearchCtrl() {} - - void set_search_line(const std::string& search_line); - void msw_rescale(); - - void update_list(const std::vector<FoundOption>& filters); -}; - //------------------------------------------ // SearchDialog |