summaryrefslogtreecommitdiffstats
path: root/fswidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2020-07-19 12:12:10 +0200
committerArno <arno@disconnect.de>2020-07-19 12:12:10 +0200
commitff672bb48ecd0f0aa6884628a0ceeac5b50a75a8 (patch)
tree3b93da494bd181e6a42e373d06677f1401ef3a77 /fswidget.h
parentd6c44146adfd534548c985bd7299f94f66e57acd (diff)
downloadSheMov-ff672bb48ecd0f0aa6884628a0ceeac5b50a75a8.tar.gz
SheMov-ff672bb48ecd0f0aa6884628a0ceeac5b50a75a8.tar.bz2
SheMov-ff672bb48ecd0f0aa6884628a0ceeac5b50a75a8.zip
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.
Diffstat (limited to 'fswidget.h')
-rw-r--r--fswidget.h3
1 files changed, 3 insertions, 0 deletions
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;