Audacity  3.0.3
Public Member Functions | Private Member Functions | Private Attributes | List of all members
EffectNoiseReduction::Dialog Class Referencefinal

Dialog used with EffectNoiseReduction. More...

Inheritance diagram for EffectNoiseReduction::Dialog:
[legend]
Collaboration diagram for EffectNoiseReduction::Dialog:
[legend]

Public Member Functions

 Dialog (EffectNoiseReduction *effect, Settings *settings, wxWindow *parent, bool bHasProfile, bool bAllowTwiddleSettings)
 
void PopulateOrExchange (ShuttleGui &S) override
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
const SettingsGetTempSettings () const
 
- Public Member Functions inherited from EffectDialog
 EffectDialog (wxWindow *parent, const TranslatableString &title, int type=0, int flags=wxDEFAULT_DIALOG_STYLE, int additionalButtons=0)
 
void Init ()
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
bool Validate () override
 
virtual void OnOk (wxCommandEvent &evt)
 
- Public Member Functions inherited from wxDialogWrapper
 wxDialogWrapper ()
 
 wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
 
bool Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog"))
 
void SetTitle (const TranslatableString &title)
 
void SetLabel (const TranslatableString &title)
 
void SetName (const TranslatableString &title)
 
void SetName ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxDialog >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Private Member Functions

void DisableControlsIfIsolating ()
 
void OnGetProfile (wxCommandEvent &event)
 
void OnNoiseReductionChoice (wxCommandEvent &event)
 
void OnPreview (wxCommandEvent &event) override
 
void OnReduceNoise (wxCommandEvent &event)
 
void OnCancel (wxCommandEvent &event)
 
void OnHelp (wxCommandEvent &event)
 
void OnText (wxCommandEvent &event)
 
void OnSlider (wxCommandEvent &event)
 

Private Attributes

EffectNoiseReductionm_pEffect
 
EffectNoiseReduction::Settingsm_pSettings
 
EffectNoiseReduction::Settings mTempSettings
 
bool mbHasProfile
 
bool mbAllowTwiddleSettings
 
wxRadioButton * mKeepSignal
 
wxRadioButton * mResidue
 

Detailed Description

Dialog used with EffectNoiseReduction.

Definition at line 345 of file NoiseReduction.cpp.

Constructor & Destructor Documentation

◆ Dialog()

EffectNoiseReduction::Dialog::Dialog ( EffectNoiseReduction effect,
EffectNoiseReduction::Settings settings,
wxWindow *  parent,
bool  bHasProfile,
bool  bAllowTwiddleSettings 
)

Definition at line 1347 of file NoiseReduction.cpp.

1351  : EffectDialog( parent, XO("Noise Reduction"), EffectTypeProcess,wxDEFAULT_DIALOG_STYLE, eHelpButton )
1352  , m_pEffect(effect)
1353  , m_pSettings(settings) // point to
1354  , mTempSettings(*settings) // copy
1355  , mbHasProfile(bHasProfile)
1356  , mbAllowTwiddleSettings(bAllowTwiddleSettings)
1357  // NULL out the control members until the controls are created.
1358  , mKeepSignal(NULL)
1359 #ifdef ISOLATE_CHOICE
1360  , mKeepNoise(NULL)
1361 #endif
1362 #ifdef RESIDUE_CHOICE
1363  , mResidue(NULL)
1364 #endif
1365 {
1367 
1368  wxButton *const pButtonPreview =
1369  (wxButton *)wxWindow::FindWindowById(ID_EFFECT_PREVIEW, this);
1370  wxButton *const pButtonReduceNoise =
1371  (wxButton *)wxWindow::FindWindowById(wxID_OK, this);
1372 
1374  pButtonPreview->Enable(!mbAllowTwiddleSettings);
1375  pButtonReduceNoise->SetFocus();
1376  }
1377  else {
1378  pButtonPreview->Enable(false);
1379  pButtonReduceNoise->Enable(false);
1380  }
1381 }

References ID_EFFECT_PREVIEW, and EffectDialog::Init().

Here is the call graph for this function:

Member Function Documentation

◆ DisableControlsIfIsolating()

void EffectNoiseReduction::Dialog::DisableControlsIfIsolating ( )
private

Definition at line 1383 of file NoiseReduction.cpp.

1384 {
1385  // If Isolate is chosen, disable controls that define
1386  // "what to do with noise" rather than "what is noise."
1387  // Else, enable them.
1388  // This does NOT include sensitivity, NEW or old, nor
1389  // the choice of window functions, size, or step.
1390  // The method choice is not included, because it affects
1391  // which sensitivity slider is operative, and that is part
1392  // of what defines noise.
1393 
1394  static const int toDisable[] = {
1396  ID_GAIN_TEXT,
1397 
1399  ID_FREQ_TEXT,
1400 
1401 #ifdef ATTACK_AND_RELEASE
1402  ID_ATTACK_TIME_SLIDER,
1403  ID_ATTACK_TIME_TEXT,
1404 
1405  ID_RELEASE_TIME_SLIDER,
1406  ID_RELEASE_TIME_TEXT,
1407 #endif
1408  };
1409  static const auto nToDisable = sizeof(toDisable) / sizeof(toDisable[0]);
1410 
1411  bool bIsolating =
1412 #ifdef ISOLATE_CHOICE
1413  mKeepNoise->GetValue();
1414 #else
1415  false;
1416 #endif
1417  for (auto ii = nToDisable; ii--;)
1418  wxWindow::FindWindowById(toDisable[ii], this)->Enable(!bIsolating);
1419 }

References ID_FREQ_SLIDER, ID_FREQ_TEXT, ID_GAIN_SLIDER, and ID_GAIN_TEXT.

◆ GetTempSettings()

const Settings& EffectNoiseReduction::Dialog::GetTempSettings ( ) const
inline

Definition at line 359 of file NoiseReduction.cpp.

360  { return mTempSettings; }

References mTempSettings.

Referenced by EffectNoiseReduction::Settings::PromptUser().

Here is the caller graph for this function:

◆ OnCancel()

void EffectNoiseReduction::Dialog::OnCancel ( wxCommandEvent &  event)
private

Definition at line 1491 of file NoiseReduction.cpp.

1492 {
1493  EndModal(0);
1494 }

◆ OnGetProfile()

void EffectNoiseReduction::Dialog::OnGetProfile ( wxCommandEvent &  event)
private

Definition at line 1435 of file NoiseReduction.cpp.

1436 {
1437  // Project has not be changed so skip pushing state
1439 
1440  if (!TransferDataFromWindow())
1441  return;
1442 
1443  // Return code distinguishes this first step from the actual effect
1444  EndModal(1);
1445 }

References EffectManager::Get(), EffectManager::SetSkipStateFlag(), and Effect::TransferDataFromWindow().

Here is the call graph for this function:

◆ OnHelp()

void EffectNoiseReduction::Dialog::OnHelp ( wxCommandEvent &  event)
private

Definition at line 1496 of file NoiseReduction.cpp.

1497 {
1498  HelpSystem::ShowHelp(this, "Noise_Reduction", true);
1499 }

References HelpSystem::ShowHelp().

Here is the call graph for this function:

◆ OnNoiseReductionChoice()

void EffectNoiseReduction::Dialog::OnNoiseReductionChoice ( wxCommandEvent &  event)
private

Definition at line 1448 of file NoiseReduction.cpp.

1449 {
1450  if (mKeepSignal->GetValue())
1452 #ifdef ISOLATE_CHOICE
1453  else if (mKeepNoise->GetValue())
1455 #endif
1456 #ifdef RESIDUE_CHOICE
1457  else
1459 #endif
1461 }

References anonymous_namespace{NoiseReduction.cpp}::NRC_ISOLATE_NOISE, anonymous_namespace{NoiseReduction.cpp}::NRC_LEAVE_RESIDUE, and anonymous_namespace{NoiseReduction.cpp}::NRC_REDUCE_NOISE.

◆ OnPreview()

void EffectNoiseReduction::Dialog::OnPreview ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from EffectDialog.

Definition at line 1470 of file NoiseReduction.cpp.

1471 {
1472  if (!TransferDataFromWindow())
1473  return;
1474 
1475  // Save & restore parameters around Preview, because we didn't do OK.
1476  auto cleanup = valueRestorer( *m_pSettings );
1478  m_pSettings->mDoProfile = false;
1479 
1480  m_pEffect->Preview( false );
1481 }

References Effect::TransferDataFromWindow(), and valueRestorer().

Here is the call graph for this function:

◆ OnReduceNoise()

void EffectNoiseReduction::Dialog::OnReduceNoise ( wxCommandEvent &  event)
private

Definition at line 1483 of file NoiseReduction.cpp.

1484 {
1485  if (!TransferDataFromWindow())
1486  return;
1487 
1488  EndModal(2);
1489 }

References Effect::TransferDataFromWindow().

Here is the call graph for this function:

◆ OnSlider()

void EffectNoiseReduction::Dialog::OnSlider ( wxCommandEvent &  event)
private

Definition at line 1695 of file NoiseReduction.cpp.

1696 {
1697  int id = event.GetId();
1698  int idx = (id - FIRST_SLIDER) / 2;
1699  const ControlInfo &info = controlInfo()[idx];
1700  wxSlider* slider =
1701  static_cast<wxSlider*>(wxWindow::FindWindowById(id, this));
1702  wxTextCtrl* text =
1703  static_cast<wxTextCtrl*>(wxWindow::FindWindowById(id + 1, this));
1704  double &field = mTempSettings.*(info.field);
1705 
1706  field = info.Value(slider->GetValue());
1707  text->SetValue(info.Text(field));
1708 }

References anonymous_namespace{NoiseReduction.cpp}::controlInfo(), field, and FIRST_SLIDER.

Here is the call graph for this function:

◆ OnText()

void EffectNoiseReduction::Dialog::OnText ( wxCommandEvent &  event)
private

Definition at line 1680 of file NoiseReduction.cpp.

1681 {
1682  int id = event.GetId();
1683  int idx = (id - FIRST_SLIDER - 1) / 2;
1684  const ControlInfo &info = controlInfo()[idx];
1685  wxTextCtrl* text =
1686  static_cast<wxTextCtrl*>(wxWindow::FindWindowById(id, this));
1687  wxSlider* slider =
1688  static_cast<wxSlider*>(wxWindow::FindWindowById(id - 1, this));
1689  double &field = mTempSettings.*(info.field);
1690 
1691  text->GetValue().ToDouble(&field);
1692  slider->SetValue(info.SliderSetting(field));
1693 }

References anonymous_namespace{NoiseReduction.cpp}::controlInfo(), field, and FIRST_SLIDER.

Here is the call graph for this function:

◆ PopulateOrExchange()

void EffectNoiseReduction::Dialog::PopulateOrExchange ( ShuttleGui S)
overridevirtual

This is a virtual function which will be overridden to provide the actual parameters that we want for each kind of dialog.

Reimplemented from EffectDialog.

Definition at line 1501 of file NoiseReduction.cpp.

1502 {
1503  S.StartStatic(XO("Step 1"));
1504  {
1505  S.AddVariableText(XO(
1506 "Select a few seconds of just noise so Audacity knows what to filter out,\nthen click Get Noise Profile:"));
1507  //m_pButton_GetProfile =
1508  S.Id(ID_BUTTON_GETPROFILE).AddButton(XXO("&Get Noise Profile"));
1509  }
1510  S.EndStatic();
1511 
1512  S.StartStatic(XO("Step 2"));
1513  {
1514  S.AddVariableText(XO(
1515 "Select all of the audio you want filtered, choose how much noise you want\nfiltered out, and then click 'OK' to reduce noise.\n"));
1516 
1517  S.StartMultiColumn(3, wxEXPAND);
1518  S.SetStretchyCol(2);
1519  {
1520  for (int id = FIRST_SLIDER; id < END_OF_BASIC_SLIDERS; id += 2) {
1521  const ControlInfo &info = controlInfo()[(id - FIRST_SLIDER) / 2];
1522  info.CreateControls(id, S);
1523  }
1524  }
1525  S.EndMultiColumn();
1526 
1527  S.StartMultiColumn(
1528  2
1529 #ifdef RESIDUE_CHOICE
1530  +1
1531 #endif
1532 #ifdef ISOLATE_CHOICE
1533  +1
1534 #endif
1535  ,
1536  wxALIGN_CENTER_HORIZONTAL);
1537  {
1538  S.AddPrompt(XXO("Noise:"));
1540  /* i18n-hint: Translate differently from "Residue" ! */
1541  .AddRadioButton(XXO("Re&duce"));
1542 #ifdef ISOLATE_CHOICE
1543  mKeepNoise = S.Id(ID_RADIOBUTTON_KEEPNOISE)
1544  .AddRadioButtonToGroup(XXO("&Isolate"));
1545 #endif
1546 #ifdef RESIDUE_CHOICE
1548  /* i18n-hint: Means the difference between effect and original sound. Translate differently from "Reduce" ! */
1549  .AddRadioButtonToGroup(XXO("Resid&ue"));
1550 #endif
1551  }
1552  S.EndMultiColumn();
1553  }
1554  S.EndStatic();
1555 
1556 
1557 #ifdef ADVANCED_SETTINGS
1558  S.StartStatic(XO("Advanced Settings"));
1559  {
1560  S.StartMultiColumn(2);
1561  {
1562  S.TieChoice(XXO("&Window types:"),
1564  []{
1565  TranslatableStrings windowTypeChoices;
1566  for (size_t ii = 0; ii < WT_N_WINDOW_TYPES; ++ii)
1567  windowTypeChoices.push_back(windowTypesInfo[ii].name);
1568  return windowTypeChoices;
1569  }()
1570  );
1571 
1572  S.TieChoice(XXO("Window si&ze:"),
1574  {
1575  XO("8") ,
1576  XO("16") ,
1577  XO("32") ,
1578  XO("64") ,
1579  XO("128") ,
1580  XO("256") ,
1581  XO("512") ,
1582  XO("1024") ,
1583  XO("2048 (default)") ,
1584  XO("4096") ,
1585  XO("8192") ,
1586  XO("16384") ,
1587  }
1588  );
1589 
1590  S.TieChoice(XXO("S&teps per window:"),
1592  {
1593  XO("2") ,
1594  XO("4 (default)") ,
1595  XO("8") ,
1596  XO("16") ,
1597  XO("32") ,
1598  XO("64") ,
1599  }
1600  );
1601 
1602  S.Id(ID_CHOICE_METHOD)
1603  .TieChoice(XXO("Discrimination &method:"),
1605  []{
1606  TranslatableStrings methodChoices;
1607  auto nn = DM_N_METHODS;
1608 #ifndef OLD_METHOD_AVAILABLE
1609  --nn;
1610 #endif
1611  for (auto ii = 0; ii < nn; ++ii)
1612  methodChoices.push_back(discriminationMethodInfo[ii].name);
1613  return methodChoices;
1614  }());
1615  }
1616  S.EndMultiColumn();
1617 
1618  S.StartMultiColumn(3, wxEXPAND);
1619  S.SetStretchyCol(2);
1620  {
1621  for (int id = END_OF_BASIC_SLIDERS; id < END_OF_ADVANCED_SLIDERS; id += 2) {
1622  const ControlInfo &info = controlInfo()[(id - FIRST_SLIDER) / 2];
1623  info.CreateControls(id, S);
1624  }
1625  }
1626  S.EndMultiColumn();
1627  }
1628  S.EndStatic();
1629 #endif
1630 }

References ShuttleGuiBase::AddButton(), ShuttleGuiBase::AddPrompt(), ShuttleGuiBase::AddRadioButton(), ShuttleGuiBase::AddRadioButtonToGroup(), ShuttleGuiBase::AddVariableText(), anonymous_namespace{NoiseReduction.cpp}::controlInfo(), anonymous_namespace{NoiseReduction.cpp}::ControlInfo::CreateControls(), anonymous_namespace{NoiseReduction.cpp}::discriminationMethodInfo, anonymous_namespace{NoiseReduction.cpp}::DM_N_METHODS, END_OF_BASIC_SLIDERS, ShuttleGuiBase::EndMultiColumn(), ShuttleGuiBase::EndStatic(), FIRST_SLIDER, ShuttleGui::Id(), ID_BUTTON_GETPROFILE, ID_RADIOBUTTON_KEEPNOISE, ID_RADIOBUTTON_KEEPSIGNAL, ID_RADIOBUTTON_RESIDUE, anonymous_namespace{NoiseReduction.cpp}::DiscriminationMethodInfo::name, anonymous_namespace{NoiseReduction.cpp}::WindowTypesInfo::name, RESIDUE_CHOICE, ShuttleGuiBase::SetStretchyCol(), ShuttleGuiBase::StartMultiColumn(), ShuttleGuiBase::StartStatic(), ShuttleGuiBase::TieChoice(), anonymous_namespace{NoiseReduction.cpp}::windowTypesInfo, anonymous_namespace{NoiseReduction.cpp}::WT_N_WINDOW_TYPES, XO, and XXO.

Here is the call graph for this function:

◆ TransferDataFromWindow()

bool EffectNoiseReduction::Dialog::TransferDataFromWindow ( )
override

Definition at line 1666 of file NoiseReduction.cpp.

1667 {
1668  if( !wxWindow::Validate() )
1669  return false;
1670  // Do the choice controls:
1672  return false;
1673 
1674  wxCommandEvent dummy;
1675  OnNoiseReductionChoice(dummy);
1676 
1678 }

References EffectDialog::TransferDataFromWindow().

Here is the call graph for this function:

◆ TransferDataToWindow()

bool EffectNoiseReduction::Dialog::TransferDataToWindow ( )
override

Definition at line 1632 of file NoiseReduction.cpp.

1633 {
1634  // Do the choice controls:
1636  return false;
1637 
1638  for (int id = FIRST_SLIDER; id < END_OF_SLIDERS; id += 2) {
1639  wxSlider* slider =
1640  static_cast<wxSlider*>(wxWindow::FindWindowById(id, this));
1641  wxTextCtrl* text =
1642  static_cast<wxTextCtrl*>(wxWindow::FindWindowById(id + 1, this));
1643  const ControlInfo &info = controlInfo()[(id - FIRST_SLIDER) / 2];
1644  const double field = mTempSettings.*(info.field);
1645  text->SetValue(info.Text(field));
1646  slider->SetValue(info.SliderSetting(field));
1647  }
1648 
1650 #ifdef ISOLATE_CHOICE
1651  mKeepNoise->SetValue(mTempSettings.mNoiseReductionChoice == NRC_ISOLATE_NOISE);
1652 #endif
1653 #ifdef RESIDUE_CHOICE
1655 #endif
1656 
1657  // Set the enabled states of controls
1659 #ifdef ADVANCED_SETTINGS
1660  EnableDisableSensitivityControls();
1661 #endif
1662 
1663  return true;
1664 }

References anonymous_namespace{NoiseReduction.cpp}::controlInfo(), END_OF_SLIDERS, field, FIRST_SLIDER, anonymous_namespace{NoiseReduction.cpp}::NRC_ISOLATE_NOISE, anonymous_namespace{NoiseReduction.cpp}::NRC_LEAVE_RESIDUE, anonymous_namespace{NoiseReduction.cpp}::NRC_REDUCE_NOISE, and EffectDialog::TransferDataToWindow().

Here is the call graph for this function:

Member Data Documentation

◆ m_pEffect

EffectNoiseReduction* EffectNoiseReduction::Dialog::m_pEffect
private

Definition at line 385 of file NoiseReduction.cpp.

◆ m_pSettings

EffectNoiseReduction::Settings* EffectNoiseReduction::Dialog::m_pSettings
private

Definition at line 386 of file NoiseReduction.cpp.

◆ mbAllowTwiddleSettings

bool EffectNoiseReduction::Dialog::mbAllowTwiddleSettings
private

Definition at line 390 of file NoiseReduction.cpp.

◆ mbHasProfile

bool EffectNoiseReduction::Dialog::mbHasProfile
private

Definition at line 389 of file NoiseReduction.cpp.

◆ mKeepSignal

wxRadioButton* EffectNoiseReduction::Dialog::mKeepSignal
private

Definition at line 393 of file NoiseReduction.cpp.

◆ mResidue

wxRadioButton* EffectNoiseReduction::Dialog::mResidue
private

Definition at line 398 of file NoiseReduction.cpp.

◆ mTempSettings

EffectNoiseReduction::Settings EffectNoiseReduction::Dialog::mTempSettings
private

Definition at line 387 of file NoiseReduction.cpp.

Referenced by GetTempSettings().


The documentation for this class was generated from the following file:
END_OF_BASIC_SLIDERS
@ END_OF_BASIC_SLIDERS
Definition: NoiseReduction.cpp:1191
anonymous_namespace{NoiseReduction.cpp}::NRC_REDUCE_NOISE
@ NRC_REDUCE_NOISE
Definition: NoiseReduction.cpp:158
field
#define field(n, t)
Definition: ImportAUP.cpp:167
anonymous_namespace{NoiseReduction.cpp}::NRC_LEAVE_RESIDUE
@ NRC_LEAVE_RESIDUE
Definition: NoiseReduction.cpp:160
anonymous_namespace{NoiseReduction.cpp}::DiscriminationMethodInfo::name
const TranslatableString name
Definition: NoiseReduction.cpp:106
valueRestorer
ValueRestorer< T > valueRestorer(T &var)
inline functions provide convenient parameter type deduction
Definition: MemoryX.h:354
EffectNoiseReduction::Settings::mDoProfile
bool mDoProfile
Definition: NoiseReduction.cpp:222
EffectTypeProcess
@ EffectTypeProcess
Definition: EffectInterface.h:59
EffectNoiseReduction::Settings::mNoiseReductionChoice
int mNoiseReductionChoice
Definition: NoiseReduction.cpp:237
EffectDialog::Init
void Init()
Definition: EffectUI.cpp:2055
ID_GAIN_TEXT
@ ID_GAIN_TEXT
Definition: NoiseReduction.cpp:1175
TranslatableStrings
std::vector< TranslatableString > TranslatableStrings
Definition: TranslatableString.h:295
eHelpButton
@ eHelpButton
Definition: ShuttleGui.h:604
anonymous_namespace{NoiseReduction.cpp}::windowTypesInfo
const struct anonymous_namespace{NoiseReduction.cpp}::WindowTypesInfo windowTypesInfo[WT_N_WINDOW_TYPES]
EffectNoiseReduction::Dialog::OnNoiseReductionChoice
void OnNoiseReductionChoice(wxCommandEvent &event)
Definition: NoiseReduction.cpp:1448
EffectNoiseReduction::Settings::mWindowSizeChoice
int mWindowSizeChoice
Definition: NoiseReduction.cpp:241
ID_RADIOBUTTON_KEEPSIGNAL
@ ID_RADIOBUTTON_KEEPSIGNAL
Definition: NoiseReduction.cpp:1161
ShuttleGuiBase::AddRadioButtonToGroup
wxRadioButton * AddRadioButtonToGroup(const TranslatableString &Prompt, int selector=1, int initValue=0)
Definition: ShuttleGui.cpp:574
XO
#define XO(s)
Definition: Internat.h:31
EffectDialog::EffectDialog
EffectDialog(wxWindow *parent, const TranslatableString &title, int type=0, int flags=wxDEFAULT_DIALOG_STYLE, int additionalButtons=0)
Definition: EffectUI.cpp:2044
EffectNoiseReduction::Dialog::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition: NoiseReduction.cpp:1666
EffectDialog::TransferDataToWindow
bool TransferDataToWindow() override
Definition: EffectUI.cpp:2091
ShuttleGuiBase::EndMultiColumn
void EndMultiColumn()
Definition: ShuttleGui.cpp:1238
EffectManager::Get
static EffectManager & Get()
Definition: EffectManager.cpp:42
ID_EFFECT_PREVIEW
#define ID_EFFECT_PREVIEW
Definition: Effect.h:549
HelpSystem::ShowHelp
static void ShowHelp(wxWindow *parent, const FilePath &localFileName, const URLString &remoteURL, bool bModal=false, bool alwaysDefaultBrowser=false)
Definition: HelpSystem.cpp:237
EffectNoiseReduction::Dialog::m_pSettings
EffectNoiseReduction::Settings * m_pSettings
Definition: NoiseReduction.cpp:386
anonymous_namespace{NoiseReduction.cpp}::WindowTypesInfo::name
const TranslatableString name
Definition: NoiseReduction.cpp:132
ID_FREQ_TEXT
@ ID_FREQ_TEXT
Definition: NoiseReduction.cpp:1189
EffectNoiseReduction::Dialog::mResidue
wxRadioButton * mResidue
Definition: NoiseReduction.cpp:398
ShuttleGui::Id
ShuttleGui & Id(int id)
Definition: ShuttleGui.cpp:2274
END_OF_SLIDERS
@ END_OF_SLIDERS
Definition: NoiseReduction.cpp:1200
ID_BUTTON_GETPROFILE
@ ID_BUTTON_GETPROFILE
Definition: NoiseReduction.cpp:1160
EffectManager::SetSkipStateFlag
void SetSkipStateFlag(bool flag)
Definition: EffectManager.cpp:214
XXO
#define XXO(s)
Definition: Internat.h:44
anonymous_namespace{NoiseReduction.cpp}::ControlInfo::CreateControls
void CreateControls(int id, ShuttleGui &S) const
Definition: NoiseReduction.cpp:1233
anonymous_namespace{NoiseReduction.cpp}::WT_N_WINDOW_TYPES
@ WT_N_WINDOW_TYPES
Definition: NoiseReduction.cpp:127
ShuttleGuiBase::StartMultiColumn
void StartMultiColumn(int nCols, int PositionFlags=wxALIGN_LEFT)
Definition: ShuttleGui.cpp:1229
EffectNoiseReduction::Settings::mMethod
int mMethod
Definition: NoiseReduction.cpp:243
EffectNoiseReduction::Dialog::DisableControlsIfIsolating
void DisableControlsIfIsolating()
Definition: NoiseReduction.cpp:1383
ID_RADIOBUTTON_KEEPNOISE
@ ID_RADIOBUTTON_KEEPNOISE
Definition: NoiseRemoval.cpp:596
anonymous_namespace{NoiseReduction.cpp}::NRC_ISOLATE_NOISE
@ NRC_ISOLATE_NOISE
Definition: NoiseReduction.cpp:159
EffectNoiseReduction::Settings::mStepsPerWindowChoice
int mStepsPerWindowChoice
Definition: NoiseReduction.cpp:242
ShuttleGuiBase::AddRadioButton
wxRadioButton * AddRadioButton(const TranslatableString &Prompt, int selector=0, int initValue=0)
Definition: ShuttleGui.cpp:568
anonymous_namespace{NoiseReduction.cpp}::DM_N_METHODS
@ DM_N_METHODS
Definition: NoiseReduction.cpp:101
Effect::Preview
virtual void Preview(bool dryOnly)
Definition: Effect.cpp:2295
ShuttleGuiBase::AddButton
wxButton * AddButton(const TranslatableString &Text, int PositionFlags=wxALIGN_CENTRE, bool setDefault=false)
Definition: ShuttleGui.cpp:360
ID_FREQ_SLIDER
@ ID_FREQ_SLIDER
Definition: NoiseReduction.cpp:1188
ShuttleGuiBase::StartStatic
wxStaticBox * StartStatic(const TranslatableString &Str, int iProp=0)
Definition: ShuttleGui.cpp:893
ID_RADIOBUTTON_RESIDUE
@ ID_RADIOBUTTON_RESIDUE
Definition: NoiseReduction.cpp:1166
RESIDUE_CHOICE
#define RESIDUE_CHOICE
Definition: NoiseReduction.cpp:82
anonymous_namespace{NoiseReduction.cpp}::discriminationMethodInfo
const struct anonymous_namespace{NoiseReduction.cpp}::DiscriminationMethodInfo discriminationMethodInfo[DM_N_METHODS]
anonymous_namespace{NoiseReduction.cpp}::controlInfo
const ControlInfo * controlInfo()
Definition: NoiseReduction.cpp:1270
EffectNoiseReduction::Settings::mWindowTypes
int mWindowTypes
Definition: NoiseReduction.cpp:240
EffectNoiseReduction::Settings::Validate
bool Validate(EffectNoiseReduction *effect) const
Definition: NoiseReduction.cpp:582
ShuttleGuiBase::AddPrompt
void AddPrompt(const TranslatableString &Prompt, int wrapWidth=0)
Right aligned text string.
Definition: ShuttleGui.cpp:238
ShuttleGuiBase::AddVariableText
wxStaticText * AddVariableText(const TranslatableString &Str, bool bCenter=false, int PositionFlags=0, int wrapWidth=0)
Definition: ShuttleGui.cpp:463
EffectNoiseReduction::Dialog::mbAllowTwiddleSettings
bool mbAllowTwiddleSettings
Definition: NoiseReduction.cpp:390
ShuttleGuiBase::EndStatic
void EndStatic()
Definition: ShuttleGui.cpp:922
settings
static Settings & settings()
Definition: TrackInfo.cpp:86
ShuttleGuiBase::SetStretchyCol
void SetStretchyCol(int i)
Used to modify an already placed FlexGridSizer to make a column stretchy.
Definition: ShuttleGui.cpp:202
EffectDialog::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition: EffectUI.cpp:2099
EffectNoiseReduction::Dialog::mKeepSignal
wxRadioButton * mKeepSignal
Definition: NoiseReduction.cpp:393
ShuttleGuiBase::TieChoice
wxChoice * TieChoice(const TranslatableString &Prompt, TranslatableString &Selected, const TranslatableStrings &choices)
Definition: ShuttleGui.cpp:1727
EffectNoiseReduction::Dialog::mbHasProfile
bool mbHasProfile
Definition: NoiseReduction.cpp:389
ID_GAIN_SLIDER
@ ID_GAIN_SLIDER
Definition: NoiseReduction.cpp:1174
EffectNoiseReduction::Dialog::m_pEffect
EffectNoiseReduction * m_pEffect
Definition: NoiseReduction.cpp:385
EffectNoiseReduction::Dialog::mTempSettings
EffectNoiseReduction::Settings mTempSettings
Definition: NoiseReduction.cpp:387
FIRST_SLIDER
@ FIRST_SLIDER
Definition: NoiseReduction.cpp:1203