mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-28 03:50:23 -07:00
configuration wizard: added Checked information to sorting algortihm on filaments page. Fix of #4922
This commit is contained in:
@@ -314,6 +314,14 @@ template<class T, class D> struct DataList : public T
|
||||
typedef DataList<wxListBox, std::string> StringList;
|
||||
typedef DataList<wxCheckListBox, std::string> PresetList;
|
||||
|
||||
struct ProfilePrintData
|
||||
{
|
||||
std::reference_wrapper<const std::string> name;
|
||||
bool omnipresent;
|
||||
bool checked;
|
||||
ProfilePrintData(const std::string& n, bool o, bool c) : name(n), omnipresent(o), checked(c) {}
|
||||
};
|
||||
|
||||
struct PageMaterials: ConfigWizardPage
|
||||
{
|
||||
Materials *materials;
|
||||
@@ -344,7 +352,7 @@ struct PageMaterials: ConfigWizardPage
|
||||
void clear_compatible_printers_label();
|
||||
|
||||
void sort_list_data(StringList* list, bool add_All_item, bool material_type_ordering);
|
||||
void sort_list_data(PresetList* list, const std::vector<std::pair<std::reference_wrapper<const std::string>, bool>>& data);
|
||||
void sort_list_data(PresetList* list, const std::vector<ProfilePrintData>& data);
|
||||
|
||||
void on_paint();
|
||||
void on_mouse_move_on_profiles(wxMouseEvent& evt);
|
||||
|
||||
Reference in New Issue
Block a user