summaryrefslogtreecommitdiffstats
path: root/editfiledialog.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-05-21 08:53:49 +0200
committerArno <arno@disconnect.de>2018-05-21 08:54:48 +0200
commitd2225f43d25746d0870fed31c3ca1deaaa9e7686 (patch)
treeb3f73cf1bc48953dbafc07838d1e767f251684be /editfiledialog.h
parent55244c62be2a78a4e742635bfaed51c0178c83f8 (diff)
downloadSheMov-d2225f43d25746d0870fed31c3ca1deaaa9e7686.tar.gz
SheMov-d2225f43d25746d0870fed31c3ca1deaaa9e7686.tar.bz2
SheMov-d2225f43d25746d0870fed31c3ca1deaaa9e7686.zip
Implement edit files
Make it possible to edit files (again).
Diffstat (limited to 'editfiledialog.h')
-rw-r--r--editfiledialog.h38
1 files changed, 38 insertions, 0 deletions
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 <QDialog>
+#include <QHash>
+
+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<int, QString> mFiletypeMap;
+ int mDurationSecs;
+};
+
+#endif // EDITFILEDIALOG_H