6#include "actions/arranger_object_creator.h"
7#include "actions/track_creator.h"
8#include "structure/scenes/scene.h"
10#include <juce_wrapper.h>
12namespace zrythm::gui::backend
15class FileImporter :
public QObject
19 QML_UNCREATABLE (
"One instance per project")
22 explicit FileImporter (
26 QObject * parent =
nullptr);
46 const QStringList &filePaths,
50 Q_INVOKABLE
void importFileToClipSlot (
51 const QString &filePath,
78 Q_INVOKABLE
bool isMidiFile (
const QString &filePath)
const;
86 mutable juce::AudioFormatManager audio_format_manager_;
FileType
Enumeration for supported file types.
Q_INVOKABLE bool isAudioFile(const QString &filePath) const
Checks if a file is an audio file.
Q_INVOKABLE void importFiles(const QStringList &filePaths, double startTicks, structure::tracks::Track *track) const
Imports the given file.
Q_INVOKABLE FileType getFileType(const QString &filePath) const
Determines the type of a file.
Q_INVOKABLE bool isMidiFile(const QString &filePath) const
Checks if a file is a MIDI file.
Represents a track in the project.