CuteLogger
Fast and simple logging solution for Qt based applications
multifileexportdialog.h
1/*
2 * Copyright (c) 2021 Meltytech, LLC
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef MULTIFILEEXPORTDIALOG_H
19#define MULTIFILEEXPORTDIALOG_H
20
21#include <QDialog>
22#include <QStringList>
23
24class QComboBox;
25class QDialogButtonBox;
26class QLabel;
27class QListWidget;
28class QLineEdit;
29namespace Mlt {
30class Playlist;
31}
32
33class MultiFileExportDialog : public QDialog
34{
35 Q_OBJECT
36public:
37 explicit MultiFileExportDialog(QString title,
38 Mlt::Playlist *playlist,
39 const QString &directory,
40 const QString &prefix,
41 const QString &extension,
42 QWidget *parent = 0);
43 QStringList getExportFiles();
44
45private slots:
46 void rebuildList();
47 void browse();
48
49private:
50 QString appendField(QString text, QComboBox *combo, int clipIndex);
51 void fillCombo(QComboBox *combo);
52
53 Mlt::Playlist *m_playlist;
54 QLineEdit *m_dir;
55 QLineEdit *m_prefix;
56 QComboBox *m_field1;
57 QComboBox *m_field2;
58 QComboBox *m_field3;
59 QLineEdit *m_ext;
60 QLabel *m_errorIcon;
61 QLabel *m_errorText;
62 QListWidget *m_list;
63 QDialogButtonBox *m_buttonBox;
64 QStringList m_stringList;
65};
66
67#endif // MULTIFILEEXPORTDIALOG_H