8 """ |
8 """ |
9 |
9 |
10 from PyQt4.QtGui import * |
10 from PyQt4.QtGui import * |
11 from PyQt4.QtCore import * |
11 from PyQt4.QtCore import * |
12 from PyQt4.QtHelp import QHelpEngineCore |
12 from PyQt4.QtHelp import QHelpEngineCore |
|
13 |
|
14 from E5Gui import E5MessageBox |
13 |
15 |
14 from .Ui_QtHelpDocumentationDialog import Ui_QtHelpDocumentationDialog |
16 from .Ui_QtHelpDocumentationDialog import Ui_QtHelpDocumentationDialog |
15 |
17 |
16 class QtHelpDocumentationDialog(QDialog, Ui_QtHelpDocumentationDialog): |
18 class QtHelpDocumentationDialog(QDialog, Ui_QtHelpDocumentationDialog): |
17 """ |
19 """ |
103 |
105 |
104 items = self.documentsList.selectedItems() |
106 items = self.documentsList.selectedItems() |
105 for item in items: |
107 for item in items: |
106 ns = item.text() |
108 ns = item.text() |
107 if ns in list(openedDocs.values()): |
109 if ns in list(openedDocs.values()): |
108 res = QMessageBox.information(self, |
110 res = QMessageBox.warning(self, |
109 self.trUtf8("Remove Documentation"), |
111 self.trUtf8("Remove Documentation"), |
110 self.trUtf8("""Some documents currently opened reference the """ |
112 self.trUtf8("""Some documents currently opened reference the """ |
111 """documentation you are attempting to remove. """ |
113 """documentation you are attempting to remove. """ |
112 """Removing the documentation will close those """ |
114 """Removing the documentation will close those """ |
113 """documents. Remove anyway?"""), |
115 """documents. Remove anyway?"""), |