예제 #1
0
 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
예제 #2
0
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
예제 #3
0
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
예제 #4
0
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
예제 #5
0
파일: mGit.py 프로젝트: soul11201/ulipad
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
예제 #6
0
파일: mGit.py 프로젝트: zhangyang9/ulipad
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