#163 More Customizable Menus

open
nobody
None
5
2007-09-14
2007-09-14
No

This patch adds the File, Edit and Search menu to the list of user definable menus (so far these were the Shell, Macro and Background menus). Moreover, you can add separators under menu entries and hide menu entries while having shortcuts for them. This is for achieving
the compact menus like Search->Find, where Ctrl+F finds forward and Shift+Ctrl+F finds in backward direction.

Notice, there are some changes in the preferences file format. The old format is read, but make a backup copy of your nedit.rc, because the new format won't be read by an unpatched NEdit.

Notice also, there are necessarily some minor changes to the File, Edit and Search menu now, and the patch isn't complete in that I haven't written the unload part of the Load Tags/Tips Files macros, yet.

BUT the point is that these menus are definable now, anyway, and this makes me feel like so :->>

Discussion

  • Joerg Fischer

    Joerg Fischer - 2007-09-14

    version 1.0

     
  • Joerg Fischer

    Joerg Fischer - 2007-09-20

    Final Version

     
  • Joerg Fischer

    Joerg Fischer - 2007-09-20

    Logged In: YES
    user_id=918104
    Originator: YES

    >... and the patch isn't complete in that I haven't written the unload
    >part of the Load Tags/Tips Files macros, yet.

    Ok, I completed the patch by adding $loaded_tags/tips_files arrays and
    the macros to unload tags/tips files. Moreover, the new file/edit/search_menu_commands aren't recorded by the macro recorder to emulate the old behavior. Patch is against CVS snapshot from 09/10/2007.

    File Added: mocume2.diff.gz

     
  • Thorsten Haude

    Thorsten Haude - 2007-12-28

    Logged In: YES
    user_id=119143
    Originator: NO

    Patching went through with offset, but I get compiler errors:

    menu.o(.text+0x6023): In function `unloadTagsFileMenuCB':
    /home/yooden/work/nedit/nedit.dynamicmenu/source/menu.c:2627: undefined reference to `updateTagsFileMenu'
    menu.o(.text+0x6053): In function `unloadTipsFileMenuCB':
    /home/yooden/work/nedit/nedit.dynamicmenu/source/menu.c:2632: undefined reference to `updateTipsFileMenu'

     
  • Joerg Fischer

    Joerg Fischer - 2007-12-28

    Logged In: YES
    user_id=918104
    Originator: YES

    I see you found the whole patch eventually, perhaps this answers some of the question you asked on the list.

    I missed to delete the unused callback functions (they are replaced by macros located in the File, Edit and Search menu). So, you can simply delete unload(Tags|Tips)FileMenuCB to get rid of the compiler errors.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks