#ifndef slic3r_SearchComboBox_hpp_ #define slic3r_SearchComboBox_hpp_ #include #include #include #include #include "Preset.hpp" #include "wxExtensions.hpp" namespace Slic3r { namespace GUI { struct SearchInput { DynamicPrintConfig* config {nullptr}; Preset::Type type {Preset::TYPE_INVALID}; ConfigOptionMode mode {comSimple}; }; class SearchOptions { public: struct Option { bool operator<(const Option& other) const { return other.label > this->label; } bool operator>(const Option& other) const { return other.label < this->label; } wxString label; std::string opt_key; wxString category; Preset::Type type {Preset::TYPE_INVALID}; // wxString grope; bool containes(const wxString& search) const; bool is_matched_option(const wxString &search, int &outScore); }; std::vector