655 Private method to register images for autocompletion lists. |
659 Private method to register images for autocompletion lists. |
656 """ |
660 """ |
657 # finale size of the completion images |
661 # finale size of the completion images |
658 imageSize = QSize(22, 22) |
662 imageSize = QSize(22, 22) |
659 |
663 |
660 self.registerImage(self.ClassID, EricPixmapCache.getPixmap("class", imageSize)) |
|
661 self.registerImage( |
664 self.registerImage( |
662 self.ClassProtectedID, |
665 EditorIconId.Class, |
|
666 EricPixmapCache.getPixmap("class", imageSize), |
|
667 ) |
|
668 self.registerImage( |
|
669 EditorIconId.ClassProtected, |
663 EricPixmapCache.getPixmap("class_protected", imageSize), |
670 EricPixmapCache.getPixmap("class_protected", imageSize), |
664 ) |
671 ) |
665 self.registerImage( |
672 self.registerImage( |
666 self.ClassPrivateID, EricPixmapCache.getPixmap("class_private", imageSize) |
673 EditorIconId.ClassPrivate, |
|
674 EricPixmapCache.getPixmap("class_private", imageSize), |
667 ) |
675 ) |
668 self.registerImage( |
676 self.registerImage( |
669 self.MethodID, EricPixmapCache.getPixmap("method", imageSize) |
677 EditorIconId.Method, |
|
678 EricPixmapCache.getPixmap("method", imageSize), |
670 ) |
679 ) |
671 self.registerImage( |
680 self.registerImage( |
672 self.MethodProtectedID, |
681 EditorIconId.MethodProtected, |
673 EricPixmapCache.getPixmap("method_protected", imageSize), |
682 EricPixmapCache.getPixmap("method_protected", imageSize), |
674 ) |
683 ) |
675 self.registerImage( |
684 self.registerImage( |
676 self.MethodPrivateID, EricPixmapCache.getPixmap("method_private", imageSize) |
685 EditorIconId.MethodPrivate, |
|
686 EricPixmapCache.getPixmap("method_private", imageSize), |
677 ) |
687 ) |
678 self.registerImage( |
688 self.registerImage( |
679 self.AttributeID, EricPixmapCache.getPixmap("attribute", imageSize) |
689 EditorIconId.Attribute, |
|
690 EricPixmapCache.getPixmap("attribute", imageSize), |
680 ) |
691 ) |
681 self.registerImage( |
692 self.registerImage( |
682 self.AttributeProtectedID, |
693 EditorIconId.AttributeProtected, |
683 EricPixmapCache.getPixmap("attribute_protected", imageSize), |
694 EricPixmapCache.getPixmap("attribute_protected", imageSize), |
684 ) |
695 ) |
685 self.registerImage( |
696 self.registerImage( |
686 self.AttributePrivateID, |
697 EditorIconId.AttributePrivate, |
687 EricPixmapCache.getPixmap("attribute_private", imageSize), |
698 EricPixmapCache.getPixmap("attribute_private", imageSize), |
688 ) |
699 ) |
689 self.registerImage(self.EnumID, EricPixmapCache.getPixmap("enum", imageSize)) |
|
690 self.registerImage( |
700 self.registerImage( |
691 self.KeywordsID, EricPixmapCache.getPixmap("keywords", imageSize) |
701 EditorIconId.Enum, |
|
702 EricPixmapCache.getPixmap("enum", imageSize), |
692 ) |
703 ) |
693 self.registerImage( |
704 self.registerImage( |
694 self.ModuleID, EricPixmapCache.getPixmap("module", imageSize) |
705 EditorIconId.Keywords, |
695 ) |
706 EricPixmapCache.getPixmap("keywords", imageSize), |
696 |
707 ) |
697 self.registerImage( |
708 self.registerImage( |
698 self.FromDocumentID, EricPixmapCache.getPixmap("editor", imageSize) |
709 EditorIconId.Module, |
|
710 EricPixmapCache.getPixmap("module", imageSize), |
699 ) |
711 ) |
700 |
712 |
701 self.registerImage( |
713 self.registerImage( |
702 self.TemplateImageID, EricPixmapCache.getPixmap("templateViewer", imageSize) |
714 EditorIconId.FromDocument, |
|
715 EricPixmapCache.getPixmap("editor", imageSize), |
|
716 ) |
|
717 |
|
718 self.registerImage( |
|
719 EditorIconId.TemplateImage, |
|
720 EricPixmapCache.getPixmap("templateViewer", imageSize), |
703 ) |
721 ) |
704 |
722 |
705 def addClone(self, editor): |
723 def addClone(self, editor): |
706 """ |
724 """ |
707 Public method to add a clone to our list. |
725 Public method to add a clone to our list. |