WebBrowser/QtHelp/QtHelpDocumentationDialog.py

changeset 5393
9db3fd0b1c72
parent 5389
9b1c800daff3
child 5605
1950fe1a32c4
--- a/WebBrowser/QtHelp/QtHelpDocumentationDialog.py	Sat Dec 31 13:40:26 2016 +0100
+++ b/WebBrowser/QtHelp/QtHelpDocumentationDialog.py	Sat Dec 31 17:52:23 2016 +0100
@@ -85,8 +85,10 @@
         """
         from .QtHelpDocumentationSelectionDialog import \
             QtHelpDocumentationSelectionDialog
-        dlg = QtHelpDocumentationSelectionDialog(self.__pluginHelpDocuments,
-                                                 self)
+        dlg = QtHelpDocumentationSelectionDialog(
+            self.__pluginHelpDocuments,
+            QtHelpDocumentationSelectionDialog.AddMode,
+            self)
         if dlg.exec_() == QDialog.Accepted:
             documents = dlg.getData()
             if not documents:
@@ -94,6 +96,19 @@
             
             self.__registerDocumentations(documents)
     
+    @pyqtSlot()
+    def on_managePluginButton_clicked(self):
+        """
+        Private slot to manage the QtHelp documents provided by plug-ins.
+        """
+        from .QtHelpDocumentationSelectionDialog import \
+            QtHelpDocumentationSelectionDialog
+        dlg = QtHelpDocumentationSelectionDialog(
+            self.__pluginHelpDocuments,
+            QtHelpDocumentationSelectionDialog.ManageMode,
+            self)
+        dlg.exec_()
+    
     def __registerDocumentations(self, fileNames):
         """
         Private method to register a given list of documentations.

eric ide

mercurial