summaryrefslogtreecommitdiff
path: root/src/modlistcontextmenu.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-30 22:56:34 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:17 +0100
commit8a88421fd9748f64163f18d8b89ea9d651402014 (patch)
treec4720283a1d246cc5054fdbbcff7780bb17a1b28 /src/modlistcontextmenu.h
parent07c2badd174059f7cc4ca404c22c6741b679cc7f (diff)
Start moving modlist context menu actions to separate structures.
Diffstat (limited to 'src/modlistcontextmenu.h')
-rw-r--r--src/modlistcontextmenu.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/modlistcontextmenu.h b/src/modlistcontextmenu.h
new file mode 100644
index 00000000..bc72fbdf
--- /dev/null
+++ b/src/modlistcontextmenu.h
@@ -0,0 +1,39 @@
+#ifndef MODLISTCONTEXTMENU_H
+#define MODLISTCONTEXTMENU_H
+
+#include <vector>
+
+#include <QMenu>
+#include <QModelIndex>
+#include <QTreeView>
+
+class ModListView;
+class OrganizerCore;
+
+class ModListGlobalContextMenu : public QMenu
+{
+ Q_OBJECT
+public:
+
+ ModListGlobalContextMenu(OrganizerCore& core, ModListView* modListView, QWidget* parent = nullptr);
+
+};
+
+class ModListContextMenu : public QMenu
+{
+ Q_OBJECT
+
+private:
+
+ friend class ModListView;
+
+ // creates a new context menu that will act on the given mod list
+ // index (those should be index from the modlist)
+ ModListContextMenu(OrganizerCore& core, const QModelIndexList& index, ModListView* modListView);
+
+ OrganizerCore& m_core;
+ QModelIndexList m_index;
+
+};
+
+#endif