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

0001 /*
0002     SPDX-FileCopyrightText: 2022 Gary Wang <wzc782970009@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #pragma once
0008 
0009 #include "ui_exportguidesdialog_ui.h"
0010 
0011 #include "definitions.h"
0012 #include "utils/timecode.h"
0013 #include "widgets/timecodedisplay.h"
0014 
0015 namespace Mlt {
0016 }
0017 
0018 /**
0019  * @class ExportGuidesDialog
0020  * @brief A dialog for export guides as plain text.
0021  * @author Gary Wang
0022  */
0023 class MarkerListModel;
0024 class ExportGuidesDialog : public QDialog, public Ui::ExportGuidesDialog_UI
0025 {
0026     Q_OBJECT
0027 
0028 public:
0029     explicit ExportGuidesDialog(const MarkerListModel *model, const GenTime duration, QWidget *parent = nullptr);
0030     ~ExportGuidesDialog() override;
0031 
0032 private:
0033     GenTime offsetTime() const;
0034     void updateContentByModel() const;
0035 
0036     const MarkerListModel * m_markerListModel;
0037     const GenTime m_projectDuration;
0038 };