|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
A higher level wrapper over a track collection that serves as the project's only tracklist. More...
#include <src/structure/tracks/tracklist.h>


Public Types | |
| using | ArrangerObjectPtrVariant = arrangement::ArrangerObjectPtrVariant |
| using | ArrangerObject = arrangement::ArrangerObject |
Public Member Functions | |
| Tracklist (TrackRegistry &track_registry, QObject *parent=nullptr) | |
| TrackCollection * | collection () const |
| SingletonTracks * | singletonTracks () const |
| Q_INVOKABLE Track * | getTrackForTimelineObject (const arrangement::ArrangerObject *timelineObject) const |
| Q_INVOKABLE TrackLane * | getTrackLaneForObject (const arrangement::ArrangerObject *timelineObject) const |
| Q_INVOKABLE bool | isTrackPinned (const Track *track) const |
| Q_INVOKABLE bool | shouldBeVisible (const Track *track) const |
| Q_INVOKABLE bool | hasChannel (const Track *track) const |
| TrackRouting * | trackRouting () const |
| int | pinnedTracksCutoff () const |
| void | setPinnedTracksCutoff (int index) |
| Q_SIGNAL void | pinnedTracksCutoffChanged (int index) |
| std::optional< TrackPtrVariant > | get_track (const TrackUuid &id) const |
| std::optional< TrackPtrVariant > | get_visible_track_after_delta (Track::Uuid track_id, int delta) const |
| Returns the Track after delta visible Track's. | |
| bool | multiply_track_heights (double multiplier, bool visible_only, bool check_only, bool fire_events) |
| Multiplies all tracks' heights and returns if the operation was valid. | |
| void | handle_click (TrackUuid track_id, bool ctrl, bool shift, bool dragged) |
| Handle a click selection. | |
| std::vector< ArrangerObjectPtrVariant > | get_timeline_objects () const |
| void | clear_selections_for_object_siblings (const ArrangerObject::Uuid &object_id) |
| Clears either the timeline selections or the clip editor selections. | |
| std::optional< TrackUuidReference > | get_track_for_plugin (const plugins::Plugin::Uuid &plugin_id) const |
| bool | should_be_visible (const Track::Uuid &track_id) const |
| Returns whether the track should be visible. | |
| bool | is_track_pinned (int index) const |
Returns whether the track at index is pinned. | |
| bool | is_track_pinned (Track::Uuid track_id) const |
| auto | get_track_route_target (const TrackUuid &source_track) const |
| void | mark_track_for_bounce (TrackPtrVariant track_var, bool bounce, bool mark_regions, bool mark_children, bool mark_parents) |
| Marks the track for bouncing. | |
Friends | |
| void | init_from (Tracklist &obj, const Tracklist &other, utils::ObjectCloneType clone_type) |
| void | to_json (nlohmann::json &j, const Tracklist &t) |
| void | from_json (const nlohmann::json &j, Tracklist &t) |
A higher level wrapper over a track collection that serves as the project's only tracklist.
Definition at line 22 of file tracklist.h.
| using zrythm::structure::tracks::Tracklist::ArrangerObject = arrangement::ArrangerObject |
Definition at line 36 of file tracklist.h.
| using zrythm::structure::tracks::Tracklist::ArrangerObjectPtrVariant = arrangement::ArrangerObjectPtrVariant |
Definition at line 35 of file tracklist.h.
| void zrythm::structure::tracks::Tracklist::clear_selections_for_object_siblings | ( | const ArrangerObject::Uuid & | object_id | ) |
Clears either the timeline selections or the clip editor selections.
| object_id | The object that is part of the target selections. |
|
inline |
Definition at line 47 of file tracklist.h.
|
inline |
Definition at line 94 of file tracklist.h.
|
inline |
Definition at line 167 of file tracklist.h.
| std::optional< TrackPtrVariant > zrythm::structure::tracks::Tracklist::get_visible_track_after_delta | ( | Track::Uuid | track_id, |
| int | delta ) const |
|
inline |
Definition at line 69 of file tracklist.h.
|
inline |
Returns whether the track at index is pinned.
Definition at line 156 of file tracklist.h.
|
inline |
Definition at line 161 of file tracklist.h.
|
inline |
Definition at line 59 of file tracklist.h.
| void zrythm::structure::tracks::Tracklist::mark_track_for_bounce | ( | TrackPtrVariant | track_var, |
| bool | bounce, | ||
| bool | mark_regions, | ||
| bool | mark_children, | ||
| bool | mark_parents ) |
Marks the track for bouncing.
| mark_children | Whether to mark all children tracks as well. Used when exporting stems on the specific track stem only. IMPORTANT: Track.bounce_to_master must be set beforehand if this is true. |
| mark_parents | Whether to mark all parent tracks as well. |
| bool zrythm::structure::tracks::Tracklist::multiply_track_heights | ( | double | multiplier, |
| bool | visible_only, | ||
| bool | check_only, | ||
| bool | fire_events ) |
Multiplies all tracks' heights and returns if the operation was valid.
| visible_only | Only apply to visible tracks. |
|
inline |
Definition at line 76 of file tracklist.h.
|
inline |
Definition at line 77 of file tracklist.h.
| bool zrythm::structure::tracks::Tracklist::should_be_visible | ( | const Track::Uuid & | track_id | ) | const |
Returns whether the track should be visible.
Takes into account Track.visible and whether any of the track's foldable parents are folded.
|
inline |
Definition at line 64 of file tracklist.h.
|
inline |
Definition at line 49 of file tracklist.h.
|
inline |
Definition at line 74 of file tracklist.h.
|
read |
Definition at line 29 of file tracklist.h.
|
readwrite |
Definition at line 31 of file tracklist.h.
|
read |
Definition at line 28 of file tracklist.h.
|
read |
Definition at line 26 of file tracklist.h.