eric7/Plugins/VcsPlugins/vcsMercurial/HgBackoutDialog.py

branch
eric7
changeset 8629
1b58dc890b87
parent 8318
962bce857696
child 8881
54e42bc2437a
equal deleted inserted replaced
8628:dcdf0074ad39 8629:1b58dc890b87
7 Module implementing a dialog to enter the data for a backout operation. 7 Module implementing a dialog to enter the data for a backout operation.
8 """ 8 """
9 9
10 from PyQt6.QtCore import pyqtSlot, QDateTime 10 from PyQt6.QtCore import pyqtSlot, QDateTime
11 from PyQt6.QtWidgets import QDialog, QDialogButtonBox 11 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
12
13 from EricWidgets.EricApplication import ericApp
12 14
13 from .Ui_HgBackoutDialog import Ui_HgBackoutDialog 15 from .Ui_HgBackoutDialog import Ui_HgBackoutDialog
14 16
15 17
16 class HgBackoutDialog(QDialog, Ui_HgBackoutDialog): 18 class HgBackoutDialog(QDialog, Ui_HgBackoutDialog):
30 super().__init__(parent) 32 super().__init__(parent)
31 self.setupUi(self) 33 self.setupUi(self)
32 34
33 self.buttonBox.button( 35 self.buttonBox.button(
34 QDialogButtonBox.StandardButton.Ok).setEnabled(False) 36 QDialogButtonBox.StandardButton.Ok).setEnabled(False)
37
38 project = ericApp().getObject("Project")
39 pwl, pel = project.getProjectDictionaries()
40 language = project.getProjectSpellLanguage()
41 self.messageEdit.setLanguageWithPWL(
42 language, pwl or None, pel or None)
35 43
36 self.tagCombo.addItems(sorted(tagsList)) 44 self.tagCombo.addItems(sorted(tagsList))
37 self.branchCombo.addItems(["default"] + sorted(branchesList)) 45 self.branchCombo.addItems(["default"] + sorted(branchesList))
38 if bookmarksList is not None: 46 if bookmarksList is not None:
39 self.bookmarkCombo.addItems(sorted(bookmarksList)) 47 self.bookmarkCombo.addItems(sorted(bookmarksList))

eric ide

mercurial