(self)
| 17 | class ChangeModuleAmmo(ContextMenuCombined): |
| 18 | |
| 19 | def __init__(self): |
| 20 | self.mainFrame = gui.mainFrame.MainFrame.getInstance() |
| 21 | # Format: {type ID: set(loadable, charges)} |
| 22 | self.loadableChargesCache = {} |
| 23 | # Translations for the missile categories, as the text here is auto-generated via damage attributes |
| 24 | self.ddMissileChargeCatTrans = { |
| 25 | 'em': _t('EM'), |
| 26 | 'thermal': _t('Thermal'), |
| 27 | 'explosive': _t('Explosive'), |
| 28 | 'kinetic': _t('Kinetic'), |
| 29 | 'mixed': _t('Mixed')} |
| 30 | self.oreChargeCatTrans = OrderedDict([ |
| 31 | ('a1', _t('Asteroid Simple')), |
| 32 | ('a2', _t('Asteroid Coherent')), |
| 33 | ('a3', _t('Asteroid Variegated')), |
| 34 | ('a4', _t('Asteroid Complex')), |
| 35 | ('a5', _t('Asteroid Abyssal')), |
| 36 | ('a6', _t('Asteroid Mercoxit')), |
| 37 | ('r4', _t('Moon Ubiquitous')), |
| 38 | ('r8', _t('Moon Common')), |
| 39 | ('r16', _t('Moon Uncommon')), |
| 40 | ('r32', _t('Moon Rare')), |
| 41 | ('r64', _t('Moon Exceptional')), |
| 42 | ('err', _t('Erratic')), |
| 43 | ('misc', _t('Misc'))]) |
| 44 | |
| 45 | def display(self, callingWindow, srcContext, mainItem, selection): |
| 46 | if srcContext not in ('fittingModule', 'projectedModule'): |
nothing calls this directly
no test coverage detected