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 
24 class QComboBox;
25 class QDialogButtonBox;
26 class QLabel;
27 class QListWidget;
28 class QLineEdit;
29 namespace Mlt {
30 class Playlist;
31 }
32 
33 class MultiFileExportDialog : public QDialog
34 {
35  Q_OBJECT
36 public:
37  explicit MultiFileExportDialog(QString title, Mlt::Playlist* playlist, const QString& directory, const QString& prefix, const QString& extension, QWidget *parent = 0);
38  QStringList getExportFiles();
39 
40 private slots:
41  void rebuildList();
42  void browse();
43 
44 private:
45  QString appendField(QString text, QComboBox* combo, int clipIndex);
46  void fillCombo(QComboBox* combo);
47 
48  Mlt::Playlist* m_playlist;
49  QLineEdit* m_dir;
50  QLineEdit* m_prefix;
51  QComboBox* m_field1;
52  QComboBox* m_field2;
53  QComboBox* m_field3;
54  QLineEdit* m_ext;
55  QLabel* m_errorIcon;
56  QLabel* m_errorText;
57  QListWidget* m_list;
58  QDialogButtonBox* m_buttonBox;
59  QStringList m_stringList;
60 };
61 
62 #endif // MULTIFILEEXPORTDIALOG_H