def ConstructWarzonePanel(self): self.warzonePanel.Flush() self.warzoneControl = uicls.FWWarzoneControl(parent=self.warzonePanel, align=uiconst.TOTOP, padding=(0, 10, 0, 10)) bottomCont = uiprimitives.Container(parent=self.warzonePanel, align=uiconst.TOALL, height=0.3) systemStatsCont = uicontrols.DragResizeCont(name='systemStatsCont', settingsID='FWsystemStatsCont', parent=bottomCont, align=uiconst.TORIGHT_PROP, minSize=0.1, maxSize=0.5, defaultSize=0.45) mapCont = uiprimitives.Container(parent=bottomCont, align=uiconst.TOALL) uicontrols.GradientSprite(bgParent=mapCont, rotation=-pi / 2, rgbData=[(0, (0.3, 0.3, 0.3))], alphaData=[(0, 0.1), (0.9, 0.0)]) self.bracketParent = uiprimitives.Container(name='bracketCont', parent=mapCont, clipChildren=True) from eve.client.script.ui.control.scenecontainer import SceneContainerBaseNavigation self.sceneContainerNav = SceneContainerBaseNavigation(parent=mapCont, state=uiconst.UI_NORMAL) from eve.client.script.ui.control.scenecontainer import SceneContainerBrackets self.sceneContainerNav.cursor = uiconst.UICURSOR_DRAGGABLE self.sceneContainer = SceneContainerBrackets(parent=mapCont, align=uiconst.TOALL) self.sceneContainerNav.Startup(self.sceneContainer) self.ConstructMap() self.systemsScroll = uicontrols.Scroll(name='systemsScroll', parent=systemStatsCont) self.systemsScroll.sr.id = 'FWSystemsScroll' self.UpdateSystemsScroll()
def DrawStuff(self, *args): btns = uicontrols.ButtonGroup(btns=[[localization.GetByLabel('UI/Mail/Notifications/MarkAllAsRead'), self.MarkAllRead, None, 81], [localization.GetByLabel('UI/Mail/Notifications/DeleteAll'), self.DeleteAll, None, 81]], parent=self, idx=0) leftContWidth = settings.user.ui.Get('notifications_leftContWidth', 200) self.sr.leftCont = uiprimitives.Container(name='leftCont', parent=self, align=uiconst.TOLEFT, pos=(const.defaultPadding, 0, leftContWidth, 0)) self.sr.leftScroll = uicontrols.Scroll(name='leftScroll', parent=self.sr.leftCont, padding=(0, const.defaultPadding, 0, const.defaultPadding)) self.sr.leftScroll.multiSelect = 0 divider = Divider(name='divider', align=uiconst.TOLEFT, width=const.defaultPadding, parent=self, state=uiconst.UI_NORMAL) divider.Startup(self.sr.leftCont, 'width', 'x', 180, 250) self.sr.rightCont = uiprimitives.Container(name='rightCont', parent=self, align=uiconst.TOALL, pos=(0, 0, const.defaultPadding, const.defaultPadding)) dividerCont = uicontrols.DragResizeCont(name='dividerCont', settingsID='notificationsSplitSize', parent=self.sr.rightCont, align=uiconst.TOTOP_PROP, minSize=0.1, maxSize=0.9, defaultSize=0.7, clipChildren=True) self.sr.readingPaneCont = uiprimitives.Container(name='readingPaneCont', parent=self.sr.rightCont, align=uiconst.TOALL) self.sr.readingPane = uicls.EditPlainText(setvalue='', parent=self.sr.readingPaneCont, align=uiconst.TOALL, readonly=1) self.sr.msgCont = uiprimitives.Container(name='msgCont', parent=dividerCont) self.sr.msgScroll = uicontrols.Scroll(name='msgScroll', parent=self.sr.msgCont, padding=(0, const.defaultPadding, 0, 0)) self.sr.msgScroll.sr.id = 'notifications_msgs' self.sr.msgScroll.sr.fixedColumns = {localization.GetByLabel('UI/Mail/Status'): 52} self.sr.msgScroll.OnSelectionChange = self.MsgScrollSelectionChange self.sr.msgScroll.OnDelete = self.DeleteFromKeyboard self.inited = True
def Setup(self, where=None): self.isCorp = None self.where = where self.limits = sm.GetService('marketQuote').GetSkillLimits() par = uiprimitives.Container(name='counter', parent=self, align=uiconst.TOBOTTOM, height=60, clipChildren=1) self.sr.counter = uicontrols.EveLabelMedium( parent=par, align=uiconst.TOLEFT, padding=const.defaultPadding, tabs=[175, 500], state=uiconst.UI_NORMAL) self.sr.counter2 = uicontrols.EveLabelMedium( parent=par, align=uiconst.TOLEFT, padding=(12, const.defaultPadding, const.defaultPadding, const.defaultPadding), state=uiconst.UI_NORMAL) buySellCont = uiprimitives.Container(name='buySellCont', parent=self) self.dividerCont = uicontrols.DragResizeCont(name='dividerCont', settingsID='marketOrders', parent=buySellCont, align=uiconst.TOTOP_PROP, minSize=0.25, maxSize=0.75, defaultSize=0.5, clipChildren=True) sellParent = uiprimitives.Container(name='sellParent', parent=self.dividerCont.mainCont) sellLeft = uiprimitives.Container(name='sellLeft', parent=sellParent, align=uiconst.TOLEFT, width=LEFTSIDEWIDTH) sellingText = uicontrols.CaptionLabel( text=localization.GetByLabel('UI/Market/Orders/Selling'), parent=sellLeft, align=uiconst.RELATIVE, fontsize=16, left=4, top=4) scroll = uicontrols.Scroll(name='sellscroll', parent=sellParent) scroll.multiSelect = 0 scroll.smartSort = 1 scroll.ignoreHeaderWidths = 1 scroll.sr.id = 'ordersSellScroll' scroll.OnColumnChanged = self.OnOrderSellColumnChanged self.sr.sellScroll = scroll self.sr.sellParent = sellParent buyParent = uiprimitives.Container(name='buyParent', parent=buySellCont) buyLeft = uiprimitives.Container(name='buyLeft', parent=buyParent, align=uiconst.TOLEFT, width=LEFTSIDEWIDTH) buyingText = uicontrols.CaptionLabel( text=localization.GetByLabel('UI/Market/Orders/Buying'), parent=buyLeft, align=uiconst.RELATIVE, fontsize=16, left=4, top=4) leftsidewidth = max(LEFTSIDEWIDTH, sellingText.width + 10, buyingText.width + 10) sellLeft.width = leftsidewidth buyLeft.width = leftsidewidth self.sr.counter.left = const.defaultPadding + leftsidewidth scroll = uicontrols.Scroll(name='buyscroll', parent=buyParent) scroll.multiSelect = 0 scroll.smartSort = 1 scroll.ignoreHeaderWidths = 1 scroll.sr.id = 'ordersBuyScroll' scroll.OnColumnChanged = self.OnOrderBuyColumnChanged self.sr.buyScroll = scroll if self.isCorp: buttonHint = localization.GetByLabel( 'Tooltips/Market/MarketCorpOrdersExport') else: buttonHint = localization.GetByLabel( 'Tooltips/Market/MarketMyOrdersExportButton') uicontrols.Button( label=localization.GetByLabel('UI/Market/Orders/Export'), align=uiconst.BOTTOMLEFT, parent=par, func=self.ExportToFile, hint=buttonHint) sm.RegisterNotify(self) w, h = self.GetAbsoluteSize() self._OnSizeChange_NoBlock(w, h) self.ordersInited = 1
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