summaryrefslogtreecommitdiff
path: root/src/modlistcontextmenu.h
diff options
context:
space:
mode:
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