Override full config defs in non-preset categories

This commit is contained in:
Ocraftyone 2024-01-05 05:58:44 -05:00
parent ecd20184f9
commit 4abca6a091
No known key found for this signature in database
GPG key ID: 85836ED21AD4D125
2 changed files with 45 additions and 20 deletions

View file

@ -174,6 +174,7 @@ public:
wxString GetParamName(wxDataViewItem item);
std::string GetParamKey(wxDataViewItem item);
std::string GetTopLevelCategory(wxDataViewItem item);
void Clear();
@ -225,6 +226,7 @@ public:
wxString GetValue(wxDataViewItem item);
wxString GetSelectedValue();
std::string GetSelectedParamKey();
std::string GetSelectedTopLevelCategory();
void CheckAndDeleteIfEmpty(wxDataViewItem item);
@ -234,6 +236,10 @@ public:
void set_em_unit(int em) { m_em_unit = em; }
};
static std::string unbold(const std::string& text) {
return text.substr(text.find("<b>")+3, text.find("</b>")-3);
}
} // namespace GUI
} // namespace Slic3r