Ejemplo n.º 1
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)
        cAttribute = service.Attribute.getInstance()
        info = cAttribute.getAttributeInfo(params["attribute"])
        self.info = info
        if params["showIcon"]:
            if info.name == "power":
                iconFile = "pg_small"
                iconType = "icons"
            else:
                iconFile = info.icon.iconFile if info.icon else None
                iconType = "pack"
            if iconFile:
                bitmap = bitmapLoader.getBitmap(iconFile, iconType)
                if bitmap:
                    self.imageId = fittingView.imageList.Add(bitmap)
                else:
                    self.imageId = -1
            else:
                self.imageId = -1
            self.mask = wx.LIST_MASK_IMAGE
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = info.displayName if info.displayName != "" else info.name
            self.mask |= wx.LIST_MASK_IMAGE
Ejemplo n.º 2
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.size = 16
     self.maxsize = self.size
     self.mask = wx.LIST_MASK_IMAGE
     self.columnText = ""
     self.shipImage = fittingView.imageList.GetImageIndex("ship_small", "icons")
Ejemplo n.º 3
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.mainFrame = gui.mainFrame.MainFrame.getInstance()
     self.resizable = False
     self.size = 16
     self.maxsize = self.size
     self.mask = wx.LIST_MASK_IMAGE
Ejemplo n.º 4
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)
        cAttribute = service.Attribute.getInstance()
        attributeSlave = params["attributeSlave"] or params["property"]
        try:
            info = cAttribute.getAttributeInfo(attributeSlave)
        except:
            info = None

        self.mask = 0
        self.propertyName = params["property"]
        self.info = info
        if params["showIcon"]:
            if info.name == "power":
                iconFile = "pg_small"
                iconType = "icons"
            else:
                iconFile = info.icon.iconFile if info.icon else None
                iconType = "pack"
            if iconFile:
                bitmap = bitmapLoader.getBitmap(iconFile, iconType)
                if bitmap:
                    self.imageId = fittingView.imageList.Add(bitmap)
                else:
                    self.imageId = -1
            else:
                self.imageId = -1
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = info.displayName if info.displayName != "" else info.name
Ejemplo n.º 5
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.mainFrame = gui.mainFrame.MainFrame.getInstance()
     self.resizable = False
     self.size = 16
     self.maxsize = self.size
     self.mask = wx.LIST_MASK_IMAGE
Ejemplo n.º 6
0
    def __init__(self, fittingView, params=None):
        if params == None:
            params = {"showIcon": True, "displayName": False}
        ViewColumn.__init__(self, fittingView)

        cAttribute = service.Attribute.getInstance()
        info = cAttribute.getAttributeInfo("maxRange")
        self.info = info
        if params["showIcon"]:
            iconFile = info.icon.iconFile if info.icon else None
            if iconFile:
                bitmap = bitmapLoader.getBitmap(iconFile, "pack")
                if bitmap:
                    self.imageId = fittingView.imageList.Add(bitmap)
                else:
                    self.imageId = -1
            else:
                self.imageId = -1
            self.mask = wx.LIST_MASK_IMAGE
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = info.displayName if info.displayName != "" else info.name
            self.mask |= wx.LIST_MASK_TEXT
Ejemplo n.º 7
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)
        cAttribute = service.Attribute.getInstance()
        info = cAttribute.getAttributeInfo(params["attribute"])
        self.info = info
        if params["showIcon"]:
            if info.name == "power":
                iconFile = "pg_small"
                iconType = "icons"
            else:
                iconFile = info.icon.iconFile if info.icon else None
                iconType = "pack"
            if iconFile:
                bitmap = bitmapLoader.getBitmap(iconFile, iconType)
                if bitmap:
                    self.imageId = fittingView.imageList.Add(bitmap)
                else:
                    self.imageId = -1
            else:
                self.imageId = -1
            self.mask = wx.LIST_MASK_IMAGE
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = info.displayName if info.displayName != "" else info.name
            self.mask |= wx.LIST_MASK_IMAGE
Ejemplo n.º 8
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)
        cAttribute = service.Attribute.getInstance()
        attributeSlave = params["attributeSlave"] or params["property"]
        try:
            info = cAttribute.getAttributeInfo(attributeSlave)
        except:
            info = None

        self.mask = 0
        self.propertyName = params["property"]
        self.info = info
        if params["showIcon"]:
            if info.name == "power":
                iconFile = "pg_small"
                iconType = "icons"
            else:
                iconFile = info.icon.iconFile if info.icon else None
                iconType = "pack"
            if iconFile:
                bitmap = bitmapLoader.getBitmap(iconFile, iconType)
                if bitmap:
                    self.imageId = fittingView.imageList.Add(bitmap)
                else:
                    self.imageId = -1
            else:
                self.imageId = -1
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = info.displayName if info.displayName != "" else info.name
Ejemplo n.º 9
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.size = 16
     self.maxsize = self.size
     self.mask = wx.LIST_MASK_TEXT
     self.columnText = ""
     self.shipImage = fittingView.imageList.Add(bitmapLoader.getBitmap("ship_small", "icons"))
Ejemplo n.º 10
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)

        self.mainFrame = gui.mainFrame.MainFrame.getInstance()
        self.columnText = "Name"
        self.mask = wx.LIST_MASK_TEXT
        self.projectedView = isinstance(fittingView, gui.builtinAdditionPanes.projectedView.ProjectedView)
Ejemplo n.º 11
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)
        cAttribute = service.Attribute.getInstance()
        attributeSlave = params["attributeSlave"] or params["property"]
        # This function can throw an exception if the database isn't sane
        # We need to do a sanity check before this runs
        info = cAttribute.getAttributeInfo(attributeSlave)

        self.mask = 0
        self.propertyName = params["property"]
        self.info = info
        if params["showIcon"]:
            if info.name == "power":
                iconFile = "pg_small"
                iconType = "icons"
            else:
                iconFile = info.icon.iconFile if info.icon else None
                iconType = "pack"
            if iconFile:
                self.imageId = fittingView.imageList.GetImageIndex(
                    iconFile, iconType)
            else:
                self.imageId = -1
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = info.displayName if info.displayName != "" else info.name
Ejemplo n.º 12
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)
        cAttribute = service.Attribute.getInstance()
        attributeSlave = params["attributeSlave"] or params["property"]
        # This function can throw an exception if the database isn't sane
        # We need to do a sanity check before this runs
        info = cAttribute.getAttributeInfo(attributeSlave)

        self.mask = 0
        self.propertyName = params["property"]
        self.info = info
        if params["showIcon"]:
            if info.name == "power":
                iconFile = "pg_small"
                iconType = "icons"
            else:
                iconFile = info.icon.iconFile if info.icon else None
                iconType = "pack"
            if iconFile:
                self.imageId = fittingView.imageList.GetImageIndex(iconFile, iconType)
            else:
                self.imageId = -1
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = info.displayName if info.displayName != "" else info.name
Ejemplo n.º 13
0
    def __init__(self, fittingView, params=None):
        if params == None:
            params = {"showIcon": True, "displayName": False}
        ViewColumn.__init__(self, fittingView)
        cAttribute = service.Attribute.getInstance()
        info = cAttribute.getAttributeInfo("trackingSpeed")
        self.info = info
        if params["showIcon"]:
            iconFile = info.icon.iconFile if info.icon else None
            if iconFile:
                bitmap = bitmapLoader.getBitmap(iconFile, "pack")
                if bitmap:
                    self.imageId = fittingView.imageList.Add(bitmap)
                else:
                    self.imageId = -1
            else:
                self.imageId = -1

            self.mask = wx.LIST_MASK_IMAGE

        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = info.displayName if info.displayName != "" else info.name
            self.mask |= wx.LIST_MASK_TEXT
Ejemplo n.º 14
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.size = 24
     self.maxsize = self.size
     self.mask = wx.LIST_MASK_IMAGE
     self.columnText = ""
     self.shipImage = fittingView.imageList.GetImageIndex("ship_small", "gui")
Ejemplo n.º 15
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)

        self.mainFrame = gui.mainFrame.MainFrame.getInstance()
        self.columnText = "Name"
        self.shipImage = fittingView.imageList.GetImageIndex("ship_small", "gui")
        self.mask = wx.LIST_MASK_TEXT
        self.projectedView = isinstance(fittingView, gui.builtinAdditionPanes.projectedView.ProjectedView)
Ejemplo n.º 16
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.mask = wx.LIST_MASK_IMAGE
     bitmap = bitmapLoader.getBitmap("totalPrice_small", "icons")
     if bitmap:
         self.imageId = fittingView.imageList.Add(bitmap)
     else:
         self.imageId = -1
Ejemplo n.º 17
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.mask = wx.LIST_MASK_IMAGE
     bitmap = bitmapLoader.getBitmap("totalPrice_small", "icons")
     if bitmap:
         self.imageId = fittingView.imageList.Add(bitmap)
     else:
         self.imageId = -1
Ejemplo n.º 18
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.size = 16
     self.maxsize = self.size
     self.mask = wx.LIST_MASK_TEXT
     self.columnText = ""
     self.shipImage = fittingView.imageList.Add(
         bitmapLoader.getBitmap("ship_small", "icons"))
Ejemplo n.º 19
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)

        self.mask = wx.LIST_MASK_IMAGE

        Attribute.getInstance().getAttributeInfo("capacitorNeed")
        self.imageId = fittingView.imageList.GetImageIndex("capacitorRecharge_small", "gui")
        self.bitmap = BitmapLoader.getBitmap("capacitorRecharge_small", "gui")
Ejemplo n.º 20
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)

        self.mask = wx.LIST_MASK_IMAGE

        Attribute.getInstance().getAttributeInfo("capacitorNeed")
        self.imageId = fittingView.imageList.GetImageIndex("capacitorRecharge_small", "gui")
        self.bitmap = BitmapLoader.getBitmap("capacitorRecharge_small", "gui")
Ejemplo n.º 21
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)

        self.mainFrame = gui.mainFrame.MainFrame.getInstance()
        self.columnText = "Name"
        self.shipImage = fittingView.imageList.GetImageIndex("ship_small", "gui")
        self.mask = wx.LIST_MASK_TEXT
        self.projectedView = isinstance(fittingView, gui.builtinAdditionPanes.projectedView.ProjectedView)
Ejemplo n.º 22
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)

        self.mask = wx.LIST_MASK_IMAGE

        sAttr = service.Attribute.getInstance()
        info = sAttr.getAttributeInfo("capacitorNeed")
        self.imageId = fittingView.imageList.GetImageIndex(info.icon.iconFile, "pack")
        self.bitmap = bitmapLoader.getBitmap(info.icon.iconFile, "pack")
Ejemplo n.º 23
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)

        self.mask = wx.LIST_MASK_IMAGE

        cAttribute = service.Attribute.getInstance()
        info = cAttribute.getAttributeInfo("capacitorNeed")
        self.imageId = fittingView.imageList.GetImageIndex(
            info.icon.iconFile, "pack")
        self.bitmap = bitmapLoader.getBitmap(info.icon.iconFile, "pack")
Ejemplo n.º 24
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)

        self.mask = wx.LIST_MASK_IMAGE

        cAttribute = service.Attribute.getInstance()
        info = cAttribute.getAttributeInfo("capacitorNeed")
        bitmap = bitmapLoader.getBitmap(info.icon.iconFile, "pack")
        if bitmap:
            self.imageId = fittingView.imageList.Add(bitmap)
        else:
            self.imageId = -1
Ejemplo n.º 25
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)

        if params is None:
            params = {"showIcon": True, "displayName": False}

        self.mask = wx.LIST_MASK_IMAGE
        if params["showIcon"]:
            self.bitmap = BitmapLoader.getBitmap("totalPrice_small", "gui")
            self.imageId = fittingView.imageList.GetImageIndex(
                "totalPrice_small", "gui")
        else:
            self.imageId = -1
        self.columnText = Price.name
Ejemplo n.º 26
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)
        if params is None:
            params = {"showIcon": True, "displayName": False}

        self.mask = wx.LIST_MASK_IMAGE

        Attribute.getInstance().getAttributeInfo("capacitorNeed")
        if params["showIcon"]:
            self.imageId = fittingView.imageList.GetImageIndex("capacitorRecharge_small", "gui")
            self.bitmap = BitmapLoader.getBitmap("capacitorRecharge_small", "gui")
        else:
            self.imageId = -1
        self.columnText = "Cap"
Ejemplo n.º 27
0
    def __init__(self, fittingView, params=None):
        if params == None:
            params = {"showIcon": True, "displayName": False}
        ViewColumn.__init__(self, fittingView)
        if params["showIcon"]:
            self.imageId = fittingView.imageList.GetImageIndex("column_misc", "icons")
            self.bitmap = bitmapLoader.getBitmap("column_misc", "icons")
            self.mask = wx.LIST_MASK_IMAGE
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = "Misc data"
            self.mask |= wx.LIST_MASK_TEXT
Ejemplo n.º 28
0
Archivo: misc.py Proyecto: flinz/pyfa
    def __init__(self, fittingView, params=None):
        if params == None:
            params = {"showIcon": True, "displayName": False}
        ViewColumn.__init__(self, fittingView)
        if params["showIcon"]:
            self.imageId = fittingView.imageList.GetImageIndex(
                "column_misc", "icons")
            self.bitmap = bitmapLoader.getBitmap("column_misc", "icons")
            self.mask = wx.LIST_MASK_IMAGE
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = "Misc data"
            self.mask |= wx.LIST_MASK_TEXT
Ejemplo n.º 29
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.resizable = False
     self.size = 16
     self.maxsize = self.size
     self.mask = wx.LIST_MASK_IMAGE
     for name, state in (("checked", wx.CONTROL_CHECKED), ("unchecked", 0)):
         bitmap = wx.EmptyBitmap(16, 16)
         dc = wx.MemoryDC()
         dc.SelectObject(bitmap)
         dc.SetBackground(wx.TheBrushList.FindOrCreateBrush(fittingView.GetBackgroundColour(), wx.SOLID))
         dc.Clear()
         wx.RendererNative.Get().DrawCheckBox(fittingView, dc, wx.Rect(0, 0, 16, 16), state)
         dc.Destroy()
         setattr(self, "%sId" % name, fittingView.imageList.Add(bitmap))
Ejemplo n.º 30
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)

        self.mainFrame = gui.mainFrame.MainFrame.getInstance()
        self.columnText = _t("Name")
        self.mask = wx.LIST_MASK_TEXT
        self.projectedView = isinstance(
            fittingView, gui.builtinAdditionPanes.projectedView.ProjectedView)
        self.rackTranslations = {
            FittingSlot.HIGH: _t('High'),
            FittingSlot.MED: _t('Med'),
            FittingSlot.LOW: _t('Low'),
            FittingSlot.SUBSYSTEM: _t('Subsystem'),
            FittingSlot.RIG: _t('Rig'),
            FittingSlot.SERVICE: _t('Service')
        }
Ejemplo n.º 31
0
    def __init__(self, fittingView, params=None):
        if params is None:
            params = {"showIcon": True, "displayName": False}

        ViewColumn.__init__(self, fittingView)
        if params["showIcon"]:
            self.imageId = fittingView.imageList.GetImageIndex(
                "column_misc", "gui")
            self.bitmap = BitmapLoader.getBitmap("column_misc", "gui")
            self.mask = wx.LIST_MASK_IMAGE
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = _("Misc data")
            self.mask |= wx.LIST_MASK_TEXT
        self.mainFrame = gui.mainFrame.MainFrame.getInstance()
        self.fittingView = fittingView
Ejemplo n.º 32
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.resizable = False
     self.size = 24
     self.maxsize = self.size
     self.mask = wx.LIST_MASK_WIDTH
     for name, state in (("checked", wx.CONTROL_CHECKED), ("unchecked", 0)):
         bitmap = wx.EmptyBitmap(16, 16)
         dc = wx.MemoryDC()
         dc.SelectObject(bitmap)
         dc.SetBackground(
             wx.TheBrushList.FindOrCreateBrush(
                 fittingView.GetBackgroundColour(), wx.SOLID))
         dc.Clear()
         wx.RendererNative.Get().DrawCheckBox(fittingView, dc,
                                              wx.Rect(0, 0, 16, 16), state)
         dc.Destroy()
         setattr(self, "%sId" % name, fittingView.imageList.Add(bitmap))
Ejemplo n.º 33
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)
        sAttr = Attribute.getInstance()
        info = sAttr.getAttributeInfo(params["attribute"])
        self.info = info
        self.direct = False
        if params["showIcon"]:
            if info.name == "power":
                iconFile = "pg_small"
                iconType = "gui"
            else:
                iconFile = info.icon.iconFile if info.icon else None
                iconType = "icons"
            if iconFile:
                self.imageId = fittingView.imageList.GetImageIndex(
                    iconFile, iconType)
                self.bitmap = BitmapLoader.getBitmap(iconFile, iconType)
            else:
                self.imageId = -1

            self.mask = wx.LIST_MASK_IMAGE
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = info.displayName if info.displayName != "" else info.name
            self.mask |= wx.LIST_MASK_IMAGE

        if params["direct"]:
            self.direct = True
            self.view = fittingView
            originalRefresh = fittingView.refresh
            sMkt = Market.getInstance()

            def refresh(stuff):
                # Hack into our master view and add a callback for ourselves to know when to query
                self.directInfo = sMkt.directAttrRequest(
                    stuff, info) if stuff else None
                originalRefresh(stuff)

            fittingView.refresh = refresh
Ejemplo n.º 34
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)
        sAttr = Attribute.getInstance()
        info = sAttr.getAttributeInfo(params["attribute"])
        self.info = info
        if params["showIcon"]:
            if info.name == "power":
                iconFile = "pg_small"
                iconType = "gui"
            else:
                iconFile = info.icon.iconFile if info.icon else None
                iconType = "icons"
            if iconFile:
                self.imageId = fittingView.imageList.GetImageIndex(iconFile, iconType)
                self.bitmap = BitmapLoader.getBitmap(iconFile, iconType)
            else:
                self.imageId = -1

            self.mask = wx.LIST_MASK_IMAGE
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = info.displayName if info.displayName != "" else info.name
            self.mask |= wx.LIST_MASK_IMAGE

        if params["direct"]:
            self.direct = True
            self.view = fittingView
            originalRefresh = fittingView.refresh
            sMkt = Market.getInstance()

            def refresh(stuff):
                # Hack into our master view and add a callback for ourselves to know when to query
                self.directInfo = sMkt.directAttrRequest(stuff, info) if stuff else None
                originalRefresh(stuff)

            fittingView.refresh = refresh
Ejemplo n.º 35
0
    def __init__(self, fittingView, params=None):
        if params is None:
            params = {"showIcon": True, "displayName": False}

        ViewColumn.__init__(self, fittingView)

        sAttr = Attribute.getInstance()
        info = sAttr.getAttributeInfo("maxRange")
        self.info = info
        if params["showIcon"]:
            iconFile = info.icon.iconFile if info.icon else None
            if iconFile:
                self.imageId = fittingView.imageList.GetImageIndex(iconFile, "icons")
                self.bitmap = BitmapLoader.getBitmap(iconFile, "icons")
            else:
                self.imageId = -1
            self.mask = wx.LIST_MASK_IMAGE
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = info.displayName if info.displayName != "" else info.name
            self.mask |= wx.LIST_MASK_TEXT
Ejemplo n.º 36
0
    def __init__(self, fittingView, params = None):
        if params == None:
            params = {"showIcon": True,
                      "displayName": False}
        ViewColumn.__init__(self, fittingView)

        sAttr = service.Attribute.getInstance()
        info = sAttr.getAttributeInfo("maxRange")
        self.info = info
        if params["showIcon"]:
            iconFile = info.icon.iconFile if info.icon else None
            if iconFile:
                self.imageId = fittingView.imageList.GetImageIndex(iconFile, "icons")
                self.bitmap = BitmapLoader.getBitmap(iconFile, "icons")
            else:
                self.imageId = -1
            self.mask = wx.LIST_MASK_IMAGE
        else:
            self.imageId = -1

        if params["displayName"] or self.imageId == -1:
            self.columnText = info.displayName if info.displayName != "" else info.name
            self.mask |= wx.LIST_MASK_TEXT
Ejemplo n.º 37
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.columnText = "Name"
     self.shipImage = fittingView.imageList.GetImageIndex("ship_small", "icons")
     self.mask = wx.LIST_MASK_TEXT
Ejemplo n.º 38
0
Archivo: ammo.py Proyecto: Ebag333/Pyfa
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.mask = wx.LIST_MASK_IMAGE
     self.imageId = fittingView.imageList.GetImageIndex("damagePattern_small", "gui")
     self.bitmap = BitmapLoader.getBitmap("damagePattern_small", "gui")
Ejemplo n.º 39
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)

        self.mainFrame = gui.mainFrame.MainFrame.getInstance()
        self.columnText = "Active Side Effects"
        self.mask = wx.LIST_MASK_TEXT
Ejemplo n.º 40
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.size = 24
     self.maxsize = self.size
     self.mask = wx.LIST_MASK_IMAGE
     self.columnText = ""
Ejemplo n.º 41
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.resizable = False
     self.size = 24
     self.maxsize = self.size
     self.mask = wx.LIST_MASK_TEXT
Ejemplo n.º 42
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)

        self.mainFrame = gui.mainFrame.MainFrame.getInstance()
        self.columnText = "Active Abilities"
        self.mask = wx.LIST_MASK_TEXT
Ejemplo n.º 43
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.mask = wx.LIST_MASK_IMAGE
     self.imageId = fittingView.imageList.Add(
         bitmapLoader.getBitmap("damagePattern_small", "icons"))
Ejemplo n.º 44
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.mask = wx.LIST_MASK_IMAGE
     self.imageId = fittingView.imageList.Add(bitmapLoader.getBitmap("damagePattern_small", "icons"))
Ejemplo n.º 45
0
 def __init__(self, fittingView, iconID, formatSpec=(3, 0, 3)):
     ViewColumn.__init__(self, fittingView)
     self.imageId = fittingView.imageList.GetImageIndex(iconID, 'icons')
     self.bitmap = BitmapLoader.getBitmap(iconID, 'icons')
     self.mask = wx.LIST_MASK_TEXT
     self.formatSpec = formatSpec
Ejemplo n.º 46
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.mask = wx.LIST_MASK_IMAGE
     self.bitmap = bitmapLoader.getBitmap("totalPrice_small", "icons")
     self.imageId = fittingView.imageList.GetImageIndex("totalPrice_small", "icons")
Ejemplo n.º 47
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.mask = wx.LIST_MASK_IMAGE
     self.bitmap = bitmapLoader.getBitmap("totalPrice_small", "icons")
     self.imageId = fittingView.imageList.GetImageIndex(
         "totalPrice_small", "icons")
Ejemplo n.º 48
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.size = 16
     self.maxsize = self.size
     self.mask = wx.LIST_MASK_IMAGE
     self.columnText = ""
Ejemplo n.º 49
0
Archivo: ammo.py Proyecto: tiniumv/Pyfa
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.mask = wx.LIST_MASK_IMAGE
     self.imageId = fittingView.imageList.GetImageIndex(
         "damagePattern_small", "gui")
     self.bitmap = BitmapLoader.getBitmap("damagePattern_small", "gui")
Ejemplo n.º 50
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.columnText = "Name"
     self.shipImage = fittingView.imageList.GetImageIndex(
         "ship_small", "icons")
     self.mask = wx.LIST_MASK_TEXT
Ejemplo n.º 51
0
 def __init__(self, fittingView, params):
     ViewColumn.__init__(self, fittingView)
     self.imageId = fittingView.imageList.GetImageIndex(74, 'icons')
     self.bitmap = BitmapLoader.getBitmap(74, 'icons')
     self.mask = wx.LIST_MASK_IMAGE
Ejemplo n.º 52
0
    def __init__(self, fittingView, params):
        ViewColumn.__init__(self, fittingView)

        self.mainFrame = gui.mainFrame.MainFrame.getInstance()
        self.columnText = _t("Active Abilities")
        self.mask = wx.LIST_MASK_TEXT