mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-28 21:32:11 +00:00
FIX:update SyncAmsInfoDialog
jira: none Change-Id: I8c34d47e799c56e2b1887794dc8a7bfaf8904d77 (cherry picked from commit e06aed7cbf144cdd77f9b7caa160c1c7f7941794)
This commit is contained in:
@@ -133,6 +133,19 @@ wxString ComboBox::GetLabel() const
|
||||
return TextInput::GetLabel();
|
||||
}
|
||||
|
||||
int ComboBox::GetFlag(unsigned int n)
|
||||
{
|
||||
if (n >= items.size())
|
||||
return -1;
|
||||
return items[n].flag;
|
||||
}
|
||||
|
||||
void ComboBox::SetFlag(unsigned int n, int value) {
|
||||
if (n >= items.size()) return;
|
||||
items[n].flag = value;
|
||||
drop.Invalidate();
|
||||
}
|
||||
|
||||
void ComboBox::SetTextLabel(const wxString& label)
|
||||
{
|
||||
TextInput::SetLabel(label);
|
||||
|
||||
@@ -53,6 +53,9 @@ public:
|
||||
void SetLabel(const wxString &label) override;
|
||||
wxString GetLabel() const override;
|
||||
|
||||
int GetFlag(unsigned int n);
|
||||
void SetFlag(unsigned int n, int value);
|
||||
|
||||
void SetTextLabel(const wxString &label);
|
||||
wxString GetTextLabel() const;
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ public:
|
||||
wxString group{};
|
||||
wxString alias{};
|
||||
wxString tip{};
|
||||
int flag{0};
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user