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

Mixin class for a foldable track. More...

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

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

Public Types

enum  TrackRoles { TrackPtrRole = Qt::UserRole + 1 }

Public Member Functions

 FoldableTrackMixin (TrackRegistry &track_registry, QObject *parent=nullptr) noexcept
bool folded () const
void setFolded (bool folded)
Q_SIGNAL void foldedChanged (bool folded)
QHash< int, QByteArray > roleNames () const override
int rowCount (const QModelIndex &parent=QModelIndex()) const override
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override

Properties

bool folded

Friends

void to_json (nlohmann::json &j, const FoldableTrackMixin &track)
void from_json (const nlohmann::json &j, FoldableTrackMixin &track)

Detailed Description

Mixin class for a foldable track.

Definition at line 13 of file foldable_track.h.

Member Enumeration Documentation

◆ TrackRoles

enum zrythm::structure::tracks::FoldableTrackMixin::TrackRoles

Definition at line 27 of file foldable_track.h.

Member Function Documentation

◆ folded()

bool zrythm::structure::tracks::FoldableTrackMixin::folded ( ) const
inline

Definition at line 36 of file foldable_track.h.

◆ setFolded()

void zrythm::structure::tracks::FoldableTrackMixin::setFolded ( bool folded)
inline

Definition at line 37 of file foldable_track.h.

Property Documentation

◆ folded

bool zrythm::structure::tracks::FoldableTrackMixin::folded
readwrite

Definition at line 16 of file foldable_track.h.


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