(self, item)
| 101 | self.itemView.filterItemStore() |
| 102 | |
| 103 | def jump(self, item): |
| 104 | self.mode = 'normal' |
| 105 | self.marketView.jump(item) |
| 106 | setting = self.settings.get('marketMGJumpMode') |
| 107 | itemMetaCat = self.sMkt.META_MAP_REVERSE[self.sMkt.getMetaGroupIdByItem(item)] |
| 108 | # Enable item meta category |
| 109 | if setting == 1: |
| 110 | btn = getattr(self, itemMetaCat) |
| 111 | if not btn.GetValue(): |
| 112 | btn.setUserSelection(True) |
| 113 | # Enable item meta category, disable others |
| 114 | elif setting == 2: |
| 115 | tgtBtn = getattr(self, itemMetaCat) |
| 116 | if not tgtBtn.GetValue(): |
| 117 | tgtBtn.setUserSelection(True) |
| 118 | for btn in self.metaButtons: |
| 119 | if btn is tgtBtn: |
| 120 | continue |
| 121 | if btn.GetValue: |
| 122 | btn.setUserSelection(False) |
| 123 | # Enable all meta categories |
| 124 | elif setting == 3: |
| 125 | for btn in self.metaButtons: |
| 126 | if not btn.GetValue(): |
| 127 | btn.setUserSelection(True) |
| 128 | self.itemView.selectionMade('jump') |
| 129 | |
| 130 | @property |
| 131 | def mode(self): |
nothing calls this directly
no test coverage detected