Helpviewer/QtHelpDocumentationDialog.py

changeset 945
8cd4d08fa9f6
parent 882
34b86be88bf0
child 1112
8a7d1b9d18db
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
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:

eric ide

mercurial