 |
Sayonara Player
|
21 #ifndef EQUALIZER_SETTING_H_
22 #define EQUALIZER_SETTING_H_
24 #include "Utils/Pimpl.h"
25 #include "Utils/Settings/SettingConvertible.h"
42 using ValueArray=std::array<int, 10>;
81 int value(
int idx)
const;
bool loadFromString(const QString &str) override
converts a string to a EQ_Setting. If not possible a default constructed EQ_Setting is returned
void set_value(int idx, int val)
set specific value for band
bool operator==(const EqualizerSetting &s) const
Compares the case insensitive string representation of two settings.
Definition: EngineUtils.h:33
bool is_default() const
append a value. If there are already more than 10 values, nothing happens
bool is_default_name() const
checks, if the preset name belongs to a default preset
Definition: SettingConvertible.h:28
The EQ_Setting class. Container for Equalizer configurations.
Definition: EqualizerSetting.h:35
QString name() const
get name of setting
static ValueArray get_default_values(const QString &name)
get default values for a specific preset. If the preset does not have default values,...
int value(int idx) const
get specific value for a band idx. if idx is not valid, 0 is returned
void set_name(const QString &name)
set name of setting
ValueArray values() const
get database values for setting
void set_values(const ValueArray &values)
set all values for a specific index. If there are more than 10 values, list is stripped....
QString toString() const override
converts EQ_Setting to string
static QList< EqualizerSetting > get_defaults()
get default settings