From 5cde173217fd8cb1dbc21f3ac54f18e8234e709b Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 10 Nov 2016 05:02:44 +0100 Subject: 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. --- origindialog.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 origindialog.h (limited to 'origindialog.h') 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 +#include + +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 mLineEdits; + QPushButton *mOk; + QPushButton *mCancel; + qint64 mSeconds; + qint64 mSize; + qint64 mBitrate; + QString mMd5; + int mFileId; + +}; + +#endif // ORIGINDIALOG_H -- cgit v1.2.3-70-g09d2