Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /newedit/src/modules/

newedit
Discussion topic

Back to topic list

CVS update: /newedit/src/modules/

Reply

Author limodou
Full name limodou
Date 2004-05-10 23:12:46 PDT
Message User: limodou
Date: 04/05/10 23:12:46

Modified:
 /newedit/src/modules/
  ComEdit.py, EditorCtrl.py, OnModified.py

Log:
 

File Changes:

Directory: /newedit/src/modules/
====================​============

File [changed]: ComEdit.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/modules/​ComEdit.py?r1=1.1​&r2=1.2
Delta lines: +13 -5
--------------------
--- ComEdit.py 8 May 2004 14:25:28 -0000 1.1
+++ ComEdit.py 11 May 2004 06:12:44 -0000 1.2
@@ -7,11 +7,13 @@
 popmenulist = [ (0, #parent menu id
     [
         (100, 'IDPM_UNDO', 'Undo\tCtrl+Z', wx.ITEM_NORMAL, 'OnUndo', ''),
- (200, 'IDPM_REDO', 'Redo\tCtrl+Y', wx.ITEM_NORMAL, 'OnRedo', ''),
- (300, '', '-', wx.ITEM_SEPARATOR, None, ''),
- (400, 'IDPM_CUT', 'Cut\tCtrl+X', wx.ITEM_NORMAL, 'OnPopupEdit', ''),
- (500, 'IDPM_COPY', 'Copy\tCtrl+C', wx.ITEM_NORMAL, 'OnPopupEdit', ''),
- (600, 'IDPM_PASTE', 'Paste\tCtrl+V', wx.ITEM_NORMAL, 'OnPopupEdit', ''),
+ (150, 'IDPM_REDO', 'Redo\tCtrl+Y', wx.ITEM_NORMAL, 'OnRedo', ''),
+ (200, '', '-', wx.ITEM_SEPARATOR, None, ''),
+ (250, 'IDPM_CUT', 'Cut\tCtrl+X', wx.ITEM_NORMAL, 'OnPopupEdit', ''),
+ (300, 'IDPM_COPY', 'Copy\tCtrl+C', wx.ITEM_NORMAL, 'OnPopupEdit', ''),
+ (350, 'IDPM_PASTE', 'Paste\tCtrl+V', wx.ITEM_NORMAL, 'OnPopupEdit', ''),
+ (400, '', '-', wx.ITEM_SEPARATOR, None, ''),
+ (450, 'IDPM_SELECT_ALL', 'Select All\tCtrl+A', wx.ITEM_NORMAL, 'OnPopupEdit', ''),
     ]),
 ]
 Mixin.setMixin('editor', 'popmenulist', popmenulist)
@@ -32,6 +34,8 @@
         win.CmdKeyExecute(wx​.stc.STC_CMD_COPY)
     elif eid == win.IDPM_PASTE:
         win.CmdKeyExecute(wx​.stc.STC_CMD_PASTE)
+ elif eid == win.IDPM_SELECT_ALL:
+ win.CmdKeyExecute(wx​.stc.STC_CMD_SELECTA​LL)
 Mixin.setMixin('editor', 'OnPopupEdit', OnPopupEdit)
 
 menulist = [ (0, #parent menu id
@@ -46,6 +50,8 @@
         (204, 'IDM_EDIT_CUT', 'Cut\tCtrl+X', wx.ITEM_NORMAL, 'DoSTCBuildIn', 'Cut selected text to clipboard'),
         (205, 'IDM_EDIT_COPY', 'Copy\tCtrl+C', wx.ITEM_NORMAL, 'DoSTCBuildIn', 'Copy selected text to clipboard'),
         (206, 'IDM_EDIT_PASTE', 'Paste\tCtrl+V', wx.ITEM_NORMAL, 'DoSTCBuildIn', 'Paste text from clipboard'),
+ (300, '', '-', wx.ITEM_SEPARATOR, None, ''),
+ (301, 'IDM_SELECT_ALL', 'Select All\tCtrl+A', wx.ITEM_NORMAL, 'DoSTCBuildIn', 'Select all text of the document'),
     ]),
 ]
 Mixin.setMixin('mainframe', 'menulist', menulist)
@@ -74,4 +80,6 @@
         win.document.CmdKeyE​xecute(wx.stc.STC_CM​D_COPY)
     elif eid == win.IDM_EDIT_PASTE:
         win.document.CmdKeyE​xecute(wx.stc.STC_CM​D_PASTE)
+ elif eid == win.IDM_SELECT_ALL:
+ win.document.CmdKeyE​xecute(wx.stc.STC_CM​D_SELECTALL)
 Mixin.setMixin('mainframe', 'DoSTCBuildIn', DoSTCBuildIn)

File [changed]: EditorCtrl.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/modules/​EditorCtrl.py?r1=1.3​&r2=1.4
Delta lines: +2 -2
-------------------
--- EditorCtrl.py 11 May 2004 05:12:42 -0000 1.3
+++ EditorCtrl.py 11 May 2004 06:12:44 -0000 1.4
@@ -11,8 +11,8 @@
         (120, 'IDM_FILE_CLOSE_ALL', 'Close All', wx.ITEM_NORMAL, 'OnFileCloseAll', 'Close all documents'),
         (125, '', '-', wx.ITEM_SEPARATOR, None, ''),
         (130, 'IDM_FILE_SAVE', 'Save\tCtrl+S', wx.ITEM_NORMAL, 'OnFileSave', 'Save current document'),
- (135, 'IDM_FILE_SAVE_ALL', 'Save All', wx.ITEM_NORMAL, 'OnFileSaveAll', 'Save all documents'),
- (140, 'IDM_FILE_SAVE_AS', 'Save As', wx.ITEM_NORMAL, 'OnFileSaveAs', 'Save current document as ...'),
+ (135, 'IDM_FILE_SAVE_AS', 'Save As', wx.ITEM_NORMAL, 'OnFileSaveAs', 'Save current document as ...'),
+ (140, 'IDM_FILE_SAVE_ALL', 'Save All', wx.ITEM_NORMAL, 'OnFileSaveAll', 'Save all documents'),
     ]),
 ]
 Mixin.setMixin('mainframe', 'menulist', menulist)

File [changed]: OnModified.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/modules/​OnModified.py?r1=1.2​&r2=1.3
Delta lines: +0 -3
-------------------
--- OnModified.py 11 May 2004 05:12:42 -0000 1.2
+++ OnModified.py 11 May 2004 06:12:44 -0000 1.3
@@ -13,7 +13,4 @@
     else:
         win.SetSavePoint()
         win.editctrl.showTitle(win)
-
- self.setLineNumberMargin()
-
 Mixin.setMixin('editor', 'OnModified', OnModified)




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@newe​dit.tigris.org
For additional commands, e-mail: cvs-help at newedit dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /newedit/src/modules/ limodou limodou 2004-05-10 23:12:46 PDT
Messages per page: