Partition lines in matrices: UI

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9607 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2005-02-09 18:56:01 +00:00
parent d20ac26754
commit 07362230de
4 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-02-09 Martin Vermeer <martin.vermeer@hut.fi>
* ui/stdmenus.ui: add facilities for drawing/deleting partition
lines in matrix
2005-02-08 Mike Ressler <mike.ressler@alum.mit.edu>
* layouts/aastex.layout: Updated for AASTeX 5.2

View File

@ -158,11 +158,15 @@ Menuset
Item "Delete Row|D" "tabular-feature delete-row"
Item "Copy Row" "tabular-feature copy-row"
Item "Swap Rows" "tabular-feature swap-row"
Item "Add Line Above" "tabular-feature add-hline-above"
Item "Delete Line Above" "tabular-feature delete-hline-above"
Separator
Item "Add Column|C" "tabular-feature append-column"
Item "Delete Column|e" "tabular-feature delete-column"
Item "Copy Column" "tabular-feature copy-column"
Item "Swap Columns" "tabular-feature swap-column"
Item "Add Line to Left" "tabular-feature add-vline-left"
Item "Delete Line to Left" "tabular-feature delete-vline-left"
End
Menu "edit_math_limits"

View File

@ -1,3 +1,9 @@
<<<<<<< ChangeLog
2005-02-09 Martin Vermeer <martin.vermeer@hut.fi>
* math_gridinset.[hC]: add facilities for drawing/deleting partition
lines in matrix.
2005-02-08 Lars Gullik Bjonnes <larsbj@gullik.net>
* math_data.C (isInside): size() -> depth()

View File

@ -1100,6 +1100,10 @@ void MathGridInset::doDispatch(LCursor & cur, FuncRequest & cmd)
copyRow(cur.row());
else if (s == "swap-row")
swapRow(cur.row());
else if (s == "add-hline-above")
rowinfo_[cur.row()].lines_++;
else if (s == "delete-hline-above")
rowinfo_[cur.row()].lines_ = 0;
else if (s == "append-column")
for (int i = 0, n = extractInt(is); i < n; ++i) {
row_type r = cur.row();
@ -1120,6 +1124,10 @@ void MathGridInset::doDispatch(LCursor & cur, FuncRequest & cmd)
copyCol(col(cur.idx()));
else if (s == "swap-column")
swapCol(col(cur.idx()));
else if (s == "add-vline-left")
colinfo_[col(cur.idx())].lines_++;
else if (s == "delete-vline-left")
colinfo_[col(cur.idx())].lines_ = 0;
else {
cur.undispatched();
break;