From 6299be28e13662d1b28be5f77f53ea2118e87dae Mon Sep 17 00:00:00 2001 From: Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> Date: Fri, 31 Jan 2025 20:07:41 +0100 Subject: Add form and header versions to plugin list tool tips and plugin API and add more columns (#2200) --- src/pluginlist.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/pluginlist.h') diff --git a/src/pluginlist.h b/src/pluginlist.h index 30837fb1..224ae09e 100644 --- a/src/pluginlist.h +++ b/src/pluginlist.h @@ -93,8 +93,12 @@ public: COL_FLAGS, COL_PRIORITY, COL_MODINDEX, + COL_FORMVERSION, + COL_HEADERVERSION, + COL_AUTHOR, + COL_DESCRIPTION, - COL_LASTCOLUMN = COL_MODINDEX + COL_LASTCOLUMN = COL_DESCRIPTION, }; using PluginStates = MOBase::IPluginList::PluginStates; @@ -210,6 +214,8 @@ public: QString getName(int index) const { return m_ESPs.at(index).name; } int getPriority(int index) const { return m_ESPs.at(index).priority; } + QString getAuthor(int index) const { return m_ESPs.at(index).author; } + QString getDescription(int index) const { return m_ESPs.at(index).description; } QString getIndexPriority(int index) const; bool isESPLocked(int index) const; void lockESPIndex(int index, bool lock); @@ -247,6 +253,8 @@ public: bool isBlueprintFlagged(const QString& name) const; bool hasNoRecords(const QString& name) const; + int formVersion(const QString& name) const; + float headerVersion(const QString& name) const; QString author(const QString& name) const; QString description(const QString& name) const; @@ -345,6 +353,8 @@ private: bool hasNoRecords; bool modSelected; bool isMasterOfSelectedPlugin; + int formVersion; + float headerVersion; QString author; QString description; bool hasIni; -- cgit v1.3.1