37 @param radonService reference to the service |
37 @param radonService reference to the service |
38 @type RadonMetricsPlugin |
38 @type RadonMetricsPlugin |
39 @param parent reference to the parent widget |
39 @param parent reference to the parent widget |
40 @type QWidget |
40 @type QWidget |
41 """ |
41 """ |
42 super(RawMetricsDialog, self).__init__(parent) |
42 super().__init__(parent) |
43 self.setupUi(self) |
43 self.setupUi(self) |
44 self.setWindowFlags(Qt.Window) |
44 self.setWindowFlags(Qt.Window) |
45 |
45 |
46 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
46 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
47 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
47 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
277 The results are reported to the __processResult slot. |
277 The results are reported to the __processResult slot. |
278 """ |
278 """ |
279 self.__lastFileItem = None |
279 self.__lastFileItem = None |
280 |
280 |
281 self.checkProgressLabel.setPath(self.tr("Preparing files...")) |
281 self.checkProgressLabel.setPath(self.tr("Preparing files...")) |
282 progress = 0 |
|
283 |
282 |
284 argumentsList = [] |
283 argumentsList = [] |
285 for filename in self.files: |
284 for progress, filename in enumerate(self.files, start=1): |
286 progress += 1 |
|
287 self.checkProgress.setValue(progress) |
285 self.checkProgress.setValue(progress) |
288 QApplication.processEvents() |
286 QApplication.processEvents() |
289 |
287 |
290 try: |
288 try: |
291 source = Utilities.readEncodedFile(filename)[0] |
289 source = Utilities.readEncodedFile(filename)[0] |