Changing the physical printer ip and host_type can immediately change the button in the devicelist

This commit is contained in:
sunsets
2024-03-27 16:08:25 +08:00
parent 2387bc9cdb
commit 6485825ad8
3 changed files with 72 additions and 18 deletions

View File

@@ -79,6 +79,7 @@ public:
wxString getLabel() { return full_label; }
wxString getIPLabel() { return m_ip_text; }
bool getIsQIDI() { return m_is_QIDI; }
void SetBitMap(const wxBitmap &bitmap)
{
@@ -93,6 +94,12 @@ public:
Refresh();
}
//B58
void SetIsQIDI(const bool &text)
{
m_is_QIDI = text;
//Refresh();
}
wxString GetNameText()
{
return m_name_text;
@@ -219,6 +226,8 @@ private:
wxString m_state_text;
wxString m_progress_text;
std::function<void(wxMouseEvent &)> m_handlerl;
//B58
bool m_is_QIDI;
wxDECLARE_EVENT_TABLE();
};