+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>
* paragraph.h: make ParagraphList and ParagraphList::iterator
{ LFUN_SETXY, "server-set-xy", "", ReadOnly },
{ LFUN_SET_COLOR, "set-color", "", ReadOnly|NoBuffer },
{ LFUN_SPELLCHECK, "spellchecker", "", Noop },
- { LFUN_SHIFT_TAB, "tab-backward", "", Noop },
- { LFUN_TAB, "tab-forward", "", Noop },
- { LFUN_TABINSERT, "tab-insert", "", Noop },
+ { LFUN_CELL_BACKWARD, "cell-backward", "", Noop },
+ { LFUN_CELL_FORWARD, "cell-forward", "", Noop },
+ { LFUN_CELL_SPLIT, "cell-split", "", Noop },
{ LFUN_TABULAR_INSERT, "tabular-insert", N_("Insert Table"), Noop },
{ LFUN_TABULAR_FEATURE, "tabular-feature",
N_("Tabular Features"), Noop },
+2003-04-02 John Levon <levon@movementarian.org>
+
+ * insettabular.C: tab lfuns renamed
+
2003-04-02 Lars Gullik Bjønnes <larsbj@gullik.net>
* insettext.C (update): move towards ParagraphList
case LFUN_MOUSE_RELEASE:
return lfunMouseRelease(cmd) ? DISPATCHED : UNDISPATCHED;
- case LFUN_SHIFT_TAB:
- case LFUN_TAB:
+ case LFUN_CELL_BACKWARD:
+ case LFUN_CELL_FORWARD:
hideInsetCursor(bv);
unlockInsetInInset(bv, the_locking_inset);
- if (cmd.action == LFUN_TAB)
+ if (cmd.action == LFUN_CELL_FORWARD)
moveNextCell(bv, old_locking_inset != 0);
else
movePrevCell(bv, old_locking_inset != 0);
LFUN_NEXT,
LFUN_HOME,
LFUN_END,
- LFUN_TAB,
- LFUN_SHIFT_TAB,
+ LFUN_CELL_FORWARD,
+ LFUN_CELL_BACKWARD,
// 45
LFUN_WORDRIGHT,
LFUN_WORDLEFT,
LFUN_LATEX_LOG, // Lgb 97-04-05
LFUN_LAYOUT_COPY, // Asger 1997-05-04
LFUN_LAYOUT_PASTE, // Asger 1997-05-04
- LFUN_TABINSERT, // Ale 970515
+ LFUN_CELL_SPLIT,
// 170
LFUN_CHILDOPEN, // Ale 970528
LFUN_TOC_INSERT, // Lgb 97-05-27
kbmap->bind("Up", LFUN_UP);
kbmap->bind("Down", LFUN_DOWN);
- kbmap->bind("Tab", LFUN_TAB);
- kbmap->bind("ISO_Left_Tab", LFUN_TAB); // jbl 2001-23-02
+ kbmap->bind("Tab", LFUN_CELL_FORWARD);
+ kbmap->bind("ISO_Left_Tab", LFUN_CELL_FORWARD); // jbl 2001-23-02
kbmap->bind("Home", LFUN_HOME);
kbmap->bind("End", LFUN_END);
kbmap->bind("KP_Prior", LFUN_PRIOR);
kbmap->bind("KP_Next", LFUN_NEXT);
- kbmap->bind("C-Tab", LFUN_TABINSERT); // ale970515
- kbmap->bind("S-Tab", LFUN_SHIFT_TAB); // jug20000522
- kbmap->bind("S-ISO_Left_Tab", LFUN_SHIFT_TAB); // jbl 2001-23-02
+ kbmap->bind("C-Tab", LFUN_CELL_SPLIT); // ale970515
+ kbmap->bind("S-Tab", LFUN_CELL_BACKWARD); // jug20000522
+ kbmap->bind("S-ISO_Left_Tab", LFUN_CELL_BACKWARD); // jbl 2001-23-02
}
///
void cursorNext();
///
- void cursorTab();
- ///
void cursorTop();
///
void cursorBottom();
+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>
* formulabase.C: remove LFUN_GREEK - does nothing
case LFUN_MATH_DISPLAY:
case LFUN_MATH_NUMBER:
case LFUN_MATH_NONUMBER:
- case LFUN_TABINSERT:
+ case LFUN_CELL_SPLIT:
case LFUN_BREAKLINE:
case LFUN_DELETE_LINE_FORWARD:
case LFUN_INSERT_LABEL:
result = FINISHED_RIGHT;
break;
- case LFUN_TAB:
+ case LFUN_CELL_FORWARD:
mathcursor->idxNext();
break;
- case LFUN_SHIFT_TAB:
+ case LFUN_CELL_BACKWARD:
mathcursor->idxPrev();
break;
pos = cell(idx).size();
return DISPATCHED_POP;
- case LFUN_TABINSERT:
+ case LFUN_CELL_SPLIT:
//bv->lockedInsetStoreUndo(Undo::EDIT);
splitCell(idx, pos);
return DISPATCHED_POP;
}
-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*
// of prior word, not to end of next prior word.
void LyXText::cursorLeftOneWord()
finishChange(bv);
break;
- case LFUN_SHIFT_TAB:
- case LFUN_TAB:
- if (!selection.mark())
- bv->beforeChange(this);
- update();
- cursorTab();
- finishChange(bv);
- break;
-
case LFUN_WORDRIGHT:
if (!selection.mark())
bv->beforeChange(this);