summaryrefslogtreecommitdiffstats
path: root/editfiledialog.h
diff options
context:
space:
mode:
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