diff options
author | Arno <arno@disconnect.de> | 2016-09-03 21:03:34 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-09-03 21:03:34 +0200 |
commit | e11e257f88726fd04774bf0ca4584d1678bc7f9b (patch) | |
tree | 848c1f16d09f1a06afd7d638f40b6e39e4cd6ead /filedisplay.h | |
parent | b49c6828a92590311712d766d54c15596f13addf (diff) | |
download | ShemovCleaner-e11e257f88726fd04774bf0ca4584d1678bc7f9b.tar.gz ShemovCleaner-e11e257f88726fd04774bf0ca4584d1678bc7f9b.tar.bz2 ShemovCleaner-e11e257f88726fd04774bf0ca4584d1678bc7f9b.zip |
Add detailed video dialog
Show each and everything ffprobe can extract from a video file and
display it as a tree.
Diffstat (limited to 'filedisplay.h')
-rw-r--r-- | filedisplay.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/filedisplay.h b/filedisplay.h index 93b6a4a..10d93d6 100644 --- a/filedisplay.h +++ b/filedisplay.h @@ -7,7 +7,11 @@ class QLineEdit; class QTextEdit; class QTabWidget; +class QTreeView; +class QStandardItemModel; +class QStandardItem; class DBData; +class FileData; class FileDisplay : public QDialog { Q_OBJECT @@ -18,6 +22,7 @@ class FileDisplay : public QDialog { private: QTabWidget *mTab; DBData *mDBData; + FileData *mFileData; QString mFullPath; QString mMd5; }; @@ -37,4 +42,19 @@ class DBData : public QWidget { QTextEdit *mGenres; }; +class FileData : public QWidget { + Q_OBJECT + public: + explicit FileData(QWidget *parent = 0, Qt::WindowFlags f = 0); + ~FileData(); + void setFileData(const QString &fullPath); + + private: + void FileDataRecursive(QJsonValue start, QStandardItem *appendTo); + void writeHeaderData(); + void readHeaderData(); + QTreeView *mView; + QStandardItemModel *mModel; +}; + #endif // FILEDISPLAY_H |