249 """ |
249 """ |
250 Private slot to show a little About message. |
250 Private slot to show a little About message. |
251 """ |
251 """ |
252 E5MessageBox.about( |
252 E5MessageBox.about( |
253 self, |
253 self, |
254 self.tr("About eric5 Mini Editor"), |
254 self.tr("About eric6 Mini Editor"), |
255 self.tr( |
255 self.tr( |
256 "The eric5 Mini Editor is an editor component" |
256 "The eric6 Mini Editor is an editor component" |
257 " based on QScintilla. It may be used for simple" |
257 " based on QScintilla. It may be used for simple" |
258 " editing tasks, that don't need the power of" |
258 " editing tasks, that don't need the power of" |
259 " a full blown editor.")) |
259 " a full blown editor.")) |
260 |
260 |
261 def __aboutQt(self): |
261 def __aboutQt(self): |
262 """ |
262 """ |
263 Private slot to handle the About Qt dialog. |
263 Private slot to handle the About Qt dialog. |
264 """ |
264 """ |
265 E5MessageBox.aboutQt(self, "eric5 Mini Editor") |
265 E5MessageBox.aboutQt(self, "eric6 Mini Editor") |
266 |
266 |
267 def __whatsThis(self): |
267 def __whatsThis(self): |
268 """ |
268 """ |
269 Private slot called in to enter Whats This mode. |
269 Private slot called in to enter Whats This mode. |
270 """ |
270 """ |
349 self.__createEditActions() |
349 self.__createEditActions() |
350 self.__createHelpActions() |
350 self.__createHelpActions() |
351 self.__createSearchActions() |
351 self.__createSearchActions() |
352 |
352 |
353 # read the keyboard shortcuts and make them identical to the main |
353 # read the keyboard shortcuts and make them identical to the main |
354 # eric5 shortcuts |
354 # eric6 shortcuts |
355 for act in self.helpActions: |
355 for act in self.helpActions: |
356 self.__readShortcut(act, "General") |
356 self.__readShortcut(act, "General") |
357 for act in self.editActions: |
357 for act in self.editActions: |
358 self.__readShortcut(act, "Edit") |
358 self.__readShortcut(act, "Edit") |
359 for act in self.fileActions: |
359 for act in self.fileActions: |
2174 @return flag indicating, if it is ok to continue (boolean) |
2174 @return flag indicating, if it is ok to continue (boolean) |
2175 """ |
2175 """ |
2176 if self.__textEdit.isModified(): |
2176 if self.__textEdit.isModified(): |
2177 ret = E5MessageBox.okToClearData( |
2177 ret = E5MessageBox.okToClearData( |
2178 self, |
2178 self, |
2179 self.tr("eric5 Mini Editor"), |
2179 self.tr("eric6 Mini Editor"), |
2180 self.tr("The document has unsaved changes."), |
2180 self.tr("The document has unsaved changes."), |
2181 self.__save) |
2181 self.__save) |
2182 return ret |
2182 return ret |
2183 return True |
2183 return True |
2184 |
2184 |