12 from PyQt4.QtHelp import QHelpEngineCore |
12 from PyQt4.QtHelp import QHelpEngineCore |
13 |
13 |
14 from E5Gui import E5MessageBox, E5FileDialog |
14 from E5Gui import E5MessageBox, E5FileDialog |
15 |
15 |
16 from .Ui_QtHelpDocumentationDialog import Ui_QtHelpDocumentationDialog |
16 from .Ui_QtHelpDocumentationDialog import Ui_QtHelpDocumentationDialog |
|
17 |
17 |
18 |
18 class QtHelpDocumentationDialog(QDialog, Ui_QtHelpDocumentationDialog): |
19 class QtHelpDocumentationDialog(QDialog, Ui_QtHelpDocumentationDialog): |
19 """ |
20 """ |
20 Class implementing a dialog to manage the QtHelp documentation database. |
21 Class implementing a dialog to manage the QtHelp documentation database. |
21 """ |
22 """ |
107 self.trUtf8("Remove Documentation"), |
108 self.trUtf8("Remove Documentation"), |
108 self.trUtf8("""Some documents currently opened reference the """ |
109 self.trUtf8("""Some documents currently opened reference the """ |
109 """documentation you are attempting to remove. """ |
110 """documentation you are attempting to remove. """ |
110 """Removing the documentation will close those """ |
111 """Removing the documentation will close those """ |
111 """documents. Remove anyway?"""), |
112 """documents. Remove anyway?"""), |
112 icon = E5MessageBox.Warning) |
113 icon=E5MessageBox.Warning) |
113 if not res: |
114 if not res: |
114 return |
115 return |
115 self.__unregisteredDocs.append(ns) |
116 self.__unregisteredDocs.append(ns) |
116 for id in openedDocs: |
117 for id in openedDocs: |
117 if openedDocs[id] == ns and id not in self.__tabsToClose: |
118 if openedDocs[id] == ns and id not in self.__tabsToClose: |