Make drone additions pane multi-selectable, change all related commands to support it too

This commit is contained in:
DarkPhoenix
2019-04-23 22:12:07 +03:00
parent 4e2c3a3fcc
commit d4847112a9
14 changed files with 178 additions and 103 deletions

View File

@@ -25,6 +25,7 @@ from gui.cachingImageList import CachingImageList
class Display(wx.ListCtrl):
DEFAULT_COLS = None
def __init__(self, parent, size=wx.DefaultSize, style=0):
@@ -284,3 +285,11 @@ class Display(wx.ListCtrl):
if fallback is not None:
return fallback
return row
def getSelectedRows(self):
rows = []
row = self.GetFirstSelected()
while row != -1:
rows.append(row)
row = self.GetNextSelected(row)
return rows