--- a/plugins/c_ext/CFileEditor.py Sun Mar 27 15:57:05 2011 +0200
+++ b/plugins/c_ext/CFileEditor.py Sun Mar 27 16:16:55 2011 +0200
@@ -815,15 +815,23 @@
self.Bind(wx.EVT_MENU, self.OnUndoMenu, id=wx.ID_UNDO)
self.Bind(wx.EVT_MENU, self.OnRedoMenu, id=wx.ID_REDO)
+ def _init_coll_FileMenu_Items(self, parent):
+ AppendMenu(parent, help='', id=wx.ID_SAVE,
+ kind=wx.ITEM_NORMAL, text=u'Save\tCTRL+S')
+ self.Bind(wx.EVT_MENU, self.OnSaveMenu, id=wx.ID_SAVE)
+
def _init_coll_MenuBar_Menus(self, parent):
+ parent.Append(menu=self.FileMenu, title=u'&File')
parent.Append(menu=self.EditMenu, title=u'&Edit')
def _init_utils(self):
self.MenuBar = wx.MenuBar()
+ self.FileMenu = wx.Menu(title='')
self.EditMenu = wx.Menu(title='')
self._init_coll_MenuBar_Menus(self.MenuBar)
+ self._init_coll_FileMenu_Items(self.FileMenu)
self._init_coll_EditMenu_Items(self.EditMenu)
def _init_ctrls(self, prnt):
@@ -975,6 +983,12 @@
self.RefreshEditMenu()
#-------------------------------------------------------------------------------
+# File Project Menu Functions
+#-------------------------------------------------------------------------------
+ def RefreshFileMenu(self):
+ self.FileMenu.Enable(wx.ID_SAVE, True)
+
+#-------------------------------------------------------------------------------
# CFile Editor Panels Management Functions
#-------------------------------------------------------------------------------