summaryrefslogtreecommitdiff
path: root/src/modlistviewactions.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-30 23:35:44 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:17 +0100
commite8c2d9cd29967be928b8649fd580a3be9cae3684 (patch)
tree9786455c8d33754c43e0f9228b7122b59ca764b4 /src/modlistviewactions.h
parent8a88421fd9748f64163f18d8b89ea9d651402014 (diff)
More context menu stuff moved.
Diffstat (limited to 'src/modlistviewactions.h')
-rw-r--r--src/modlistviewactions.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/modlistviewactions.h b/src/modlistviewactions.h
index 49cffaef..b01b8e79 100644
--- a/src/modlistviewactions.h
+++ b/src/modlistviewactions.h
@@ -4,8 +4,12 @@
#include <QObject>
#include <QString>
+#include "modinfo.h"
+#include "modinfodialogfwd.h"
+
class CategoryFactory;
class FilterList;
+class MainWindow;
class ModListView;
class OrganizerCore;
@@ -15,14 +19,14 @@ class ModListViewActions : public QObject
public:
- // the nxmReceiver is a (hopefully temporary) "hack" because it would require a lots of change
- // to do otherwise since NXM is mostly based on the old Qt signal-slot system
+ // currently passing the main window itself because a lots of stuff needs it but
+ // it would be nice to avoid passing it at some point
//
ModListViewActions(
OrganizerCore& core,
FilterList& filters,
CategoryFactory& categoryFactory,
- QObject* nxmReceiver,
+ MainWindow* mainWindow,
ModListView* view);
// install the mod from the given archive
@@ -43,12 +47,19 @@ public:
//
void exportModListCSV() const;
+ // display mod information
+ //
+ void displayModInformation(const QString& modName, ModInfoTabIDs tabID = ModInfoTabIDs::None) const;
+ void displayModInformation(unsigned int index, ModInfoTabIDs tab = ModInfoTabIDs::None) const;
+ void displayModInformation(ModInfo::Ptr modInfo, unsigned int modIndex, ModInfoTabIDs tabID = ModInfoTabIDs::None) const;
+
+
private:
OrganizerCore& m_core;
FilterList& m_filters;
CategoryFactory& m_categories;
- QObject* m_receiver; // receiver for NXM signals (temporary)
+ MainWindow* m_main;
ModListView* m_view;
};