def add_image(self, name, imagefile): if not self.imagefiles.has_key(name): self.imagefiles[name] = imagefile if not self.imageids.has_key(name): image = common.getpngimage(imagefile) self.imageids[name] = self.code_snippet_imagelist.Add(image) if name in ('close', 'open'): imgfile = common.getpngimage('images/TortoiseModified.gif') bmp = common.merge_bitmaps(image, imgfile) index = self.code_snippet_imagelist.Add(bmp) self.imageids[name+'_modified'] = index
def add_image(imagelist, imageids, name, image): if name not in ('close', 'open'): return m = [ ('modified', common.getpngimage('images/TortoiseModified.gif')), ] for f, imgfile in m: bmp = common.merge_bitmaps(image, imgfile) index = imagelist.Add(bmp) imageids[name+f] = index
def add_image(imagelist, image, imgindex): global _image_ids m = [ ('modified', common.getpngimage('images/TortoiseModified.gif')), ('added', common.getpngimage('images/TortoiseAdded.gif')), ('conflicted', common.getpngimage('images/TortoiseConflict.gif')), ('deleted', common.getpngimage('images/TortoiseDeleted.gif')), ('normal', common.getpngimage('images/TortoiseInSubVersion.gif')), ] _image_ids[imgindex] = {} for f, imgfile in m: bmp = common.merge_bitmaps(image, imgfile) index = imagelist.Add(bmp) _image_ids[imgindex][f] = index
def git_add_image(imagelist, image, imgindex): global _git_image_ids m = [ ('M', common.getpngimage('images/TortoiseModified.gif')), ('A', common.getpngimage('images/TortoiseAdded.gif')), ('C', common.getpngimage('images/TortoiseConflict.gif')), ('D', common.getpngimage('images/TortoiseDeleted.gif')), (' ', common.getpngimage('images/TortoiseInSubVersion.gif')), ] _git_image_ids[imgindex] = {} for f, imgfile in m: bmp = common.merge_bitmaps(image, imgfile) index = imagelist.Add(bmp) _git_image_ids[imgindex][f] = index
def git_add_image(imagelist, image, imgindex): global _git_image_ids m = [ ('M', common.getpngimage('images/TortoiseModified.gif')), ('A', common.getpngimage('images/TortoiseAdded.gif')), ('U', common.getpngimage('images/TortoiseConflict.gif')), ('D', common.getpngimage('images/TortoiseDeleted.gif')), (' ', common.getpngimage('images/TortoiseInSubVersion.gif')), ] _git_image_ids[imgindex] = {} for f, imgfile in m: bmp = common.merge_bitmaps(image, imgfile) index = imagelist.Add(bmp) _git_image_ids[imgindex][f] = index