Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
ClipEditor Class Reference

Backend for the clip editor part of the UI. More...

#include <src/gui/backend/backend/clip_editor.h>

Inheritance diagram for ClipEditor:
Collaboration diagram for ClipEditor:

Public Member Functions

 ClipEditor (ArrangerObjectRegistry &reg, TrackResolver track_resolver, QObject *parent=nullptr)
structure::arrangement::PianoRollgetPianoRoll () const
structure::arrangement::ChordEditorgetChordEditor () const
structure::arrangement::AudioClipEditorgetAudioClipEditor () const
structure::arrangement::AutomationEditorgetAutomationEditor () const
QVariant region () const
QVariant track () const
Q_INVOKABLE void setRegion (QVariant region, QVariant track)
Q_INVOKABLE void unsetRegion ()
Q_SIGNAL void regionChanged (QVariant region)
void init_loaded ()
 Inits the ClipEditor after a Project is loaded.
void init ()
 Inits the clip editor.
void set_region (ArrangerObject::Uuid region_id, TrackUuid track_id)
 Sets the track and refreshes the piano roll widgets.
bool has_region () const
std::optional< std::pair< ArrangerObjectPtrVariant, TrackPtrVariant > > get_region_and_track () const

Data Fields

ArrangerObjectRegistry & object_registry_
TrackResolver track_resolver_
std::optional< std::pair< ArrangerObject::Uuid, TrackUuid > > region_id_
 Region currently attached to the clip editor.
utils::QObjectUniquePtr< structure::arrangement::PianoRollpiano_roll_
utils::QObjectUniquePtr< structure::arrangement::AudioClipEditoraudio_clip_editor_
utils::QObjectUniquePtr< structure::arrangement::AutomationEditorautomation_editor_
utils::QObjectUniquePtr< structure::arrangement::ChordEditorchord_editor_

Properties

QVariant region
QVariant track
zrythm::structure::arrangement::PianoRollpianoRoll
zrythm::structure::arrangement::ChordEditorchordEditor
zrythm::structure::arrangement::AudioClipEditoraudioEditor
zrythm::structure::arrangement::AutomationEditorautomationEditor

Friends

void init_from (ClipEditor &obj, const ClipEditor &other, utils::ObjectCloneType clone_type)
void to_json (nlohmann::json &j, const ClipEditor &editor)
void from_json (const nlohmann::json &j, ClipEditor &editor)

Detailed Description

Backend for the clip editor part of the UI.

Definition at line 26 of file clip_editor.h.

Member Function Documentation

◆ getAudioClipEditor()

structure::arrangement::AudioClipEditor * ClipEditor::getAudioClipEditor ( ) const
inline

Definition at line 64 of file clip_editor.h.

◆ getAutomationEditor()

structure::arrangement::AutomationEditor * ClipEditor::getAutomationEditor ( ) const
inline

Definition at line 68 of file clip_editor.h.

◆ getChordEditor()

structure::arrangement::ChordEditor * ClipEditor::getChordEditor ( ) const
inline

Definition at line 60 of file clip_editor.h.

◆ getPianoRoll()

structure::arrangement::PianoRoll * ClipEditor::getPianoRoll ( ) const
inline

Definition at line 56 of file clip_editor.h.

◆ has_region()

bool ClipEditor::has_region ( ) const
inline

Definition at line 120 of file clip_editor.h.

◆ region()

QVariant ClipEditor::region ( ) const
inline

Definition at line 73 of file clip_editor.h.

◆ set_region()

void ClipEditor::set_region ( ArrangerObject::Uuid region_id,
TrackUuid track_id )
inline

Sets the track and refreshes the piano roll widgets.

Definition at line 110 of file clip_editor.h.

◆ track()

QVariant ClipEditor::track ( ) const
inline

Definition at line 82 of file clip_editor.h.

◆ from_json

void from_json ( const nlohmann::json & j,
ClipEditor & editor )
friend

Definition at line 152 of file clip_editor.h.

◆ init_from

void init_from ( ClipEditor & obj,
const ClipEditor & other,
utils::ObjectCloneType clone_type )
friend

Definition at line 125 of file clip_editor.h.

◆ to_json

void to_json ( nlohmann::json & j,
const ClipEditor & editor )
friend

Definition at line 144 of file clip_editor.h.

Field Documentation

◆ audio_clip_editor_

utils::QObjectUniquePtr<structure::arrangement::AudioClipEditor> ClipEditor::audio_clip_editor_

Definition at line 170 of file clip_editor.h.

◆ automation_editor_

utils::QObjectUniquePtr<structure::arrangement::AutomationEditor> ClipEditor::automation_editor_

Definition at line 172 of file clip_editor.h.

◆ chord_editor_

utils::QObjectUniquePtr<structure::arrangement::ChordEditor> ClipEditor::chord_editor_

Definition at line 173 of file clip_editor.h.

◆ object_registry_

ArrangerObjectRegistry& ClipEditor::object_registry_

Definition at line 162 of file clip_editor.h.

◆ piano_roll_

utils::QObjectUniquePtr<structure::arrangement::PianoRoll> ClipEditor::piano_roll_

Definition at line 168 of file clip_editor.h.

◆ region_id_

std::optional<std::pair<ArrangerObject::Uuid, TrackUuid> > ClipEditor::region_id_

Region currently attached to the clip editor.

Definition at line 166 of file clip_editor.h.

◆ track_resolver_

TrackResolver ClipEditor::track_resolver_

Definition at line 163 of file clip_editor.h.

Property Documentation

◆ audioEditor

zrythm::structure::arrangement::AudioClipEditor * ClipEditor::audioEditor
read

Definition at line 33 of file clip_editor.h.

◆ automationEditor

zrythm::structure::arrangement::AutomationEditor * ClipEditor::automationEditor
read

Definition at line 34 of file clip_editor.h.

◆ chordEditor

zrythm::structure::arrangement::ChordEditor * ClipEditor::chordEditor
read

Definition at line 32 of file clip_editor.h.

◆ pianoRoll

zrythm::structure::arrangement::PianoRoll * ClipEditor::pianoRoll
read

Definition at line 31 of file clip_editor.h.

◆ region

QVariant ClipEditor::region
read

Definition at line 29 of file clip_editor.h.

◆ track

QVariant ClipEditor::track
read

Definition at line 30 of file clip_editor.h.


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