4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to show the output of the hg log command process. |
7 Module implementing a dialog to show the output of the hg log command process. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
|
11 try: |
|
12 str = unicode |
|
13 except (NameError): |
|
14 pass |
9 |
15 |
10 import os |
16 import os |
11 |
17 |
12 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, QUrl, QByteArray |
18 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, QUrl, QByteArray |
13 from PyQt4.QtGui import QWidget, QDialogButtonBox, QApplication, \ |
19 from PyQt4.QtGui import QWidget, QDialogButtonBox, QApplication, \ |
36 @param vcs reference to the vcs object |
42 @param vcs reference to the vcs object |
37 @param mode mode of the dialog (string; one of log, incoming, outgoing) |
43 @param mode mode of the dialog (string; one of log, incoming, outgoing) |
38 @param bundle name of a bundle file (string) |
44 @param bundle name of a bundle file (string) |
39 @param parent parent widget (QWidget) |
45 @param parent parent widget (QWidget) |
40 """ |
46 """ |
41 super().__init__(parent) |
47 super(HgLogDialog, self).__init__(parent) |
42 self.setupUi(self) |
48 self.setupUi(self) |
43 |
49 |
44 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) |
50 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) |
45 |
51 |
46 self.process = QProcess() |
52 self.process = QProcess() |