Merge branch 'master' of evefit.org:pyfa
This commit is contained in:
2
eos
2
eos
Submodule eos updated: 8c108e3cb8...08a1ac6957
@@ -11,7 +11,8 @@ class DamagePattern(ContextMenu):
|
||||
return context in ("resistancesViewFull",)
|
||||
|
||||
def getText(self, context, selection):
|
||||
return "%s stats" % context.capitalize()
|
||||
sDP = service.DamagePattern.getInstance()
|
||||
return map(lambda p: p.name, sDP.getDamagePatternList())
|
||||
|
||||
def activate(self, context, selection, i):
|
||||
pass
|
||||
|
||||
@@ -23,6 +23,7 @@ import bitmapLoader
|
||||
class MainMenuBar(wx.MenuBar):
|
||||
def __init__(self):
|
||||
self.characterEditorId = wx.NewId()
|
||||
self.damagePatternEditorId = wx.NewId()
|
||||
|
||||
wx.MenuBar.__init__(self)
|
||||
|
||||
@@ -46,12 +47,15 @@ class MainMenuBar(wx.MenuBar):
|
||||
fitMenu.Append(wx.ID_SAVEAS, "&Export", "Export the fit to another format.")
|
||||
|
||||
# Character menu
|
||||
charMenu = wx.Menu()
|
||||
self.Append(charMenu, "&Character")
|
||||
windowMenu = wx.Menu()
|
||||
self.Append(windowMenu, "&Windows")
|
||||
|
||||
charEditItem = wx.MenuItem(charMenu, self.characterEditorId, "Character &Editor\tCTRL+E")
|
||||
charEditItem = wx.MenuItem(windowMenu, self.characterEditorId, "&Character Editor\tCTRL+E")
|
||||
charEditItem.SetBitmap(bitmapLoader.getBitmap("character_small", "icons"))
|
||||
charMenu.AppendItem(charEditItem)
|
||||
windowMenu.AppendItem(charEditItem)
|
||||
|
||||
damagePatternEditItem = wx.MenuItem(windowMenu, self.damagePatternEditorId, "Damage Pattern Editor\tCTRL+D")
|
||||
windowMenu.AppendItem(damagePatternEditItem)
|
||||
|
||||
# Help menu
|
||||
helpMenu = wx.Menu()
|
||||
|
||||
Reference in New Issue
Block a user