80 if len(self.documentsList.findItems(ns, Qt.MatchFixedString)): |
80 if len(self.documentsList.findItems(ns, Qt.MatchFixedString)): |
81 E5MessageBox.warning( |
81 E5MessageBox.warning( |
82 self, |
82 self, |
83 self.trUtf8("Add Documentation"), |
83 self.trUtf8("Add Documentation"), |
84 self.trUtf8( |
84 self.trUtf8( |
85 """The namespace <b>{0}</b> is already registered.""")\ |
85 """The namespace <b>{0}</b> is already registered.""") |
86 .format(ns) |
86 .format(ns) |
87 ) |
87 ) |
88 continue |
88 continue |
89 |
89 |
90 self.__engine.registerDocumentation(fileName) |
90 self.__engine.registerDocumentation(fileName) |
91 self.documentsList.addItem(ns) |
91 self.documentsList.addItem(ns) |
142 Public slot to test the dialog for changes. |
142 Public slot to test the dialog for changes. |
143 |
143 |
144 @return flag indicating presence of changes |
144 @return flag indicating presence of changes |
145 """ |
145 """ |
146 return len(self.__registeredDocs) > 0 or \ |
146 return len(self.__registeredDocs) > 0 or \ |
147 len(self.__unregisteredDocs) > 0 |
147 len(self.__unregisteredDocs) > 0 |
148 |
148 |
149 def getTabsToClose(self): |
149 def getTabsToClose(self): |
150 """ |
150 """ |
151 Public method to get the list of tabs to close. |
151 Public method to get the list of tabs to close. |
152 |
152 |