mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
NEW:support for displaying extra styles
Change-Id: I5c468218c865d93f5813cc3f53f3b9a74de44312 (cherry picked from commit 36e12f142c2bfc26dca89262f6367457a29a326c) (cherry picked from commit 88b58898a749156e291dbe90d286115af6e69855)
This commit is contained in:
@@ -87,6 +87,19 @@ wxString StepCtrlBase::GetItemText(unsigned int item) const
|
||||
return item < steps.size() ? steps[item] : wxString{};
|
||||
}
|
||||
|
||||
int StepCtrlBase::GetItemUseText(wxString txt) const
|
||||
{
|
||||
for(int i = 0; i < steps.size(); i++){
|
||||
if (steps[i] == txt) {
|
||||
return i;
|
||||
}
|
||||
else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void StepCtrlBase::SetItemText(unsigned int item, wxString const &value)
|
||||
{
|
||||
if (item >= steps.size()) return;
|
||||
|
||||
Reference in New Issue
Block a user