Am 04.11.2015 um 10:42 schrieb Jean-Marc Lasgouttes:

This is not how contextual menus are supposed to work IMO. I would
propose instead to use submenus and to micmick what libreoffice (for
ex.) does.

I agree that submenus are better than to remove things.
Attached is a patch. OK to go in?

---------

Besides this, in general it is not good to use personal preferences as argument. (I make this mistake too.) We provide a product that should not only suit our needs but the needs of as many as possible average users out there.

thanks and regards
Uwe
diff --git 
"a/C:\\Users\\Usti\\AppData\\Local\\Temp\\TortoiseGit\\std8A77.tmp\\stdcontext-9894e0b-left.inc"
 "b/D:\\LyXGit\\Master\\lib\\ui\\stdcontext.inc"
index 630892c..3eebbc9 100644
--- 
"a/C:\\Users\\Usti\\AppData\\Local\\Temp\\TortoiseGit\\std8A77.tmp\\stdcontext-9894e0b-left.inc"
+++ "b/D:\\LyXGit\\Master\\lib\\ui\\stdcontext.inc"
@@ -405,15 +405,14 @@ Menuset
 # InsetTabular context menu
 #
 
-       Menu "context-tabular"
-               Item "Multicolumn|u" "inset-modify tabular multicolumn"
-               Item "Multirow|w" "inset-modify tabular multirow"
-               Separator
+       Menu "table-lines"
                Item "Top Line|n" "inset-modify tabular toggle-line-top"
                Item "Bottom Line|i" "inset-modify tabular toggle-line-bottom"
                Item "Left Line|L" "inset-modify tabular toggle-line-left"
                Item "Right Line|R" "inset-modify tabular toggle-line-right"
-               Separator
+       End
+       
+       Menu "table-alignment"
                Item "Left|f" "command-alternatives inset-modify tabular 
m-align-left;inset-modify tabular align-left"
                Item "Center|C" "command-alternatives inset-modify tabular 
m-align-center;inset-modify tabular align-center"
                Item "Right|h" "command-alternatives inset-modify tabular 
m-align-right;inset-modify tabular align-right"
@@ -422,6 +421,11 @@ Menuset
                Item "Top|T" "inset-modify tabular valign-top"
                Item "Middle|M" "inset-modify tabular valign-middle"
                Item "Bottom|B" "inset-modify tabular valign-bottom"
+       End
+       
+       Menu "table-cols-rows"
+               Item "Multicolumn|u" "inset-modify tabular multicolumn"
+               Item "Multirow|w" "inset-modify tabular multirow"
                Separator
                Item "Append Row|A" "inset-modify tabular append-row"
                Item "Delete Row|D" "inset-modify tabular delete-row"
@@ -434,6 +438,18 @@ Menuset
                Item "Copy Column|y" "inset-modify tabular copy-column"
                Item "Move Column Right|v" "inset-modify tabular 
move-column-right"
                Item "Move Column Left" "inset-modify tabular move-column-left"
+       End
+       
+       Menu "context-tabular"
+               Item "Formal style|F" "inset-modify tabular set-booktabs"
+               Item "Longtable|o" "inset-modify tabular set-longtabular"
+               Separator
+               Submenu "Lines|L" "table-lines"
+               Separator
+               Submenu "Alignment|A" "table-alignment"
+               Separator
+               Submenu "Columns/Rows|C" "table-cols-rows"
+               Separator
                Separator
                Item "Settings...|S" "inset-settings tabular"
        End

Reply via email to