78 |
78 |
79 def __addGlobalsAPI(self): |
79 def __addGlobalsAPI(self): |
80 """ |
80 """ |
81 Private method to generate the api section for global variables. |
81 Private method to generate the api section for global variables. |
82 """ |
82 """ |
83 from QScintilla.Editor import Editor |
83 from eric7.QScintilla.Editor import Editor |
84 |
84 |
85 moduleNameStr = "{0}".format(self.moduleName) |
85 moduleNameStr = "{0}".format(self.moduleName) |
86 |
86 |
87 for globalName in sorted(self.module.globals.keys()): |
87 for globalName in sorted(self.module.globals.keys()): |
88 if not self.__isPrivate(self.module.globals[globalName]): |
88 if not self.__isPrivate(self.module.globals[globalName]): |
110 """ |
110 """ |
111 Private method to generate the api section for class methods. |
111 Private method to generate the api section for class methods. |
112 |
112 |
113 @param className name of the class containing the method (string) |
113 @param className name of the class containing the method (string) |
114 """ |
114 """ |
115 from QScintilla.Editor import Editor |
115 from eric7.QScintilla.Editor import Editor |
116 |
116 |
117 _class = self.module.classes[className] |
117 _class = self.module.classes[className] |
118 methods = sorted(_class.methods.keys()) |
118 methods = sorted(_class.methods.keys()) |
119 if "__init__" in methods: |
119 if "__init__" in methods: |
120 methods.remove("__init__") |
120 methods.remove("__init__") |
156 Private method to generate class api section for class variables. |
156 Private method to generate class api section for class variables. |
157 |
157 |
158 @param className name of the class containing the class variables |
158 @param className name of the class containing the class variables |
159 (string) |
159 (string) |
160 """ |
160 """ |
161 from QScintilla.Editor import Editor |
161 from eric7.QScintilla.Editor import Editor |
162 |
162 |
163 _class = self.module.classes[className] |
163 _class = self.module.classes[className] |
164 classNameStr = "{0}{1}.".format(self.moduleName, className) |
164 classNameStr = "{0}{1}.".format(self.moduleName, className) |
165 for variable in sorted(_class.globals.keys()): |
165 for variable in sorted(_class.globals.keys()): |
166 if not self.__isPrivate(_class.globals[variable]): |
166 if not self.__isPrivate(_class.globals[variable]): |
174 |
174 |
175 def __addFunctionsAPI(self): |
175 def __addFunctionsAPI(self): |
176 """ |
176 """ |
177 Private method to generate the api section for functions. |
177 Private method to generate the api section for functions. |
178 """ |
178 """ |
179 from QScintilla.Editor import Editor |
179 from eric7.QScintilla.Editor import Editor |
180 |
180 |
181 funcNames = sorted(self.module.functions.keys()) |
181 funcNames = sorted(self.module.functions.keys()) |
182 for funcName in funcNames: |
182 for funcName in funcNames: |
183 if not self.__isPrivate(self.module.functions[funcName]): |
183 if not self.__isPrivate(self.module.functions[funcName]): |
184 if self.module.functions[funcName].isPublic(): |
184 if self.module.functions[funcName].isPublic(): |