diff -r 9986ec0e559a -r 10516539f238 Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py --- a/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py Tue Oct 15 22:03:54 2013 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py Fri Oct 18 23:00:41 2013 +0200 @@ -4,7 +4,8 @@ # """ -Module implementing a dialog to show the output of the hg status command process. +Module implementing a dialog to show the output of the hg status command +process. """ from __future__ import unicode_literals # __IGNORE_WARNING__ @@ -16,8 +17,8 @@ import os from PyQt4.QtCore import pyqtSlot, Qt, QProcess, QTimer -from PyQt4.QtGui import QWidget, QDialogButtonBox, QMenu, QHeaderView, QTreeWidgetItem, \ - QLineEdit +from PyQt4.QtGui import QWidget, QDialogButtonBox, QMenu, QHeaderView, \ + QTreeWidgetItem, QLineEdit from E5Gui.E5Application import e5App from E5Gui import E5MessageBox @@ -29,7 +30,8 @@ class HgStatusDialog(QWidget, Ui_HgStatusDialog): """ - Class implementing a dialog to show the output of the hg status command process. + Class implementing a dialog to show the output of the hg status command + process. """ def __init__(self, vcs, mq=False, parent=None): """ @@ -47,9 +49,10 @@ self.__pathColumn = 2 self.__lastColumn = self.statusList.columnCount() - self.refreshButton = \ - self.buttonBox.addButton(self.trUtf8("Refresh"), QDialogButtonBox.ActionRole) - self.refreshButton.setToolTip(self.trUtf8("Press to refresh the status display")) + self.refreshButton = self.buttonBox.addButton( + self.trUtf8("Refresh"), QDialogButtonBox.ActionRole) + self.refreshButton.setToolTip( + self.trUtf8("Press to refresh the status display")) self.refreshButton.setEnabled(False) self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) @@ -62,7 +65,8 @@ self.__mq = mq self.statusList.headerItem().setText(self.__lastColumn, "") - self.statusList.header().setSortIndicator(self.__pathColumn, Qt.AscendingOrder) + self.statusList.header().setSortIndicator( + self.__pathColumn, Qt.AscendingOrder) if mq: self.buttonsLine.setVisible(False) @@ -81,7 +85,8 @@ self.menuactions.append(self.menu.addAction( self.trUtf8("Select all for commit"), self.__commitSelectAll)) self.menuactions.append(self.menu.addAction( - self.trUtf8("Deselect all from commit"), self.__commitDeselectAll)) + self.trUtf8("Deselect all from commit"), + self.__commitDeselectAll)) self.menu.addSeparator() self.menuactions.append(self.menu.addAction( self.trUtf8("Add to repository"), self.__add)) @@ -102,7 +107,8 @@ act.setEnabled(False) self.statusList.setContextMenuPolicy(Qt.CustomContextMenu) - self.statusList.customContextMenuRequested.connect(self.__showContextMenu) + self.statusList.customContextMenuRequested.connect( + self.__showContextMenu) self.modifiedIndicators = [ self.trUtf8('added'), @@ -212,7 +218,8 @@ self.__statusFilters = [] if self.__mq: - self.setWindowTitle(self.trUtf8("Mercurial Queue Repository Status")) + self.setWindowTitle( + self.trUtf8("Mercurial Queue Repository Status")) else: self.setWindowTitle(self.trUtf8('Mercurial Status')) @@ -286,7 +293,8 @@ def __finish(self): """ - Private slot called when the process finished or the user pressed the button. + Private slot called when the process finished or the user pressed + the button. """ if self.process is not None and \ self.process.state() != QProcess.NotRunning: @@ -301,7 +309,8 @@ self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True) self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) - self.buttonBox.button(QDialogButtonBox.Close).setFocus(Qt.OtherFocusReason) + self.buttonBox.button(QDialogButtonBox.Close).setFocus( + Qt.OtherFocusReason) self.__statusFilters.sort() self.__statusFilters.insert(0, "<{0}>".format(self.trUtf8("all"))) @@ -564,9 +573,9 @@ """ self.__restoreMissing() - ############################################################################ + ########################################################################### ## Context menu handling methods - ############################################################################ + ########################################################################### def __showContextMenu(self, coord): """ @@ -762,7 +771,8 @@ def __getUnversionedItems(self): """ - Private method to retrieve all entries, that have an unversioned status. + Private method to retrieve all entries, that have an unversioned + status. @return list of all items with an unversioned status """