summaryrefslogtreecommitdiff
path: root/src/pluginlist.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-06-16 21:49:57 +0200
committerTannin <devnull@localhost>2014-06-16 21:49:57 +0200
commit484749e612489336e5bfbe50ddc3cbe307069d4c (patch)
tree296dc49d05a82c4b331f734ef1caa906a0dc5162 /src/pluginlist.h
parent6d3f88b330f680459146ff1304c4752ffdbd1263 (diff)
- 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
Diffstat (limited to 'src/pluginlist.h')
-rw-r--r--src/pluginlist.h7
1 files changed, 6 insertions, 1 deletions
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<void ()> SignalRefreshed;
+ typedef boost::signals2::signal<void (const QString &, int, int)> 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<void()> &callback);
+ virtual bool onPluginMoved(const std::function<void (const QString &, int, int)> &func);
public: // implementation of the QAbstractTableModel interface
@@ -332,6 +335,8 @@ private:
QTemporaryFile m_TempFile;
+ SignalPluginMoved m_PluginMoved;
+
};