# HG changeset patch # User Edouard Tisserant # Date 1332094703 -3600 # Node ID ff38b7250b64e8762594010da884a7a964ea5232 # Parent 435e2d8ee58000579d83be897ff76fcd22c591cb Added a few shortcuts in menus diff -r 435e2d8ee580 -r ff38b7250b64 PLCOpenEditor.py --- a/PLCOpenEditor.py Sun Mar 18 18:11:46 2012 +0100 +++ b/PLCOpenEditor.py Sun Mar 18 19:18:23 2012 +0100 @@ -344,24 +344,24 @@ kind=wx.ITEM_NORMAL, text=_(u'Paste\tCTRL+V')) parent.AppendSeparator() AppendMenu(parent, help='', id=ID_PLCOPENEDITOREDITMENUSEARCHINPROJECT, - kind=wx.ITEM_NORMAL, text=_(u'Search in Project')) + kind=wx.ITEM_NORMAL, text=_(u'Search in Project\tCTRL+F')) parent.AppendSeparator() addmenu = wx.Menu(title='') - parent.AppendMenu(wx.ID_ADD, _("Add Element"), addmenu) + parent.AppendMenu(wx.ID_ADD, _(u"&Add Element"), addmenu) AppendMenu(addmenu, help='', id=ID_PLCOPENEDITOREDITMENUADDDATATYPE, - kind=wx.ITEM_NORMAL, text=_(u'Data Type')) + kind=wx.ITEM_NORMAL, text=_(u'&Data Type')) AppendMenu(addmenu, help='', id=ID_PLCOPENEDITOREDITMENUADDFUNCTION, - kind=wx.ITEM_NORMAL, text=_(u'Function')) + kind=wx.ITEM_NORMAL, text=_(u'&Function')) AppendMenu(addmenu, help='', id=ID_PLCOPENEDITOREDITMENUADDFUNCTIONBLOCK, - kind=wx.ITEM_NORMAL, text=_(u'Function Block')) + kind=wx.ITEM_NORMAL, text=_(u'Function &Block')) AppendMenu(addmenu, help='', id=ID_PLCOPENEDITOREDITMENUADDPROGRAM, - kind=wx.ITEM_NORMAL, text=_(u'Program')) + kind=wx.ITEM_NORMAL, text=_(u'&Program')) AppendMenu(addmenu, help='', id=ID_PLCOPENEDITOREDITMENUADDCONFIGURATION, - kind=wx.ITEM_NORMAL, text=_(u'Configuration')) + kind=wx.ITEM_NORMAL, text=_(u'&Configuration')) AppendMenu(parent, help='', id=wx.ID_SELECTALL, kind=wx.ITEM_NORMAL, text=_(u'Select All\tCTRL+A')) AppendMenu(parent, help='', id=wx.ID_DELETE, - kind=wx.ITEM_NORMAL, text=_(u'Delete')) + kind=wx.ITEM_NORMAL, text=_(u'&Delete')) self.Bind(wx.EVT_MENU, self.OnUndoMenu, id=wx.ID_UNDO) self.Bind(wx.EVT_MENU, self.OnRedoMenu, id=wx.ID_REDO) #self.Bind(wx.EVT_MENU, self.OnEnableUndoRedoMenu, id=ID_PLCOPENEDITOREDITMENUENABLEUNDOREDO) @@ -2537,7 +2537,7 @@ AppendMenu(parent, help='', id=wx.ID_CLOSE, kind=wx.ITEM_NORMAL, text=_(u'Close Tab\tCTRL+W')) AppendMenu(parent, help='', id=wx.ID_CLOSE_ALL, - kind=wx.ITEM_NORMAL, text=_(u'Close Project')) + kind=wx.ITEM_NORMAL, text=_(u'Close Project\tCTRL+SHIFT+W')) parent.AppendSeparator() AppendMenu(parent, help='', id=wx.ID_SAVE, kind=wx.ITEM_NORMAL, text=_(u'Save\tCTRL+S')) @@ -2547,14 +2547,14 @@ kind=wx.ITEM_NORMAL, text=_(u'Generate Program\tCTRL+G')) parent.AppendSeparator() AppendMenu(parent, help='', id=wx.ID_PAGE_SETUP, - kind=wx.ITEM_NORMAL, text=_(u'Page Setup')) + kind=wx.ITEM_NORMAL, text=_(u'Page Setup\tCTRL+ALT+P')) AppendMenu(parent, help='', id=wx.ID_PREVIEW, - kind=wx.ITEM_NORMAL, text=_(u'Preview')) + kind=wx.ITEM_NORMAL, text=_(u'Preview\tCTRL+SHIFT+P')) AppendMenu(parent, help='', id=wx.ID_PRINT, - kind=wx.ITEM_NORMAL, text=_(u'Print')) + kind=wx.ITEM_NORMAL, text=_(u'Print\tCTRL+P')) parent.AppendSeparator() AppendMenu(parent, help='', id=wx.ID_PROPERTIES, - kind=wx.ITEM_NORMAL, text=_(u'Properties')) + kind=wx.ITEM_NORMAL, text=_(u'&Properties')) parent.AppendSeparator() AppendMenu(parent, help='', id=wx.ID_EXIT, kind=wx.ITEM_NORMAL, text=_(u'Quit\tCTRL+Q'))