Rename SoundView::Refresh to SoundView::Update.
The former is already used by wxDialog but with a different signature.
--- a/src/in_ncsf/SoundView.cpp
+++ b/src/in_ncsf/SoundView.cpp
@@ -181,7 +181,13 @@
evt.RequestMore();
}
-void SoundView::Refresh()
+void SoundView::SyncToConfig()
+{
+ for (int i = 0; i < 16; ++i)
+ this->channelData[i].muteCheckBox->SetValue(this->config->mutes[i]);
+}
+
+void SoundView::Update()
{
auto ncsfPlayer = this->player;
std::string buf;
@@ -271,9 +277,3 @@
}
}
-void SoundView::SyncToConfig()
-{
- for (int i = 0; i < 16; ++i)
- this->channelData[i].muteCheckBox->SetValue(this->config->mutes[i]);
-}
-
--- a/src/in_ncsf/SoundView.h
+++ b/src/in_ncsf/SoundView.h
@@ -55,8 +55,8 @@
public:
SoundView(wxWindow *parent, XSFConfig_NCSF *ncsfConfig, XSFPlayer_NCSF *ncsfPlayer);
void OnIdle(wxIdleEvent &evt);
- void Refresh();
void SyncToConfig();
+ void Update();
XSFConfig_NCSF *config;
XSFPlayer_NCSF *player;