Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
clip_launcher.h
1// SPDX-FileCopyrightText: © 2025 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#pragma once
5
6#include "structure/scenes/scene.h"
7
8#include <QtQmlIntegration>
9
10namespace zrythm::structure::scenes
11{
12class ClipLauncher : public QObject
13{
14 Q_OBJECT
15 Q_PROPERTY (zrythm::structure::scenes::SceneList * scenes READ scenes CONSTANT)
16 QML_ELEMENT
17 QML_UNCREATABLE ("")
18
19public:
20 ClipLauncher (
21 arrangement::ArrangerObjectRegistry &object_registry,
22 const tracks::TrackCollection &track_collection,
23 QObject * parent = nullptr);
24
25 SceneList * scenes () const { return scene_list_.get (); }
26
27 // Scene management
28 Q_INVOKABLE Scene * addScene ();
29
30private:
32
33 arrangement::ArrangerObjectRegistry &object_registry_;
34 const tracks::TrackCollection &track_collection_;
35};
36
37} // namespace zrythm::structure::scenes
A collection of tracks that provides a QAbstractListModel interface.
A unique pointer for QObject objects that also works with QObject-based ownership.
Definition qt.h:38