diff options
| author | Rusty Wagner <rusty@vector35.com> | 2019-04-02 15:30:45 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2019-04-02 15:36:40 -0400 |
| commit | 73a9399f5d1d86c7e291498b7fe836550f2f76ab (patch) | |
| tree | e7c7cfe9a2f27a93ddac41cf600e7bc1fc638a83 /examples/triage/files.h | |
| parent | c17af471c48ea092434917c803f9c88fe91022a6 (diff) | |
Add a C++ version of the triage plugin (no Makefile yet)
Diffstat (limited to 'examples/triage/files.h')
| -rw-r--r-- | examples/triage/files.h | 31 |
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); +}; |
