From d2225f43d25746d0870fed31c3ca1deaaa9e7686 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 21 May 2018 08:53:49 +0200 Subject: Implement edit files Make it possible to edit files (again). --- editfiledialog.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 editfiledialog.h (limited to 'editfiledialog.h') diff --git a/editfiledialog.h b/editfiledialog.h new file mode 100644 index 0000000..e4f91ae --- /dev/null +++ b/editfiledialog.h @@ -0,0 +1,38 @@ +/* + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version + 2 of the License, or (at your option) any later version. +*/ + +#ifndef EDITFILEDIALOG_H +#define EDITFILEDIALOG_H + +#include +#include + +class QLineEdit; +class QComboBox; + +class EditFileDialog : public QDialog { + Q_OBJECT + public: + explicit EditFileDialog(QWidget *parent = nullptr); + void initDlg(QString md5sum, QString fullPath); + + public slots: + virtual void accept(); + + private: + void setupGui(); + QLineEdit *mFileName; + QLineEdit *mMd5Sum; + QLineEdit *mDvdNo; + QLineEdit *mQuality; + QLineEdit *mDuration; + QComboBox *mFileType; + QHash mFiletypeMap; + int mDurationSecs; +}; + +#endif // EDITFILEDIALOG_H -- cgit v1.2.3-70-g09d2