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

A QML wrapper over a list of arranger objects. More...

#include <src/structure/arrangement/arranger_object_list_model.h>

Inheritance diagram for zrythm::structure::arrangement::ArrangerObjectListModel:
Collaboration diagram for zrythm::structure::arrangement::ArrangerObjectListModel:

Public Types

enum  ArrangerObjectListModelRoles { ArrangerObjectPtrRole = Qt::UserRole + 1 , ArrangerObjectUuidReferenceRole }

Public Member Functions

 ArrangerObjectListModel (ArrangerObjectRefMultiIndexContainer &objects, QObject *parent=nullptr)
 ArrangerObjectListModel (ArrangerObjectRefMultiIndexContainer &objects, ArrangerObject &parent_arranger_object)
 To be used when the parent is also an arranger object.
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
void clear ()
bool insertObject (const ArrangerObjectUuidReference &object, int index)
bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) override
Q_SIGNAL void contentChanged (utils::ExpandableTickRange affectedRange)

Detailed Description

A QML wrapper over a list of arranger objects.

All operations on the list should be performed via this class so we can take advantage of signal emissions.

Definition at line 75 of file arranger_object_list_model.h.

Member Enumeration Documentation

◆ ArrangerObjectListModelRoles

enum zrythm::structure::arrangement::ArrangerObjectListModel::ArrangerObjectListModelRoles

Definition at line 82 of file arranger_object_list_model.h.

Constructor & Destructor Documentation

◆ ArrangerObjectListModel()

zrythm::structure::arrangement::ArrangerObjectListModel::ArrangerObjectListModel ( ArrangerObjectRefMultiIndexContainer & objects,
ArrangerObject & parent_arranger_object )

To be used when the parent is also an arranger object.

This will set up additional connections to call setParentObject() at appropriate times.

Member Function Documentation

◆ rowCount()

int zrythm::structure::arrangement::ArrangerObjectListModel::rowCount ( const QModelIndex & parent = QModelIndex ()) const
inlineoverride

Definition at line 105 of file arranger_object_list_model.h.


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