|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Chord preset pack. More...
#include <src/gui/backend/backend/settings/chord_preset_pack.h>


Public Types | |
| using | NameT = QString |
Public Member Functions | |
| ChordPresetPack (QObject *parent=nullptr) | |
| ChordPresetPack (const NameT &name, bool is_standard, QObject *parent=nullptr) | |
| QString | getName () const |
| void | setName (const QString &name) |
| Q_SIGNAL void | nameChanged (const QString &name) |
| std::string | get_document_type () const |
| int | get_format_major_version () const |
| int | get_format_minor_version () const |
| bool | contains_name (const NameT &name) const |
| bool | contains_preset (const ChordPreset &pset) const |
| void | add_preset (const ChordPreset &pset) |
| void | delete_preset (const ChordPreset &pset) |
| int | get_preset_index (const ChordPreset &pset) const |
Data Fields | |
| NameT | name_ |
| Pack name. | |
| std::vector< ChordPreset * > | presets_ |
| Presets. | |
| bool | is_standard_ = false |
| Whether this is a standard preset pack (not user-defined). | |
Properties | |
| QString | name |
Friends | |
| void | init_from (ChordPresetPack &obj, const ChordPresetPack &other, utils::ObjectCloneType clone_type) |
| void | to_json (nlohmann::json &j, const ChordPresetPack &pack) |
| void | from_json (const nlohmann::json &j, ChordPresetPack &pack) |
Chord preset pack.
Definition at line 24 of file chord_preset_pack.h.
| using ChordPresetPack::NameT = QString |
Definition at line 31 of file chord_preset_pack.h.
|
inline |
Definition at line 48 of file chord_preset_pack.h.
|
inline |
Definition at line 49 of file chord_preset_pack.h.
|
inline |
Definition at line 50 of file chord_preset_pack.h.
|
inline |
Definition at line 65 of file chord_preset_pack.h.
|
inline |
Definition at line 42 of file chord_preset_pack.h.
|
friend |
Definition at line 84 of file chord_preset_pack.h.
|
friend |
Definition at line 78 of file chord_preset_pack.h.
| bool ChordPresetPack::is_standard_ = false |
Whether this is a standard preset pack (not user-defined).
Definition at line 105 of file chord_preset_pack.h.
| NameT ChordPresetPack::name_ |
Pack name.
Definition at line 99 of file chord_preset_pack.h.
| std::vector<ChordPreset *> ChordPresetPack::presets_ |
Presets.
Definition at line 102 of file chord_preset_pack.h.
|
readwrite |
Definition at line 27 of file chord_preset_pack.h.