summaryrefslogtreecommitdiff
path: root/examples/triage/files.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/triage/files.h')
-rw-r--r--examples/triage/files.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/triage/files.h b/examples/triage/files.h
new file mode 100644
index 00000000..6919c614
--- /dev/null
+++ b/examples/triage/files.h
@@ -0,0 +1,31 @@
+#pragma once
+
+#include <QtWidgets/QWidget>
+#include <QtWidgets/QTreeView>
+#include <QtWidgets/QFileSystemModel>
+#include "action.h"
+#include "menus.h"
+
+
+class TriageFilePicker: public QWidget
+{
+ UIContext* m_context;
+ UIActionHandler m_actionHandler;
+ Menu m_contextMenu;
+ ContextMenuManager m_contextMenuManager;
+
+ QFileSystemModel* m_model;
+ QTreeView* m_tree;
+
+ void openSelectedFiles();
+ bool areFilesSelected();
+
+public:
+ TriageFilePicker(UIContext* context);
+
+protected:
+ virtual void contextMenuEvent(QContextMenuEvent*) override;
+
+private Q_SLOTS:
+ void onDoubleClick(const QModelIndex& idx);
+};