From 73a9399f5d1d86c7e291498b7fe836550f2f76ab Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 2 Apr 2019 15:30:45 -0400 Subject: Add a C++ version of the triage plugin (no Makefile yet) --- examples/triage/files.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 examples/triage/files.h (limited to 'examples/triage/files.h') 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 +#include +#include +#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); +}; -- cgit v1.3.1