mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
tab funcs changed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6691 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d283cc7745
commit
3c1b0ea16b
@ -1,3 +1,12 @@
|
|||||||
|
2003-04-02 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
|
* LyXAction.C:
|
||||||
|
* lfuns.h:
|
||||||
|
* lyx_main.C:
|
||||||
|
* lyxtext.h:
|
||||||
|
* text.C:
|
||||||
|
* text3.C: rename the "tab" lfuns. Remove tab support from normal text
|
||||||
|
|
||||||
2003-04-02 Lars Gullik Bjønnes <larsbj@gullik.net>
|
2003-04-02 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||||
|
|
||||||
* paragraph.h: make ParagraphList and ParagraphList::iterator
|
* paragraph.h: make ParagraphList and ParagraphList::iterator
|
||||||
|
@ -340,9 +340,9 @@ void LyXAction::init()
|
|||||||
{ LFUN_SETXY, "server-set-xy", "", ReadOnly },
|
{ LFUN_SETXY, "server-set-xy", "", ReadOnly },
|
||||||
{ LFUN_SET_COLOR, "set-color", "", ReadOnly|NoBuffer },
|
{ LFUN_SET_COLOR, "set-color", "", ReadOnly|NoBuffer },
|
||||||
{ LFUN_SPELLCHECK, "spellchecker", "", Noop },
|
{ LFUN_SPELLCHECK, "spellchecker", "", Noop },
|
||||||
{ LFUN_SHIFT_TAB, "tab-backward", "", Noop },
|
{ LFUN_CELL_BACKWARD, "cell-backward", "", Noop },
|
||||||
{ LFUN_TAB, "tab-forward", "", Noop },
|
{ LFUN_CELL_FORWARD, "cell-forward", "", Noop },
|
||||||
{ LFUN_TABINSERT, "tab-insert", "", Noop },
|
{ LFUN_CELL_SPLIT, "cell-split", "", Noop },
|
||||||
{ LFUN_TABULAR_INSERT, "tabular-insert", N_("Insert Table"), Noop },
|
{ LFUN_TABULAR_INSERT, "tabular-insert", N_("Insert Table"), Noop },
|
||||||
{ LFUN_TABULAR_FEATURE, "tabular-feature",
|
{ LFUN_TABULAR_FEATURE, "tabular-feature",
|
||||||
N_("Tabular Features"), Noop },
|
N_("Tabular Features"), Noop },
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2003-04-02 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
|
* insettabular.C: tab lfuns renamed
|
||||||
|
|
||||||
2003-04-02 Lars Gullik Bjønnes <larsbj@gullik.net>
|
2003-04-02 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||||
|
|
||||||
* insettext.C (update): move towards ParagraphList
|
* insettext.C (update): move towards ParagraphList
|
||||||
|
@ -812,11 +812,11 @@ Inset::RESULT InsetTabular::localDispatch(FuncRequest const & cmd)
|
|||||||
case LFUN_MOUSE_RELEASE:
|
case LFUN_MOUSE_RELEASE:
|
||||||
return lfunMouseRelease(cmd) ? DISPATCHED : UNDISPATCHED;
|
return lfunMouseRelease(cmd) ? DISPATCHED : UNDISPATCHED;
|
||||||
|
|
||||||
case LFUN_SHIFT_TAB:
|
case LFUN_CELL_BACKWARD:
|
||||||
case LFUN_TAB:
|
case LFUN_CELL_FORWARD:
|
||||||
hideInsetCursor(bv);
|
hideInsetCursor(bv);
|
||||||
unlockInsetInInset(bv, the_locking_inset);
|
unlockInsetInInset(bv, the_locking_inset);
|
||||||
if (cmd.action == LFUN_TAB)
|
if (cmd.action == LFUN_CELL_FORWARD)
|
||||||
moveNextCell(bv, old_locking_inset != 0);
|
moveNextCell(bv, old_locking_inset != 0);
|
||||||
else
|
else
|
||||||
movePrevCell(bv, old_locking_inset != 0);
|
movePrevCell(bv, old_locking_inset != 0);
|
||||||
|
@ -77,8 +77,8 @@ enum kb_action {
|
|||||||
LFUN_NEXT,
|
LFUN_NEXT,
|
||||||
LFUN_HOME,
|
LFUN_HOME,
|
||||||
LFUN_END,
|
LFUN_END,
|
||||||
LFUN_TAB,
|
LFUN_CELL_FORWARD,
|
||||||
LFUN_SHIFT_TAB,
|
LFUN_CELL_BACKWARD,
|
||||||
// 45
|
// 45
|
||||||
LFUN_WORDRIGHT,
|
LFUN_WORDRIGHT,
|
||||||
LFUN_WORDLEFT,
|
LFUN_WORDLEFT,
|
||||||
@ -228,7 +228,7 @@ enum kb_action {
|
|||||||
LFUN_LATEX_LOG, // Lgb 97-04-05
|
LFUN_LATEX_LOG, // Lgb 97-04-05
|
||||||
LFUN_LAYOUT_COPY, // Asger 1997-05-04
|
LFUN_LAYOUT_COPY, // Asger 1997-05-04
|
||||||
LFUN_LAYOUT_PASTE, // Asger 1997-05-04
|
LFUN_LAYOUT_PASTE, // Asger 1997-05-04
|
||||||
LFUN_TABINSERT, // Ale 970515
|
LFUN_CELL_SPLIT,
|
||||||
// 170
|
// 170
|
||||||
LFUN_CHILDOPEN, // Ale 970528
|
LFUN_CHILDOPEN, // Ale 970528
|
||||||
LFUN_TOC_INSERT, // Lgb 97-05-27
|
LFUN_TOC_INSERT, // Lgb 97-05-27
|
||||||
|
@ -503,8 +503,8 @@ void LyX::defaultKeyBindings(kb_keymap * kbmap)
|
|||||||
kbmap->bind("Up", LFUN_UP);
|
kbmap->bind("Up", LFUN_UP);
|
||||||
kbmap->bind("Down", LFUN_DOWN);
|
kbmap->bind("Down", LFUN_DOWN);
|
||||||
|
|
||||||
kbmap->bind("Tab", LFUN_TAB);
|
kbmap->bind("Tab", LFUN_CELL_FORWARD);
|
||||||
kbmap->bind("ISO_Left_Tab", LFUN_TAB); // jbl 2001-23-02
|
kbmap->bind("ISO_Left_Tab", LFUN_CELL_FORWARD); // jbl 2001-23-02
|
||||||
|
|
||||||
kbmap->bind("Home", LFUN_HOME);
|
kbmap->bind("Home", LFUN_HOME);
|
||||||
kbmap->bind("End", LFUN_END);
|
kbmap->bind("End", LFUN_END);
|
||||||
@ -548,9 +548,9 @@ void LyX::defaultKeyBindings(kb_keymap * kbmap)
|
|||||||
kbmap->bind("KP_Prior", LFUN_PRIOR);
|
kbmap->bind("KP_Prior", LFUN_PRIOR);
|
||||||
kbmap->bind("KP_Next", LFUN_NEXT);
|
kbmap->bind("KP_Next", LFUN_NEXT);
|
||||||
|
|
||||||
kbmap->bind("C-Tab", LFUN_TABINSERT); // ale970515
|
kbmap->bind("C-Tab", LFUN_CELL_SPLIT); // ale970515
|
||||||
kbmap->bind("S-Tab", LFUN_SHIFT_TAB); // jug20000522
|
kbmap->bind("S-Tab", LFUN_CELL_BACKWARD); // jug20000522
|
||||||
kbmap->bind("S-ISO_Left_Tab", LFUN_SHIFT_TAB); // jbl 2001-23-02
|
kbmap->bind("S-ISO_Left_Tab", LFUN_CELL_BACKWARD); // jbl 2001-23-02
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -383,8 +383,6 @@ public:
|
|||||||
///
|
///
|
||||||
void cursorNext();
|
void cursorNext();
|
||||||
///
|
///
|
||||||
void cursorTab();
|
|
||||||
///
|
|
||||||
void cursorTop();
|
void cursorTop();
|
||||||
///
|
///
|
||||||
void cursorBottom();
|
void cursorBottom();
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2003-04-02 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
|
* formulabase.C:
|
||||||
|
* math_gridinset.C: tab lfuns changed name
|
||||||
|
|
||||||
2003-03-28 John Levon <levon@movementarian.org>
|
2003-03-28 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
* formulabase.C: remove LFUN_GREEK - does nothing
|
* formulabase.C: remove LFUN_GREEK - does nothing
|
||||||
|
@ -450,7 +450,7 @@ dispatch_result InsetFormulaBase::localDispatch(FuncRequest const & cmd)
|
|||||||
case LFUN_MATH_DISPLAY:
|
case LFUN_MATH_DISPLAY:
|
||||||
case LFUN_MATH_NUMBER:
|
case LFUN_MATH_NUMBER:
|
||||||
case LFUN_MATH_NONUMBER:
|
case LFUN_MATH_NONUMBER:
|
||||||
case LFUN_TABINSERT:
|
case LFUN_CELL_SPLIT:
|
||||||
case LFUN_BREAKLINE:
|
case LFUN_BREAKLINE:
|
||||||
case LFUN_DELETE_LINE_FORWARD:
|
case LFUN_DELETE_LINE_FORWARD:
|
||||||
case LFUN_INSERT_LABEL:
|
case LFUN_INSERT_LABEL:
|
||||||
@ -532,11 +532,11 @@ dispatch_result InsetFormulaBase::localDispatch(FuncRequest const & cmd)
|
|||||||
result = FINISHED_RIGHT;
|
result = FINISHED_RIGHT;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LFUN_TAB:
|
case LFUN_CELL_FORWARD:
|
||||||
mathcursor->idxNext();
|
mathcursor->idxNext();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LFUN_SHIFT_TAB:
|
case LFUN_CELL_BACKWARD:
|
||||||
mathcursor->idxPrev();
|
mathcursor->idxPrev();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1048,7 +1048,7 @@ dispatch_result MathGridInset::dispatch
|
|||||||
pos = cell(idx).size();
|
pos = cell(idx).size();
|
||||||
return DISPATCHED_POP;
|
return DISPATCHED_POP;
|
||||||
|
|
||||||
case LFUN_TABINSERT:
|
case LFUN_CELL_SPLIT:
|
||||||
//bv->lockedInsetStoreUndo(Undo::EDIT);
|
//bv->lockedInsetStoreUndo(Undo::EDIT);
|
||||||
splitCell(idx, pos);
|
splitCell(idx, pos);
|
||||||
return DISPATCHED_POP;
|
return DISPATCHED_POP;
|
||||||
|
18
src/text.C
18
src/text.C
@ -1991,24 +1991,6 @@ void LyXText::cursorRightOneWord()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void LyXText::cursorTab()
|
|
||||||
{
|
|
||||||
LyXCursor tmpcursor = cursor;
|
|
||||||
while (tmpcursor.pos() < tmpcursor.par()->size()
|
|
||||||
&& !tmpcursor.par()->isNewline(tmpcursor.pos()))
|
|
||||||
tmpcursor.pos(tmpcursor.pos() + 1);
|
|
||||||
|
|
||||||
if (tmpcursor.pos() == tmpcursor.par()->size()) {
|
|
||||||
if (tmpcursor.par()->next()) {
|
|
||||||
tmpcursor.par(tmpcursor.par()->next());
|
|
||||||
tmpcursor.pos(0);
|
|
||||||
}
|
|
||||||
} else
|
|
||||||
tmpcursor.pos(tmpcursor.pos() + 1);
|
|
||||||
setCursor(tmpcursor.par(), tmpcursor.pos());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Skip initial whitespace at end of word and move cursor to *start*
|
// Skip initial whitespace at end of word and move cursor to *start*
|
||||||
// of prior word, not to end of next prior word.
|
// of prior word, not to end of next prior word.
|
||||||
void LyXText::cursorLeftOneWord()
|
void LyXText::cursorLeftOneWord()
|
||||||
|
@ -460,15 +460,6 @@ Inset::RESULT LyXText::dispatch(FuncRequest const & cmd)
|
|||||||
finishChange(bv);
|
finishChange(bv);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LFUN_SHIFT_TAB:
|
|
||||||
case LFUN_TAB:
|
|
||||||
if (!selection.mark())
|
|
||||||
bv->beforeChange(this);
|
|
||||||
update();
|
|
||||||
cursorTab();
|
|
||||||
finishChange(bv);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case LFUN_WORDRIGHT:
|
case LFUN_WORDRIGHT:
|
||||||
if (!selection.mark())
|
if (!selection.mark())
|
||||||
bv->beforeChange(this);
|
bv->beforeChange(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user