Fix typo in class name.
parent
8ec15b0deb
commit
2a77a692a5
|
@ -23,7 +23,7 @@
|
||||||
#include <wx/sizer.h>
|
#include <wx/sizer.h>
|
||||||
#include "monitor_volume_adj.h"
|
#include "monitor_volume_adj.h"
|
||||||
|
|
||||||
MontiorVolumeAdjPopup::MontiorVolumeAdjPopup( wxWindow* parent, ConfigurationDataElement<float>& configVal )
|
MonitorVolumeAdjPopup::MonitorVolumeAdjPopup( wxWindow* parent, ConfigurationDataElement<float>& configVal )
|
||||||
: wxPopupTransientWindow(parent)
|
: wxPopupTransientWindow(parent)
|
||||||
, configVal_(configVal)
|
, configVal_(configVal)
|
||||||
{
|
{
|
||||||
|
@ -39,7 +39,7 @@ MontiorVolumeAdjPopup::MontiorVolumeAdjPopup( wxWindow* parent, ConfigurationDat
|
||||||
Layout();
|
Layout();
|
||||||
|
|
||||||
// Link event handlers
|
// 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
|
// Make popup show up to the left of (and above) mouse cursor position
|
||||||
wxPoint pt = wxGetMousePosition();
|
wxPoint pt = wxGetMousePosition();
|
||||||
|
@ -48,12 +48,12 @@ MontiorVolumeAdjPopup::MontiorVolumeAdjPopup( wxWindow* parent, ConfigurationDat
|
||||||
SetPosition( pt );
|
SetPosition( pt );
|
||||||
}
|
}
|
||||||
|
|
||||||
MontiorVolumeAdjPopup::~MontiorVolumeAdjPopup()
|
MonitorVolumeAdjPopup::~MonitorVolumeAdjPopup()
|
||||||
{
|
{
|
||||||
// TBD
|
// TBD
|
||||||
}
|
}
|
||||||
|
|
||||||
void MontiorVolumeAdjPopup::OnSliderAdjusted(wxCommandEvent& event)
|
void MonitorVolumeAdjPopup::OnSliderAdjusted(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
configVal_ = volumeSlider_->GetValue();
|
configVal_ = volumeSlider_->GetValue();
|
||||||
}
|
}
|
|
@ -28,13 +28,13 @@
|
||||||
#include "config/ConfigurationDataElement.h"
|
#include "config/ConfigurationDataElement.h"
|
||||||
|
|
||||||
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=
|
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=
|
||||||
// Class MontiorVolumeAdjPopup
|
// Class MonitorVolumeAdjPopup
|
||||||
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=
|
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=
|
||||||
class MontiorVolumeAdjPopup : public wxPopupTransientWindow
|
class MonitorVolumeAdjPopup : public wxPopupTransientWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MontiorVolumeAdjPopup( wxWindow* parent, ConfigurationDataElement<float>& configVal );
|
MonitorVolumeAdjPopup( wxWindow* parent, ConfigurationDataElement<float>& configVal );
|
||||||
~MontiorVolumeAdjPopup();
|
~MonitorVolumeAdjPopup();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void OnSliderAdjusted(wxCommandEvent& event);
|
void OnSliderAdjusted(wxCommandEvent& event);
|
||||||
|
|
|
@ -842,7 +842,7 @@ void MainFrame::OnSetMonitorTxAudio( wxCommandEvent& event )
|
||||||
|
|
||||||
void MainFrame::OnSetMonitorTxAudioVol( 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();
|
popup->Popup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -178,7 +178,7 @@ void MainFrame::OnSetMonitorVKAudio( wxCommandEvent& event )
|
||||||
|
|
||||||
void MainFrame::OnSetMonitorVKAudioVol( 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();
|
popup->Popup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue