|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Chord preset pack manager. More...
#include <src/gui/backend/backend/settings/chord_preset_pack_manager.h>
Public Member Functions | |
| ChordPresetPackManager (bool scan_for_packs) | |
| Construct a new Chord Preset Pack Manager object. | |
| size_t | get_num_packs () const |
| ChordPresetPack * | get_pack_at (size_t idx) |
| ChordPresetPack * | get_pack_for_preset (const ChordPreset &pset) |
| int | get_pack_index (const ChordPresetPack &pack) const |
| int | get_pset_index (const ChordPreset &pset) |
| Returns the preset index in its pack. | |
| void | add_preset (ChordPresetPack &pack, const ChordPreset &pset, bool serialize) |
| Add a copy of the given preset to the given preset pack and optionally serializes the pack manager. | |
| void | add_pack (const ChordPresetPack &pack, bool serialize) |
| Add a copy of the given pack. | |
| void | delete_pack (const ChordPresetPack &pack, bool serialize) |
| void | delete_preset (const ChordPreset &pset, bool serialize) |
| void | serialize () |
| Serializes the chord presets. | |
Data Fields | |
| std::vector< std::unique_ptr< ChordPresetPack > > | packs_ |
| Scanned preset packs. | |
Chord preset pack manager.
Definition at line 22 of file chord_preset_pack_manager.h.
|
inline |
Definition at line 25 of file chord_preset_pack_manager.h.
|
inline |
Construct a new Chord Preset Pack Manager object.
| scan_for_packs | Whether to scan for preset packs. |
Definition at line 32 of file chord_preset_pack_manager.h.
| void ChordPresetPackManager::add_preset | ( | ChordPresetPack & | pack, |
| const ChordPreset & | pset, | ||
| bool | serialize ) |
Add a copy of the given preset to the given preset pack and optionally serializes the pack manager.
| void ChordPresetPackManager::serialize | ( | ) |
Serializes the chord presets.
| ZrythmException | on error. |
| std::vector<std::unique_ptr<ChordPresetPack> > ChordPresetPackManager::packs_ |
Scanned preset packs.
Definition at line 89 of file chord_preset_pack_manager.h.