wxFileDialog openFileDialog(
this,
wxT("Voice Keyer wave file"),
- wxGetApp().m_txtVoiceKeyerWaveFile,
+ wxGetApp().m_txtVoiceKeyerWaveFilePath,
wxEmptyString,
wxT("WAV files (*.wav)|*.wav"),
wxFD_SAVE
return; // the user changed their mind...
}
+ wxString fileName, extension;
+ wxGetApp().m_txtVoiceKeyerWaveFile = openFileDialog.GetPath();
+ wxFileName::SplitPath(wxGetApp().m_txtVoiceKeyerWaveFile, &wxGetApp().m_txtVoiceKeyerWaveFilePath, &fileName, &extension);
m_txtCtrlVoiceKeyerWaveFile->SetValue(wxGetApp().m_txtVoiceKeyerWaveFile);
}
wxGetApp().m_boolHalfDuplex = pConfig->ReadBool(wxT("/Rig/HalfDuplex"), true);
wxGetApp().m_leftChannelVoxTone = pConfig->ReadBool("/Rig/leftChannelVoxTone", false);
+ wxGetApp().m_txtVoiceKeyerWaveFilePath = pConfig->Read(wxT("/VoiceKeyer/WaveFilePath"), wxT(""));
wxGetApp().m_txtVoiceKeyerWaveFile = pConfig->Read(wxT("/VoiceKeyer/WaveFile"), wxT("voicekeyer.wav"));
wxGetApp().m_intVoiceKeyerRxPause = pConfig->Read(wxT("/VoiceKeyer/RxPause"), 10);
wxGetApp().m_intVoiceKeyerRepeats = pConfig->Read(wxT("/VoiceKeyer/Repeats"), 5);
pConfig->Write(wxT("/Audio/soundCard2OutDeviceNum"), g_soundCard2OutDeviceNum);
pConfig->Write(wxT("/Audio/soundCard2SampleRate"), g_soundCard2SampleRate );
+ pConfig->Write(wxT("/VoiceKeyer/WaveFilePath"), wxGetApp().m_txtVoiceKeyerWaveFilePath);
pConfig->Write(wxT("/VoiceKeyer/WaveFile"), wxGetApp().m_txtVoiceKeyerWaveFile);
pConfig->Write(wxT("/VoiceKeyer/RxPause"), wxGetApp().m_intVoiceKeyerRxPause);
pConfig->Write(wxT("/VoiceKeyer/Repeats"), wxGetApp().m_intVoiceKeyerRepeats);
bool m_boolHalfDuplex;
+ wxString m_txtVoiceKeyerWaveFilePath;
wxString m_txtVoiceKeyerWaveFile;
int m_intVoiceKeyerRxPause;
int m_intVoiceKeyerRepeats;