mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-16 15:41:11 +02:00
Nyquist prompt updates
Based on Robert's and Steve's suggestions, I removed the "Clear" button, replaced FileDialog usage with wxFileDialog to restore extension suffixing, and escaped newlines in save settings so that chains work properly. I also attempted to locate the issue where code isn't being parsed and made a couple of changes, but I doubt I got it.
This commit is contained in:
@@ -61,26 +61,26 @@ public:
|
||||
virtual ~EffectAutomationParameters()
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool DoReadString(const wxString & key, wxString *pStr) const
|
||||
{
|
||||
return wxFileConfig::DoReadString(NormalizeName(key), pStr);
|
||||
}
|
||||
|
||||
virtual bool DoReadLong(const wxString & key, long *pl) const
|
||||
{
|
||||
return wxFileConfig::DoReadLong(NormalizeName(key), pl);
|
||||
}
|
||||
|
||||
virtual bool DoWriteString(const wxString & key, const wxString & szValue)
|
||||
{
|
||||
return wxFileConfig::DoWriteString(NormalizeName(key), szValue);
|
||||
}
|
||||
|
||||
virtual bool DoWriteLong(const wxString & key, long lValue)
|
||||
{
|
||||
return wxFileConfig::DoWriteLong(NormalizeName(key), lValue);
|
||||
}
|
||||
|
||||
virtual bool DoReadString(const wxString & key, wxString *pStr) const
|
||||
{
|
||||
return wxFileConfig::DoReadString(NormalizeName(key), pStr);
|
||||
}
|
||||
|
||||
virtual bool DoReadLong(const wxString & key, long *pl) const
|
||||
{
|
||||
return wxFileConfig::DoReadLong(NormalizeName(key), pl);
|
||||
}
|
||||
|
||||
virtual bool DoWriteString(const wxString & key, const wxString & szValue)
|
||||
{
|
||||
return wxFileConfig::DoWriteString(NormalizeName(key), szValue);
|
||||
}
|
||||
|
||||
virtual bool DoWriteLong(const wxString & key, long lValue)
|
||||
{
|
||||
return wxFileConfig::DoWriteLong(NormalizeName(key), lValue);
|
||||
}
|
||||
|
||||
bool ReadFloat(const wxString & key, float *pf) const
|
||||
{
|
||||
@@ -259,12 +259,14 @@ public:
|
||||
{
|
||||
val.Replace(wxT("\\"), wxT("\\\\"), true);
|
||||
val.Replace(wxT("\""), wxT("\\\""), true);
|
||||
val.Replace(wxT("\n"), wxT("\\n"), true);
|
||||
|
||||
return val;
|
||||
}
|
||||
|
||||
wxString Unescape(wxString val)
|
||||
{
|
||||
val.Replace(wxT("\\n"), wxT("\n"), true);
|
||||
val.Replace(wxT("\\\""), wxT("\""), true);
|
||||
val.Replace(wxT("\\\\"), wxT("\\"), true);
|
||||
|
||||
|
Reference in New Issue
Block a user