some new menu fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6860 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-04-26 17:30:13 +00:00
parent 12a6ebb867
commit d3561d9b79
2 changed files with 28 additions and 24 deletions

View File

@ -1,3 +1,10 @@
2003-04-26 John Levon <levon@movementarian.org>
* ui/stdmenus.ui: remove shortcuts for cut,copy,paste
to allow better shortcuts for the other options. Use
new inset-settings. Disable "inset-toggle" for now.
Re-organise Insert menu, and back out the Note submenu.
2003-04-15 John Levon <levon@movementarian.org> 2003-04-15 John Levon <levon@movementarian.org>
* ui/stdtoolbars.ui: * ui/stdtoolbars.ui:

View File

@ -67,13 +67,13 @@ Menuset
Item "Undo|U" "undo" Item "Undo|U" "undo"
Item "Redo|d" "redo" Item "Redo|d" "redo"
Separator Separator
Item "Cut|C" "cut" Item "Cut" "cut"
Item "Copy|o" "copy" Item "Copy" "copy"
Item "Paste|a" "paste" Item "Paste" "paste"
Item "Find & Replace...|F" "find-replace" Item "Find & Replace...|F" "find-replace"
Separator Separator
Item "Text Style...|S" "layout-character" Item "Text Style...|S" "layout-character"
Item "Paragraph Settings...|a" "layout-paragraph" Item "Paragraph Settings...|P" "layout-paragraph"
Separator Separator
# Mathed b0rkage means these don't work properly # Mathed b0rkage means these don't work properly
OptSubmenu "Table|T" "edit_tabular" OptSubmenu "Table|T" "edit_tabular"
@ -86,11 +86,12 @@ Menuset
# only appear when relevant (getStatus). Only stuff that needs # only appear when relevant (getStatus). Only stuff that needs
# a right-click to bring up the dialog should appear here (it is not # a right-click to bring up the dialog should appear here (it is not
# obvious what the context is for the others) # obvious what the context is for the others)
OptItem "Table Settings..." "dialog-show-next-inset tabular" OptItem "Table Settings...|a" "inset-settings tabular"
OptItem "TeX Code Settings..." "dialog-show-next-inset ert" OptItem "TeX Code Settings...|C" "inset-settings ert"
OptItem "Float Settings..." "dialog-show-next-inset float" # 'a' shortcut to match Insert entry, shouldn't clash with Table Settings
OptItem "Minipage Settings..." "dialog-show-next-inset minipage" OptItem "Float Settings...|a" "inset-settings float"
OptItem "Text Wrap Settings..." "dialog-show-next-inset wrap" OptItem "Minipage Settings...|M" "inset-settings minipage"
OptItem "Text Wrap Settings...|W" "inset-settings wrap"
End End
# not much we can do to help here # not much we can do to help here
@ -182,7 +183,8 @@ Menuset
# #
Menu "view" Menu "view"
Item "Open Float|O" "inset-toggle" # FIXME: this must become Open Footnote, Close Margin Note etc. as appropriate
# Item "Open Float|O" "inset-toggle"
# A common feature request JMarc wants to see # A common feature request JMarc wants to see
# Item "Open All Footnotes|F" "open-footnotes" # Item "Open All Footnotes|F" "open-footnotes"
# Item "Close All Footnotes|C" "close-footnotes" # Item "Close All Footnotes|C" "close-footnotes"
@ -207,37 +209,32 @@ Menuset
# Try and group things a little better, and percolate the most # Try and group things a little better, and percolate the most
# commonly used to good positions (exception being mathed, but # commonly used to good positions (exception being mathed, but
# most people using mathed learn key shortcuts quite quickly anyway) # most people using mathed learn key shortcuts quite quickly anyway)
Item "Citation Reference...|C" "dialog-show-new-inset citation"
Item "Cross Reference...|R" "dialog-show-new-inset ref"
Item "Label...|L" "label-insert"
Item "Index Entry|I" "index-insert"
Separator
Submenu "Math|h" "insert_math" Submenu "Math|h" "insert_math"
Submenu "Special Character|S" "insert_special" Submenu "Special Character|S" "insert_special"
Submenu "Float|a" "insert_float" Submenu "Float|a" "insert_float"
Submenu "List / TOC|O" "insert_toc" Submenu "List / TOC|O" "insert_toc"
# YUCK # YUCK
Submenu "File|e" "insert_file" Submenu "File|e" "insert_file"
Submenu "Note|N" "insert_note"
Separator Separator
Item "Citation Reference...|C" "dialog-show-new-inset citation"
Item "Cross Reference...|R" "dialog-show-new-inset ref"
Item "Label...|L" "label-insert"
Item "Index Entry|I" "index-insert"
# I'm going to kill this dumb dialog, but for now ... # I'm going to kill this dumb dialog, but for now ...
Separator
Item "Table...|T" "tabular-insert" Item "Table...|T" "tabular-insert"
Item "Minipage|p" "minipage-insert"
Item "Graphics...|G" "dialog-show-new-inset graphics" Item "Graphics...|G" "dialog-show-new-inset graphics"
Item "URL...|U" "url-insert" Item "URL...|U" "url-insert"
Item "Footnote|F" "footnote-insert"
Item "Marginal Note|M" "marginalnote-insert"
Item "Note|N" "note-insert"
Item "Minipage|p" "minipage-insert"
Item "Short Title" "optional-insert" Item "Short Title" "optional-insert"
Item "TeX|X" "ert-insert" Item "TeX|X" "ert-insert"
Item "External Material...|x" "dialog-show-new-inset external" Item "External Material...|x" "dialog-show-new-inset external"
Item "Child document...|d" "dialog-show-new-inset include" Item "Child document...|d" "dialog-show-new-inset include"
End End
# Not great, but the main Insert menu is seriously unwieldly
Menu "insert_note"
Item "Footnote|F" "footnote-insert"
Item "Marginal Note|M" "marginalnote-insert"
Item "Note|N" "note-insert"
End
Menu "insert_special" Menu "insert_special"
Item "Superscript|S" "command-sequence math-mode ; math-superscript ; font-free-apply; " Item "Superscript|S" "command-sequence math-mode ; math-superscript ; font-free-apply; "
Item "Subscript|u" "command-sequence math-mode ; math-subscript ; font-free-apply; " Item "Subscript|u" "command-sequence math-mode ; math-subscript ; font-free-apply; "