File indexing completed on 2024-04-21 04:51:27

0001 /*
0002 SPDX-FileCopyrightText: 2016 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 "ui_templateclip_ui.h"
0011 
0012 class QResizeEvent;
0013 
0014 class TitleTemplateDialog : public QDialog
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     explicit TitleTemplateDialog(const QString &folder, QWidget *parent = nullptr);
0020     QString selectedTemplate() const;
0021     QString selectedText() const;
0022 
0023 protected:
0024     void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
0025 
0026 private:
0027     Ui::TemplateClip_UI m_view;
0028 
0029 private Q_SLOTS:
0030     void updatePreview();
0031 };