diff options
author | Arno <arno@disconnect.de> | 2016-11-10 05:02:44 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-11-10 05:02:44 +0100 |
commit | 5cde173217fd8cb1dbc21f3ac54f18e8234e709b (patch) | |
tree | 309980ee31734db8ca154694137c54a831f3e01a /origindialog.h | |
parent | 1d05ace3bdd9cd07012116b48f847b4a118e1af9 (diff) | |
download | ShemovCleaner-5cde173217fd8cb1dbc21f3ac54f18e8234e709b.tar.gz ShemovCleaner-5cde173217fd8cb1dbc21f3ac54f18e8234e709b.tar.bz2 ShemovCleaner-5cde173217fd8cb1dbc21f3ac54f18e8234e709b.zip |
New feature: Add Origin
Since SheMov now displays origin files (i.e. source files for a
reencode), add an option here to add origin files for already archived
movies.
We guess the archived movie from the filename by cutting off the
extension and look it up in the files table.
If we find an archived movie with that filename, mark the source blue.
Deactive "Add" if we don't find one or if we already have an origin.
Diffstat (limited to 'origindialog.h')
-rw-r--r-- | origindialog.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/origindialog.h b/origindialog.h new file mode 100644 index 0000000..dd9cb3f --- /dev/null +++ b/origindialog.h @@ -0,0 +1,47 @@ +#ifndef ORIGINDIALOG_H +#define ORIGINDIALOG_H + +#include <QDialog> +#include <QVector> + +class QLineEdit; +class QPushButton; + +class OriginDialog : public QDialog { + Q_OBJECT + public: + explicit OriginDialog(QWidget *parent = 0, Qt::WindowFlags f = 0); + + signals: + void statusMessage(const QString &msg); + void refreshNeeded(); + + public slots: + void setSrctData(const QString &absolutefn); + void setDstData(const QString &absolutefn); + void clear(); + virtual void accept(); + + private: + void setupGui(); + QLineEdit *mOrigName; + QLineEdit *mOrigDur; + QLineEdit *mOrigSize; + QLineEdit *mOrigBitrate; + QLineEdit *mOrigMd5; + QLineEdit *mDstName; + QLineEdit *mDstDur; + QLineEdit *mDstSize; + QLineEdit *mDstMd5; + QVector<QLineEdit*> mLineEdits; + QPushButton *mOk; + QPushButton *mCancel; + qint64 mSeconds; + qint64 mSize; + qint64 mBitrate; + QString mMd5; + int mFileId; + +}; + +#endif // ORIGINDIALOG_H |