MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / MainMenuBar

Class MainMenuBar

gui/mainMenuBar.py:35–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34_t = wx.GetTranslation
35class MainMenuBar(wx.MenuBar):
36 def __init__(self, mainFrame):
37 pyfalog.debug("Initialize MainMenuBar")
38 self.characterEditorId = wx.NewId()
39 self.damagePatternEditorId = wx.NewId()
40 self.targetProfileEditorId = wx.NewId()
41 self.implantSetEditorId = wx.NewId()
42 self.graphFrameId = wx.NewId()
43 self.backupFitsId = wx.NewId()
44 self.exportSkillsNeededId = wx.NewId()
45 self.importCharacterId = wx.NewId()
46 self.exportHtmlId = wx.NewId()
47 self.wikiId = wx.NewId()
48 self.forumId = wx.NewId()
49 self.saveCharId = wx.NewId()
50 self.saveCharAsId = wx.NewId()
51 self.revertCharId = wx.NewId()
52 self.eveFittingsId = wx.NewId()
53 self.exportToEveId = wx.NewId()
54 self.ssoLoginId = wx.NewId()
55 self.attrEditorId = wx.NewId()
56 self.toggleOverridesId = wx.NewId()
57 self.toggleIgnoreRestrictionID = wx.NewId()
58 self.devToolsId = wx.NewId()
59 self.optimizeFitPrice = wx.NewId()
60
61 self.mainFrame = mainFrame
62 wx.MenuBar.__init__(self)
63
64 # File menu
65 fileMenu = wx.Menu()
66 self.Append(fileMenu, _t("&File"))
67
68 fileMenu.Append(self.mainFrame.addPageId, _t("&New Tab") + "\tCTRL+T", "Open a new fitting tab")
69 fileMenu.Append(self.mainFrame.closePageId, _t("&Close Tab") + "\tCTRL+W", "Close the current fit")
70 fileMenu.Append(self.mainFrame.closeAllPagesId, _t("&Close All Tabs") + "\tCTRL+ALT+W", "Close all open fits")
71
72 fileMenu.AppendSeparator()
73 fileMenu.Append(self.backupFitsId, _t("&Backup All Fittings"), _t("Backup all fittings to a XML file"))
74 fileMenu.Append(self.exportHtmlId, _t("Export All Fittings to &HTML"), _t("Export fits to HTML file (set in Preferences)"))
75
76 fileMenu.AppendSeparator()
77 fileMenu.Append(wx.ID_EXIT)
78
79 # Fit menu
80 fitMenu = wx.Menu()
81 self.Append(fitMenu, _t("Fi&t"))
82
83 fitMenu.Append(wx.ID_UNDO, _t("&Undo") + "\tCTRL+Z", _t("Undo the most recent action"))
84 fitMenu.Append(wx.ID_REDO, _t("&Redo") + "\tCTRL+Y", _t("Redo the most recent undone action"))
85
86 fitMenu.AppendSeparator()
87 fitMenu.Append(wx.ID_COPY, _t("&To Clipboard") + "\tCTRL+C", _t("Export a fit to the clipboard"))
88 fitMenu.Append(wx.ID_PASTE, _t("&From Clipboard") + "\tCTRL+V", _t("Import a fit from the clipboard"))
89
90 fitMenu.AppendSeparator()
91 fitMenu.Append(wx.ID_OPEN, _t("&Import Fittings") + "\tCTRL+O", _t("Import fittings into pyfa"))
92 fitMenu.Append(wx.ID_SAVEAS, _t("&Export Fitting") + "\tCTRL+S", _t("Export fitting to another format"))

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected