Audacity 3.2.0
Namespaces | Functions
EffectManager.cpp File Reference
#include "EffectManager.h"
#include "ConfigInterface.h"
#include "Effect.h"
#include "PluginManager.h"
#include <algorithm>
Include dependency graph for EffectManager.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{EffectManager.cpp}
 

Functions

bool HasCurrentSettings (EffectPlugin &host)
 
bool HasFactoryDefaults (EffectPlugin &host)
 
RegistryPaths GetUserPresets (EffectPlugin &host)
 
void anonymous_namespace{EffectManager.cpp}::InitializePreset (EffectSettingsManager &manager, EffectSettings &settings)
 
std::pair< ComponentInterface *, EffectSettingsanonymous_namespace{EffectManager.cpp}::LoadComponent (const PluginID &ID)
 

Function Documentation

◆ GetUserPresets()

RegistryPaths GetUserPresets ( EffectPlugin host)

Definition at line 112 of file EffectManager.cpp.

113{
114 RegistryPaths presets;
116 UserPresetsGroup({}), presets);
117 std::sort( presets.begin(), presets.end() );
118 return presets;
119}
RegistryPath UserPresetsGroup(const RegistryPath &name)
Compute part of a registry path, given a name which may be empty.
std::vector< RegistryPath > RegistryPaths
Definition: Identifier.h:219
virtual const EffectSettingsManager & GetDefinition() const =0
bool GetConfigSubgroups(const EffectDefinitionInterface &ident, PluginSettings::ConfigurationType type, const RegistryPath &group, RegistryPaths &subgroups)

References PluginSettings::GetConfigSubgroups(), EffectPlugin::GetDefinition(), PluginSettings::Private, and UserPresetsGroup().

Referenced by EffectPresetsDialog::EffectPresetsDialog(), and EffectManager::HasPresets().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HasCurrentSettings()

bool HasCurrentSettings ( EffectPlugin host)

Definition at line 100 of file EffectManager.cpp.

101{
104}
const RegistryPath & CurrentSettingsGroup()
Component of a configuration key path, for last-used destructive settings.
bool HasConfigGroup(const EffectDefinitionInterface &ident, PluginSettings::ConfigurationType type, const RegistryPath &group)

References CurrentSettingsGroup(), EffectPlugin::GetDefinition(), PluginSettings::HasConfigGroup(), and PluginSettings::Private.

Referenced by EffectPresetsDialog::EffectPresetsDialog(), EffectManager::GetDefaultPreset(), and EffectManager::HasPresets().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HasFactoryDefaults()

bool HasFactoryDefaults ( EffectPlugin host)

Definition at line 106 of file EffectManager.cpp.

107{
110}
const RegistryPath & FactoryDefaultsGroup()
Component of a configuration key path, for default state of MakeSettings()

References FactoryDefaultsGroup(), EffectPlugin::GetDefinition(), PluginSettings::HasConfigGroup(), and PluginSettings::Private.

Referenced by EffectPresetsDialog::EffectPresetsDialog(), EffectManager::GetDefaultPreset(), and EffectManager::HasPresets().

Here is the call graph for this function:
Here is the caller graph for this function: