From 484749e612489336e5bfbe50ddc3cbe307069d4c Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 16 Jun 2014 21:49:57 +0200 Subject: - added pseudo-categories to filter for mo-managed vs. unmanaged mods - deleted mods are now moved to the recycle bin instead of being deleted permanently - reduced modinfo dialog for foreign mods - foreign mods are now displayed with a pseudo-category - added a signal when a plugin is moved - bugfix: refreshing of directory structure for mods with bsas didn't work correctly when enabling a mod and on changing display of foreign mods - bugfix: one mod in the list was assigned the same priority on the directory structure as the data directory - bugfix: conflicts tab in the mod info dialog offered the hide option for files in bsas --- src/pluginlist.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/pluginlist.h') diff --git a/src/pluginlist.h b/src/pluginlist.h index 9421d894..57b78a12 100644 --- a/src/pluginlist.h +++ b/src/pluginlist.h @@ -86,6 +86,7 @@ public: }; typedef boost::signals2::signal SignalRefreshed; + typedef boost::signals2::signal SignalPluginMoved; public: @@ -118,8 +119,9 @@ public: * @brief enable a plugin based on its name * * @param name name of the plugin to enable + * @param enable set to true to enable the esp, false to disable it **/ - void enableESP(const QString &name); + void enableESP(const QString &name, bool enable = true); /** * @brief test if a plugin is enabled @@ -218,6 +220,7 @@ public: virtual bool isMaster(const QString &name) const; virtual QString origin(const QString &name) const; virtual bool onRefreshed(const std::function &callback); + virtual bool onPluginMoved(const std::function &func); public: // implementation of the QAbstractTableModel interface @@ -332,6 +335,8 @@ private: QTemporaryFile m_TempFile; + SignalPluginMoved m_PluginMoved; + }; -- cgit v1.3.1