Ejemplo n.º 1
0
 def _createImageMap(self):
     imageList = ZMappedImageList()
     imageList.addImage(u"template",
                        getResourceRegistry().getBitmap(
                            u"images/dialogs/template/manager/template.png")
                        )  #$NON-NLS-1$ #$NON-NLS-2$
     return imageList
Ejemplo n.º 2
0
 def _createImageList(self):
     imageList = ZMappedImageList()
     for tab in self.tabs:
         bitmap = tab.getTabInfo().getBitmap()
         if bitmap is not None:
             imageList.addImage(unicode(tab.getTabId()), bitmap)
     return imageList
Ejemplo n.º 3
0
    def _createImageList(self):
        # FIXME (EPW) Move icons to a common area and use from there (also change navigator)
        registry = getResourceRegistry()
        imgList = ZMappedImageList()
        for img in [u"posts", u"links", u"images", u"tags"]: #$NON-NLS-1$ #$NON-NLS-2$ #$NON-NLS-3$ #$NON-NLS-4$ #$NON-NLS-5$ #$NON-NLS-6$ #$NON-NLS-7$ #$NON-NLS-8$
            imgList.addImage(img, registry.getBitmap(u"images/perspectives/standard/navigator/%s.png" % img)) #$NON-NLS-1$

        return imgList
Ejemplo n.º 4
0
    def _createImageList(self):
        imageList = ZMappedImageList(16, 11)
        for localeStr in self.model.getLanguagePacks():
            bitmap = getFlagBitmapForLocale(localeStr)
            if bitmap is not None:
                imageList.addImage(localeStr, bitmap)

        return imageList
Ejemplo n.º 5
0
 def _createImageList(self):
     imageList = ZMappedImageList()
     imageList.addImage(
         u"blog",
         getResourceRegistry().getBitmap(
             u"images/perspectives/standard/navigator/blog.png")
     )  #$NON-NLS-1$ #$NON-NLS-2$
     return imageList
Ejemplo n.º 6
0
    def _createImageList(self):
        imageList = ZMappedImageList(16, 11)
        for language in self.model.getLanguages():
            langCode = language.getLanguageCode()
            bitmap = getFlagBitmapForLocale(langCode)
            if bitmap is not None:
                imageList.addImage(langCode, bitmap)

        return imageList
Ejemplo n.º 7
0
 def _createImageMap(self):
     imageList = ZMappedImageList()
     bitmap = getResourceRegistry().getBitmap(
         u"images/dialogs/translation/editor/checked.png")  #$NON-NLS-1$
     imageList.addImage(u"checked", bitmap)  #$NON-NLS-1$
     bitmap = getResourceRegistry().getBitmap(
         u"images/dialogs/translation/editor/unchecked.png")  #$NON-NLS-1$
     imageList.addImage(u"unchecked", bitmap)  #$NON-NLS-1$
     return imageList
Ejemplo n.º 8
0
    def _createImageList(self):
        # FIXME (EPW) Move account and blog icons to a common area and use from there (also chnage navigator)
        registry = getResourceRegistry()
        imgList = ZMappedImageList()
        imgList.addImage(u"blog",
                         registry.getBitmap(
                             u"images/perspectives/standard/navigator/blog.png"
                         ))  #$NON-NLS-1$ #$NON-NLS-2$

        return imgList
Ejemplo n.º 9
0
    def __init__(self, blogs, blog):
        self.blogs = blogs
        self.blog = blog
        self.checked = []

        for listBlog in self.blogs:
            isChecked = listBlog == blog
            self.checked.append(isChecked)

        self.imageMap = ZMappedImageList()
Ejemplo n.º 10
0
 def __init__(self):
     self.columnInfo = [(u"Line",10), (u"Column", 10), (u"Message", 80)] #$NON-NLS-1$ #$NON-NLS-2$ #$NON-NLS-3$
     self.validationMessageList = []
     self.imageList = ZMappedImageList()
     registry = getResourceRegistry()
     self.imageList.addImage(u"%d" % ZXhtmlValidationMessage.SUCCESS, registry.getBitmap(u"images/common/check2_whitebg.png")) #$NON-NLS-1$ #$NON-NLS-2$
     self.imageList.addImage(u"%d" % ZXhtmlValidationMessage.INFO, registry.getBitmap(u"images/common/information_whitebg.png")) #$NON-NLS-1$ #$NON-NLS-2$
     self.imageList.addImage(u"%d" % ZXhtmlValidationMessage.WARNING, registry.getBitmap(u"images/common/warning_whitebg.png")) #$NON-NLS-1$ #$NON-NLS-2$
     self.imageList.addImage(u"%d" % ZXhtmlValidationMessage.ERROR, registry.getBitmap(u"images/common/error_whitebg.png")) #$NON-NLS-1$ #$NON-NLS-2$
     self.imageList.addImage(u"%d" % ZXhtmlValidationMessage.FATAL, registry.getBitmap(u"images/common/error_whitebg.png")) #$NON-NLS-1$ #$NON-NLS-2$
Ejemplo n.º 11
0
    def __init__(self, zmediaStorageManagerModel):
        self.model = zmediaStorageManagerModel
        self.imageList = ZMappedImageList()
        self._populateImageList()

        self.columns = [
            (_extstr(u"mediastoragedialog.Name"), None, wx.LIST_FORMAT_LEFT,
             ZListViewEx.COLUMN_RELATIVE, 65),  #$NON-NLS-1$
            (_extstr(u"mediastoragedialog.Type"), None, wx.LIST_FORMAT_LEFT,
             ZListViewEx.COLUMN_RELATIVE, 35)  #$NON-NLS-1$
        ]
Ejemplo n.º 12
0
    def _createTreeImageList(self):
        registry = getResourceRegistry()
        imgList = ZMappedImageList()
        for img in [u"account", u"blog"]:  #$NON-NLS-1$ #$NON-NLS-2$
            imgList.addImage(
                img,
                registry.getBitmap(
                    u"images/perspectives/standard/navigator/%s.png" %
                    img))  #$NON-NLS-1$

        return imgList
Ejemplo n.º 13
0
    def _createTreeImageList(self):
        registry = getResourceRegistry()
        imgList = ZMappedImageList()
        for img in [
                u"unpublished", u"account", u"blog", u"posts", u"links",
                u"images", u"tags"
        ]:  #$NON-NLS-1$ #$NON-NLS-2$ #$NON-NLS-3$ #$NON-NLS-4$ #$NON-NLS-5$ #$NON-NLS-6$ #$NON-NLS-7$ #$NON-NLS-8$
            imgList.addImage(
                img,
                registry.getBitmap(
                    u"images/perspectives/standard/navigator/%s.png" %
                    img))  #$NON-NLS-1$

        return imgList
Ejemplo n.º 14
0
 def __init__(self, izConfigValidationReporter):
     self.reporter = izConfigValidationReporter
     self.imageList = ZMappedImageList()
     registry = getResourceRegistry()
     self.imageList.addImage(
         u"%d" % ZValidationReportEntry.INFO,
         registry.getBitmap(
             u"images/common/check_whitebg.png"))  #$NON-NLS-1$ #$NON-NLS-2$
     self.imageList.addImage(
         u"%d" % ZValidationReportEntry.WARNING,
         registry.getBitmap(u"images/common/warning_whitebg.png"
                            ))  #$NON-NLS-1$ #$NON-NLS-2$
     self.imageList.addImage(
         u"%d" % ZValidationReportEntry.ERROR,
         registry.getBitmap(
             u"images/common/error_whitebg.png"))  #$NON-NLS-1$ #$NON-NLS-2$
Ejemplo n.º 15
0
 def _createImageList(self):
     imgList = ZMappedImageList()
     for (label, imagePath) in IMAGE_LIST_DATA:
         imgList.addImage(label, getResourceRegistry().getBitmap(imagePath))
     return imgList
Ejemplo n.º 16
0
 def _createImageMap(self):
     imageList = ZMappedImageList(16, 11)
     return imageList
Ejemplo n.º 17
0
 def __init__(self):
     self.imageList = ZMappedImageList()
     self.document = None
Ejemplo n.º 18
0
 def __init__(self):
     self.imageList = ZMappedImageList()
     self.links = []
Ejemplo n.º 19
0
 def _createImageList(self):
     imageList = ZMappedImageList()
     for prefDef in self.prefsDefs:
         imageList.addImage(prefDef.getIconKey(), prefDef.loadIcon())
     return imageList