26 # Start-of-Header |
26 # Start-of-Header |
27 name = "Django Project Plugin" |
27 name = "Django Project Plugin" |
28 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
28 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
29 autoactivate = True |
29 autoactivate = True |
30 deactivateable = True |
30 deactivateable = True |
31 version = "3.2.1" |
31 version = "3.3.0" |
32 className = "ProjectDjangoPlugin" |
32 className = "ProjectDjangoPlugin" |
33 packageName = "ProjectDjango" |
33 packageName = "ProjectDjango" |
34 shortDescription = "Project support for Django projects." |
34 shortDescription = "Project support for Django projects." |
35 longDescription = \ |
35 longDescription = \ |
36 """This plugin implements project support for Django projects.""" |
36 """This plugin implements project support for Django projects.""" |
419 "Django", self.trUtf8("Django"), |
419 "Django", self.trUtf8("Django"), |
420 self.fileTypesCallback, |
420 self.fileTypesCallback, |
421 lexerAssociationCallback=self.lexerAssociationCallback, |
421 lexerAssociationCallback=self.lexerAssociationCallback, |
422 binaryTranslationsCallback= |
422 binaryTranslationsCallback= |
423 self.binaryTranslationsCallback) |
423 self.binaryTranslationsCallback) |
|
424 |
|
425 def getMenu(self, name): |
|
426 """ |
|
427 Public method to get a reference to the requested menu. |
|
428 |
|
429 @param name name of the menu (string) |
|
430 @return reference to the menu (QMenu) or None, if no |
|
431 menu with the given name exists |
|
432 """ |
|
433 if self.__object is not None: |
|
434 return self.__object.getMenu(name) |
|
435 else: |
|
436 return None |
|
437 |
|
438 def getMenuNames(self): |
|
439 """ |
|
440 Public method to get the names of all menus. |
|
441 |
|
442 @return menu names (list of string) |
|
443 """ |
|
444 if self.__object is not None: |
|
445 return list(self.__menus.keys()) |
|
446 else: |
|
447 return [] |