Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py

changeset 2223
054c285dab38
parent 1764
ba0c21fd61f6
child 2302
f29e9405c851
equal deleted inserted replaced
2222:105f425944a2 2223:054c285dab38
20 from .SvnUtilities import formatTime, dateFromTime_t 20 from .SvnUtilities import formatTime, dateFromTime_t
21 from .SvnDialogMixin import SvnDialogMixin 21 from .SvnDialogMixin import SvnDialogMixin
22 from .SvnDiffDialog import SvnDiffDialog 22 from .SvnDiffDialog import SvnDiffDialog
23 23
24 from .Ui_SvnLogBrowserDialog import Ui_SvnLogBrowserDialog 24 from .Ui_SvnLogBrowserDialog import Ui_SvnLogBrowserDialog
25
26 import UI.PixmapCache
27 25
28 26
29 class SvnLogBrowserDialog(QDialog, SvnDialogMixin, Ui_SvnLogBrowserDialog): 27 class SvnLogBrowserDialog(QDialog, SvnDialogMixin, Ui_SvnLogBrowserDialog):
30 """ 28 """
31 Class implementing a dialog to browse the log history. 29 Class implementing a dialog to browse the log history.
56 self.fromDate.setDisplayFormat("yyyy-MM-dd") 54 self.fromDate.setDisplayFormat("yyyy-MM-dd")
57 self.toDate.setDisplayFormat("yyyy-MM-dd") 55 self.toDate.setDisplayFormat("yyyy-MM-dd")
58 self.fromDate.setDate(QDate.currentDate()) 56 self.fromDate.setDate(QDate.currentDate())
59 self.toDate.setDate(QDate.currentDate()) 57 self.toDate.setDate(QDate.currentDate())
60 self.fieldCombo.setCurrentIndex(self.fieldCombo.findText(self.trUtf8("Message"))) 58 self.fieldCombo.setCurrentIndex(self.fieldCombo.findText(self.trUtf8("Message")))
61 self.clearRxEditButton.setIcon(UI.PixmapCache.getIcon("clearLeft.png"))
62 self.limitSpinBox.setValue(self.vcs.getPlugin().getPreferences("LogLimit")) 59 self.limitSpinBox.setValue(self.vcs.getPlugin().getPreferences("LogLimit"))
63 self.stopCheckBox.setChecked(self.vcs.getPlugin().getPreferences("StopLogOnCopy")) 60 self.stopCheckBox.setChecked(self.vcs.getPlugin().getPreferences("StopLogOnCopy"))
64 61
65 self.__messageRole = Qt.UserRole 62 self.__messageRole = Qt.UserRole
66 self.__changesRole = Qt.UserRole + 1 63 self.__changesRole = Qt.UserRole + 1
501 topItem.setHidden(True) 498 topItem.setHidden(True)
502 if topItem is currentItem: 499 if topItem is currentItem:
503 self.messageEdit.clear() 500 self.messageEdit.clear()
504 self.filesTree.clear() 501 self.filesTree.clear()
505 502
506 @pyqtSlot()
507 def on_clearRxEditButton_clicked(self):
508 """
509 Private slot called by a click of the clear RX edit button.
510 """
511 self.rxEdit.clear()
512
513 @pyqtSlot(bool) 503 @pyqtSlot(bool)
514 def on_stopCheckBox_clicked(self, checked): 504 def on_stopCheckBox_clicked(self, checked):
515 """ 505 """
516 Private slot called, when the stop on copy/move checkbox is clicked 506 Private slot called, when the stop on copy/move checkbox is clicked
517 """ 507 """

eric ide

mercurial