]> git.lyx.org Git - features.git/commitdiff
Partition lines in matrices: UI
authorMartin Vermeer <martin.vermeer@hut.fi>
Wed, 9 Feb 2005 18:56:01 +0000 (18:56 +0000)
committerMartin Vermeer <martin.vermeer@hut.fi>
Wed, 9 Feb 2005 18:56:01 +0000 (18:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9607 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/ui/stdmenus.ui
src/mathed/ChangeLog
src/mathed/math_gridinset.C

index 500f996625f3eeda73df1efd14259b23a244cb1c..71b424d0c0c74d78ea8ee78958eeb4162a07c8d3 100644 (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
index c03c3925047abccc23d22bf65f76bf2dc99f6d86..604d28cc2dcdfb3f5dcb76c26470d0c26c489e91 100644 (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"
index 3b683126d5060373e84e2248f11f91fb4bad8056..838e1711ac4fe3b81e2a75d089b228766110c626 100644 (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()
index 26d56cf4e7251d4457051006fa281f8258e1a377..b436e4718667dceb046a1248f36a83ffaf6b6711 100644 (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;