Prepared the plug-in manager for a new plug-in type (providing documentation as QtHelp files (*.qch)).

Mon, 10 Oct 2016 19:21:22 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 10 Oct 2016 19:21:22 +0200
changeset 5223
4c0b3ee7d2d8
parent 5219
cfee0406da8e
child 5224
7454861e4106

Prepared the plug-in manager for a new plug-in type (providing documentation as QtHelp files (*.qch)).

PluginManager/PluginManager.py file | annotate | diff | comparison | revisions
--- a/PluginManager/PluginManager.py	Sun Oct 09 13:38:19 2016 +0200
+++ b/PluginManager/PluginManager.py	Mon Oct 10 19:21:22 2016 +0200
@@ -900,6 +900,23 @@
         
         return apis
         
+    def getPluginQtHelpFiles(self):
+        """
+        Public method to get the list of QtHelp documentation files provided
+        by a plug-in.
+        
+        @return dictionary with documentation type as key and list of files
+            as value
+        @rtype dict (key: str, value: list of str)
+        """
+        helpFiles = {}
+        for module in list(self.__activeModules.values()) + \
+                list(self.__onDemandActiveModules.values()):
+            if hasattr(module, "helpFiles"):
+                helpFiles.update(module.helpFiles())
+        
+        return helpFiles
+        
     def getPluginExeDisplayData(self):
         """
         Public method to get data to display information about a plugins

eric ide

mercurial