mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-03 15:43:50 +01:00
Make RecordingPrefs.cpp independent of Warning
This commit is contained in:
@@ -326,3 +326,8 @@ bool EnumSetting::WriteInt( int code ) // you flush gPrefs afterward
|
|||||||
return false;
|
return false;
|
||||||
return Write( mSymbols[index].Internal() );
|
return Write( mSymbols[index].Internal() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxString WarningDialogKey(const wxString &internalDialogName)
|
||||||
|
{
|
||||||
|
return wxT("/Warnings/") + internalDialogName;
|
||||||
|
}
|
||||||
|
|||||||
@@ -191,4 +191,9 @@ private:
|
|||||||
std::unique_ptr<Impl> mpImpl;
|
std::unique_ptr<Impl> mpImpl;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// Return the config file key associated with a warning dialog identified
|
||||||
|
/// by internalDialogName. When the box is checked, the value at the key
|
||||||
|
/// becomes false.
|
||||||
|
wxString WarningDialogKey(const wxString &internalDialogName);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -31,8 +31,6 @@
|
|||||||
#include "../Prefs.h"
|
#include "../Prefs.h"
|
||||||
#include "../ShuttleGui.h"
|
#include "../ShuttleGui.h"
|
||||||
|
|
||||||
#include "../widgets/Warning.h"
|
|
||||||
|
|
||||||
using std::min;
|
using std::min;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|||||||
@@ -109,8 +109,3 @@ int ShowWarningDialog(wxWindow *parent,
|
|||||||
gPrefs->Flush();
|
gPrefs->Flush();
|
||||||
return wxID_OK;
|
return wxID_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString WarningDialogKey(const wxString &internalDialogName)
|
|
||||||
{
|
|
||||||
return wxT("/Warnings/") + internalDialogName;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -30,9 +30,4 @@ int ShowWarningDialog(wxWindow *parent,
|
|||||||
// This message appears by the checkbox:
|
// This message appears by the checkbox:
|
||||||
const wxString &footer = DefaultWarningFooter());
|
const wxString &footer = DefaultWarningFooter());
|
||||||
|
|
||||||
/// Return the config file key associated with a warning dialog identified
|
|
||||||
/// by internalDialogName. When the box is checked, the value at the key
|
|
||||||
/// becomes false.
|
|
||||||
wxString WarningDialogKey(const wxString &internalDialogName);
|
|
||||||
|
|
||||||
#endif // __AUDACITY_WARNING__
|
#endif // __AUDACITY_WARNING__
|
||||||
|
|||||||
Reference in New Issue
Block a user