22 # Start-Of-Header |
22 # Start-Of-Header |
23 name = "Selection Encloser Plug-in" |
23 name = "Selection Encloser Plug-in" |
24 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
24 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
25 autoactivate = True |
25 autoactivate = True |
26 deactivateable = True |
26 deactivateable = True |
27 version = "2.1.3" |
27 version = "2.1.4" |
28 className = "SelectionEncloserPlugin" |
28 className = "SelectionEncloserPlugin" |
29 packageName = "SelectionEncloser" |
29 packageName = "SelectionEncloser" |
30 shortDescription = "Enclose the selection with a string." |
30 shortDescription = "Enclose the selection with a string." |
31 longDescription = \ |
31 longDescription = \ |
32 """This plug-in implements a tool to enclose the selection of""" \ |
32 """This plug-in implements a tool to enclose the selection of""" \ |
60 """ |
60 """ |
61 Module function returning data as required by the configuration dialog. |
61 Module function returning data as required by the configuration dialog. |
62 |
62 |
63 @return dictionary containing the relevant data |
63 @return dictionary containing the relevant data |
64 """ |
64 """ |
65 if e5App().getObject("UserInterface").versionIsNewer('5.2.99', '20121012'): |
65 return { |
66 return { |
66 "selectionEncloserPage": [ |
67 "selectionEncloserPage": [ |
67 QCoreApplication.translate("SelectionEncloserPlugin", |
68 QCoreApplication.translate("SelectionEncloserPlugin", |
68 "Selection Encloser"), |
69 "Selection Encloser"), |
69 os.path.join("SelectionEncloser", "icons", |
70 os.path.join("SelectionEncloser", "icons", |
70 "selectionEncloser.png"), |
71 "selectionEncloser.png"), |
71 createSelectionEncloserPage, None, None], |
72 createSelectionEncloserPage, 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. |