Fix typo in class name.
parent
8ec15b0deb
commit
2a77a692a5
|
@ -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();
|
||||
}
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue