12 |
12 |
13 from PyQt4.QtCore import pyqtSlot, Qt |
13 from PyQt4.QtCore import pyqtSlot, Qt |
14 from PyQt4.QtGui import QDialog, QTreeWidgetItem, QAbstractButton, \ |
14 from PyQt4.QtGui import QDialog, QTreeWidgetItem, QAbstractButton, \ |
15 QDialogButtonBox, QApplication, QHeaderView, QIcon |
15 QDialogButtonBox, QApplication, QHeaderView, QIcon |
16 |
16 |
17 from . import pep8 |
|
18 |
|
19 from E5Gui.E5Application import e5App |
17 from E5Gui.E5Application import e5App |
20 |
18 |
21 from .Ui_Pep8Dialog import Ui_Pep8Dialog |
19 from .Ui_Pep8Dialog import Ui_Pep8Dialog |
22 |
20 |
23 import UI.PixmapCache |
21 import UI.PixmapCache |
24 import Preferences |
22 import Preferences |
25 import Utilities |
23 import Utilities |
26 |
24 |
|
25 from . import pep8 |
27 from .Pep8NamingChecker import Pep8NamingChecker |
26 from .Pep8NamingChecker import Pep8NamingChecker |
|
27 |
|
28 # register the name checker |
|
29 pep8.register_check(Pep8NamingChecker, Pep8NamingChecker.Codes) |
28 |
30 |
29 |
31 |
30 class Pep8Report(pep8.BaseReport): |
32 class Pep8Report(pep8.BaseReport): |
31 """ |
33 """ |
32 Class implementing a special report to be used with our dialog. |
34 Class implementing a special report to be used with our dialog. |
109 self.__forProject = False |
111 self.__forProject = False |
110 self.__data = {} |
112 self.__data = {} |
111 self.__statistics = {} |
113 self.__statistics = {} |
112 |
114 |
113 self.on_loadDefaultButton_clicked() |
115 self.on_loadDefaultButton_clicked() |
114 |
|
115 # register the name checker |
|
116 pep8.register_check(Pep8NamingChecker, Pep8NamingChecker.Codes) |
|
117 |
116 |
118 def __resort(self): |
117 def __resort(self): |
119 """ |
118 """ |
120 Private method to resort the tree. |
119 Private method to resort the tree. |
121 """ |
120 """ |