Fix typo in class name.

pull/733/head
Mooneer Salem 2024-07-13 07:04:47 -07:00
parent 8ec15b0deb
commit 2a77a692a5
4 changed files with 10 additions and 10 deletions

View File

@ -23,7 +23,7 @@
#include <wx/sizer.h>
#include "monitor_volume_adj.h"
MontiorVolumeAdjPopup::MontiorVolumeAdjPopup( wxWindow* parent, ConfigurationDataElement<float>& configVal )
MonitorVolumeAdjPopup::MonitorVolumeAdjPopup( wxWindow* parent, ConfigurationDataElement<float>& configVal )
: wxPopupTransientWindow(parent)
, configVal_(configVal)
{
@ -39,7 +39,7 @@ MontiorVolumeAdjPopup::MontiorVolumeAdjPopup( wxWindow* parent, ConfigurationDat
Layout();
// Link event handlers
volumeSlider_->Connect(wxEVT_SLIDER, wxCommandEventHandler(MontiorVolumeAdjPopup::OnSliderAdjusted), NULL, this);
volumeSlider_->Connect(wxEVT_SLIDER, wxCommandEventHandler(MonitorVolumeAdjPopup::OnSliderAdjusted), NULL, this);
// Make popup show up to the left of (and above) mouse cursor position
wxPoint pt = wxGetMousePosition();
@ -48,12 +48,12 @@ MontiorVolumeAdjPopup::MontiorVolumeAdjPopup( wxWindow* parent, ConfigurationDat
SetPosition( pt );
}
MontiorVolumeAdjPopup::~MontiorVolumeAdjPopup()
MonitorVolumeAdjPopup::~MonitorVolumeAdjPopup()
{
// TBD
}
void MontiorVolumeAdjPopup::OnSliderAdjusted(wxCommandEvent& event)
void MonitorVolumeAdjPopup::OnSliderAdjusted(wxCommandEvent& event)
{
configVal_ = volumeSlider_->GetValue();
}

View File

@ -28,13 +28,13 @@
#include "config/ConfigurationDataElement.h"
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=
// Class MontiorVolumeAdjPopup
// Class MonitorVolumeAdjPopup
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=
class MontiorVolumeAdjPopup : public wxPopupTransientWindow
class MonitorVolumeAdjPopup : public wxPopupTransientWindow
{
public:
MontiorVolumeAdjPopup( wxWindow* parent, ConfigurationDataElement<float>& configVal );
~MontiorVolumeAdjPopup();
MonitorVolumeAdjPopup( wxWindow* parent, ConfigurationDataElement<float>& configVal );
~MonitorVolumeAdjPopup();
protected:
void OnSliderAdjusted(wxCommandEvent& event);

View File

@ -842,7 +842,7 @@ void MainFrame::OnSetMonitorTxAudio( wxCommandEvent& event )
void MainFrame::OnSetMonitorTxAudioVol( wxCommandEvent& event )
{
auto popup = new MontiorVolumeAdjPopup(this, wxGetApp().appConfiguration.monitorTxAudioVol);
auto popup = new MonitorVolumeAdjPopup(this, wxGetApp().appConfiguration.monitorTxAudioVol);
popup->Popup();
}

View File

@ -178,7 +178,7 @@ void MainFrame::OnSetMonitorVKAudio( wxCommandEvent& event )
void MainFrame::OnSetMonitorVKAudioVol( wxCommandEvent& event )
{
auto popup = new MontiorVolumeAdjPopup(this, wxGetApp().appConfiguration.monitorVoiceKeyerAudioVol);
auto popup = new MonitorVolumeAdjPopup(this, wxGetApp().appConfiguration.monitorVoiceKeyerAudioVol);
popup->Popup();
}