mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 22:06:15 +00:00
Fixed disabled Table-Menu entries, renamed table-insert to dialog-tabular-insert
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@988 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d4cf7ae0fa
commit
096db9161e
@ -1,5 +1,10 @@
|
|||||||
2000-08-25 Juergen Vigna <jug@sad.it>
|
2000-08-25 Juergen Vigna <jug@sad.it>
|
||||||
|
|
||||||
|
* src/LyXAction.C (init): renamed LFUN_TABLE to
|
||||||
|
LFUN_DIALOG_TABULAR_INSERT and fixed all it's occurences.
|
||||||
|
|
||||||
|
* src/lyxfunc.C (getStatus): fix for disabled Edit->Table entries.
|
||||||
|
|
||||||
* src/lyxscreen.h: add force_clear variable and fuction to force
|
* src/lyxscreen.h: add force_clear variable and fuction to force
|
||||||
a clear area when redrawing in LyXText.
|
a clear area when redrawing in LyXText.
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
\bind "M-i g" "figure-insert"
|
\bind "M-i g" "figure-insert"
|
||||||
\bind "M-i b" "table-insert"
|
\bind "M-i b" "dialog-tabular-insert"
|
||||||
\bind "M-i c" "buffer-child-insert"
|
\bind "M-i c" "buffer-child-insert"
|
||||||
\bind "M-i a l" "file-insert-ascii line"
|
\bind "M-i a l" "file-insert-ascii line"
|
||||||
\bind "M-i a p" "file-insert-ascii paragraph"
|
\bind "M-i a p" "file-insert-ascii paragraph"
|
||||||
|
@ -90,7 +90,7 @@ Menuset
|
|||||||
Item "Go to Error|E" "error-next"
|
Item "Go to Error|E" "error-next"
|
||||||
Item "Go to Note|N" "note-next"
|
Item "Go to Note|N" "note-next"
|
||||||
Submenu "Floats & Insets|I" "edit_floats"
|
Submenu "Floats & Insets|I" "edit_floats"
|
||||||
Submenu "Table" "edit_table"
|
Submenu "Tabular" "edit_tabular"
|
||||||
Item "Spellchecker...|S" "spellchecker"
|
Item "Spellchecker...|S" "spellchecker"
|
||||||
Item "Check TeX|h" "buffer-chktex"
|
Item "Check TeX|h" "buffer-chktex"
|
||||||
Item "Table of Contents|b" "toc-view"
|
Item "Table of Contents|b" "toc-view"
|
||||||
@ -105,7 +105,7 @@ Menuset
|
|||||||
Menu "edit_floats"
|
Menu "edit_floats"
|
||||||
End
|
End
|
||||||
|
|
||||||
Menu "edit_table"
|
Menu "edit_tabular"
|
||||||
Item "Multicolumn|M" "tabular-feature multicolumn"
|
Item "Multicolumn|M" "tabular-feature multicolumn"
|
||||||
Separator
|
Separator
|
||||||
Item "Line Top|T" "tabular-feature toggle-line-top"
|
Item "Line Top|T" "tabular-feature toggle-line-top"
|
||||||
@ -164,7 +164,7 @@ Menuset
|
|||||||
|
|
||||||
Menu "insert"
|
Menu "insert"
|
||||||
Item "Figure...|F" "figure-insert"
|
Item "Figure...|F" "figure-insert"
|
||||||
Item "Tabular...|T" "table-insert"
|
Item "Tabular...|T" "dialog-tabular-insert"
|
||||||
Separator
|
Separator
|
||||||
Item "Include File...|I" "buffer-child-insert"
|
Item "Include File...|I" "buffer-child-insert"
|
||||||
Submenu "Import ascii file|a" "insert_ascii"
|
Submenu "Import ascii file|a" "insert_ascii"
|
||||||
@ -310,6 +310,6 @@ Toolbar
|
|||||||
Icon "math-mode"
|
Icon "math-mode"
|
||||||
Separator
|
Separator
|
||||||
Icon "figure-insert"
|
Icon "figure-insert"
|
||||||
Icon "table-insert"
|
Icon "dialog-tabular-insert"
|
||||||
End
|
End
|
||||||
|
|
||||||
|
@ -382,7 +382,8 @@ void LyXAction::init()
|
|||||||
{ LFUN_SHIFT_TAB, "tab-backward", "", Noop },
|
{ LFUN_SHIFT_TAB, "tab-backward", "", Noop },
|
||||||
{ LFUN_TAB, "tab-forward", "", Noop },
|
{ LFUN_TAB, "tab-forward", "", Noop },
|
||||||
{ LFUN_TABINSERT, "tab-insert", "", Noop },
|
{ LFUN_TABINSERT, "tab-insert", "", Noop },
|
||||||
{ LFUN_TABLE, "table-insert", N_("Insert Table"), Noop },
|
{ LFUN_DIALOG_TABULAR_INSERT, "dialog-tabular-insert",
|
||||||
|
N_("Open Insert Tabular Dialog"), Noop },
|
||||||
{ LFUN_TABULAR_FEATURE, "tabular-feature",
|
{ LFUN_TABULAR_FEATURE, "tabular-feature",
|
||||||
N_("Tabular Features"), Noop },
|
N_("Tabular Features"), Noop },
|
||||||
{ LFUN_INSET_TABULAR, "tabular-insert",
|
{ LFUN_INSET_TABULAR, "tabular-insert",
|
||||||
|
@ -75,11 +75,7 @@ void ToolbarDefaults::init()
|
|||||||
add(SEPARATOR);
|
add(SEPARATOR);
|
||||||
|
|
||||||
add(LFUN_FIGURE);
|
add(LFUN_FIGURE);
|
||||||
#ifndef NEW_TABULAR
|
add(LFUN_DIALOG_TABULAR_INSERT);
|
||||||
add(LFUN_TABLE);
|
|
||||||
#else
|
|
||||||
add(LFUN_INSET_TABULAR);
|
|
||||||
#endif
|
|
||||||
//add(LFUN_MELT);
|
//add(LFUN_MELT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,6 @@ enum kb_action {
|
|||||||
LFUN_MATH_MACROARG, // ale970510
|
LFUN_MATH_MACROARG, // ale970510
|
||||||
LFUN_MATH_PANEL,
|
LFUN_MATH_PANEL,
|
||||||
LFUN_FIGURE,
|
LFUN_FIGURE,
|
||||||
LFUN_TABLE, // schedule for deletion
|
|
||||||
LFUN_MELT,
|
LFUN_MELT,
|
||||||
LFUN_DELETE_WORD_FORWARD,
|
LFUN_DELETE_WORD_FORWARD,
|
||||||
LFUN_DELETE_WORD_BACKWARD,
|
LFUN_DELETE_WORD_BACKWARD,
|
||||||
@ -276,6 +275,7 @@ enum kb_action {
|
|||||||
LFUN_INDEX_INSERT, // Angus 20000803
|
LFUN_INDEX_INSERT, // Angus 20000803
|
||||||
LFUN_REF_CREATE, // Angus 20000807
|
LFUN_REF_CREATE, // Angus 20000807
|
||||||
LFUN_SCREEN_FONT_UPDATE, // ARRae 20000813
|
LFUN_SCREEN_FONT_UPDATE, // ARRae 20000813
|
||||||
|
LFUN_DIALOG_TABULAR_INSERT, // Jug 20000825 (old table-insert)
|
||||||
LFUN_LASTACTION /* this marks the end of the table */
|
LFUN_LASTACTION /* this marks the end of the table */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1668,6 +1668,7 @@ LyXFunc::func_status InsetTabular::getStatus(string what) const
|
|||||||
case LyXTabular::DELETE_COLUMN:
|
case LyXTabular::DELETE_COLUMN:
|
||||||
case LyXTabular::SET_ALL_LINES:
|
case LyXTabular::SET_ALL_LINES:
|
||||||
case LyXTabular::UNSET_ALL_LINES:
|
case LyXTabular::UNSET_ALL_LINES:
|
||||||
|
status |= LyXFunc::OK;
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
case LyXTabular::MULTICOLUMN:
|
case LyXTabular::MULTICOLUMN:
|
||||||
|
@ -572,6 +572,7 @@ LyXFunc::func_status LyXFunc::getStatus(int ac) const
|
|||||||
getStatus(argument);
|
getStatus(argument);
|
||||||
}
|
}
|
||||||
flag |= ret;
|
flag |= ret;
|
||||||
|
disable = false;
|
||||||
} else {
|
} else {
|
||||||
static InsetTabular inset(owner->buffer(), 1, 1);
|
static InsetTabular inset(owner->buffer(), 1, 1);
|
||||||
func_status ret;
|
func_status ret;
|
||||||
@ -1048,7 +1049,7 @@ string LyXFunc::Dispatch(int ac,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case LFUN_TABLE:
|
case LFUN_DIALOG_TABULAR_INSERT:
|
||||||
#ifndef NEW_TABULAR
|
#ifndef NEW_TABULAR
|
||||||
Table();
|
Table();
|
||||||
#else
|
#else
|
||||||
|
@ -1193,7 +1193,7 @@ void Menus::ShowEditMenu(FL_OBJECT * ob, long)
|
|||||||
case 26: men->currentView()->allFloats(0, 1); break;
|
case 26: men->currentView()->allFloats(0, 1); break;
|
||||||
case 27: tmpfunc->Dispatch(LFUN_REMOVEERRORS); break;
|
case 27: tmpfunc->Dispatch(LFUN_REMOVEERRORS); break;
|
||||||
#endif
|
#endif
|
||||||
case 31: tmpfunc->Dispatch(LFUN_TABLE); break;
|
case 31: tmpfunc->Dispatch(LFUN_DIALOG_TABULAR_INSERT); break;
|
||||||
// this is really temporary. We need new function in keybind.C
|
// this is really temporary. We need new function in keybind.C
|
||||||
// These should set the minibuffer, too.
|
// These should set the minibuffer, too.
|
||||||
case 32: case 33: case 34:
|
case 32: case 33: case 34:
|
||||||
@ -1776,7 +1776,7 @@ void Menus::ShowInsertMenu(FL_OBJECT * ob, long)
|
|||||||
men->currentView()->hideCursor();
|
men->currentView()->hideCursor();
|
||||||
switch (choice) {
|
switch (choice) {
|
||||||
case 1: tmpfunc->Dispatch(LFUN_FIGURE); break;
|
case 1: tmpfunc->Dispatch(LFUN_FIGURE); break;
|
||||||
case 2: tmpfunc->Dispatch(LFUN_TABLE); break;
|
case 2: tmpfunc->Dispatch(LFUN_DIALOG_TABULAR_INSERT); break;
|
||||||
case 3: tmpfunc->Dispatch(LFUN_CHILDINSERT); break;
|
case 3: tmpfunc->Dispatch(LFUN_CHILDINSERT); break;
|
||||||
case 4: // Insert ASCII file submenu
|
case 4: // Insert ASCII file submenu
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user