personalISKPanel.py (2813B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\neocom\wallet\panels\personal\personalISKPanel.py 2 from carbonui import uiconst 3 from eve.client.script.ui.shared.neocom.wallet import walletConst 4 from eve.client.script.ui.shared.neocom.wallet.panels.ISKPanel import ISKPanel 5 from eve.client.script.ui.shared.neocom.wallet.panels.personal.giveIskPanel import GiveIskPanel 6 from eve.client.script.ui.shared.neocom.wallet.panels.personal.overviewPanel import OverviewPanel 7 from eve.client.script.ui.shared.neocom.wallet.panels.personal.personalMarketTransactionsPanel import PersonalMarketTransactionsPanel 8 from eve.client.script.ui.shared.neocom.wallet.panels.personal.personalSharesPanel import PersonalSharesPanel 9 from eve.client.script.ui.shared.neocom.wallet.panels.personal.personalTransactionsPanel import PersonalTransactionsPanel 10 from localization import GetByLabel 11 import eve.client.script.ui.shared.pointerTool.pointerToolConst as pConst 12 13 class PersonalISKPanel(ISKPanel): 14 default_name = 'PersonalISKPanel' 15 panelID = walletConst.PANEL_PERSONALISK 16 17 def GetMainTabs(self): 18 return ({'label': GetByLabel('UI/Wallet/WalletWindow/TabOverview'), 19 'panel': self.overviewPanel, 20 'code': self, 21 'tabID': walletConst.PANEL_OVERVIEW}, 22 {'label': GetByLabel('UI/Wallet/WalletWindow/TabTransactions'), 23 'panel': self.transactionsPanel, 24 'code': self, 25 'tabID': walletConst.PANEL_TRANSACTIONS, 26 'uniqueName': pConst.UNIQUE_NAME_WALLET_TRANSACTIONS_TAB}, 27 {'label': GetByLabel('UI/Wallet/WalletWindow/MarketTransactions'), 28 'panel': self.marketTransactionsPanel, 29 'code': self, 30 'tabID': walletConst.PANEL_MARKETTRANSACTIONS, 31 'uniqueName': pConst.UNIQUE_NAME_WALLET_MARKET_TRANSACTIONS}, 32 {'label': GetByLabel('UI/Wallet/WalletWindow/TabShares'), 33 'panel': self.sharesPanel, 34 'code': self, 35 'tabID': walletConst.PANEL_SHARES}, 36 {'label': GetByLabel('UI/Wallet/WalletWindow/GiveMoney'), 37 'panel': self.giveIskPanel, 38 'code': self, 39 'tabID': walletConst.PANEL_GIVEISK}) 40 41 def ConstructPanels(self): 42 self.overviewPanel = OverviewPanel(parent=self, state=uiconst.UI_HIDDEN) 43 self.transactionsPanel = PersonalTransactionsPanel(parent=self, state=uiconst.UI_HIDDEN) 44 self.sharesTabs = None 45 self.marketTransactionsPanel = PersonalMarketTransactionsPanel(parent=self, state=uiconst.UI_HIDDEN) 46 self.sharesPanel = PersonalSharesPanel(parent=self, state=uiconst.UI_HIDDEN) 47 self.giveIskPanel = GiveIskPanel(parent=self, state=uiconst.UI_HIDDEN) 48 49 def GetIskBalance(self): 50 return sm.GetService('wallet').GetWealth()