6679 """ |
6679 """ |
6680 Private method to edit the list of bookmarked files. |
6680 Private method to edit the list of bookmarked files. |
6681 """ |
6681 """ |
6682 from .BookmarkedFilesDialog import BookmarkedFilesDialog |
6682 from .BookmarkedFilesDialog import BookmarkedFilesDialog |
6683 |
6683 |
6684 dlg = BookmarkedFilesDialog(self.bookmarked, self.ui) |
6684 dlg = BookmarkedFilesDialog(self.bookmarked, parent=self.ui) |
6685 if dlg.exec() == QDialog.DialogCode.Accepted: |
6685 if dlg.exec() == QDialog.DialogCode.Accepted: |
6686 self.bookmarked = dlg.getBookmarkedFiles() |
6686 self.bookmarked = dlg.getBookmarkedFiles() |
6687 |
6687 |
6688 def __clearBookmarked(self): |
6688 def __clearBookmarked(self): |
6689 """ |
6689 """ |
7073 from eric7.QScintilla.GotoDialog import GotoDialog |
7073 from eric7.QScintilla.GotoDialog import GotoDialog |
7074 |
7074 |
7075 aw = self.activeWindow() |
7075 aw = self.activeWindow() |
7076 lines = aw.lines() |
7076 lines = aw.lines() |
7077 curLine = aw.getCursorPosition()[0] + 1 |
7077 curLine = aw.getCursorPosition()[0] + 1 |
7078 dlg = GotoDialog(lines, curLine, self.ui, None, True) |
7078 dlg = GotoDialog(lines, curLine, parent=self.ui, modal=True) |
7079 if dlg.exec() == QDialog.DialogCode.Accepted: |
7079 if dlg.exec() == QDialog.DialogCode.Accepted: |
7080 aw.gotoLine(dlg.getLinenumber(), expand=True) |
7080 aw.gotoLine(dlg.getLinenumber(), expand=True) |
7081 |
7081 |
7082 def __gotoBrace(self): |
7082 def __gotoBrace(self): |
7083 """ |
7083 """ |
7177 ericApp().getObject("Shell") |
7177 ericApp().getObject("Shell") |
7178 if QApplication.focusWidget() == ericApp().getObject("Shell") |
7178 if QApplication.focusWidget() == ericApp().getObject("Shell") |
7179 else self.activeWindow() |
7179 else self.activeWindow() |
7180 ) |
7180 ) |
7181 if aw: |
7181 if aw: |
7182 dlg = ZoomDialog(aw.getZoom(), self.ui, None, True) |
7182 dlg = ZoomDialog(aw.getZoom(), parent=self.ui, modal=True) |
7183 if dlg.exec() == QDialog.DialogCode.Accepted: |
7183 if dlg.exec() == QDialog.DialogCode.Accepted: |
7184 value = dlg.getZoomSize() |
7184 value = dlg.getZoomSize() |
7185 self.__zoomTo(value) |
7185 self.__zoomTo(value) |
7186 |
7186 |
7187 def __zoomTo(self, value): |
7187 def __zoomTo(self, value): |
7705 dlg = SpellingDictionaryEditDialog( |
7705 dlg = SpellingDictionaryEditDialog( |
7706 data, |
7706 data, |
7707 QCoreApplication.translate("ViewManager", "Editing {0}").format( |
7707 QCoreApplication.translate("ViewManager", "Editing {0}").format( |
7708 fileInfo |
7708 fileInfo |
7709 ), |
7709 ), |
7710 self.ui, |
7710 parent=self.ui, |
7711 ) |
7711 ) |
7712 if dlg.exec() == QDialog.DialogCode.Accepted: |
7712 if dlg.exec() == QDialog.DialogCode.Accepted: |
7713 data = dlg.getData() |
7713 data = dlg.getData() |
7714 try: |
7714 try: |
7715 with open(dictionaryFile, "w", encoding="utf-8") as f: |
7715 with open(dictionaryFile, "w", encoding="utf-8") as f: |