コード例 #1
0
ファイル: CodeSnippet.py プロジェクト: LinYuanLab/ulipad
 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
ファイル: mCodeSnippet.py プロジェクト: zztalker/ulipad
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
ファイル: __init__.py プロジェクト: LinYuanLab/ulipad
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