21 # Start-Of-Header |
21 # Start-Of-Header |
22 name = "Assistant Eric Plugin" |
22 name = "Assistant Eric Plugin" |
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.0.1" |
26 version = "2.1.0" |
27 className = "AssistantEricPlugin" |
27 className = "AssistantEricPlugin" |
28 packageName = "AssistantEric" |
28 packageName = "AssistantEric" |
29 shortDescription = "Alternative autocompletion and calltips provider." |
29 shortDescription = "Alternative autocompletion and calltips provider." |
30 longDescription = """This plugin implements an alternative autocompletion and""" \ |
30 longDescription = """This plugin implements an alternative autocompletion and""" \ |
31 """ calltips provider.""" |
31 """ calltips provider.""" |
99 """ |
99 """ |
100 QObject.__init__(self, ui) |
100 QObject.__init__(self, ui) |
101 self.__ui = ui |
101 self.__ui = ui |
102 self.__initialize() |
102 self.__initialize() |
103 |
103 |
|
104 self.__newStyle = ui.versionIsNewer("5.0.99", "20100811") |
|
105 |
104 self.__defaults = { |
106 self.__defaults = { |
105 "AutoCompletionEnabled" : False, |
107 "AutoCompletionEnabled" : False, |
106 "AutoCompletionSource" : AcsAPIs | AcsProject, |
108 "AutoCompletionSource" : AcsAPIs | AcsProject, |
107 "CalltipsEnabled" : False, |
109 "CalltipsEnabled" : False, |
108 "CallTipsContextShown" : 1, |
110 "CallTipsContextShown" : 1, |
153 global assistantEricPluginObject |
155 global assistantEricPluginObject |
154 assistantEricPluginObject = self |
156 assistantEricPluginObject = self |
155 |
157 |
156 from AssistantEric.Assistant import Assistant |
158 from AssistantEric.Assistant import Assistant |
157 |
159 |
158 self.__object = Assistant(self, self.__ui) |
160 self.__object = Assistant(self, self.__newStyle, self.__ui) |
159 e5App().registerPluginObject("AssistantEric", self.__object) |
161 e5App().registerPluginObject("AssistantEric", self.__object) |
160 |
162 |
161 self.__object.activate() |
163 self.__object.activate() |
162 |
164 |
163 return None, True |
165 return None, True |