summaryrefslogtreecommitdiffstats
path: root/archiveview.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-06-01 06:53:34 +0200
committerArno <am@disconnect.de>2013-06-01 06:53:34 +0200
commitac5f624734f712bce84f36cc47c0133a1382534f (patch)
treeff3f0105b341dbc91dbe4471b4a55429fe127ce4 /archiveview.h
parent39223db7f24eb285af7f0b7a3b061d9a92453122 (diff)
downloadSheMov-ac5f624734f712bce84f36cc47c0133a1382534f.tar.gz
SheMov-ac5f624734f712bce84f36cc47c0133a1382534f.tar.bz2
SheMov-ac5f624734f712bce84f36cc47c0133a1382534f.zip
Add view for new ArchiveModel
Display the new ArchiveModel in an experimental tab
Diffstat (limited to 'archiveview.h')
-rw-r--r--archiveview.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/archiveview.h b/archiveview.h
new file mode 100644
index 0000000..a8aed6b
--- /dev/null
+++ b/archiveview.h
@@ -0,0 +1,50 @@
+/*
+ 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 ARCHIVEVIEW_H
+#define ARCHIVEVIEW_H
+
+#include <QWidget>
+#include <QTreeView>
+
+#include "archivemodel.h"
+
+class QSortFilterProxyModel;
+class QComboBox;
+class QLineEdit;
+
+class ArchiveTree;
+class ArchiveFiles;
+
+class ArchiveView : public QWidget {
+ Q_OBJECT
+ public:
+ explicit ArchiveView(QWidget *parent = 0);
+
+ private:
+ QComboBox *mSortOrder;
+ QLineEdit *mFilter;
+ ArchiveTree *mTree;
+ ArchiveFiles *mFiles;
+ ArchiveModel *mArchiveModel;
+};
+
+class ArchiveTree : public QTreeView {
+ public:
+ explicit ArchiveTree(QWidget *parent = 0);
+
+ private:
+ QSortFilterProxyModel *mProxy;
+ ArchiveModel *mModel;
+};
+
+class ArchiveFiles : public QTreeView {
+ public:
+ explicit ArchiveFiles(QWidget *parent = 0);
+};
+
+#endif // ARCHIVEVIEW_H