Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
ChordPresetPack Class Reference

Chord preset pack. More...

#include <src/gui/backend/backend/settings/chord_preset_pack.h>

Inheritance diagram for ChordPresetPack:
Collaboration diagram for ChordPresetPack:

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)

Detailed Description

Chord preset pack.

Definition at line 24 of file chord_preset_pack.h.

Member Typedef Documentation

◆ NameT

using ChordPresetPack::NameT = QString

Definition at line 31 of file chord_preset_pack.h.

Member Function Documentation

◆ get_document_type()

std::string ChordPresetPack::get_document_type ( ) const
inline

Definition at line 48 of file chord_preset_pack.h.

◆ get_format_major_version()

int ChordPresetPack::get_format_major_version ( ) const
inline

Definition at line 49 of file chord_preset_pack.h.

◆ get_format_minor_version()

int ChordPresetPack::get_format_minor_version ( ) const
inline

Definition at line 50 of file chord_preset_pack.h.

◆ get_preset_index()

int ChordPresetPack::get_preset_index ( const ChordPreset & pset) const
inline

Definition at line 65 of file chord_preset_pack.h.

◆ getName()

QString ChordPresetPack::getName ( ) const
inline

Definition at line 42 of file chord_preset_pack.h.

◆ from_json

void from_json ( const nlohmann::json & j,
ChordPresetPack & pack )
friend

Definition at line 84 of file chord_preset_pack.h.

◆ to_json

void to_json ( nlohmann::json & j,
const ChordPresetPack & pack )
friend

Definition at line 78 of file chord_preset_pack.h.

Field Documentation

◆ is_standard_

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.

◆ name_

NameT ChordPresetPack::name_

Pack name.

Definition at line 99 of file chord_preset_pack.h.

◆ presets_

std::vector<ChordPreset *> ChordPresetPack::presets_

Presets.

Definition at line 102 of file chord_preset_pack.h.

Property Documentation

◆ name

QString ChordPresetPack::name
readwrite

Definition at line 27 of file chord_preset_pack.h.


The documentation for this class was generated from the following file: