Exemplo n.º 1
0
 def ApplyAttributes(self, attributes):
     uicls.Window.ApplyAttributes(self, attributes)
     self.SetWndIcon('ui_61_128_3', hidden=True)
     self.factionalWarStatus = None
     self.topCont = uicls.Container(name='topCont',
                                    parent=self.sr.main,
                                    align=uiconst.TOTOP,
                                    height=140,
                                    clipChildren=True,
                                    padRight=4)
     self.tabgroup = uicls.TabGroup(parent=self.sr.main,
                                    align=uiconst.TOTOP)
     self.bottomCont = uicls.Container(name='buttonParent',
                                       align=uiconst.TOBOTTOM,
                                       height=28,
                                       parent=self.sr.main)
     uicls.GradientSprite(bgParent=self.bottomCont,
                          rotation=-pi / 2,
                          rgbData=[(0, (0.3, 0.3, 0.3))],
                          alphaData=[(0, 0.3), (0.9, 0.0)])
     self.warzonePanel = uicls.Container(name='warzonePanel',
                                         parent=self.sr.main,
                                         padding=const.defaultPadding,
                                         state=uiconst.UI_HIDDEN)
     self.statisticsPanel = uicls.Container(name='statisticsPanel',
                                            parent=self.sr.main,
                                            padding=const.defaultPadding,
                                            state=uiconst.UI_HIDDEN)
     self.rulesPanel = uicls.Container(name='rulesPanel',
                                       parent=self.sr.main,
                                       padding=const.defaultPadding,
                                       state=uiconst.UI_HIDDEN)
     uthread.new(self.LoadTabPanels)
Exemplo n.º 2
0
 def ConstructLayout(self):
     self.topFill = uicls.Container(parent=self, name='topFill', bgColor=settings.char.windows.Get('wndColor', eve.themeColor), align=uiconst.TOTOP, height=30)
     self.topBG = uicls.Sprite(parent=self.topFill, align=uiconst.TOALL, texturePath='res:/UI/Texture/classes/Neocom/eveButtonBg.png', blendMode=trinity.TR2_SBM_ADD)
     self.main = uicls.Container(name='main', parent=self, padTop=3)
     color = self.GetBackgroundColor()
     self.bgFill = uicls.Fill(parent=self, color=color, align=uiconst.TOTOP)
     uicls.GradientSprite(parent=self, align=uiconst.TOALL, rgbData=[(0.0, color[:3])], alphaData=[(0.0, color[3]), (0.4, 0.3), (1.0, 0.1)], rotation=-pi / 2)
Exemplo n.º 3
0
 def ConstructWarzonePanel(self):
     self.warzonePanel.Flush()
     self.warzoneControl = uicls.FWWarzoneControl(parent=self.warzonePanel,
                                                  align=uiconst.TOTOP,
                                                  padding=(0, 10, 0, 10))
     bottomCont = uicls.Container(parent=self.warzonePanel,
                                  align=uiconst.TOALL,
                                  height=0.3)
     systemStatsCont = uicls.DragResizeCont(name='systemStatsCont',
                                            settingsID='FWsystemStatsCont',
                                            parent=bottomCont,
                                            align=uiconst.TORIGHT_PROP,
                                            minSize=0.1,
                                            maxSize=0.5,
                                            defaultSize=0.45)
     mapCont = uicls.Container(parent=bottomCont, align=uiconst.TOALL)
     uicls.GradientSprite(bgParent=mapCont,
                          rotation=-pi / 2,
                          rgbData=[(0, (0.3, 0.3, 0.3))],
                          alphaData=[(0, 0.1), (0.9, 0.0)])
     self.bracketParent = uicls.Container(name='bracketCont',
                                          parent=mapCont,
                                          clipChildren=True)
     self.sceneContainerNav = form.SceneContainerBaseNavigation(
         parent=mapCont, state=uiconst.UI_NORMAL)
     self.sceneContainerNav.cursor = uiconst.UICURSOR_DRAGGABLE
     self.sceneContainer = form.SceneContainerBrackets(parent=mapCont,
                                                       align=uiconst.TOALL)
     self.sceneContainerNav.Startup(self.sceneContainer)
     self.ConstructMap()
     self.systemsScroll = uicls.Scroll(name='systemsScroll',
                                       parent=systemStatsCont)
     self.systemsScroll.sr.id = 'FWSystemsScroll'
     self.UpdateSystemsScroll()
Exemplo n.º 4
0
 def Prepare_(self):
     self.fill = uicls.GradientSprite(bgParent=self,
                                      rotation=0,
                                      rgbData=[(0, (1.0, 1.0, 1.0))],
                                      alphaData=[(0.0, 0.0), (0.1, 0.1),
                                                 (0.9, 0.1), (1.0, 0.0)])
     self.Prepare_Hilite_()
Exemplo n.º 5
0
 def ShowDustBackground(self):
     dustBackground = getattr(self, 'dustBackground', None)
     blueColor = util.Color.DUST[:3]
     if dustBackground is None:
         blueColorSqrt = (math.sqrt(blueColor[0]), math.sqrt(blueColor[1]),
                          math.sqrt(blueColor[2]))
         self.dustBackground = uicls.Gradient2DSprite(
             bgParent=self,
             idx=0,
             name='gradient2d',
             rgbHorizontal=[0, 1],
             rgbVertical=[0, 1],
             rgbDataHorizontal=[blueColorSqrt, blueColorSqrt],
             rgbDataVertical=[blueColorSqrt, blueColorSqrt],
             rgbInterp='bezier',
             alphaHorizontal=[0, 1],
             alphaDataHorizontal=[1.0, 1.0],
             alphaVertical=[0, 0.5, 1],
             alphaDataVertical=[0.25, 0.1, 0.0],
             textureSize=16)
     self.dustBackground.display = True
     dustBackgroundLine = getattr(self, 'dustBackgroundLine', None)
     if dustBackgroundLine is None:
         self.dustBackgroundLine = uicls.GradientSprite(
             parent=self,
             pos=(0, 0, 0, 1),
             align=uiconst.TOTOP,
             rgbData=[(0, blueColor), (0.5, blueColor), (1.0, blueColor)],
             alphaData=[(0, 0.2), (0.5, 1), (1.0, 0.2)],
             alphaInterp=uicls.GradientConst.INTERP_LINEAR,
             colorInterp=uicls.GradientConst.INTERP_LINEAR,
             idx=0,
             state=uiconst.UI_DISABLED)
     self.dustBackgroundLine.display = True
Exemplo n.º 6
0
 def Prepare_(self):
     uicls.GradientSprite(bgParent=self,
                          rotation=0,
                          rgbData=[(0, (1.0, 1.0, 1.0))],
                          alphaData=[(0.0, 0.0), (0.1, 0.1), (0.9, 0.1),
                                     (1.0, 0.0)])
     self.hilite = uicls.Fill(name='hilite',
                              parent=self,
                              color=(1.0, 1.0, 1.0, 0.0))
Exemplo n.º 7
0
 def _CreateGradient(self, parent, color):
     colBase = util.Color(*color).GetRGB()
     colBright = util.Color(*color)
     colBright = colBright.SetBrightness(
         min(1.0, 2.0 * colBright.GetBrightness())).GetRGB()
     return uicls.GradientSprite(align=uiconst.TOALL,
                                 parent=parent,
                                 rotation=-pi / 2,
                                 rgbData=[(0, colBright), (0.5, colBase),
                                          (1.0, colBase)],
                                 alphaData=[(0, 1.0)])
Exemplo n.º 8
0
 def _ConstructBackground(self):
     self.bgGradient = uicls.GradientSprite(bgParent=self,
                                            align=uiconst.TOALL)
     self._SetBgGradientColor()
     if self.align == uiconst.TOLEFT:
         align = uiconst.TORIGHT
     else:
         align = uiconst.TOLEFT
     self.resizeLine = uicls.Line(parent=self.resizeLineCont,
                                  color=(0, 0, 0, 0),
                                  align=align,
                                  weight=3,
                                  state=uiconst.UI_NORMAL)
     self.resizeLine.OnMouseDown = self.OnReisizeLineMouseDown
     self.resizeLine.OnMouseEnter = self.OnResizeLineMouseEnter
     self.SetResizeLineCursor()
Exemplo n.º 9
0
 def ApplyAttributes(self, attributes):
     uicls.Container.ApplyAttributes(self, attributes)
     self.lowerLimit = attributes.lowerLimit
     self.upperLimit = attributes.upperLimit
     self.lpAmount = attributes.lpAmount
     self.lastAmount = 0
     self.level = attributes.level
     self.leftCont = uicls.Container(name='leftCont',
                                     parent=self,
                                     align=uiconst.TOLEFT_PROP,
                                     width=0.75)
     self.rightCont = uicls.Container(name='rightCont', parent=self)
     self.bgFrame = uicls.Frame(bgParent=self.leftCont,
                                frameConst=uiconst.FRAME_BORDER1_CORNER1)
     self.bgGradient = uicls.GradientSprite(bgParent=self.leftCont,
                                            rotation=-pi / 2)
     levelName = uicls.EveCaptionLarge(parent=self.leftCont,
                                       text=self.GetLevelName(),
                                       top=5,
                                       left=10)
     if self.level == 6:
         levelName.fontsize = 16
     self.progressGauge = uicls.Gauge(parent=self.leftCont,
                                      value=0.0,
                                      color=(0.0, 0.31, 0.4, 1.0),
                                      backgroundColor=(0.1, 0.1, 0.1, 1.0),
                                      align=uiconst.TOBOTTOM,
                                      gaugeHeight=15,
                                      padding=2,
                                      opacity=0.0)
     self.progressGauge.GetHint = self.GetProgressGaugeHint
     self.iconCont = uicls.Container(name='iconCont',
                                     parent=self.leftCont,
                                     align=uiconst.TOPRIGHT,
                                     pos=(10, 4, 300, 20))
     self.ConstructIcons()
     self.checkboxSprite = uicls.Sprite(name='checkboxSprite',
                                        parent=self.rightCont,
                                        align=uiconst.CENTERLEFT,
                                        pos=(15, 0, 16, 16))
     uicls.EveLabelLarge(parent=self.rightCont,
                         text=localizationUtil.FormatNumeric(
                             self.upperLimit, useGrouping=True),
                         align=uiconst.CENTERLEFT,
                         left=50)
     self.SetLPAmount(self.lpAmount, init=True)
Exemplo n.º 10
0
 def _AnimFlash(self, diff):
     w, h = self.gaugeCont.GetAbsoluteSize()
     if not self.flashGradient:
         self.flashGradient = uicls.GradientSprite(parent=self.gauge,
                                                   idx=0,
                                                   name='flashGradient',
                                                   align=uiconst.TOPLEFT,
                                                   width=w,
                                                   height=h,
                                                   rgbData=[(0, (0.99, 1.0,
                                                                 1.0))],
                                                   alphaData=[(0, 0.0),
                                                              (0.9, 0.5),
                                                              (1.0, 0.0)])
     self.flashGradient.opacity = 1.0
     if diff > 0:
         self.flashGradient.rotation = 0
         uicore.animations.MorphScalar(self.flashGradient, 'left', -w, w,
                                       1.2)
     else:
         self.flashGradient.rotation = pi
         uicore.animations.MorphScalar(self.flashGradient, 'left', w, -w,
                                       1.2)
     uicore.animations.FadeOut(self.flashGradient, duration=1.6)
Exemplo n.º 11
0
 def ConstructExistingFWPlayerHeader(self):
     self.topCont.Flush()
     iconSize = 50
     rightCont = uicls.Container(name='rightCont',
                                 parent=self.topCont,
                                 align=uiconst.TORIGHT,
                                 width=200,
                                 padLeft=2)
     leftCont = uicls.Container(name='leftCont',
                                parent=self.topCont,
                                clipChildren=True)
     firstLine = uicls.Container(parent=leftCont,
                                 align=uiconst.TOTOP_PROP,
                                 height=0.4,
                                 padLeft=20)
     uicls.Sprite(
         parent=firstLine,
         align=uiconst.CENTERLEFT,
         pos=(0, 0, iconSize, iconSize),
         texturePath='res:/UI/Texture/Icons/FactionalWarfare_64.png')
     enemyID = facwarCommon.GetFactionMainEnemy(self.factionID)
     enemyAllyID = facwarCommon.GetFactionSecondaryEnemy(self.factionID)
     text = localization.GetByLabel(
         'UI/FactionWarfare/FWPlayerHeader1',
         typeID=const.typeFaction,
         factionID=self.factionID,
         factionName=self.factionName,
         enemyID=enemyID,
         enemyName=cfg.eveowners.Get(enemyID).name,
         enemyAllyID=enemyAllyID,
         enemyAllyName=cfg.eveowners.Get(enemyAllyID).name)
     uicls.EveLabelLarge(parent=firstLine,
                         align=uiconst.CENTERLEFT,
                         state=uiconst.UI_NORMAL,
                         left=iconSize + 20,
                         text=text)
     secondLine = uicls.Container(parent=leftCont,
                                  align=uiconst.TOTOP_PROP,
                                  height=0.6,
                                  padLeft=20)
     logo = uicls.LogoIcon(itemID=self.factionID,
                           parent=secondLine,
                           align=uiconst.CENTERLEFT,
                           size=iconSize,
                           ignoreSize=True)
     enemyID = facwarCommon.GetFactionMainEnemy(self.factionID)
     labelCont = uicls.ContainerAutoSize(parent=secondLine,
                                         align=uiconst.CENTERLEFT,
                                         left=iconSize + 20)
     rank, rankDesc = self.GetCurrentRank()
     timeServed = self.GetTimeServed()
     text = localization.GetByLabel('UI/FactionWarfare/FWPlayerHeader2',
                                    rank=rank,
                                    corp=cfg.eveowners.Get(
                                        session.corpid).name,
                                    faction=self.factionName,
                                    time=timeServed)
     uicls.EveLabelMedium(parent=labelCont, text=text, tabs=[100])
     firstLine = uicls.Container(name='firstLine',
                                 parent=rightCont,
                                 align=uiconst.TOTOP,
                                 height=80)
     secondLine = uicls.Container(name='secondLine',
                                  parent=rightCont,
                                  align=uiconst.TOTOP,
                                  height=40,
                                  top=3)
     totalPointsCont = uicls.Container(
         parent=firstLine,
         pos=(0, 30, 55, 30),
         align=uiconst.TOPLEFT,
         state=uiconst.UI_NORMAL,
         hint=localization.GetByLabel(
             'UI/FactionWarfare/WarzoneProgress',
             points=self.warZoneInfo.factionPoints,
             pointsTotal=int(self.warZoneInfo.maxWarZonePoints)))
     uicls.EveLabelSmall(
         parent=totalPointsCont,
         text=localization.GetByLabel('UI/FactionWarfare/Points'),
         align=uiconst.CENTERTOP,
         top=-15)
     uicls.Frame(bgParent=totalPointsCont, color=(0.392, 0.635, 0.212, 0.2))
     uicls.GradientSprite(bgParent=totalPointsCont,
                          rotation=-pi / 2,
                          rgbData=[(0, (0.239, 0.42, 0.235)),
                                   (1, (0.075, 0.157, 0.086))],
                          alphaData=[(0, 1.0), (1, 0.9)])
     self.totalPointsLabel = uicls.EveCaptionMedium(
         parent=totalPointsCont,
         align=uiconst.CENTER,
         text=self.warZoneInfo.factionPoints)
     systemsCont = uicls.Container(
         parent=firstLine,
         align=uiconst.TOPLEFT,
         pos=(65, 5, 50, 100),
         state=uiconst.UI_NORMAL,
         hint=localization.GetByLabel(
             'UI/FactionWarfare/NumConqueredSystems'))
     uicls.Sprite(parent=systemsCont,
                  align=uiconst.CENTERTOP,
                  state=uiconst.UI_DISABLED,
                  pos=(0, 0, 32, 32),
                  texturePath='res:/UI/Texture/Icons/Systems_64.png')
     numSystems = len(
         sm.GetService('facwar').GetSolarSystemsOccupiedByFactions(
             [self.factionID]))
     self.numSystemsLabel = uicls.EveHeaderLarge(parent=systemsCont,
                                                 align=uiconst.CENTERTOP,
                                                 top=30,
                                                 text=numSystems)
     numUpgrades = self.GetSystemUpgradeNumbers()
     for i, num in enumerate(numUpgrades):
         if num:
             bgColor = util.Color.GetGrayRGBA(0.5, 0.5)
         else:
             bgColor = util.Color.GetGrayRGBA(0.2, 0.5)
         cont = uicls.Container(parent=secondLine,
                                bgColor=bgColor,
                                align=uiconst.TOLEFT,
                                state=uiconst.UI_NORMAL,
                                width=35,
                                padTop=15,
                                padRight=4,
                                hint=localization.GetByLabel(
                                    'UI/FactionWarfare/UpgradeLevelHint',
                                    level=util.IntToRoman(i + 1)))
         uicls.EveLabelMedium(parent=cont,
                              align=uiconst.CENTERTOP,
                              text=util.IntToRoman(i + 1),
                              top=-20)
         uicls.EveHeaderLarge(parent=cont, align=uiconst.CENTER, text=num)
Exemplo n.º 12
0
    def ApplyAttributes(self, attributes):
        uicls.Window.ApplyAttributes(self, attributes)
        self.itemID = attributes.Get('itemID')
        lpPool = sm.GetService('facwar').GetSolarSystemLPs()
        topCont = uicls.Container(name='topCont',
                                  parent=self.sr.main,
                                  align=uiconst.TOTOP,
                                  height=40,
                                  padding=(self.PADSIDE, self.PADTOP,
                                           self.PADSIDE, self.PADSIDE))
        mainCont = uicls.ContainerAutoSize(name='mainCont',
                                           parent=self.sr.main,
                                           align=uiconst.TOTOP)
        bottomCont = uicls.Container(name='bottomCont',
                                     parent=self.sr.main,
                                     align=uiconst.TOBOTTOM,
                                     height=100,
                                     padTop=self.PADTOP)
        uicls.EveLabelLarge(parent=topCont,
                            text=localization.GetByLabel(
                                'UI/FactionWarfare/IHub/SystemUpgradePanel',
                                systemName=cfg.evelocations.Get(
                                    session.solarsystemid2).name),
                            align=uiconst.TOPLEFT,
                            top=5)
        uicls.EveLabelLarge(
            parent=topCont,
            text=localization.GetByLabel('UI/FactionWarfare/IHub/TotalLP'),
            align=uiconst.TOPRIGHT,
            top=5)
        self.lpPoolLabel = uicls.EveCaptionSmall(parent=topCont,
                                                 align=uiconst.TOPRIGHT,
                                                 top=25)
        limits = [0] + const.facwarSolarSystemUpgradeThresholds + [
            const.facwarSolarSystemMaxLPPool
        ]
        self.upgradeBars = []
        for i in xrange(1, 7):
            bar = uicls.FWUpgradeLevelCont(parent=mainCont,
                                           align=uiconst.TOTOP,
                                           padding=(self.PADSIDE, 0, 10, 10),
                                           lowerLimit=limits[i - 1],
                                           upperLimit=limits[i],
                                           lpAmount=lpPool,
                                           level=i,
                                           idx=0)
            self.upgradeBars.append(bar)

        self.bottomGradient = uicls.GradientSprite(bgParent=bottomCont,
                                                   rotation=-pi / 2,
                                                   rgbData=[(0, (0.3, 0.3,
                                                                 0.3))],
                                                   alphaData=[(0, 0.3),
                                                              (0.9, 0.0)])
        self.bottomFlashEffect = uicls.GradientSprite(bgParent=bottomCont,
                                                      rotation=-pi / 2,
                                                      rgbData=[(0, (0.6, 0.6,
                                                                    0.6))],
                                                      alphaData=[(0, 0.3),
                                                                 (0.9, 0.0)],
                                                      opacity=0.0)
        uicls.Line(parent=bottomCont,
                   align=uiconst.TOTOP,
                   color=(0.3, 0.3, 0.3, 0.3))
        bottomMainCont = uicls.Container(name='bottomMainCont',
                                         parent=bottomCont,
                                         align=uiconst.CENTER,
                                         width=450,
                                         height=100)
        self.myLPLabel = uicls.Label(parent=bottomMainCont,
                                     text=self.GetLPOwnedLabel(),
                                     align=uiconst.TOPLEFT,
                                     left=self.PADSIDE,
                                     top=self.PADTOP)
        self.bottomBottomCont = uicls.Container(name='bottomBottom',
                                                align=uiconst.TOPLEFT,
                                                pos=(self.PADSIDE, 40, 450,
                                                     25),
                                                parent=bottomMainCont)
        self.donateAmountEdit = uicls.SinglelineEdit(
            parent=self.bottomBottomCont,
            name='donateAmountEdit',
            align=uiconst.TOLEFT,
            setvalue=0,
            width=155,
            OnReturn=self.OnDonateLPBtn,
            OnChange=self.OnDonateValueChanged)
        self.donateBtn = uicls.Button(
            parent=self.bottomBottomCont,
            align=uiconst.TOLEFT,
            func=self.OnDonateLPBtn,
            label=localization.GetByLabel('UI/FactionWarfare/IHub/DonateLPs'),
            padLeft=4)
        self.donationReceivedLabel = uicls.EveCaptionMedium(
            name='donationReceivedLabel',
            parent=bottomMainCont,
            align=uiconst.TOPLEFT,
            text=localization.GetByLabel(
                'UI/FactionWarfare/IHub/DonationReceived'),
            left=self.PADSIDE,
            top=50,
            opacity=0.0)
        self.bottomTaxCont = uicls.Container(name='bottomTax',
                                             align=uiconst.TOPLEFT,
                                             pos=(self.PADSIDE, 73, 400, 25),
                                             parent=bottomMainCont)
        self.myLPToIhubLabel = None
        factionID = sm.GetService('facwar').GetSystemOccupier(
            session.solarsystemid)
        self.myLPTaxLabel = uicls.Label(
            name='myLPTaxLabel',
            parent=self.bottomTaxCont,
            text=localization.GetByLabel(
                'UI/FactionWarfare/IHub/maintenanceTax',
                tax=int(facwarCommon.GetDonationTax(factionID) * 100)),
            align=uiconst.TOLEFT,
            state=uiconst.UI_NORMAL,
            left=5)
        self.SetLPPoolAmount(lpPool)
        self.UpdateMyLPAmount()
        self.UpdateMyLPToIHubLabel()
        uthread.new(self.CheckOpenThread)
Exemplo n.º 13
0
    def ApplyAttributes(self, attributes):
        uicls.Window.ApplyAttributes(self, attributes)
        self.MakeUnMinimizable()
        self.MakeUncollapseable()
        filter = attributes.get('filter', None)
        if filter:
            self.name, self.allOrAny, conditions = filter
            self.originalName = self.name
        else:
            self.name = ''
            self.allOrAny = RESULT_ALL
            conditions = None
            self.originalName = None
        self.entryCont = uicls.ScrollContainer(name='entryCont',
                                               parent=self.sr.main,
                                               align=uiconst.TOALL,
                                               padding=(10, 10, 10, 0))
        bottomPar = uicls.Container(name='bottomPar',
                                    parent=self.sr.main,
                                    align=uiconst.TOBOTTOM,
                                    height=75,
                                    idx=0)
        uicls.GradientSprite(bgParent=bottomPar,
                             rotation=-pi / 2,
                             rgbData=[(0, (0.3, 0.3, 0.3))],
                             alphaData=[(0, 0.3), (0.9, 0.0)])
        uicls.Line(parent=bottomPar,
                   align=uiconst.TOTOP,
                   color=(0.3, 0.3, 0.3, 0.3))
        buttonCont1 = uicls.ContainerAutoSize(name='bottomCont1',
                                              parent=bottomPar,
                                              align=uiconst.CENTERTOP,
                                              top=20,
                                              height=20)
        buttonCont2 = uicls.ContainerAutoSize(name='bottomCont2',
                                              parent=bottomPar,
                                              align=uiconst.CENTERTOP,
                                              top=50,
                                              height=20)
        uicls.EveLabelSmall(
            parent=uicls.Container(align=uiconst.TOLEFT,
                                   parent=buttonCont1,
                                   width=1),
            left=3,
            top=-14,
            text=localization.GetByLabel('UI/Inventory/Filters/Match'))
        uicls.Checkbox(
            parent=buttonCont1,
            text=localization.GetByLabel('UI/Inventory/Filters/All'),
            wrapLabel=False,
            groupname='allOrAny',
            align=uiconst.TOLEFT,
            checked=self.allOrAny == RESULT_ALL,
            callback=self.OnRadioButtonsChanged,
            retval=RESULT_ALL)
        self.radiButtons = uicls.Checkbox(
            parent=buttonCont1,
            text=localization.GetByLabel('UI/Inventory/Filters/Any'),
            wrapLabel=False,
            groupname='allOrAny',
            align=uiconst.TOLEFT,
            checked=self.allOrAny == RESULT_ANY,
            callback=self.OnRadioButtonsChanged,
            retval=RESULT_ANY)
        self.nameEdit = uicls.SinglelineEdit(
            name='nameEdit',
            parent=buttonCont1,
            align=uiconst.TOLEFT,
            label=localization.GetByLabel('UI/Inventory/Filters/FilterName'),
            width=120,
            padLeft=20,
            setvalue=self.name)
        uicls.Button(label=localization.GetByLabel('UI/Common/Buttons/Save'),
                     parent=buttonCont2,
                     align=uiconst.TOLEFT,
                     func=self.Save,
                     padLeft=4)
        uicls.Button(label=localization.GetByLabel('UI/Common/Buttons/Close'),
                     parent=buttonCont2,
                     align=uiconst.TOLEFT,
                     func=self.Close,
                     padLeft=4)
        if conditions:
            for condition in conditions:
                self.AddEntry(isRemovable=True, condition=condition)

        self.AddEntry(isRemovable=False)