Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::structure::tracks::AutomationTrackHolder Class Reference

Holder of an automation track and some metadata about it. More...

#include <src/structure/tracks/automation_tracklist.h>

Inheritance diagram for zrythm::structure::tracks::AutomationTrackHolder:
Collaboration diagram for zrythm::structure::tracks::AutomationTrackHolder:

Data Structures

struct  Dependencies

Public Member Functions

 AutomationTrackHolder (Dependencies dependencies, QObject *parent=nullptr)
 AutomationTrackHolder (Dependencies dependencies, utils::QObjectUniquePtr< AutomationTrack > &&at, QObject *parent=nullptr)
double height () const
void setHeight (double height)
Q_SIGNAL void heightChanged (double height)
bool visible () const
void setVisible (bool visible)
Q_SIGNAL void visibleChanged (bool visible)
AutomationTrackautomationTrack () const

Data Fields

bool created_by_user_ {}
 Whether this automation track has been created by the user in the UI.

Properties

QML_ELEMENT double height
bool visible
AutomationTrackautomationTrack

Friends

void to_json (nlohmann::json &j, const AutomationTrackHolder &nfo)
void from_json (const nlohmann::json &j, AutomationTrackHolder &nfo)

Detailed Description

Holder of an automation track and some metadata about it.

Definition at line 20 of file automation_tracklist.h.

Constructor & Destructor Documentation

◆ AutomationTrackHolder() [1/2]

zrythm::structure::tracks::AutomationTrackHolder::AutomationTrackHolder ( Dependencies dependencies,
QObject * parent = nullptr )
inline

Definition at line 39 of file automation_tracklist.h.

◆ AutomationTrackHolder() [2/2]

zrythm::structure::tracks::AutomationTrackHolder::AutomationTrackHolder ( Dependencies dependencies,
utils::QObjectUniquePtr< AutomationTrack > && at,
QObject * parent = nullptr )
inline

Definition at line 43 of file automation_tracklist.h.

Member Function Documentation

◆ automationTrack()

AutomationTrack * zrythm::structure::tracks::AutomationTrackHolder::automationTrack ( ) const
inline

Definition at line 82 of file automation_tracklist.h.

◆ height()

double zrythm::structure::tracks::AutomationTrackHolder::height ( ) const
inline

Definition at line 57 of file automation_tracklist.h.

◆ setHeight()

void zrythm::structure::tracks::AutomationTrackHolder::setHeight ( double height)
inline

Definition at line 58 of file automation_tracklist.h.

◆ setVisible()

void zrythm::structure::tracks::AutomationTrackHolder::setVisible ( bool visible)
inline

Definition at line 71 of file automation_tracklist.h.

◆ visible()

bool zrythm::structure::tracks::AutomationTrackHolder::visible ( ) const
inline

Definition at line 70 of file automation_tracklist.h.

◆ to_json

void to_json ( nlohmann::json & j,
const AutomationTrackHolder & nfo )
friend

Definition at line 116 of file automation_tracklist.h.

Field Documentation

◆ created_by_user_

bool zrythm::structure::tracks::AutomationTrackHolder::created_by_user_ {}

Whether this automation track has been created by the user in the UI.

Definition at line 94 of file automation_tracklist.h.

Property Documentation

◆ automationTrack

AutomationTrack * zrythm::structure::tracks::AutomationTrackHolder::automationTrack
read

Definition at line 26 of file automation_tracklist.h.

◆ height

QML_ELEMENT double zrythm::structure::tracks::AutomationTrackHolder::height
readwrite

Definition at line 24 of file automation_tracklist.h.

◆ visible

bool zrythm::structure::tracks::AutomationTrackHolder::visible
readwrite

Definition at line 25 of file automation_tracklist.h.


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