|
| enum | Roles { TrackLanePtrRole = Qt::UserRole + 1
} |
|
|
| TrackLaneList (structure::arrangement::ArrangerObjectRegistry &obj_registry, dsp::FileAudioSourceRegistry &file_audio_source_registry, QObject *parent=nullptr) |
|
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 |
| Q_INVOKABLE TrackLane * | getFirstLane () const |
| bool | lanesVisible () const |
| void | setLanesVisible (bool visible) |
|
Q_SIGNAL void | lanesVisibleChanged (bool visible) |
| Q_INVOKABLE TrackLane * | addLane () |
| | Adds a lane to the end of the list with default settings.
|
|
Q_INVOKABLE TrackLane * | insertLane (size_t index) |
|
Q_INVOKABLE void | removeLane (size_t index) |
|
Q_INVOKABLE void | moveLane (size_t from_index, size_t to_index) |
|
Q_SIGNAL void | laneObjectsNeedRecache (utils::ExpandableTickRange affectedRange) |
| size_t | size () const noexcept |
| bool | empty () const noexcept |
| TrackLane * | at (size_t idx) const |
| utils::QObjectUniquePtr< TrackLane > | pop_back () |
| | Removes last lane.
|
| void | clear () |
| auto & | lanes () const |
| auto | lanes_view () const |
| double | get_visible_lane_heights () const |
| | Gets the total height of all visible lanes (if any).
|
|
void | create_missing_lanes (size_t index) |
| | Creates missing TrackLane's until index.
|
|
void | remove_empty_last_lanes () |
| | Removes the empty last lanes of the Track (except the last one).
|
|
|
void | init_from (TrackLaneList &obj, const TrackLaneList &other, utils::ObjectCloneType clone_type) |
| void | to_json (nlohmann::json &j, const TrackLaneList &p) |
| void | from_json (const nlohmann::json &j, TrackLaneList &p) |
Definition at line 12 of file track_lane_list.h.
◆ Roles
| enum zrythm::structure::tracks::TrackLaneList::Roles |
◆ addLane()
| Q_INVOKABLE TrackLane * zrythm::structure::tracks::TrackLaneList::addLane |
( |
| ) |
|
|
inline |
Adds a lane to the end of the list with default settings.
Definition at line 61 of file track_lane_list.h.
◆ at()
| TrackLane * zrythm::structure::tracks::TrackLaneList::at |
( |
size_t | idx | ) |
const |
|
inline |
◆ clear()
| void zrythm::structure::tracks::TrackLaneList::clear |
( |
| ) |
|
|
inline |
◆ empty()
| bool zrythm::structure::tracks::TrackLaneList::empty |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ get_visible_lane_heights()
| double zrythm::structure::tracks::TrackLaneList::get_visible_lane_heights |
( |
| ) |
const |
|
inline |
Gets the total height of all visible lanes (if any).
Definition at line 133 of file track_lane_list.h.
◆ getFirstLane()
| Q_INVOKABLE TrackLane * zrythm::structure::tracks::TrackLaneList::getFirstLane |
( |
| ) |
const |
|
inline |
◆ lanes()
| auto & zrythm::structure::tracks::TrackLaneList::lanes |
( |
| ) |
const |
|
inline |
◆ lanes_view()
| auto zrythm::structure::tracks::TrackLaneList::lanes_view |
( |
| ) |
const |
|
inline |
◆ lanesVisible()
| bool zrythm::structure::tracks::TrackLaneList::lanesVisible |
( |
| ) |
const |
|
inline |
◆ pop_back()
◆ setLanesVisible()
| void zrythm::structure::tracks::TrackLaneList::setLanesVisible |
( |
bool | visible | ) |
|
|
inline |
◆ size()
| size_t zrythm::structure::tracks::TrackLaneList::size |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
◆ from_json
| void from_json |
( |
const nlohmann::json & | j, |
|
|
TrackLaneList & | p ) |
|
friend |
◆ to_json
| void to_json |
( |
nlohmann::json & | j, |
|
|
const TrackLaneList & | p ) |
|
friend |
◆ lanesVisible
| bool zrythm::structure::tracks::TrackLaneList::lanesVisible |
|
readwrite |
The documentation for this class was generated from the following file: