File indexing completed on 2022-11-22 14:07:08

0001 /*
0002 SPDX-FileCopyrightText: 2015 Jean-Baptiste Mardelle <jb@kdenlive.org>
0003 This file is part of Kdenlive. See www.kdenlive.org.
0004 
0005 SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006 */
0007 
0008 #pragma once
0009 
0010 #include "definitions.h"
0011 #include <QDockWidget>
0012 
0013 class KdenliveDoc;
0014 class Bin;
0015 class ProjectClip;
0016 class ProjectItemModel;
0017 
0018 /**
0019  * @namespace ClipCreationDialog
0020  * @brief This namespace contains a list of static methods displaying widgets
0021  *  allowing creation of all clip types.
0022  */
0023 namespace ClipCreationDialog {
0024 
0025 QStringList getExtensions();
0026 QString getExtensionsFilter(const QStringList& additionalFilters = QStringList());
0027 void createColorClip(KdenliveDoc *doc, const QString &parentFolder, std::shared_ptr<ProjectItemModel> model);
0028 void createQTextClip(KdenliveDoc *doc, const QString &parentId, Bin *bin, ProjectClip *clip = nullptr);
0029 void createAnimationClip(KdenliveDoc *doc, const QString &parentId);
0030 void createSlideshowClip(KdenliveDoc *doc, const QString &parentId, std::shared_ptr<ProjectItemModel> model);
0031 void createTitleClip(KdenliveDoc *doc, const QString &parentFolder, const QString &templatePath, std::shared_ptr<ProjectItemModel> model);
0032 void createTitleTemplateClip(KdenliveDoc *doc, const QString &parentFolder, std::shared_ptr<ProjectItemModel> model);
0033 void createClipsCommand(KdenliveDoc *doc, const QString &parentFolder, const std::shared_ptr<ProjectItemModel> &model);
0034 void clipWidget(QDockWidget* m_DockClipWidget);
0035 } // namespace ClipCreationDialog