21 # Start-Of-Header |
21 # Start-Of-Header |
22 name = "Print Remover Plug-in" |
22 name = "Print Remover Plug-in" |
23 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
23 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
24 autoactivate = True |
24 autoactivate = True |
25 deactivateable = True |
25 deactivateable = True |
26 version = "2.1.1" |
26 version = "2.1.2" |
27 className = "PrintRemoverPlugin" |
27 className = "PrintRemoverPlugin" |
28 packageName = "PrintRemover" |
28 packageName = "PrintRemover" |
29 shortDescription = "Remove print() like debug statements." |
29 shortDescription = "Remove print() like debug statements." |
30 longDescription = \ |
30 longDescription = \ |
31 """This plug-in implements a tool to remove lines starting with""" \ |
31 """This plug-in implements a tool to remove lines starting with""" \ |
61 """ |
61 """ |
62 Module function returning data as required by the configuration dialog. |
62 Module function returning data as required by the configuration dialog. |
63 |
63 |
64 @return dictionary containing the relevant data |
64 @return dictionary containing the relevant data |
65 """ |
65 """ |
66 if e5App().getObject("UserInterface").versionIsNewer('5.2.99', '20121012'): |
66 return { |
67 return { |
67 "printRemoverPage": [ |
68 "printRemoverPage": [ |
68 QCoreApplication.translate("PrintRemoverPlugin", |
69 QCoreApplication.translate("PrintRemoverPlugin", |
69 "Print Remover"), |
70 "Print Remover"), |
70 os.path.join("PrintRemover", "icons", "printRemover.png"), |
71 os.path.join("PrintRemover", "icons", "printRemover.png"), |
71 createPrintRemoverPage, None, None], |
72 createPrintRemoverPage, None, None], |
72 } |
73 } |
|
74 else: |
|
75 return {} |
|
76 |
73 |
77 |
74 |
78 def prepareUninstall(): |
75 def prepareUninstall(): |
79 """ |
76 """ |
80 Module function to prepare for an uninstallation. |
77 Module function to prepare for an uninstallation. |