From: Martin Vermeer Date: Wed, 9 Feb 2005 18:56:01 +0000 (+0000) Subject: Partition lines in matrices: UI X-Git-Tag: 1.6.10~14558 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=07362230de56cbbe5ef1f41fca8fa586ec5ca203;p=features.git Partition lines in matrices: UI git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9607 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 500f996625..71b424d0c0 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2005-02-09 Martin Vermeer + + * ui/stdmenus.ui: add facilities for drawing/deleting partition + lines in matrix + 2005-02-08 Mike Ressler * layouts/aastex.layout: Updated for AASTeX 5.2 diff --git a/lib/ui/stdmenus.ui b/lib/ui/stdmenus.ui index c03c392504..604d28cc2d 100644 --- a/lib/ui/stdmenus.ui +++ b/lib/ui/stdmenus.ui @@ -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" diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 3b683126d5..838e1711ac 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,9 @@ +<<<<<<< ChangeLog +2005-02-09 Martin Vermeer + + * math_gridinset.[hC]: add facilities for drawing/deleting partition + lines in matrix. + 2005-02-08 Lars Gullik Bjonnes * math_data.C (isInside): size() -> depth() diff --git a/src/mathed/math_gridinset.C b/src/mathed/math_gridinset.C index 26d56cf4e7..b436e47186 100644 --- a/src/mathed/math_gridinset.C +++ b/src/mathed/math_gridinset.C @@ -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;