RadonMetrics/RawMetricsDialog.py

changeset 7
3eb5fb0ae72c
parent 5
db25d1d5cc3a
child 9
7f6e04213998
equal deleted inserted replaced
6:13e9698a9981 7:3eb5fb0ae72c
27 27
28 from E5Gui.E5Application import e5App 28 from E5Gui.E5Application import e5App
29 29
30 import Preferences 30 import Preferences
31 import Utilities 31 import Utilities
32
32 33
33 class RawMetricsDialog(QDialog, Ui_RawMetricsDialog): 34 class RawMetricsDialog(QDialog, Ui_RawMetricsDialog):
34 """ 35 """
35 Class implementing a dialog to show raw code metrics. 36 Class implementing a dialog to show raw code metrics.
36 """ 37 """
166 def start(self, fn): 167 def start(self, fn):
167 """ 168 """
168 Public slot to start the code metrics determination. 169 Public slot to start the code metrics determination.
169 170
170 @param fn file or list of files or directory to show 171 @param fn file or list of files or directory to show
171 the code metrics for (string or list of strings) 172 the code metrics for
173 @type str or list of str
172 """ 174 """
173 self.cancelled = False 175 self.cancelled = False
174 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) 176 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
175 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True) 177 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True)
176 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) 178 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
207 self.checkProgressLabel.setVisible(len(self.files) > 1) 209 self.checkProgressLabel.setVisible(len(self.files) > 1)
208 QApplication.processEvents() 210 QApplication.processEvents()
209 211
210 # now go through all the files 212 # now go through all the files
211 self.progress = 0 213 self.progress = 0
212 self.files.sort()
213 if len(self.files) == 1 or not self.radonService.hasBatch: 214 if len(self.files) == 1 or not self.radonService.hasBatch:
214 self.__batch = False 215 self.__batch = False
215 self.rawMetrics() 216 self.rawMetrics()
216 else: 217 else:
217 self.__batch = True 218 self.__batch = True

eric ide

mercurial