83 Private slot to add QtHelp documents provided by plug-ins to |
83 Private slot to add QtHelp documents provided by plug-ins to |
84 the help database. |
84 the help database. |
85 """ |
85 """ |
86 from .QtHelpDocumentationSelectionDialog import \ |
86 from .QtHelpDocumentationSelectionDialog import \ |
87 QtHelpDocumentationSelectionDialog |
87 QtHelpDocumentationSelectionDialog |
88 dlg = QtHelpDocumentationSelectionDialog(self.__pluginHelpDocuments, |
88 dlg = QtHelpDocumentationSelectionDialog( |
89 self) |
89 self.__pluginHelpDocuments, |
|
90 QtHelpDocumentationSelectionDialog.AddMode, |
|
91 self) |
90 if dlg.exec_() == QDialog.Accepted: |
92 if dlg.exec_() == QDialog.Accepted: |
91 documents = dlg.getData() |
93 documents = dlg.getData() |
92 if not documents: |
94 if not documents: |
93 return |
95 return |
94 |
96 |
95 self.__registerDocumentations(documents) |
97 self.__registerDocumentations(documents) |
|
98 |
|
99 @pyqtSlot() |
|
100 def on_managePluginButton_clicked(self): |
|
101 """ |
|
102 Private slot to manage the QtHelp documents provided by plug-ins. |
|
103 """ |
|
104 from .QtHelpDocumentationSelectionDialog import \ |
|
105 QtHelpDocumentationSelectionDialog |
|
106 dlg = QtHelpDocumentationSelectionDialog( |
|
107 self.__pluginHelpDocuments, |
|
108 QtHelpDocumentationSelectionDialog.ManageMode, |
|
109 self) |
|
110 dlg.exec_() |
96 |
111 |
97 def __registerDocumentations(self, fileNames): |
112 def __registerDocumentations(self, fileNames): |
98 """ |
113 """ |
99 Private method to register a given list of documentations. |
114 Private method to register a given list of documentations. |
100 |
115 |