From ff672bb48ecd0f0aa6884628a0ceeac5b50a75a8 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 19 Jul 2020 12:12:10 +0200 Subject: Guess subject from descript.ion file The expression matching is the same as in ShemovCleaner, but here we have a lot more levels of indirection. The guessing is done automatically when archiveMovie is invoked. If the directory contains a file descript.ion, it is parsed and the result injected into the MetadataEditorWidget. --- fswidget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fswidget.h') diff --git a/fswidget.h b/fswidget.h index 85f25c5..0e1f9f7 100644 --- a/fswidget.h +++ b/fswidget.h @@ -12,6 +12,7 @@ class QSortFilterProxyModel; class QContextMenuEvent; class QAction; class QProcess; +class QDir; class NewMovieWizard; class NewPicsDialog; class Viewer; @@ -61,6 +62,8 @@ class FSWidget : public QWidget { private: void setupWidget(); + const QStringList readDescript(const QDir &dir); + const QString guessSubject(const QStringList &subjects, const QString &fn); QComboBox *mDirCB; QComboBox *mFilterCB; QProcess *mPlayer; -- cgit v1.2.3-70-g09d2