]> git.lyx.org Git - features.git/commitdiff
FINISHED_POP -> FINISHED
authorLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 29 Oct 2003 13:34:11 +0000 (13:34 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 29 Oct 2003 13:34:11 +0000 (13:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8002 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/dispatchresult.h
src/mathed/ChangeLog
src/mathed/math_cursor.C
src/mathed/math_gridinset.C
src/mathed/math_hullinset.C

index f727aa27110901d88c02c0a11506c5ed5ae47e2f..fccc3eae36d8fcff07cd0d3e29bbab40c0f607d9 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-29  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * dispatchresult.h: remove FINISHED_POP as FINISHED has the same
+       meaning.
+
 2003-10-29  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * dispatchresult.h: rename DISPATCHED_POP to FINISHED_POP, remove
index 0700dd517a9e3f549ff4e4b68eb26187b174e995..f533534a57f5ac37bb67519573f5cb1b4211902c 100644 (file)
@@ -35,8 +35,7 @@ enum dispatch_result_t {
        FINISHED,
        FINISHED_RIGHT,
        FINISHED_UP,
-       FINISHED_DOWN,
-       FINISHED_POP
+       FINISHED_DOWN
 };
 
 /** \c DispatchResult is a wrapper for dispatch_result_t.
index df03a27f3759f2f80611ca3442a8ead9cd296fb8..1b383c23b011092237e2a3326cb45458cc342b34 100644 (file)
@@ -2,7 +2,14 @@
 
        * math_hullinset.C (priv_dispatch): 
        * math_gridinset.C (priv_dispatch): 
+       * math_cursor.C (dispatch): FINISHED_POP -> FINISHED
+
+2003-10-29  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * math_hullinset.C (priv_dispatch):
+       * math_gridinset.C (priv_dispatch):
        * math_cursor.C (dispatch): DISPATCHED_POP -> FINISHED_POP
+       (dispatch): 
 
        * math_scriptinset.h: change dispatch to priv_dispatch and make it
        protected
index bfea72d1078d6ea5c838ad0345bc4a766db3b56b..0dde4c4661b7782275350df446cff03054512789 100644 (file)
@@ -1439,7 +1439,7 @@ DispatchResult MathCursor::dispatch(FuncRequest const & cmd)
                CursorPos & pos = Cursor_[i];
                DispatchResult res = pos.inset_->dispatch(cmd, pos.idx_, pos.pos_);
                if (res != UNDISPATCHED) {
-                       if (res == FINISHED_POP) {
+                       if (res == FINISHED) {
                                Cursor_.shrink(i + 1);
                                selClear();
                        }
index ffc31f08e6813ab79c6a10cbfd34d75220c075cc..b5d39f4b267543a9b1de33c0a949c75185c7adaf 100644 (file)
@@ -1072,12 +1072,12 @@ DispatchResult MathGridInset::priv_dispatch(FuncRequest const & cmd,
                                idx = nargs() - 1;
                        if (pos > cell(idx).size())
                                pos = cell(idx).size();
-                       return FINISHED_POP;
+                       return FINISHED;
 
                case LFUN_CELL_SPLIT:
                        //recordUndo(bv, Undo::ATOMIC);
                        splitCell(idx, pos);
-                       return FINISHED_POP;
+                       return FINISHED;
 
                case LFUN_BREAKLINE: {
                        //recordUndo(bv, Undo::INSERT);
@@ -1096,7 +1096,7 @@ DispatchResult MathGridInset::priv_dispatch(FuncRequest const & cmd,
                        pos = cell(idx).size();
 
                        //mathcursor->normalize();
-                       return FINISHED_POP;
+                       return FINISHED;
                }
 
                case LFUN_TABULAR_FEATURE: {
@@ -1152,8 +1152,8 @@ DispatchResult MathGridInset::priv_dispatch(FuncRequest const & cmd,
                                swapCol(col(idx));
                        else
                                return UNDISPATCHED;
-                       lyxerr << "returning DISPATCHED_POP" << endl;
-                       return FINISHED_POP;
+                       lyxerr << "returning FINISHED" << endl;
+                       return FINISHED;
                }
 
                case LFUN_PASTE: {
@@ -1184,7 +1184,7 @@ DispatchResult MathGridInset::priv_dispatch(FuncRequest const & cmd,
                                        for (col_type c = 0; c < grid.ncols(); ++c)
                                                cell(i).append(grid.cell(grid.index(r, c)));
                        }
-                       return FINISHED_POP;
+                       return FINISHED;
                }
 
                default:
index dd55c413d60966ab1d30d34b40028693871849f6..179baddf228f599f4011474082d40bc83f90df7c 100644 (file)
@@ -782,7 +782,7 @@ DispatchResult MathHullInset::priv_dispatch
                                mutate("eqnarray");
                                idx = 1;
                                pos = 0;
-                               return FINISHED_POP;
+                               return FINISHED;
                        }
                        return MathGridInset::priv_dispatch(cmd, idx, pos);
 
@@ -837,7 +837,7 @@ DispatchResult MathHullInset::priv_dispatch
 
                case LFUN_MATH_EXTERN:
                        doExtern(cmd, idx, pos);
-                       return FINISHED_POP;
+                       return FINISHED;
 
                case LFUN_MATH_MUTATE: {
                        lyxerr << "Hull: MUTATE: " << cmd.argument << endl;
@@ -849,14 +849,14 @@ DispatchResult MathHullInset::priv_dispatch
                                idx = nargs() - 1;
                        if (pos > cell(idx).size())
                                pos = cell(idx).size();
-                       return FINISHED_POP;
+                       return FINISHED;
                }
 
                case LFUN_MATH_DISPLAY: {
                        mutate(type_ == "simple" ? "equation" : "simple");
                        idx = 0;
                        pos = cell(idx).size();
-                       return FINISHED_POP;
+                       return FINISHED;
                }
 
                default: