ENH: support AMS switching for A series; clean class AMSSetting

jira: [STUDIO-14068] [STUDIO-14330]
Change-Id: I6281fbf56f3bf406ef28103998790a2a98c3f5c0
(cherry picked from commit 8ee02ec73076691c482ea6d089a49ea1c99ad10c)
This commit is contained in:
xin.zhang
2025-09-05 17:28:41 +08:00
committed by Noisyfox
parent 8534cf5fce
commit 491100a9d2
20 changed files with 748 additions and 169 deletions

View File

@@ -1636,9 +1636,6 @@ void AMSControl::auto_refill(wxCommandEvent& event)
void AMSControl::on_ams_setting_click(wxMouseEvent &event)
{
for (auto i = 0; i < m_ams_info.size(); i++) {
if (m_ams_info[i].ams_id == m_current_ams) { m_ams_info[i].current_action = AMSAction::AMS_ACTION_CALI; }
}
post_event(SimpleEvent(EVT_AMS_SETTINGS));
}

View File

@@ -230,7 +230,7 @@ int AMSinfo::get_humidity_display_idx() const
}
}
assert(false && "Invalid AMS type for humidity display");
//assert(false && "Invalid AMS type for humidity display");
return 1;
}

View File

@@ -75,3 +75,8 @@ void AnimaIcon::Enable()
{
if (m_bitmap) { m_bitmap->SetBitmap(m_image_enable); }
}
bool AnimaIcon::IsRunning() const
{
return m_timer ? m_timer->IsRunning() : false;
}

View File

@@ -13,6 +13,7 @@ public:
void Play();
void Stop();
void Enable();
bool IsPlaying() const { return IsRunning(); };
bool IsRunning() const;
private: