A container that manages a list of automation tracks.
More...
#include <src/structure/tracks/automation_tracklist.h>
|
| enum | Roles { AutomationTrackHolderRole = Qt::UserRole + 1
, AutomationTrackRole
} |
|
| static int | get_y_px_from_normalized_val (const double automation_track_height, const float normalized_val) |
| | Returns the y pixels from the value based on the allocation of the automation track.
|
|
|
void | init_from (AutomationTracklist &obj, const AutomationTracklist &other, utils::ObjectCloneType clone_type) |
| void | to_json (nlohmann::json &j, const AutomationTracklist &ats) |
|
void | from_json (const nlohmann::json &j, AutomationTracklist &ats) |
A container that manages a list of automation tracks.
Definition at line 129 of file automation_tracklist.h.
◆ Roles
| enum zrythm::structure::tracks::AutomationTracklist::Roles |
◆ automation_track_at()
| AutomationTrack * zrythm::structure::tracks::AutomationTracklist::automation_track_at |
( |
size_t | index | ) |
const |
|
inline |
◆ automation_track_holders()
| auto & zrythm::structure::tracks::AutomationTracklist::automation_track_holders |
( |
| ) |
const |
|
inline |
◆ automation_tracks()
| auto zrythm::structure::tracks::AutomationTracklist::automation_tracks |
( |
| ) |
const |
|
inline |
◆ automationVisible()
| bool zrythm::structure::tracks::AutomationTracklist::automationVisible |
( |
| ) |
const |
|
inline |
◆ get_first_invisible_automation_track_holder()
| AutomationTrackHolder * zrythm::structure::tracks::AutomationTracklist::get_first_invisible_automation_track_holder |
( |
| ) |
const |
Used when the add button is added and a new automation track is requested to be shown.
Marks the first invisible automation track as visible, or marks an uncreated one as created if all invisible ones are visible, and returns it.
- Returns
- The holder or nullptr.
◆ get_visible_automation_track_after_delta()
| AutomationTrack * zrythm::structure::tracks::AutomationTracklist::get_visible_automation_track_after_delta |
( |
const AutomationTrack & | at, |
|
|
int | delta ) const |
◆ get_y_px_from_normalized_val()
| int zrythm::structure::tracks::AutomationTracklist::get_y_px_from_normalized_val |
( |
const double | automation_track_height, |
|
|
const float | normalized_val ) |
|
inlinestatic |
Returns the y pixels from the value based on the allocation of the automation track.
Definition at line 220 of file automation_tracklist.h.
◆ remove_automation_track()
Removes the AutomationTrack from the AutomationTracklist, optionally freeing it.
- Returns
- The removed automation track (in case we want to move it). Can be ignored to let it get free'd when it goes out of scope.
◆ set_automation_track_index()
| void zrythm::structure::tracks::AutomationTracklist::set_automation_track_index |
( |
AutomationTrack & | at, |
|
|
int | index, |
|
|
bool | push_down ) |
Swaps at with the automation track at index or pushes the other automation tracks down.
A special case is when index == size(). In this case, the given automation track is set last and all the other automation tracks are pushed upwards.
- Parameters
-
| push_down | False to swap positions with the current AutomationTrack, or true to push down all the tracks below. |
◆ to_json
| void to_json |
( |
nlohmann::json & | j, |
|
|
const AutomationTracklist & | ats ) |
|
friend |
◆ automationVisible
| QML_ELEMENT bool zrythm::structure::tracks::AutomationTracklist::automationVisible |
|
readwrite |
The documentation for this class was generated from the following file: