1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Create ComponentInterface

It combines the old IdentInterface with the ParamsInterface, providing an identifier and parameters (if needed).
The main purpose of the change is to make the class hierarchy (as viewed via doxygen) much easier to follow.
This commit is contained in:
James Crook
2018-11-02 15:31:44 +00:00
parent c63dcbd3ca
commit 466e9c179e
161 changed files with 875 additions and 597 deletions

View File

@@ -32,7 +32,7 @@
//////////
static const IdentInterfaceSymbol choicesFormat[] = {
static const ComponentInterfaceSymbol choicesFormat[] = {
{ wxT("Format16Bit"), XO("16-bit") },
{ wxT("Format24Bit"), XO("24-bit") },
{ wxT("Format32BitFloat"), XO("32-bit float") }
@@ -56,7 +56,7 @@ static EncodedEnumSetting formatSetting{
};
//////////
static const IdentInterfaceSymbol choicesDither[] = {
static const ComponentInterfaceSymbol choicesDither[] = {
{ XO("None") },
{ XO("Rectangle") },
{ XO("Triangle") },

View File

@@ -56,7 +56,7 @@ namespace {
//////////
static const IdentInterfaceSymbol choicesView[] = {
static const ComponentInterfaceSymbol choicesView[] = {
{ XO("Waveform") },
{ wxT("WaveformDB"), XO("Waveform (dB)") },
{ XO("Spectrogram") }
@@ -75,7 +75,7 @@ class TracksViewModeSetting : public EncodedEnumSetting {
public:
TracksViewModeSetting(
const wxString &key,
const IdentInterfaceSymbol symbols[], size_t nSymbols,
const ComponentInterfaceSymbol symbols[], size_t nSymbols,
size_t defaultSymbol,
const int intValues[],
@@ -129,7 +129,7 @@ WaveTrack::WaveTrackDisplay TracksPrefs::ViewModeChoice()
}
//////////
static const IdentInterfaceSymbol choicesSampleDisplay[] = {
static const ComponentInterfaceSymbol choicesSampleDisplay[] = {
{ wxT("ConnectDots"), XO("Connect dots") },
{ wxT("StemPlot"), XO("Stem plot") }
};
@@ -157,7 +157,7 @@ WaveTrack::SampleDisplay TracksPrefs::SampleViewChoice()
}
//////////
static const IdentInterfaceSymbol choicesZoom[] = {
static const ComponentInterfaceSymbol choicesZoom[] = {
{ wxT("FitToWidth"), XO("Fit to Width") },
{ wxT("ZoomToSelection"), XO("Zoom to Selection") },
{ wxT("ZoomDefault"), XO("Zoom Default") },