def ApplyAttributes(self, attributes):
    old_apply_attributes(self, attributes)

    self.sr.destroyBtn.Close()
    btn = uix.GetBigButton(32, self.sr.systemTopParent, left=108)
    btn.OnClick = self.SaveLoadProbePositions
    btn.hint = "SHIFT-CLICK TO SAVE PROBES, CLICK TO LOAD PROBES"
    uix.MapSprite('44_03', btn.sr.icon)
    self.sr.saveloadBtn = btn

    btn = uix.GetBigButton(32, self.sr.systemTopParent, left=152)
    btn.OnClick = self.ContractProbes
    btn.hint = "CONTRACT PROBES"
    uix.MapSprite('44_44', btn.sr.icon)
    self.sr.contractBtn = btn

    btn = uix.GetBigButton(32, self.sr.systemTopParent, left=184)
    btn.OnClick = self.ExpandProbes
    btn.hint = "EXPAND PROBES"
    uix.MapSprite('44_43', btn.sr.icon)
    self.sr.expandBtn = btn

    btn = uix.GetBigButton(32, self.sr.systemTopParent, left=228)
    btn.OnClick = self.SendProbes
    btn.hint = "SEND PROBES TO SELECTED RESULT"
    uix.MapSprite('44_59', btn.sr.icon)
    self.sr.sendBtn = btn
 def ApplyAttributes(self, attributes):
     uicontrols.SE_BaseClassCore.ApplyAttributes(self, attributes)
     self.iconsize = iconsize = 44
     LineThemeColored(parent=self, align=uiconst.TOBOTTOM)
     self.factionParent = uiprimitives.Container(name='factionParent', parent=self, align=uiconst.TOLEFT, pos=(0, 0, 64, 64), padding=MARGIN)
     middleCont = uiprimitives.Container(parent=self, name='middleContainer', width=MIDDLECONTAINER_WIDTH, align=uiconst.TOLEFT, padTop=MARGIN, clipChildren=True)
     self.constellationLabel = BigReportLabel(name='constellationName', parent=middleCont, fontsize=20, align=uiconst.TOTOP, state=uiconst.UI_NORMAL)
     self.statusText = SmallReportLabel(parent=middleCont, align=uiconst.TOTOP, uppercase=True)
     SmallReportLabel(name='systemInfluence', parent=middleCont, align=uiconst.TOTOP, text=localization.GetByLabel('UI/Incursion/Common/HUDInfluenceTitle'))
     self.statusBar = uicls.SystemInfluenceBar(parent=middleCont, pos=(0, 0, 200, 10), align=uiconst.TOTOP, padding=(0, 4, 0, 4))
     self.stagingText = SmallReportLabel(parent=middleCont, align=uiconst.TOTOP, state=uiconst.UI_NORMAL)
     self.bossIcon = uicls.IncursionBossIcon(parent=middleCont, left=3, top=3, align=uiconst.TOPRIGHT, idx=0)
     btn = uix.GetBigButton(iconsize, self, left=self.BUTTON_OFFSET, top=MARGIN, align=uiconst.BOTTOMLEFT)
     btn.hint = localization.GetByLabel('UI/Incursion/Journal/ShowActiveCorpMembersInMap')
     btn.sr.icon.LoadIcon('res:/ui/Texture/WindowIcons/corpmap.png', ignoreSize=True)
     self.corpMapButton = btn
     btn = uix.GetBigButton(iconsize, self, left=self.BUTTON_OFFSET + 50, top=MARGIN, align=uiconst.BOTTOMLEFT)
     btn.hint = localization.GetByLabel('UI/Incursion/Journal/ShowOnStarMap')
     btn.sr.icon.LoadIcon('res:/ui/Texture/WindowIcons/map.png', ignoreSize=True)
     self.mapButton = btn
     btn = uix.GetBigButton(iconsize, self, left=self.BUTTON_OFFSET + 100, top=MARGIN, align=uiconst.BOTTOMLEFT)
     btn.hint = localization.GetByLabel('UI/Incursion/Journal/StagingAsAutopilotDestination')
     btn.sr.icon.LoadIcon('res:/ui/Texture/WindowIcons/ships.png', ignoreSize=True)
     self.autopilotButton = btn
     btn = uix.GetBigButton(iconsize, self, left=self.BUTTON_OFFSET, top=MARGIN)
     btn.hint = localization.GetByLabel('UI/Incursion/Journal/ViewLoyaltyPointLog')
     btn.sr.icon.LoadIcon('res:/ui/Texture/WindowIcons/lpstore.png', ignoreSize=True)
     self.lpButton = btn
     self.loyaltyPoints = ReportNumber(name='loyaltyPoints', parent=self, pos=(self.BUTTON_OFFSET + 50,
      MARGIN,
      105,
      iconsize), number=0, hint=localization.GetByLabel('UI/Incursion/Journal/LoyaltyPointsWin'), padding=(4, 4, 4, 4))
 def MakeButton1(where, x, y, map, size, function, label, hint=None):
     button = uix.GetBigButton(size, where, left=x, top=y)
     button.cursor = 1
     button.name = label
     if map != '':
         button.sr.icon.LoadIcon(map)
     button.OnClick = function
     if hint:
         button.hint = hint
     return button
 def ApplyAttributes(self, attributes):
     uicontrols.Window.ApplyAttributes(self, attributes)
     itemID = attributes.itemID
     self.scope = 'all'
     self.sr.container = sm.GetService('invCache').GetInventoryFromId(itemID)
     self.sr.itemID = itemID
     self.sr.logIDmax = None
     self.sr.logIDmin = None
     self.SetMinSize([400, 400])
     self.SetWndIcon()
     self.SetTopparentHeight(0)
     self.SetCaption(localization.GetByLabel('UI/AuditContainerLogViewer/AuditLogTitle'))
     self.sr.logOptions = uiprimitives.Container(name='logOptions', parent=self.sr.main, align=uiconst.TOTOP, height=36, idx=1)
     sidepar = uiprimitives.Container(name='sidepar', parent=self.sr.logOptions, align=uiconst.TORIGHT, width=54)
     btn = uix.GetBigButton(24, sidepar, 0, 12)
     btn.OnClick = (self.BrowseLog, 0)
     btn.hint = localization.GetByLabel('UI/Common/Previous')
     btn.state = uiconst.UI_HIDDEN
     btn.sr.icon.LoadIcon('ui_23_64_1')
     self.sr.wndBackBtn = btn
     btn = uix.GetBigButton(24, sidepar, 24, 12)
     btn.OnClick = (self.BrowseLog, 1)
     btn.hint = localization.GetByLabel('UI/Common/More')
     btn.state = uiconst.UI_HIDDEN
     btn.sr.icon.LoadIcon('ui_23_64_2')
     self.sr.wndFwdBtn = btn
     self.sr.fromDate = self.GetNow()
     inpt = uicontrols.SinglelineEdit(name='fromdate', parent=self.sr.logOptions, setvalue=self.sr.fromDate, align=uiconst.TOPLEFT, pos=(const.defaultPadding,
      16,
      72,
      0), maxLength=16)
     dateLabel = localization.GetByLabel('UI/Common/Date')
     uicontrols.EveHeaderSmall(text=dateLabel, parent=inpt, width=200, top=-12, state=uiconst.UI_NORMAL)
     self.sr.wndFromDate = inpt
     self.sr.wndFromDate.OnReturn = self.GetDate
     self.sr.scroll = uicontrols.Scroll(parent=self.sr.main, padding=(const.defaultPadding,
      const.defaultPadding,
      const.defaultPadding,
      const.defaultPadding))
     self.ViewLogForContainer()
Esempio n. 5
0
    def Load(self, template):
        entries = []
        headers = ['qty', 'name']
        state = uiconst.UI_NORMAL
        if template:
            if template.Valid():
                self.typeID = template.typeID
                info = template.GetModuleInfo()
                capt = GetTypeName(template.typeID)
                name = template.name
                for typeID in info['modulelist']:
                    entries.append(listentry.Get('Generic', {'label': '%s<t>%s' % (info[typeID], GetTypeName(typeID)),
                     'typeID': typeID,
                     'showinfo': True}))

            else:
                state = uiconst.UI_HIDDEN
                capt = 'TEMPLATE ERROR'
                name = 'This template does not contain a valid ship setup'
                entries.append(listentry.Get('Generic', {'label': '%s<t>%s' % (template.errorTypeID, template.errorMessage)}))
                headers = ['typeID', 'error']
        else:
            state = uiconst.UI_HIDDEN
            capt = name = ''
        uix.Flush(self.toolbar)
        if state == uiconst.UI_NORMAL:
            self.icon.LoadIconByTypeID(template.typeID)
            m = template.GetMenuInline(info=False, store=not self.readonly, spiffy=True)
            x = 0
            for item in m:
                if item:
                    hint, icon = item[0]
                    btn = uix.GetBigButton(TOOLSIZE, self.toolbar, left=x, hint=hint)
                    btn.sr.icon.LoadIcon(icon)
                    btn.sr.icon.left += 1
                    btn.sr.icon.top += 2
                    btn.menuitem = item
                    btn.OnClick = (self.Clicketyclick, btn)
                    x += TOOLSIZE

        else:
            self.typeID = None
            self.icon.LoadTexture('res:/UI/Texture/notavailable.dds')
        self.capt.text = capt
        self.text.text = name
        self.infoframe.state = self.infoicon.state = self.toolbar.state = state
        self.scroll.Load(contentList=entries, headers=headers)
def ApplyAttributes(self, attributes):
    old_apply_attributes(self, attributes)

    self.sr.destroyBtn.Close()
    btn = uix.GetBigButton(32, self.sr.systemTopParent, left=108)
    btn.OnClick = self.SaveLoadProbePositions
    btn.hint = "SHIFT-CLICK TO SAVE PROBES, CLICK TO LOAD PROBES"
    btn.sr.icon.LoadIcon('44_03')
    self.sr.saveloadBtn = btn

    btn = uix.GetBigButton(32, self.sr.systemTopParent, left=152)
    btn.OnClick = self.ContractProbes
    btn.hint = "CONTRACT PROBES"
    btn.sr.icon.LoadIcon('44_44')
    self.sr.contractBtn = btn

    btn = uix.GetBigButton(32, self.sr.systemTopParent, left=184)
    btn.OnClick = self.ExpandProbes
    btn.hint = "EXPAND PROBES"
    btn.sr.icon.LoadIcon('44_43')
    self.sr.expandBtn = btn

    btn = uix.GetBigButton(32, self.sr.systemTopParent, left=228)
    btn.OnClick = self.SendProbes
    btn.hint = "SEND PROBES TO SELECTED RESULT"
    btn.sr.icon.LoadIcon('44_59')
    self.sr.sendBtn = btn

    btn = uix.GetBigButton(32, self.sr.systemTopParent, left=272)
    btn.OnClick = self.SetupProbes
    btn.hint = "SETUP PROBES"
    btn.sr.icon.LoadIcon('44_03')
    self.sr.setBtn = btn

    btn = uix.GetBigButton(32, self.sr.systemTopParent, left=316)
    btn.OnClick = self.Automate
    btn.hint = "AUTOSCAN"
    btn.sr.icon.LoadIcon('44_04')
    self.sr.autoBtn = btn

    btn = uix.GetBigButton(32, self.sr.systemTopParent, left=348)
    btn.OnClick = self.StopAuto
    btn.hint = "STOP AUTOSCAN"
    btn.sr.icon.LoadIcon('44_07')
    self.sr.stopautoBtn = btn
Esempio n. 7
0
 def CreateLocationInfo(self):
     mapIconContainer = uicls.Container(name='mapIconContainer',
                                        parent=self.sr.location,
                                        align=uiconst.TORIGHT,
                                        pos=(0, 0, 32, 0),
                                        padding=(0, 0, 0, 5))
     self.sr.textContainer = uicls.Container(name='textContainer',
                                             parent=self.sr.location,
                                             align=uiconst.TOALL,
                                             pos=(0, 0, 0, 0),
                                             padding=(0, 0, 0, 0))
     btn = uix.GetBigButton(32, mapIconContainer)
     btn.SetAlign(uiconst.CENTERRIGHT)
     btn.OnClick = self.OpenMap
     btn.hint = localization.GetByLabel('UI/Map/Map')
     btn.sr.icon.LoadIcon('ui_7_64_4')
     locationMenu = uicls.MenuIcon(size=24, ignoreSize=True)
     locationMenu.GetMenu = self.GetLocationMenu
     locationMenu.left = -5
     locationMenu.top = -3
     locationMenu.hint = ''
     self.sr.textContainer.children.append(locationMenu)
     self.sr.breadCrumbs = uicls.Label(name='label',
                                       text='',
                                       parent=self.sr.textContainer,
                                       fontsize=16,
                                       align=uiconst.TOTOP,
                                       padding=(15, 0, 0, 0),
                                       boldlinks=0,
                                       state=uiconst.UI_NORMAL)
     self.sr.dominatorText = uicls.EveLabelMedium(
         text='',
         parent=self.sr.textContainer,
         align=uiconst.TOTOP,
         state=uiconst.UI_NORMAL,
         maxLines=1)
Esempio n. 8
0
 def StartupMembersPanel(self):
     membersPanel = self.sr.membersPanel
     comboOptions = [
         (localization.GetByLabel('UI/Common/All'), FILTER_ALL),
         (localization.GetByLabel('UI/EVEMail/MailingLists/NormalMembers'),
          FILTER_MEMBERS),
         (localization.GetByLabel('UI/EVEMail/MailingLists/MutedMembers'),
          FILTER_MUTED),
         (localization.GetByLabel('UI/Chat/Operators'), FILTER_OPERATORS),
         (localization.GetByLabel('UI/EVEMail/MailingLists/SearchByName'),
          FILTER_BYNAME)
     ]
     topCont = uiprimitives.Container(name='topCont',
                                      parent=membersPanel,
                                      align=uiconst.TOTOP,
                                      pos=(0, 10, 0, 28))
     self.sr.membersPanel.showMembersCombo = uicontrols.Combo(
         label=localization.GetByLabel('UI/EVEMail/MailingLists/ShowLabel'),
         parent=topCont,
         options=comboOptions,
         name='showMembersCombo',
         callback=self.OnShowMembersComboChanged,
         width=100,
         align=uiconst.TOPLEFT)
     self.sr.membersPanel.searchEdit = uicontrols.SinglelineEdit(
         label=localization.GetByLabel('UI/PeopleAndPlaces/SearchString'),
         name='searchEdit',
         parent=topCont,
         align=uiconst.TOPLEFT,
         pos=(115, 0, 80, EDITHEIGHT),
         state=uiconst.UI_HIDDEN)
     self.sr.membersPanel.searchEdit.OnReturn = self.UpdateMembersScroll
     self.sr.membersPanel.searchButton = uicontrols.Button(
         parent=topCont,
         label=localization.GetByLabel('UI/Common/Buttons/Search'),
         left=200,
         func=self.UpdateMembersScroll,
         align=uiconst.TOPLEFT,
         state=uiconst.UI_HIDDEN)
     browseCont = uiprimitives.Container(name='browseCont',
                                         parent=topCont,
                                         align=uiconst.TOPRIGHT,
                                         pos=(0, -10, 50, 50))
     btn = uix.GetBigButton(24, browseCont, 0, 0)
     btn.OnClick = (self.ChangeMembersPage, -1)
     btn.hint = localization.GetByLabel('UI/Common/Previous')
     btn.state = uiconst.UI_NORMAL
     btn.sr.icon.LoadIcon('ui_23_64_1')
     self.sr.pageBackBtn = btn
     btn = uix.GetBigButton(24, browseCont, 24, 0)
     btn.OnClick = (self.ChangeMembersPage, 1)
     btn.hint = localization.GetByLabel('UI/Generic/Next')
     btn.state = uiconst.UI_NORMAL
     btn.sr.icon.LoadIcon('ui_23_64_2')
     self.sr.pageFwdBtn = btn
     self.sr.pageCount = uicontrols.EveLabelMedium(
         text='',
         parent=browseCont,
         left=16,
         top=26,
         height=12,
         state=uiconst.UI_DISABLED)
     bottomCont = uiprimitives.Container(parent=membersPanel,
                                         align=uiconst.TOBOTTOM,
                                         pos=(0, 0, 100, EDITHEIGHT),
                                         padding=(0, 3 * PAD, 0, PAD),
                                         state=uiconst.UI_PICKCHILDREN)
     comboOptions = [
         (localization.GetByLabel('UI/EVEMail/MailingLists/SetRoleMember'),
          ACTION_SETMEMBER),
         (localization.GetByLabel('UI/EVEMail/MailingLists/SetRoleMuted'),
          ACTION_SETMUTED),
         (localization.GetByLabel(
             'UI/EVEMail/MailingLists/SetRoleOperator'),
          ACTION_SETOPERATOR),
         (localization.GetByLabel('UI/EVEMail/MailingLists/Kick'),
          ACTION_KICK)
     ]
     self.sr.membersPanel.actionCombo = uicontrols.Combo(
         label=localization.GetByLabel(
             'UI/EVEMail/MailingLists/ApplyToSelected'),
         parent=bottomCont,
         options=comboOptions,
         name='showMembersCombo',
         width=150,
         align=uiconst.TOPLEFT)
     self.sr.membersPanel.ApplyBtn = uicontrols.Button(
         parent=bottomCont,
         label=localization.GetByLabel('UI/Generic/Apply'),
         func=self.ApplyActionToMembers,
         align=uiconst.TOPRIGHT)
     self.sr.membersPanel.ApplyBtn.Disable()
     self.roles = {
         const.mailingListMemberDefault:
         localization.GetByLabel('UI/EVEMail/MailingLists/Member'),
         const.mailingListMemberMuted:
         localization.GetByLabel('UI/EVEMail/MailingLists/MutedMember'),
         const.mailingListMemberOperator:
         localization.GetByLabel('UI/EVEMail/MailingLists/Operator'),
         const.mailingListMemberOwner:
         localization.GetByLabel('UI/EVEMail/MailingLists/Owner')
     }
     self.sr.membersPanel.scroll = uicontrols.Scroll(parent=membersPanel,
                                                     name='membersScroll',
                                                     padTop=PAD)
     self.sr.membersPanel.scroll.sr.id = 'membersPanelScroll'
     self.sr.membersPanel.scroll.OnSelectionChange = self.OnMembersScrollSelectionChange
 def CreateWindow(self):
     wndOutputArea = uiprimitives.Container(name='output',
                                            parent=self,
                                            align=uiconst.TOTOP,
                                            height=48)
     captionparent = uiprimitives.Container(name='captionparent',
                                            parent=wndOutputArea,
                                            align=uiconst.TOTOP,
                                            width=136,
                                            height=16)
     self.labelResults = uicontrols.EveLabelMedium(
         text=localization.GetByLabel(
             'UI/Corporations/CorporationWindow/Members/FindMemberInRole/SimpleView/ResultsLabel'
         ),
         parent=captionparent,
         align=uiconst.TOTOP,
         height=16,
         state=uiconst.UI_NORMAL)
     wndResultsBar = uiprimitives.Container(name='results',
                                            parent=wndOutputArea,
                                            align=uiconst.TOTOP,
                                            height=16)
     wndNavBtns = uiprimitives.Container(name='sidepar',
                                         parent=wndResultsBar,
                                         align=uiconst.TORIGHT,
                                         width=52)
     label = uiprimitives.Container(name='text',
                                    parent=wndResultsBar,
                                    align=uiconst.TOLEFT,
                                    width=150,
                                    height=16)
     uicontrols.EveLabelMedium(text=localization.GetByLabel(
         'UI/Corporations/CorporationWindow/Members/FindMemberInRole/SimpleView/MembersPerPage'
     ),
                               parent=label,
                               align=uiconst.TOTOP,
                               state=uiconst.UI_NORMAL)
     optlist = [[util.FmtAmt(10), 10], [util.FmtAmt(25), 25],
                [util.FmtAmt(50), 50], [util.FmtAmt(100), 100],
                [util.FmtAmt(500), 500]]
     countcombo = uicontrols.Combo(label='',
                                   parent=wndResultsBar,
                                   options=optlist,
                                   name='membersperpage',
                                   callback=self.OnComboChange,
                                   width=146,
                                   pos=(150, 0, 0, 0))
     countcombo.sr.label.width = 200
     countcombo.sr.label.top = -16
     self.sr.MembersPerPage = countcombo
     btn = uix.GetBigButton(24, wndNavBtns, 0, 0)
     btn.OnClick = (self.Navigate, -1)
     btn.hint = localization.GetByLabel('UI/Common/Previous')
     btn.state = uiconst.UI_HIDDEN
     btn.sr.icon.LoadIcon('ui_23_64_1')
     self.backBtn = btn
     btn = uix.GetBigButton(24, wndNavBtns, 24, 0)
     btn.OnClick = (self.Navigate, 1)
     btn.hint = localization.GetByLabel('UI/Common/ViewMore')
     btn.state = uiconst.UI_HIDDEN
     btn.sr.icon.LoadIcon('ui_23_64_2')
     self.fwdBtn = btn
     uiprimitives.Container(name='push',
                            parent=wndOutputArea,
                            align=uiconst.TOTOP,
                            height=24)
     self.outputScrollContainer = uiprimitives.Container(
         name='output', parent=self, align=uiconst.TOALL, pos=(0, 0, 0, 0))
     self.scroll = uicontrols.Scroll(parent=self.outputScrollContainer)
 def Load(self, args):
     if not self.sr.Get('inited', 0):
         self.ourWarsScroll = None
         self.allWarsScroll = None
         self.killReportsScroll = None
         self.sr.inited = 1
         self.maxWarID = const.maxInt
         self.warbatches = []
         self.ourWarsCont = uiprimitives.Container(name='ourWarsCont',
                                                   parent=self,
                                                   align=uiconst.TOALL)
         toolbarContainer = uiprimitives.Container(name='toolbarContainer',
                                                   align=uiconst.TOBOTTOM,
                                                   parent=self.ourWarsCont,
                                                   height=22)
         declareButton = uicontrols.ButtonGroup(btns=[[
             localization.GetByLabel(
                 'UI/Corporations/CorporationWindow/Alliances/Rankings/DeclareWar'
             ), self.DeclareWar, None, None
         ]],
                                                parent=toolbarContainer)
         self.ourWarsScroll = uicontrols.Scroll(
             parent=self.ourWarsCont, padding=const.defaultPadding)
         self.allWarsCont = uiprimitives.Container(name='allWarsCont',
                                                   parent=self,
                                                   align=uiconst.TOALL)
         allWarsSettingsCont = uiprimitives.Container(
             name='allWarsSettingsCont',
             parent=self.allWarsCont,
             align=uiconst.TOTOP,
             height=18,
             top=2)
         browseCont = uiprimitives.Container(
             name='browseCont',
             parent=self.allWarsCont,
             align=uiconst.TOBOTTOM,
             height=22,
             padding=(const.defaultPadding, 0, const.defaultPadding, 0),
             state=uiconst.UI_NORMAL)
         self.prevBtn = uicls.BrowseButton(parent=browseCont,
                                           prev=True,
                                           state=uiconst.UI_NORMAL,
                                           func=self.BrowseAllWars)
         self.nextBtn = uicls.BrowseButton(parent=browseCont,
                                           prev=False,
                                           state=uiconst.UI_NORMAL,
                                           align=uiconst.TOPRIGHT,
                                           func=self.BrowseAllWars)
         self.showCryForHelpCb = uicontrols.Checkbox(
             parent=allWarsSettingsCont,
             align=uiconst.TOPLEFT,
             left=const.defaultPadding,
             height=14,
             width=300,
             configName='allwars_showcryforhelp',
             text=localization.GetByLabel(
                 'UI/Corporations/Wars/ShowCryForHelp'),
             checked=settings.user.ui.Get('allwars_showcryforhelp', 0),
             callback=self.CheckBoxChange)
         self.showCryForHelpCb.hint = localization.GetByLabel(
             'UI/Corporations/Wars/NotFilterWhenSearching')
         self.searchButton = uicontrols.Button(
             parent=allWarsSettingsCont,
             label=localization.GetByLabel(
                 'UI/Corporations/CorporationWindow/Standings/Search'),
             align=uiconst.TOPRIGHT,
             pos=(const.defaultPadding, 2, 0, 0),
             func=self.Search,
             btn_default=1)
         self.searchEdit = uicontrols.SinglelineEdit(
             name='edit',
             parent=allWarsSettingsCont,
             left=self.searchButton.width + const.defaultPadding * 2,
             width=150,
             align=uiconst.TOPRIGHT,
             maxLength=32)
         self.searchEdit.OnReturn = self.Search
         self.allWarsScroll = uicontrols.Scroll(
             parent=self.allWarsCont, padding=const.defaultPadding)
         self.killReportsCont = uiprimitives.Container(
             name='killReportsCont', parent=self, align=uiconst.TOALL)
         killSettingsContainer = uiprimitives.Container(
             name='killSettingsContainer',
             parent=self.killReportsCont,
             align=uiconst.TOTOP,
             height=20)
         self.killReportQuickFilter = uicls.QuickFilterEdit(
             parent=killSettingsContainer,
             left=const.defaultPadding,
             align=uiconst.CENTERRIGHT,
             width=150)
         self.killReportQuickFilter.ReloadFunction = self.ReloadKillReports
         combatValues = ((localization.GetByLabel(
             'UI/Corporations/Wars/Killmails/ShowKills'), 0),
                         (localization.GetByLabel(
                             'UI/Corporations/Wars/Killmails/ShowLosses'),
                          1))
         selectedCombatType = settings.user.ui.Get('CorpCombatLogCombo', 0)
         self.combatCombo = uicontrols.Combo(parent=killSettingsContainer,
                                             name='combo',
                                             select=selectedCombatType,
                                             align=uiconst.TOPLEFT,
                                             callback=self.OnCombatChange,
                                             options=combatValues,
                                             idx=0,
                                             adjustWidth=True,
                                             top=const.defaultPadding,
                                             left=const.defaultPadding)
         self.killReportsScroll = uicontrols.Scroll(
             parent=self.killReportsCont, padding=const.defaultPadding)
         warTabs = [
             [
                 localization.GetByLabel(
                     'UI/Corporations/CorporationWindow/Wars/OurWars'),
                 self.ourWarsCont, self, 'our'
             ],
             [
                 localization.GetByLabel('UI/Corporations/Wars/AllWars'),
                 self.allWarsCont, self, 'all'
             ],
             [
                 localization.GetByLabel(
                     'UI/Corporations/Wars/Killmails/KillReports'),
                 self.killReportsCont, self, 'killreports'
             ]
         ]
         btnContainer = uiprimitives.Container(
             name='pageBtnContainer',
             parent=self,
             align=uiconst.TOBOTTOM,
             idx=0,
             padBottom=const.defaultPadding)
         btn = uix.GetBigButton(size=22,
                                where=btnContainer,
                                left=4,
                                top=0,
                                align=uiconst.TORIGHT)
         btn.hint = localization.GetByLabel('UI/Common/ViewMore')
         btn.state = uiconst.UI_HIDDEN
         btn.sr.icon.LoadIcon('ui_23_64_2')
         btn = uix.GetBigButton(size=22,
                                where=btnContainer,
                                left=4,
                                top=0,
                                align=uiconst.TOLEFT)
         btn.hint = localization.GetByLabel('UI/Common/Previous')
         btn.state = uiconst.UI_HIDDEN
         btn.sr.icon.LoadIcon('ui_23_64_1')
         btnContainer.height = max(
             [c.height for c in btnContainer.children])
         self.btnContainer = btnContainer
         btnContainer.state = uiconst.UI_HIDDEN
         tabs = uicontrols.TabGroup(name='tabparent', parent=self, idx=0)
         tabs.Startup(warTabs, 'corporationwars')
         self.tabs = tabs
         self.killentries = 25
     sm.GetService('corpui').LoadTop(
         'res:/ui/Texture/WindowIcons/wars.png',
         localization.GetByLabel(
             'UI/Corporations/CorporationWindow/Wars/WarsTitle'))
     self.myWars = 1
     if not hasattr(self, 'viewingOwnerID'):
         self.viewingOwnerID = eve.session.allianceid or eve.session.corpid
     if not hasattr(self, 'searchOwnerID'):
         self.searchOwnerID = None
     extrahint = ''
     if args != 'wars':
         self._HideNextPrevBtns()
     if args == 'all':
         self.ourWarsCont.display = False
         self.allWarsCont.display = True
         self.killReportsCont.display = False
         self.ShowAllWars()
     elif args == 'our':
         self.ourWarsCont.display = True
         self.allWarsCont.display = False
         self.killReportsCont.display = False
         self.ShowWars()
     elif args == 'killreports':
         self.ourWarsCont.display = False
         self.allWarsCont.display = False
         self.killReportsCont.display = True
         self.prevIDs = []
         self.combatPageNum = 0
         selectedCombatType = settings.user.ui.Get('CorpCombatLogCombo', 0)
         if selectedCombatType == 0:
             self.ShowCombatKills()
         else:
             self.ShowCombatLosses()
         extrahint = localization.GetByLabel(
             'UI/Corporations/CorporationWindow/Wars/DelayedKillboardDetails'
         )
     sm.GetService('corpui').LoadTop(
         'res:/ui/Texture/WindowIcons/wars.png',
         localization.GetByLabel(
             'UI/Corporations/CorporationWindow/Wars/WarsTitle'), extrahint)
Esempio n. 11
0
    def Show(self):
        if not (hasattr(eve.session, 'solarsystemid')
                and eve.session.solarsystemid2):
            Message('Hold your horses!',
                    'The trainer UI requires you to be logged in.')
            return
        if self.wnd:
            self.wnd.Maximize()
            return
        self.InitSkills()
        self.wnd = wnd = uicontrols.Window.Open(windowID=SERVICENAME)
        wnd._OnClose = self.Hide
        wnd.SetWndIcon(None)
        wnd.SetTopparentHeight(0)
        wnd.SetCaption('Trainer')
        root = uiutil.GetChild(wnd, 'main')
        main = uiprimitives.Container(
            name='main2',
            parent=root,
            pos=(const.defaultPadding, const.defaultPadding,
                 const.defaultPadding, const.defaultPadding))
        SKILLWIDTH = 256
        CENTERWIDTH = 128
        wnd.sr.scroll = s = uicontrols.Scroll(name='left',
                                              parent=main,
                                              align=uiconst.TOLEFT,
                                              width=SKILLWIDTH)
        middle = uiprimitives.Container(name='middle',
                                        parent=main,
                                        align=uiconst.TOLEFT,
                                        width=CENTERWIDTH)
        for x, y, icon, func, hint in [
            (CENTERWIDTH / 8, CENTERWIDTH * 1 / 4, 'ui_23_64_2',
             self.AddSelected,
             'Add skills selected in the left panel to the current profile with the selected default level'
             ),
            (CENTERWIDTH * 3 / 8, CENTERWIDTH, 'ui_23_64_1', self.DelSelected,
             'Remove skills selected in the right panel from the current profile'
             ),
            (CENTERWIDTH * 3 / 8, CENTERWIDTH * 3 / 2, 'ui_27_64_3',
             self.Profile_Fix,
             'For each skill in the current profile, modify or add all required skills with the selected default level or the required level, whichever is higher'
             ),
            (CENTERWIDTH * 3 / 8, CENTERWIDTH * 4 / 2,
             'res:/ui/Texture/WindowIcons/augmentations.png',
             self.Profile_ToCurrentCharacter,
             'Give skills in the current profile to current character'),
            (CENTERWIDTH * 3 / 8, CENTERWIDTH * 5 / 2, 'ui_25_64_9',
             lambda *args: self.Profile_ToCharacter(),
             'Give skills in the current profile to a different character')
        ]:
            btn = uix.GetBigButton(CENTERWIDTH / 2,
                                   middle,
                                   left=x,
                                   top=y,
                                   hint=hint)
            btn.sr.icon.LoadIcon(icon)
            btn.OnClick = func

        uicontrols.Button(parent=middle,
                          label='Level',
                          pos=(CENTERWIDTH / 8, 0, 0, 0),
                          func=self.CycleDefaultLevel)
        wnd.sr.level = uicontrols.Label(text=str(self.skillLevel),
                                        parent=middle,
                                        color=None,
                                        left=CENTERWIDTH / 2 + 5,
                                        top=2,
                                        height=16,
                                        state=uiconst.UI_NORMAL)
        content = []
        for gid in self.skillGroups:
            node = {
                'label': cfg.invgroups.Get(gid).name,
                'iconMargin': 18,
                'showlen': True,
                'groupItems': self.skillsByGroupID[gid],
                'state': 0,
                'allowCopy': 0,
                'GetSubContent': self.GetSubContent,
                'selected': 0,
                'id': (str(gid), gid),
                'sublevel': 0,
                'open': 0
            }
            content.append(listentry.Get('Group', node))

        s.Startup()
        s.sr.sortBy = 'name'
        s.sr.id = 'TrainerSkillTree'
        s.Load(contentList=content, fixedEntryHeight=None, headers=['Name'])
        r = uiprimitives.Container(name='right',
                                   parent=main,
                                   align=uiconst.TOLEFT,
                                   width=SKILLWIDTH)
        top = uiprimitives.Container(name='top',
                                     parent=r,
                                     align=uiconst.TOTOP,
                                     height=24)
        arrow = uicontrols.MenuIcon(size=24, ignoreSize=True)
        arrow.align = uiconst.TOLEFT
        arrow.left = top.left
        arrow.GetMenu = self.Profile_GetMenu
        arrow.state = uiconst.UI_NORMAL
        top.children.append(arrow)
        uicontrols.Button(parent=top,
                          label='Save',
                          align=uiconst.TORIGHT,
                          func=self.Profile_SaveCurrent)
        uicontrols.Button(parent=top,
                          label='Clear',
                          align=uiconst.TORIGHT,
                          func=self.Profile_New)
        wnd.sr.profile = uicontrols.Label(text='',
                                          parent=top,
                                          color=None,
                                          left=20,
                                          top=5,
                                          height=16)
        wnd.sr.scroll2 = s = uicontrols.Scroll(name='profile',
                                               parent=r,
                                               align=uiconst.TOALL)
        s.Startup()
        s.sr.sortBy = 'name'
        s.sr.id = 'ProfileSkillTree'
        self.Profile_Refresh()
        wnd.fixedWidth = wnd.width = const.defaultPadding + SKILLWIDTH + CENTERWIDTH + SKILLWIDTH + const.defaultPadding
        wnd.SetMinSize((wnd.fixedWidth, 416))
        wnd.Maximize(1)
Esempio n. 12
0
 def DrawStuff(self, *args):
     self.sr.topCont = uiprimitives.Container(name='topCont',
                                              parent=self,
                                              align=uiconst.TOTOP,
                                              pos=(0, 0, 0, 45))
     self.sr.mainCont = uiprimitives.Container(name='mainCont',
                                               parent=self,
                                               align=uiconst.TOALL,
                                               pos=(0, 0, 0, 0))
     inputsGrid = LayoutGrid(parent=self.sr.topCont,
                             columns=2,
                             top=6,
                             left=const.defaultPadding,
                             cellSpacing=2)
     self.sr.topRight = uiprimitives.Container(name='topCont',
                                               parent=self.sr.topCont,
                                               align=uiconst.TORIGHT,
                                               pos=(0, 0, 50, 0))
     self.quickFilter = uicls.QuickFilterEdit(parent=inputsGrid)
     self.quickFilter.ReloadFunction = lambda: self.LoadContactsForm(
         self.contactType)
     if sm.GetService('addressbook').ShowLabelMenuAndManageBtn(
             self.formType):
         labelBtn = uix.GetBigButton(
             size=32,
             hint=localization.GetByLabel(
                 'UI/PeopleAndPlaces/LabelsManageLabels'),
             align=uiconst.RELATIVE)
         uiutil.MapIcon(labelBtn.sr.icon,
                        'res:/ui/Texture/WindowIcons/evemailtag.png',
                        ignoreSize=True)
         labelBtn.OnClick = self.ManageLabels
         inputsGrid.AddCell(labelBtn, rowSpan=2)
     else:
         inputsGrid.AddCell()
     self.sr.onlinecheck = Checkbox(
         text=localization.GetByLabel('UI/PeopleAndPlaces/OnlineOnly'),
         parent=inputsGrid,
         configName='onlinebuddyonly',
         retval=1,
         checked=settings.user.ui.Get('onlinebuddyonly', 0),
         groupname=None,
         callback=self.CheckBoxChange,
         align=uiconst.TOPLEFT,
         wrapLabel=False)
     self.quickFilter.width = max(self.quickFilter.width,
                                  self.sr.onlinecheck.width)
     btn = uix.GetBigButton(24, self.sr.topRight, 32, const.defaultPadding)
     btn.OnClick = (self.BrowseContacts, -1)
     btn.hint = localization.GetByLabel('UI/Common/Previous')
     btn.state = uiconst.UI_HIDDEN
     btn.SetAlign(align=uiconst.TOPRIGHT)
     btn.sr.icon.LoadIcon('ui_23_64_1')
     self.sr.contactBackBtn = btn
     btn = uix.GetBigButton(24, self.sr.topRight, const.defaultPadding,
                            const.defaultPadding)
     btn.OnClick = (self.BrowseContacts, 1)
     btn.hint = localization.GetByLabel('UI/Common/Next')
     btn.state = uiconst.UI_HIDDEN
     btn.SetAlign(uiconst.TOPRIGHT)
     btn.sr.icon.LoadIcon('ui_23_64_2')
     self.sr.contactFwdBtn = btn
     self.sr.pageCount = uicontrols.EveLabelMedium(
         text='',
         parent=self.sr.topRight,
         left=10,
         top=30,
         state=uiconst.UI_DISABLED,
         align=uiconst.CENTERTOP)
     systemStatsCont = uicontrols.DragResizeCont(
         name='systemStatsCont',
         settingsID='contactsListSplit',
         parent=self.sr.mainCont,
         align=uiconst.TOLEFT,
         minSize=100,
         maxSize=200,
         defaultSize=160)
     self.sr.leftCont = uiprimitives.Container(
         name='leftCont',
         parent=systemStatsCont.mainCont,
         padding=(const.defaultPadding, 0, 0, 0))
     self.sr.leftScroll = uicontrols.Scroll(
         name='leftScroll',
         parent=self.sr.leftCont,
         padding=(0, const.defaultPadding, 0, const.defaultPadding))
     self.sr.leftScroll.multiSelect = 0
     self.sr.leftScroll.sr.content.OnDropData = self.OnContactDropData
     self.sr.rightCont = uiprimitives.Container(
         name='rightCont',
         parent=self.sr.mainCont,
         padding=(0, 0, const.defaultPadding, const.defaultPadding))
     self.sr.rightScroll = uicontrols.Scroll(name='rightScroll',
                                             parent=self.sr.rightCont,
                                             padding=(0,
                                                      const.defaultPadding,
                                                      0, 0))
     self.sr.rightScroll.sr.ignoreTabTrimming = 1
     self.sr.rightScroll.multiSelect = 1
     self.sr.rightScroll.sr.content.OnDropData = self.OnContactDropData
     self.sr.rightScroll.sr.id = self.formType
Esempio n. 13
0
    def ApplyAttributes(self, attributes):
        self.decimalSign = eveLocalization.GetDecimalSeparator(
            localization.SYSTEM_LANGUAGE)
        self.digitSign = eveLocalization.GetThousandSeparator(
            localization.SYSTEM_LANGUAGE)
        self.PopulateKnownKeys()
        uicontrols.Window.ApplyAttributes(self, attributes)
        self.scope = 'all'
        self.MakeUnResizeable()
        self.HideMainIcon()
        self.SetTopparentHeight(0)
        self.inputParent = uiprimitives.Container(name='inputParent',
                                                  parent=self.sr.main,
                                                  padding=const.defaultPadding,
                                                  align=uiconst.TOTOP)
        icon = uicontrols.MiniButton(icon='ui_38_16_156',
                                     parent=self.inputParent,
                                     size=16,
                                     align=uiconst.CENTERRIGHT)
        icon.groupID = 'viewMode'
        self.sr.viewModeBtn = icon
        icon.Click = self.ViewModeBtnClick
        inpt = uicontrols.SinglelineEdit(name='inpt',
                                         parent=self.inputParent,
                                         align=uiconst.TOTOP,
                                         padRight=20)
        inpt.OnChar = self.OnCharInput
        inpt.Paste = self.OnInputPasted
        self.inputParent.height = inpt.height
        self.sr.inpt = inpt
        self.SetInpt('0')
        hist = settings.public.ui.Get('CalculatorHistory', [])
        if hist:
            ops = [(v, v) for v in hist]
        else:
            ops = [('0', '0')]
        inpt.LoadCombo('urlcombo', ops, self.OnComboChange)
        uiprimitives.Line(parent=self.sr.main,
                          align=uiconst.TOTOP,
                          padTop=const.defaultPadding)
        self.sr.mem = uiprimitives.Container(name='mem',
                                             parent=self.sr.main,
                                             height=16,
                                             align=uiconst.TOTOP)
        uiprimitives.Line(parent=self.sr.main, align=uiconst.TOTOP)
        self.sr.work = uiprimitives.Container(name='work',
                                              parent=self.sr.main,
                                              align=uiconst.TOTOP,
                                              padding=const.defaultPadding)
        size = 24
        self.buttons = [
            (0, 0, '7', localization.formatters.FormatNumeric(7)),
            (1, 0, '8', localization.formatters.FormatNumeric(8)),
            (2, 0, '9', localization.formatters.FormatNumeric(9)),
            (3, 0, 'divide',
             localization.GetByLabel('UI/Accessories/Calculator/DivideSymbol')
             ), (0, 1, '4', localization.formatters.FormatNumeric(4)),
            (1, 1, '5', localization.formatters.FormatNumeric(5)),
            (2, 1, '6', localization.formatters.FormatNumeric(6)),
            (3, 1, 'times',
             localization.GetByLabel(
                 'UI/Accessories/Calculator/MultiplySymbol')),
            (0, 2, '1', localization.formatters.FormatNumeric(1)),
            (1, 2, '2', localization.formatters.FormatNumeric(2)),
            (2, 2, '3', localization.formatters.FormatNumeric(3)),
            (3, 2, 'minus',
             localization.GetByLabel(
                 'UI/Accessories/Calculator/SubtractSymbol')),
            (0, 3, '0', localization.formatters.FormatNumeric(0)),
            (1, 3, 'dot', self.decimalSign),
            (2, 3, 'equal',
             localization.GetByLabel('UI/Accessories/Calculator/EqualsSymbol')
             ),
            (3, 3, 'plus',
             localization.GetByLabel('UI/Accessories/Calculator/AddSymbol')),
            (4.5, 0, 'clear',
             localization.GetByLabel('UI/Accessories/Calculator/ClearSymbol')),
            (5.5, 0, 'clearall',
             localization.GetByLabel(
                 'UI/Accessories/Calculator/ClearAllSymbol')),
            (4.5, 1, 'bo',
             localization.GetByLabel(
                 'UI/Accessories/Calculator/BracketOpenSymbol')),
            (5.5, 1, 'bc',
             localization.GetByLabel(
                 'UI/Accessories/Calculator/BracketCloseSymbol')),
            (4.5, 2, 'percent',
             localization.GetByLabel('UI/Accessories/Calculator/PercentSymbol')
             ),
            (5.5, 2, 'square',
             localization.GetByLabel('UI/Accessories/Calculator/SquareSymbol')
             ),
            (4.5, 3, 'plusminus',
             localization.GetByLabel(
                 'UI/Accessories/Calculator/PlusMinusSymbol')),
            (5.5, 3, 'root', u'\u221a&macr;')
        ]
        for x, y, label, cap in self.buttons:
            btn = uix.GetBigButton(size=size,
                                   where=self.sr.work,
                                   left=int(x * size),
                                   top=int(y * size),
                                   iconMargin=10,
                                   align=uiconst.RELATIVE)
            btn.SetInCaption(cap)
            btn.Click = self.OnBtnClick
            btn.OnDblClick = None
            btn.name = label
            setattr(self.sr, 'btn%s' % label, btn)
            self.sr.work.height = max(self.sr.work.height,
                                      btn.top + btn.height)

        uiprimitives.Line(parent=self.sr.mem,
                          align=uiconst.TOLEFT,
                          padLeft=const.defaultPadding)
        for i in xrange(1, 7):
            opt = uicls.WindowDropDownMenu(name='memoption',
                                           parent=self.sr.mem,
                                           align=uiconst.TOLEFT,
                                           state=uiconst.UI_NORMAL)
            opt.Setup(
                localization.GetByLabel(
                    'UI/Accessories/Calculator/AbbreviatedMemory', index=i),
                getattr(self, 'GetMem%sMenu' % i, None))
            opt.OnClick = (self.OnClickMemory, opt)
            opt.sr.memHilite = uiprimitives.Fill(parent=opt,
                                                 color=(0.0, 0.0, 1.0, 0.2),
                                                 state=uiconst.UI_HIDDEN)
            opt.name = 'mem%s' % i
            opt.label = settings.public.ui.Get(
                'CalculatorMem%sName' % i,
                localization.GetByLabel('UI/Accessories/Calculator/Memory',
                                        index=i))
            setattr(self.sr, 'memBtn%s' % i, opt)
            opt.mem = settings.public.ui.Get('CalculatorMem%s' % i, None)
            opt.nr = i
            if opt.mem:
                opt.hint = '%s:<br>%s' % (opt.label, opt.mem)
                opt.sr.memHilite.state = uiconst.UI_DISABLED
            else:
                opt.hint = localization.GetByLabel(
                    'UI/Accessories/Calculator/EmptyBank',
                    label=opt.label,
                    empty=localization.GetByLabel(
                        'UI/Accessories/Calculator/Empty'))
                opt.sr.memHilite.state = uiconst.UI_HIDDEN

        self.sr.mem.height = self.sr.mem.children[1].GetTextHeight()
        self.SetLayout()
        self.newNumber = True
        self.stack = []
        self.opStack = []
        self.lastOp = 0
        uicore.registry.SetFocus(self.sr.inpt)
Esempio n. 14
0
 def WriteFilters(self):
     self.sr.filters = filters = Container(name='filters',
                                           parent=self,
                                           height=34,
                                           align=uiconst.TOTOP)
     top = 16
     left = 5
     options = [
         (GetByLabel('UI/Contracts/ContractsWindow/IssuedToBy'), None),
         (GetByLabel('UI/Contracts/ContractsWindow/IssuedBy'), False),
         (GetByLabel('UI/Contracts/ContractsWindow/IssuedTo'), True)
     ]
     c = self.sr.fltToFrom = Combo(
         label=GetByLabel('UI/Contracts/ContractsWindow/Action'),
         parent=filters,
         options=options,
         name='tofrom',
         select=settings.user.ui.Get('mycontracts_filter_tofrom', None),
         callback=self.OnComboChange,
         pos=(left, top, 0, 0),
         adjustWidth=True)
     left += c.width + 5
     corpName = cfg.eveowners.Get(eve.session.corpid).name
     charName = cfg.eveowners.Get(eve.session.charid).name
     val = getattr(self, 'lookup', None)
     if not val:
         val = settings.char.ui.Get('mycontracts_filter_owner', charName)
     self.sr.fltOwner = c = SinglelineEdit(
         name='edit',
         parent=filters,
         width=120,
         label=GetByLabel('UI/Contracts/ContractsWindow/Owner'),
         setvalue=val,
         left=left,
         top=top)
     left += c.width + 5
     ops = [(charName, charName), (corpName, corpName)]
     c.LoadCombo('usernamecombo', ops, self.OnComboChange)
     self.status = [(GetByLabel('UI/Contracts/ContractEntry/Outstanding'),
                     const.conStatusOutstanding),
                    (GetByLabel('UI/Contracts/ContractsWindow/InProgress'),
                     const.conStatusInProgress),
                    (GetByLabel('UI/Contracts/ContractsWindow/Finished'),
                     const.conStatusFinished)]
     c = self.sr.fltStatus = Combo(
         label=GetByLabel('UI/Contracts/ContractsWindow/Status'),
         parent=filters,
         options=self.status,
         name='status',
         select=settings.user.ui.Get('mycontracts_filter_status', None),
         callback=self.OnComboChange,
         pos=(left, top, 0, 0))
     left += c.width + 5
     mrk = '----------'
     fltTypeOptions = [
         (GetByLabel('UI/Common/All'), None), (mrk, -1),
         (GetByLabel('UI/Contracts/Auction'), const.conTypeAuction),
         (GetByLabel('UI/Contracts/ContractsWindow/ItemExchange'),
          const.conTypeItemExchange),
         (GetByLabel('UI/Contracts/ContractsWindow/Courier'),
          const.conTypeCourier)
     ]
     self.sr.fltType = c = Combo(
         label=GetByLabel('UI/Contracts/ContractsWindow/ContractType'),
         parent=filters,
         options=fltTypeOptions,
         name='types',
         select=settings.user.ui.Get('mycontracts_filter_type', None),
         callback=self.OnComboChange,
         pos=(left, top, 0, 0))
     left += c.width + 5
     self.sr.submitBtn = submit = Button(
         parent=filters,
         label=GetByLabel('UI/Contracts/ContractsWindow/GetContracts'),
         func=self.FetchContracts,
         pos=(const.defaultPadding, top, 0, 0),
         align=uiconst.TOPRIGHT)
     sidepar = Container(name='sidepar',
                         parent=filters,
                         align=uiconst.BOTTOMRIGHT,
                         left=const.defaultPadding,
                         width=54,
                         height=30)
     btn = uix.GetBigButton(24, sidepar, 4, 6)
     btn.state = uiconst.UI_HIDDEN
     btn.OnClick = (self.BrowseMyContracts, -1)
     btn.hint = GetByLabel('UI/Common/Previous')
     btn.sr.icon.LoadIcon('ui_23_64_1')
     self.sr.transMyBackBtn = btn
     btn = uix.GetBigButton(24, sidepar, 28, 6)
     btn.state = uiconst.UI_HIDDEN
     btn.OnClick = (self.BrowseMyContracts, 1)
     btn.hint = GetByLabel('UI/Common/ViewMore')
     btn.sr.icon.LoadIcon('ui_23_64_2')
     self.sr.transMyFwdBtn = btn
     sidepar.left = submit.width + const.defaultPadding