summaryrefslogtreecommitdiffstats
path: root/filepropertiesdialog.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-07-28 07:46:16 +0200
committerArno <am@disconnect.de>2013-07-28 07:46:16 +0200
commitd6b178b1fdcdac519ded25e3f253d9eeffa84053 (patch)
treeba9a03e041fa72ccde37367ef07864884f0ced7b /filepropertiesdialog.h
parent5cfaa2c755c52c2ccbdd88ea3239dafb120a179b (diff)
downloadSheMov-d6b178b1fdcdac519ded25e3f253d9eeffa84053.tar.gz
SheMov-d6b178b1fdcdac519ded25e3f253d9eeffa84053.tar.bz2
SheMov-d6b178b1fdcdac519ded25e3f253d9eeffa84053.zip
Implement file properties dialog
Show file properties in Filemanager and Archive, if the file is available. Also get rid of the palette stuff in SmGlobals. Just call setPalette() early enough and set it in SmTreeView.
Diffstat (limited to 'filepropertiesdialog.h')
-rw-r--r--filepropertiesdialog.h34
1 files changed, 19 insertions, 15 deletions
diff --git a/filepropertiesdialog.h b/filepropertiesdialog.h
index ee9aa96..425f6e6 100644
--- a/filepropertiesdialog.h
+++ b/filepropertiesdialog.h
@@ -10,29 +10,33 @@
#include "smdialog.h"
+class QPushButton;
class SmTreeView;
-class QLabel;
-class QTabWidget;
+class SmTreeItem;
class SmTreeModel;
-class MetadataWidget;
+class QTabWidget;
+class QStackedWidget;
class FilePropertiesDialog : public SmDialog {
Q_OBJECT
public:
- explicit FilePropertiesDialog(/*int seriesPartId, */QWidget *parent = 0, Qt::WindowFlags f = 0);
- void setFileName(const QString &fileName);
- void setStreamData(const QList<QMap<QString, QString> > &streamData);
- void addData(const QString &caption, const QMap<QString, QString> &data);
- MetadataWidget *metaWidget() { return mMetadata; };
+ explicit FilePropertiesDialog(const QString &file, QWidget *parent = 0, Qt::WindowFlags f = 0);
private:
- QTabWidget *mTab;
- MetadataWidget *mMetadata;
- SmTreeView *mView;
- QPushButton *mOk;
- QPushButton *mCancel;
- QLabel *mDescriptionLabel;
- SmTreeModel *mModel;
+ void movieData();
+ void movieDataRecursive(QJsonValue start, SmTreeItem *appendTo);
+ void pictureData();
+ void appendItem(const QList<QVariant> &data, SmTreeItem *parent);
+ QTabWidget *mTab;
+ QStackedWidget *mStack;
+ QPushButton *mOk;
+ SmTreeModel *mFormatModel;
+ SmTreeView *mFormatView;
+ SmTreeModel *mStreamModel;
+ SmTreeView *mStreamView;
+ SmTreeModel *mPicModel;
+ SmTreeView *mPicView;
+ QString mFile;
};
#endif // FILEPROPERTIESDIALOG_H