def GetDragData(self, *args): entry = KeyVal() entry.solarSystemID = self.contract.startSolarSystemID entry.contractID = self.contract.contractID entry.name = self.contractTitle entry.__guid__ = 'listentry.ContractEntry' return [entry]
def GetFittingDragData(self): entry = KeyVal() entry.fitting = self.fitting entry.label = self.fitting.name entry.displayText = self.fitting.name entry.__guid__ = 'listentry.FittingEntry' return [entry]
def MakeKillDragObject(self, notification): fakeNode = KeyVal() kmID, kmHash = KillMailBaseFormatter.GetKillMailIDandHash(notification.data) theRealKm = sm.RemoteSvc('warStatisticMgr').GetKillMail(kmID, kmHash) fakeNode.mail = theRealKm fakeNode.__guid__ = 'listentry.KillMail' return [fakeNode]
def MakeKillDragObject(self, notification): fakeNode = KeyVal() kmID, kmHash = KillMailBaseFormatter.GetKillMailIDandHash( notification.data) theRealKm = sm.RemoteSvc('warStatisticMgr').GetKillMail(kmID, kmHash) fakeNode.mail = theRealKm fakeNode.__guid__ = 'listentry.KillMail' return [fakeNode]
def MakeCharacterDragObject(self, charid): typeID = cfg.eveowners.Get(charid).typeID fakeNode = KeyVal() fakeNode.charID = charid fakeNode.info = cfg.eveowners.Get(charid) fakeNode.itemID = charid fakeNode.__guid__ = 'listentry.User' return [fakeNode]
def MakeCharacterDragObject(self, charid): typeID = cfg.eveowners.Get(charid).typeID fakeNode = KeyVal() fakeNode.charID = charid fakeNode.info = cfg.eveowners.Get(charid) fakeNode.itemID = charid fakeNode.__guid__ = 'listentry.User' return [fakeNode]
def GetDragData(self, *args): if self and not self.destroyed: fakeNode = KeyVal() fakeNode.charID = self.charID fakeNode.typeID = self.info.typeID fakeNode.info = self.info fakeNode.itemID = self.itemID fakeNode.__guid__ = 'listentry.User' return [fakeNode] else: return []
def GetDragData(self, *args): if self and not self.destroyed: fakeNode = KeyVal() fakeNode.charID = self.charID fakeNode.typeID = self.info.typeID fakeNode.info = self.info fakeNode.itemID = self.itemID fakeNode.__guid__ = 'listentry.User' return [fakeNode] else: return []
def GetFittingDragData(): fittingSvc = sm.StartService('fittingSvc') fitting = KeyVal() fitting.shipTypeID, fitting.fitData = fittingSvc.GetFittingDictForActiveShip() fitting.fittingID = None fitting.description = '' fitting.name = cfg.evelocations.Get(GetActiveShip()).locationName fitting.ownerID = 0 entry = KeyVal() entry.fitting = fitting entry.label = fitting.name entry.displayText = fitting.name entry.__guid__ = 'listentry.FittingEntry' return [entry]
def GetFittingDragData(): fittingSvc = sm.StartService('fittingSvc') fitting = KeyVal() fitting.shipTypeID, fitting.fitData = fittingSvc.GetFittingDictForCurrentFittingWindowShip( ) fitting.fittingID = None fitting.description = '' fitting.name = cfg.evelocations.Get(GetActiveShip()).locationName fitting.ownerID = 0 if fittingSvc.IsShipSimulated(): fitting.name = '.simulated %s' % evetypes.GetName(fitting.shipTypeID) else: fitting.name = cfg.evelocations.Get(GetActiveShip()).locationName entry = KeyVal() entry.fitting = fitting entry.label = fitting.name entry.displayText = fitting.name entry.__guid__ = 'listentry.FittingEntry' return [entry]
def GetDragData(self, *args): entry = KeyVal() entry.fleet = self.fleet entry.__guid__ = 'listentry.FleetFinderEntry' return [entry]