Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
Data Structures | |
struct | Location |
Location info of this class. More... | |
Public Types | |
using | PortUuid = dsp::PortIdentifier::PortUuid |
using | ArrangerObjectChildType = ChildT |
using | TrackUuid = structure::tracks::TrackUuid |
using | ArrangerObjectListModel |
Public Member Functions | |
auto & | get_children_vector () |
auto & | get_children_vector () const |
auto | get_children_view () const |
auto & | get_children_snapshots_vector () |
auto & | get_children_snapshots_vector () const |
auto | get_children_snapshots_view () const |
void | add_ticks_to_children (double ticks, dsp::FramesPerTick frames_per_tick) |
ArrangerObjectListModel * | get_model () const |
template<typename SelfT> | |
ArrangerObjectUuidReference | remove_object (this SelfT &self, const ArrangerObject::Uuid &id) |
template<typename SelfT> | |
void | insert_object (this SelfT &self, const ArrangerObjectUuidReference &obj_ref, int idx) |
template<typename SelfT> | |
void | add_object (this SelfT &self, const ArrangerObjectUuidReference &obj_ref) |
void | clear_objects () |
virtual Location | get_location (const ChildT &) const =0 |
Returns the current location of this owner. | |
virtual std::string | get_field_name_for_serialization (const ChildT *) const =0 |
Get the children field name to be used during serialization/deserialization. | |
void | copy_children (const ArrangerObjectOwner &other) |
Protected Attributes | |
bool | clearing_ {} |
Friends | |
void | init_from (ArrangerObjectOwner &obj, const ArrangerObjectOwner &other, utils::ObjectCloneType clone_type) |
void | to_json (nlohmann::json &j, const ArrangerObjectOwner &obj) |
void | from_json (const nlohmann::json &j, ArrangerObjectOwner &obj) |
Definition at line 29 of file arranger_object_owner.h.
using zrythm::structure::arrangement::ArrangerObjectOwner< ChildT >::ArrangerObjectChildType = ChildT |
Definition at line 33 of file arranger_object_owner.h.
using zrythm::structure::arrangement::ArrangerObjectOwner< ChildT >::ArrangerObjectListModel |
Definition at line 35 of file arranger_object_owner.h.
using zrythm::structure::arrangement::ArrangerObjectOwner< ChildT >::PortUuid = dsp::PortIdentifier::PortUuid |
Definition at line 32 of file arranger_object_owner.h.
using zrythm::structure::arrangement::ArrangerObjectOwner< ChildT >::TrackUuid = structure::tracks::TrackUuid |
Definition at line 34 of file arranger_object_owner.h.
|
inlinevirtual |
Definition at line 39 of file arranger_object_owner.h.
|
inline |
Definition at line 149 of file arranger_object_owner.h.
|
inline |
Definition at line 76 of file arranger_object_owner.h.
|
inline |
Definition at line 155 of file arranger_object_owner.h.
|
inline |
Definition at line 207 of file arranger_object_owner.h.
|
inline |
Definition at line 65 of file arranger_object_owner.h.
|
inline |
Definition at line 66 of file arranger_object_owner.h.
|
inline |
Definition at line 68 of file arranger_object_owner.h.
|
inline |
Definition at line 53 of file arranger_object_owner.h.
|
inline |
Definition at line 55 of file arranger_object_owner.h.
|
inline |
Definition at line 57 of file arranger_object_owner.h.
|
pure virtual |
Get the children field name to be used during serialization/deserialization.
This is used because a class may derive from this multiple times so make sure the field name is unique.
|
pure virtual |
Returns the current location of this owner.
To be used by e.g. undoable actions where we need to know where to put back the object.
|
inline |
Definition at line 84 of file arranger_object_owner.h.
|
inline |
Definition at line 118 of file arranger_object_owner.h.
|
inline |
Definition at line 88 of file arranger_object_owner.h.
|
friend |
Definition at line 219 of file arranger_object_owner.h.
|
friend |
Definition at line 190 of file arranger_object_owner.h.
|
friend |
Definition at line 213 of file arranger_object_owner.h.
|
protected |
Definition at line 234 of file arranger_object_owner.h.