File indexing completed on 2025-01-05 04:01:21
0001 /* 0002 * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best> 0003 * 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 0010 #include "io/base.hpp" 0011 #include "io/io_registry.hpp" 0012 0013 namespace glaxnimate::io::video { 0014 0015 class VideoFormat : public ImportExport 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 QString slug() const override { return "video"; } 0021 QString name() const override { return i18n("Video"); } 0022 QStringList extensions() const override; 0023 bool can_save() const override { return true; } 0024 bool can_open() const override { return false; } 0025 std::unique_ptr<app::settings::SettingsGroup> save_settings(model::Composition*) const override; 0026 0027 static QString library_version(); 0028 0029 protected: 0030 bool on_save(QIODevice& dev, const QString&, model::Composition* comp, const QVariantMap&) override; 0031 0032 private: 0033 static Autoreg<VideoFormat> autoreg; 0034 }; 0035 0036 } // namespace glaxnimate::io::video