mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
FINISHED_POP -> FINISHED
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8002 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1d7a715329
commit
3df493e9d6
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user