Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

> We could have in stdmenu.inc a menu named "contextmenu" that contains
> a bunch of OptItem entries. Then only the entries that make sense at a
> given place will be present.

To show more precisely what I have in mind, have a look at the
following patch. It adds a new "Context menu" top-level menu, which
contains some entries from both the edit menu and the edit>table menu.

The entries only appear when they make sense. Of course, many more
entries should be added, and carefully thought. A context menu only
makes sense when it is short enough.

It should be easy to trigger opening this menu with the rmb.

JMarc

svndiff lib/ui/stdmenus.inc

Index: lib/ui/stdmenus.inc
===================================================================
--- lib/ui/stdmenus.inc	(révision 20930)
+++ lib/ui/stdmenus.inc	(copie de travail)
@@ -25,6 +25,7 @@ Menuset
 		Submenu "Document|D" "document"
 		Submenu "Tools|T" "tools"
 		Submenu "Help|H" "help"
+		Submenu "Context menu" "context"
 	End
 
 #
@@ -497,4 +498,22 @@ Menuset
 		Item "About LyX|X" "dialog-show aboutlyx"
 	End
 
+	Menu "context"
+		OptItem "Paragraph Settings...|P" "layout-paragraph"
+		OptItem "Increase List Depth|I" "depth-increment"
+		OptItem "Decrease List Depth|D" "depth-decrement"
+		OptItem "Dissolve Inset|l" "inset-dissolve"
+		OptItem "TeX Code Settings...|C" "inset-settings ert"
+		OptItem "Float Settings...|a" "inset-settings float"
+		OptItem "Text Wrap Settings...|W" "inset-settings wrap"
+		OptItem "Note Settings...|N" "inset-settings note"
+		OptItem "Branch Settings...|B" "inset-settings branch"
+		OptItem "Box Settings...|x" "inset-settings box"
+		Separator
+		OptItem "Add Row|A" "tabular-feature append-row"
+		OptItem "Delete Row|D" "tabular-feature delete-row"
+		OptItem "Add Column|u" "tabular-feature append-column"
+		OptItem "Delete Column|e" "tabular-feature delete-column"
+	End
+
 End

Reply via email to