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, Mlt::Playlist *playlist, const QString &directory,
38 const QString &prefix, const QString &extension, QWidget *parent = 0);
39 QStringList getExportFiles();
40
41private slots:
42 void rebuildList();
43 void browse();
44
45private:
46 QString appendField(QString text, QComboBox *combo, int clipIndex);
47 void fillCombo(QComboBox *combo);
48
49 Mlt::Playlist *m_playlist;
50 QLineEdit *m_dir;
51 QLineEdit *m_prefix;
52 QComboBox *m_field1;
53 QComboBox *m_field2;
54 QComboBox *m_field3;
55 QLineEdit *m_ext;
56 QLabel *m_errorIcon;
57 QLabel *m_errorText;
58 QListWidget *m_list;
59 QDialogButtonBox *m_buttonBox;
60 QStringList m_stringList;
61};
62
63#endif // MULTIFILEEXPORTDIALOG_H