Remove 14 LFUNs; use "dialog-show <name> <data>" instead.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7191 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-06-19 16:49:45 +00:00
parent 97a22937d2
commit bb01b3884c
15 changed files with 178 additions and 199 deletions

View File

@ -1,3 +1,12 @@
2003-06-19 Angus Leeming <leeming@lyx.org>
* lib/bind/cua.bind:
* lib/bind/emacs.bind:
* lib/bind/xemacs.bind:
* lib/ui/classic.ui:
* lib/ui/stdmenus.ui:
* lib/ui/stdtoolbars.ui: replace lots of lfuns with dialog-show <name>.
2003-06-17 Lars Gullik Bjønnes <larsbj@lyx.org> 2003-06-17 Lars Gullik Bjønnes <larsbj@lyx.org>
* ui/stdmenus.ui: add submenu "Paste Recent" to edit. Also add * ui/stdmenus.ui: add submenu "Paste Recent" to edit. Also add
@ -1261,6 +1270,7 @@
* Makefile.am: do not set M4 explicitely * Makefile.am: do not set M4 explicitely
2002-04-24 Rob Lahaye <lahaye@users.sourceforge.net> 2002-04-24 Rob Lahaye <lahaye@users.sourceforge.net>
* configure.m4: add 'convert XPM to EPS', add more Grace conversions * configure.m4: add 'convert XPM to EPS', add more Grace conversions
and change tab to double space indentation in conversion section and change tab to double space indentation in conversion section

View File

@ -36,7 +36,7 @@
\bind "C-w" "buffer-close" \bind "C-w" "buffer-close"
\bind "C-s" "buffer-write" \bind "C-s" "buffer-write"
\bind "C-S-S" "buffer-write-as" \bind "C-S-S" "buffer-write-as"
\bind "C-p" "buffer-print" \bind "C-p" "dialog-show print"
\bind "C-d" "buffer-view dvi" # 'd' for dvi \bind "C-d" "buffer-view dvi" # 'd' for dvi
\bind "C-t" "buffer-view ps" \bind "C-t" "buffer-view ps"
\bind "C-S-D" "buffer-update dvi" # 'd' for dvi \bind "C-S-D" "buffer-update dvi" # 'd' for dvi
@ -53,7 +53,7 @@
\bind "C-m" "math-mode" \bind "C-m" "math-mode"
\bind "C-S-M" "math-display" \bind "C-S-M" "math-display"
\bind "C-f" "find-replace" \bind "C-f" "dialog-show findreplace"
\bind "C-g" "error-next" \bind "C-g" "error-next"
\bind "C-i" "inset-toggle" # 'i' for Inset \bind "C-i" "inset-toggle" # 'i' for Inset
@ -79,7 +79,7 @@
\bind "C-F4" "buffer-close" \bind "C-F4" "buffer-close"
\bind "F5" "screen-recenter" \bind "F5" "screen-recenter"
\bind "M-F4" "lyx-quit" \bind "M-F4" "lyx-quit"
\bind "F7" "spellchecker" \bind "F7" "dialog-show spellchecker"
\bind "S-F7" "thesaurus-entry" \bind "S-F7" "thesaurus-entry"
\bind "M-x" "command-execute" \bind "M-x" "command-execute"

View File

@ -44,8 +44,8 @@
# this is "quoted-insert" a total different meaning from "quote-insert" # this is "quoted-insert" a total different meaning from "quote-insert"
\bind "C-q" "self-insert \"" \bind "C-q" "self-insert \""
#bind "C-r" "------" #bind "C-r" "------"
\bind "C-s" "find-replace" \bind "C-s" "dialog-show findreplace"
\bind "M-~S-percent" "find-replace" \bind "M-~S-percent" "dialog-show findreplace"
\bind "C-t" "chars-transpose" \bind "C-t" "chars-transpose"
@ -78,7 +78,7 @@
# \bind "C-x s" "buffer-write" # \bind "C-x s" "buffer-write"
\bind "C-x t" "buffer-update dvi" \bind "C-x t" "buffer-update dvi"
\bind "C-x u" "undo" \bind "C-x u" "undo"
\bind "C-x v h" "vc-history" \bind "C-x v h" "dialog-show vclog"
\bind "C-x v v" "vc-check-in" \bind "C-x v v" "vc-check-in"
\bind "C-x v u" "vc-revert" \bind "C-x v u" "vc-revert"
\bind "C-x v c" "vc-undo-last" \bind "C-x v c" "vc-undo-last"

View File

@ -45,8 +45,8 @@
# this is "quoted-insert" a total different meaning from "quote-insert" # this is "quoted-insert" a total different meaning from "quote-insert"
\bind "C-q" "self-insert \"" \bind "C-q" "self-insert \""
#bind "C-r" "------" #bind "C-r" "------"
\bind "C-s" "find-replace" \bind "C-s" "dialog-show findreplace"
\bind "M-~S-percent" "find-replace" \bind "M-~S-percent" "dialog-show findreplace"
# should be "chars-transpose" (swaps two chars) # should be "chars-transpose" (swaps two chars)
#bind "C-t" "------" #bind "C-t" "------"
@ -82,7 +82,7 @@
# \bind "C-x s" "buffer-write" # \bind "C-x s" "buffer-write"
\bind "C-x t" "buffer-update dvi" \bind "C-x t" "buffer-update dvi"
\bind "C-x u" "undo" \bind "C-x u" "undo"
\bind "C-x v h" "vc-history" \bind "C-x v h" "dialog-show vclog"
\bind "C-x v v" "vc-check-in" \bind "C-x v v" "vc-check-in"
\bind "C-x v u" "vc-revert" \bind "C-x v u" "vc-revert"
\bind "C-x v c" "vc-undo-last" \bind "C-x v c" "vc-undo-last"
@ -234,7 +234,7 @@
# similar here especially for LinuxDoc (although LinuxDoc isn't only for # similar here especially for LinuxDoc (although LinuxDoc isn't only for
# making HTML). # making HTML).
## ##
\bind "C-c C-l" "latex-view-log" # show warning log \bind "C-c C-l" "dialog-show latexlog" # show warning log
\bind "C-c C-o" "error-next" \bind "C-c C-o" "error-next"
\bind "C-c C-v" "buffer-chktex" # validate \bind "C-c C-v" "buffer-chktex" # validate
@ -314,7 +314,7 @@
## Start TeX mode, some overlap with AucTeX mode ## Start TeX mode, some overlap with AucTeX mode
# #
\bind "C-c C-b" "buffer-update dvi" \bind "C-c C-b" "buffer-update dvi"
\bind "C-c C-p" "buffer-print" \bind "C-c C-p" "dialog-show print"
\bind "C-c C-r" "buffer-update dvi" # tex region \bind "C-c C-r" "buffer-update dvi" # tex region
# #
## End TeX mode ## End TeX mode

View File

@ -31,7 +31,7 @@ Menuset
Separator Separator
Submenu "Import|I" "file_import" Submenu "Import|I" "file_import"
Submenu "Export|E" "file_export" Submenu "Export|E" "file_export"
Item "Print...|P" "buffer-print" Item "Print...|P" "dialog-show print"
OptItem "Fax...|F" "buffer-export fax" OptItem "Fax...|F" "buffer-export fax"
Separator Separator
Item "Exit|x" "lyx-quit" Item "Exit|x" "lyx-quit"
@ -45,7 +45,7 @@ Menuset
OptItem "Check Out for Edit|O" "vc-check-out" OptItem "Check Out for Edit|O" "vc-check-out"
OptItem "Revert to Last Version|L" "vc-revert" OptItem "Revert to Last Version|L" "vc-revert"
OptItem "Undo Last Check In|U" "vc-undo-last" OptItem "Undo Last Check In|U" "vc-undo-last"
OptItem "Show History|H" "vc-history" OptItem "Show History|H" "dialog-show vclog"
End End
Menu "file_import" Menu "file_import"
@ -70,18 +70,18 @@ Menuset
Item "Paste|a" "paste" Item "Paste|a" "paste"
Submenu "Paste External Selection|x" "edit_paste" Submenu "Paste External Selection|x" "edit_paste"
Separator Separator
Item "Find & Replace...|F" "find-replace" Item "Find & Replace...|F" "dialog-show findreplace"
Submenu "Tabular|T" "edit_tabular" Submenu "Tabular|T" "edit_tabular"
Submenu "Math|M" "edit_math" Submenu "Math|M" "edit_math"
Separator Separator
#Item "Read Only" "buffer-toggle-read-only" #Item "Read Only" "buffer-toggle-read-only"
Item "Spellchecker...|S" "spellchecker" Item "Spellchecker...|S" "dialog-show spellchecker"
Item "Thesaurus..." "thesaurus-entry" Item "Thesaurus..." "thesaurus-entry"
Item "Check TeX|h" "buffer-chktex" Item "Check TeX|h" "buffer-chktex"
Item "Open/Close float|l" "inset-toggle" Item "Open/Close float|l" "inset-toggle"
Submenu "Change tracking|g" "edit_change" Submenu "Change tracking|g" "edit_change"
Separator Separator
Item "Preferences...|P" "dialog-preferences" Item "Preferences...|P" "dialog-show preferences"
Item "Reconfigure|R" "reconfigure" Item "Reconfigure|R" "reconfigure"
End End
@ -248,7 +248,7 @@ Menuset
Item "Split Environment|S" "math-insert \split" Item "Split Environment|S" "math-insert \split"
Separator Separator
Submenu "Font Change|f" "insert_math_font" Submenu "Font Change|f" "insert_math_font"
Item "Math Panel|l" "math-panel" Item "Math Panel|l" "dialog-show mathpanel"
End End
Menu "insert_math_font" Menu "insert_math_font"
@ -304,9 +304,9 @@ Menuset
# LAYOUT MENU # LAYOUT MENU
# #
Menu "layout" Menu "layout"
Item "Character...|C" "layout-character" Item "Character...|C" "dialog-show character"
Item "Paragraph...|P" "layout-paragraph" Item "Paragraph...|P" "layout-paragraph"
Item "Document...|D" "layout-document" Item "Document...|D" "dialog-show document"
OptItem "Tabular...|T" "layout-tabular" OptItem "Tabular...|T" "layout-tabular"
Separator Separator
Item "Emphasize Style|E" "font-emph" Item "Emphasize Style|E" "font-emph"
@ -316,7 +316,7 @@ Menuset
Separator Separator
Item "Decrease Environment Depth|v" "depth-decrement" Item "Decrease Environment Depth|v" "depth-decrement"
Item "Increase Environment Depth|i" "depth-increment" Item "Increase Environment Depth|i" "depth-increment"
Item "Preamble...|r" "layout-preamble" Item "Preamble...|r" "dialog-show preamble"
Item "Start Appendix Here|S" "appendix" Item "Start Appendix Here|S" "appendix"
End End
@ -329,10 +329,10 @@ Menuset
OptItem "Build Program|B" "build-program" OptItem "Build Program|B" "build-program"
Submenu "Update|U" "update" Submenu "Update|U" "update"
Separator Separator
Item "LaTeX Logfile|L" "latex-view-log" Item "LaTeX Logfile|L" "dialog-show latexlog"
Item "Table of Contents|T" "toc-view" Item "Table of Contents|T" "toc-view"
Item "Child Processes|C" "show-forks" Item "Child Processes|C" "dialog-show forks"
Item "TeX Information|X" "help-Texinfo" Item "TeX Information|X" "dialog-show texinfo"
End End
Menu "update" Menu "update"
@ -384,7 +384,7 @@ Menuset
Item "Table of Contents|a" "help-open TOC" Item "Table of Contents|a" "help-open TOC"
Item "LaTeX Configuration|L" "help-open LaTeXConfig" Item "LaTeX Configuration|L" "help-open LaTeXConfig"
Separator Separator
Item "About LyX|X" "help-aboutlyx" Item "About LyX|X" "dialog-show aboutlyx"
End End
End End
@ -429,7 +429,7 @@ Toolbar "Standard" "on,top"
Layouts Layouts
Item "Open document" "file-open" Item "Open document" "file-open"
Item "Save document" "buffer-write" Item "Save document" "buffer-write"
Item "Print document" "buffer-print" Item "Print document" "dialog-show print"
Separator Separator
Item "Cut selection" "cut" Item "Cut selection" "cut"
Item "Copy selection" "copy" Item "Copy selection" "copy"
@ -441,7 +441,7 @@ Toolbar "Standard" "on,top"
Separator Separator
Item "Insert TeX" "ert-insert" Item "Insert TeX" "ert-insert"
Item "Insert math" "math-mode" Item "Insert math" "math-mode"
#Item "math-panel" #Item "dialog-show mathpanel"
Separator Separator
Item "Insert footnote" "footnote-insert" Item "Insert footnote" "footnote-insert"
Item "Insert margin note" "marginalnote-insert" Item "Insert margin note" "marginalnote-insert"

View File

@ -31,7 +31,7 @@ Menuset
Separator Separator
Submenu "Import|I" "file_import" Submenu "Import|I" "file_import"
Submenu "Export|E" "file_export" Submenu "Export|E" "file_export"
Item "Print...|P" "buffer-print" Item "Print...|P" "dialog-show print"
OptItem "Fax...|F" "buffer-export fax" OptItem "Fax...|F" "buffer-export fax"
Separator Separator
Item "Exit|x" "lyx-quit" Item "Exit|x" "lyx-quit"
@ -47,7 +47,7 @@ Menuset
OptItem "Check Out for Edit|O" "vc-check-out" OptItem "Check Out for Edit|O" "vc-check-out"
OptItem "Revert to Last Version|L" "vc-revert" OptItem "Revert to Last Version|L" "vc-revert"
OptItem "Undo Last Check In|U" "vc-undo-last" OptItem "Undo Last Check In|U" "vc-undo-last"
OptItem "Show History|H" "vc-history" OptItem "Show History|H" "dialog-show vclog"
End End
Menu "file_import" Menu "file_import"
@ -71,9 +71,9 @@ Menuset
Item "Copy" "copy" Item "Copy" "copy"
Item "Paste" "paste" Item "Paste" "paste"
Submenu "Paste Recent" "pasterecent" Submenu "Paste Recent" "pasterecent"
Item "Find & Replace...|F" "find-replace" Item "Find & Replace...|F" "dialog-show findreplace"
Separator Separator
Item "Text Style...|S" "layout-character" Item "Text Style...|S" "dialog-show character"
Item "Paragraph Settings...|P" "layout-paragraph" Item "Paragraph Settings...|P" "layout-paragraph"
Separator Separator
# Mathed b0rkage means these don't work properly # Mathed b0rkage means these don't work properly
@ -270,7 +270,7 @@ Menuset
Item "Cases Environment|C" "math-insert \cases" Item "Cases Environment|C" "math-insert \cases"
Separator Separator
Submenu "Font Change|f" "insert_math_font" Submenu "Font Change|f" "insert_math_font"
Item "Math Panel|l" "math-panel" Item "Math Panel|l" "dialog-show mathpanel"
End End
Menu "insert_math_font" Menu "insert_math_font"
@ -324,12 +324,12 @@ Menuset
Menu "document" Menu "document"
Submenu "Change tracking|C" "edit_change" Submenu "Change tracking|C" "edit_change"
OptItem "Build Program|B" "build-program" OptItem "Build Program|B" "build-program"
Item "LaTeX Log File...|L" "latex-view-log" Item "LaTeX Log File...|L" "dialog-show latexlog"
Item "Table of Contents...|T" "toc-view" Item "Table of Contents...|T" "toc-view"
Item "LaTeX Preamble...|P" "layout-preamble" Item "LaTeX Preamble...|P" "dialog-show preamble"
Item "Start Appendix Here|A" "appendix" Item "Start Appendix Here|A" "appendix"
Separator Separator
Item "Settings...|S" "layout-document" Item "Settings...|S" "dialog-show document"
End End
Menu "edit_change" Menu "edit_change"
@ -365,17 +365,17 @@ Menuset
# #
Menu "tools" Menu "tools"
Item "Spellchecker...|S" "spellchecker" Item "Spellchecker...|S" "dialog-show spellchecker"
OptItem "Thesaurus...|T" "thesaurus-entry" OptItem "Thesaurus...|T" "thesaurus-entry"
OptItem "Check TeX|h" "buffer-chktex" OptItem "Check TeX|h" "buffer-chktex"
Item "View Child Processes...|C" "show-forks" Item "View Child Processes...|C" "dialog-show forks"
Item "TeX Information...|I" "help-Texinfo" Item "TeX Information...|I" "dialog-show texinfo"
Separator Separator
# A LOT of applications have Tools->Prefs. Remember this # A LOT of applications have Tools->Prefs. Remember this
# should be rarely used - Edit menu is not a good place to # should be rarely used - Edit menu is not a good place to
# have it. # have it.
Item "Reconfigure|R" "reconfigure" Item "Reconfigure|R" "reconfigure"
Item "Preferences...|P" "dialog-preferences" Item "Preferences...|P" "dialog-show preferences"
End End
# #
@ -391,7 +391,7 @@ Menuset
Item "Table of Contents|a" "help-open TOC" Item "Table of Contents|a" "help-open TOC"
Item "LaTeX Configuration|L" "help-open LaTeXConfig" Item "LaTeX Configuration|L" "help-open LaTeXConfig"
Separator Separator
Item "About LyX...|X" "help-aboutlyx" Item "About LyX...|X" "dialog-show aboutlyx"
End End
End End

View File

@ -30,14 +30,14 @@ Toolbar "Standard"
Item "New document" "buffer-new" Item "New document" "buffer-new"
Item "Open document" "file-open" Item "Open document" "file-open"
Item "Save document" "buffer-write" Item "Save document" "buffer-write"
Item "Print document" "buffer-print" Item "Print document" "dialog-show print"
Separator Separator
Item "Undo" "undo" Item "Undo" "undo"
Item "Redo" "redo" Item "Redo" "redo"
Item "Cut" "cut" Item "Cut" "cut"
Item "Copy" "copy" Item "Copy" "copy"
Item "Paste" "paste" Item "Paste" "paste"
Item "Find and replace" "find-replace" Item "Find and replace" "dialog-show findreplace"
Separator Separator
Item "Toggle emphasis style" "font-emph" Item "Toggle emphasis style" "font-emph"
Item "Toggle noun style" "font-noun" Item "Toggle noun style" "font-noun"
@ -70,10 +70,10 @@ Toolbar "Extra"
Item "Insert TeX" "ert-insert" Item "Insert TeX" "ert-insert"
Item "Include file" "dialog-show-new-inset include" Item "Include file" "dialog-show-new-inset include"
Separator Separator
Item "Text Style" "layout-character" Item "Text Style" "dialog-show character"
Item "Paragraph Settings" "layout-paragraph" Item "Paragraph Settings" "layout-paragraph"
Item "Table of contents" "toc-view" Item "Table of contents" "toc-view"
Item "Check spelling" "spellchecker" Item "Check spelling" "dialog-show spellchecker"
Item "Thesaurus" "thesaurus-entry" Item "Thesaurus" "thesaurus-entry"
End End
@ -103,7 +103,7 @@ Toolbar "Table"
End End
Toolbar "Math" Toolbar "Math"
Item "Show math panel" "math-panel" Item "Show math panel" "dialog-show mathpanel"
Item "Set display mode" "math-display" Item "Set display mode" "math-display"
Item "Subscript" "math-subscript" Item "Subscript" "math-subscript"
Item "Superscript" "math-superscript" Item "Superscript" "math-superscript"

View File

@ -1,3 +1,10 @@
2003-06-19 Angus Leeming <leeming@lyx.org>
* lfuns.h:
* LyXAction.C (init):
* lyxfunc.C (getStatus, dispatch): remove 14 LFUNs, replacing them
with LFUN_DIALOG_SHOW <name> <data>.
2003-06-19 Jean-Marc Lasgouttes <lasgouttes@lyx.org> 2003-06-19 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* CutAndPaste.C (availableSelections): small compilation fix for * CutAndPaste.C (availableSelections): small compilation fix for

View File

@ -114,7 +114,6 @@ void LyXAction::init()
{ LFUN_IMPORT, "buffer-import", NoBuffer }, { LFUN_IMPORT, "buffer-import", NoBuffer },
{ LFUN_MENUNEW, "buffer-new", NoBuffer }, { LFUN_MENUNEW, "buffer-new", NoBuffer },
{ LFUN_MENUNEWTMPLT,"buffer-new-template", NoBuffer }, { LFUN_MENUNEWTMPLT,"buffer-new-template", NoBuffer },
{ LFUN_MENUPRINT, "buffer-print", ReadOnly },
{ LFUN_MENURELOAD, "buffer-reload", ReadOnly }, { LFUN_MENURELOAD, "buffer-reload", ReadOnly },
{ LFUN_SWITCHBUFFER, "buffer-switch", ReadOnly }, { LFUN_SWITCHBUFFER, "buffer-switch", ReadOnly },
{ LFUN_READ_ONLY_TOGGLE, "buffer-toggle-read-only", ReadOnly }, { LFUN_READ_ONLY_TOGGLE, "buffer-toggle-read-only", ReadOnly },
@ -151,7 +150,6 @@ void LyXAction::init()
{ LFUN_FILE_INSERT_ASCII_PARA, "file-insert-ascii-para", Noop }, { LFUN_FILE_INSERT_ASCII_PARA, "file-insert-ascii-para", Noop },
{ LFUN_FILE_NEW, "file-new", NoBuffer }, { LFUN_FILE_NEW, "file-new", NoBuffer },
{ LFUN_FILE_OPEN, "file-open", NoBuffer }, { LFUN_FILE_OPEN, "file-open", NoBuffer },
{ LFUN_MENUSEARCH, "find-replace", ReadOnly },
{ LFUN_INSET_FLOAT, "float-insert", Noop }, { LFUN_INSET_FLOAT, "float-insert", Noop },
{ LFUN_INSET_WIDE_FLOAT, "float-wide-insert", Noop }, { LFUN_INSET_WIDE_FLOAT, "float-wide-insert", Noop },
{ LFUN_INSET_WRAP, "wrap-insert", Noop }, { LFUN_INSET_WRAP, "wrap-insert", Noop },
@ -186,12 +184,8 @@ void LyXAction::init()
{ LFUN_INSET_OPTARG, "optional-insert", Noop }, { LFUN_INSET_OPTARG, "optional-insert", Noop },
{ LFUN_INSERT_BIBITEM, "bibitem-insert", Noop }, { LFUN_INSERT_BIBITEM, "bibitem-insert", Noop },
{ LFUN_LANGUAGE, "language", Noop }, { LFUN_LANGUAGE, "language", Noop },
{ LFUN_LATEX_LOG, "latex-view-log", ReadOnly },
{ LFUN_LAYOUT, "layout", Noop }, { LFUN_LAYOUT, "layout", Noop },
{ LFUN_LAYOUT_CHARACTER, "layout-character", ReadOnly },
{ LFUN_LAYOUT_DOCUMENT, "layout-document", ReadOnly },
{ LFUN_LAYOUT_PARAGRAPH, "layout-paragraph", ReadOnly }, { LFUN_LAYOUT_PARAGRAPH, "layout-paragraph", ReadOnly },
{ LFUN_LAYOUT_PREAMBLE, "layout-preamble", ReadOnly },
{ LFUN_LAYOUT_TABULAR, "layout-tabular", Noop }, { LFUN_LAYOUT_TABULAR, "layout-tabular", Noop },
{ LFUN_HOME, "line-begin", ReadOnly }, { LFUN_HOME, "line-begin", ReadOnly },
{ LFUN_HOMESEL, "line-begin-select", ReadOnly }, { LFUN_HOMESEL, "line-begin-select", ReadOnly },
@ -221,7 +215,6 @@ void LyXAction::init()
{ LFUN_MATH_NONUMBER, "math-nonumber", Noop }, { LFUN_MATH_NONUMBER, "math-nonumber", Noop },
{ LFUN_MATH_NUMBER, "math-number", Noop }, { LFUN_MATH_NUMBER, "math-number", Noop },
{ LFUN_MATH_EXTERN, "math-extern", Noop }, { LFUN_MATH_EXTERN, "math-extern", Noop },
{ LFUN_MATH_PANEL, "math-panel", Noop },
{ LFUN_MATH_SIZE, "math-size", Noop }, { LFUN_MATH_SIZE, "math-size", Noop },
{ LFUN_MENU_OPEN_BY_NAME, "menu-open", NoBuffer }, { LFUN_MENU_OPEN_BY_NAME, "menu-open", NoBuffer },
{ LFUN_MENU_SEPARATOR, "menu-separator-insert", Noop }, { LFUN_MENU_SEPARATOR, "menu-separator-insert", Noop },
@ -237,7 +230,6 @@ void LyXAction::init()
{ LFUN_UP_PARAGRAPH, "paragraph-up", ReadOnly }, { LFUN_UP_PARAGRAPH, "paragraph-up", ReadOnly },
{ LFUN_UP_PARAGRAPHSEL, "paragraph-up-select", ReadOnly }, { LFUN_UP_PARAGRAPHSEL, "paragraph-up-select", ReadOnly },
{ LFUN_PASTE, "paste", Noop }, { LFUN_PASTE, "paste", Noop },
{ LFUN_DIALOG_PREFERENCES, "dialog-preferences", NoBuffer },
{ LFUN_SAVEPREFERENCES, "preferences-save", NoBuffer }, { LFUN_SAVEPREFERENCES, "preferences-save", NoBuffer },
{ LFUN_PASTESELECTION, "primary-selection-paste", Noop }, { LFUN_PASTESELECTION, "primary-selection-paste", Noop },
{ LFUN_QUOTE, "quote-insert", Noop }, { LFUN_QUOTE, "quote-insert", Noop },
@ -263,7 +255,6 @@ void LyXAction::init()
{ LFUN_NOTIFY, "server-notify", ReadOnly }, { LFUN_NOTIFY, "server-notify", ReadOnly },
{ 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_CELL_BACKWARD, "cell-backward", Noop }, { LFUN_CELL_BACKWARD, "cell-backward", Noop },
{ LFUN_CELL_FORWARD, "cell-forward", Noop }, { LFUN_CELL_FORWARD, "cell-forward", Noop },
{ LFUN_CELL_SPLIT, "cell-split", Noop }, { LFUN_CELL_SPLIT, "cell-split", Noop },
@ -282,7 +273,6 @@ void LyXAction::init()
{ LFUN_URL, "url-insert", Noop }, { LFUN_URL, "url-insert", Noop },
{ LFUN_VC_CHECKIN, "vc-check-in", ReadOnly }, { LFUN_VC_CHECKIN, "vc-check-in", ReadOnly },
{ LFUN_VC_CHECKOUT, "vc-check-out", ReadOnly }, { LFUN_VC_CHECKOUT, "vc-check-out", ReadOnly },
{ LFUN_VC_HISTORY, "vc-history", ReadOnly },
{ LFUN_VC_REGISTER, "vc-register", ReadOnly }, { LFUN_VC_REGISTER, "vc-register", ReadOnly },
{ LFUN_VC_REVERT, "vc-revert", ReadOnly }, { LFUN_VC_REVERT, "vc-revert", ReadOnly },
{ LFUN_VC_UNDO, "vc-undo-last", ReadOnly }, { LFUN_VC_UNDO, "vc-undo-last", ReadOnly },
@ -302,9 +292,6 @@ void LyXAction::init()
{ LFUN_TRANSPOSE_CHARS, "chars-transpose", Noop }, { LFUN_TRANSPOSE_CHARS, "chars-transpose", Noop },
{ LFUN_FLOAT_LIST, "float-list", Noop }, { LFUN_FLOAT_LIST, "float-list", Noop },
{ LFUN_ESCAPE, "escape", ReadOnly }, { LFUN_ESCAPE, "escape", ReadOnly },
{ LFUN_HELP_ABOUTLYX, "help-aboutlyx", NoBuffer },
{ LFUN_HELP_TEXINFO, "help-Texinfo", NoBuffer },
{ LFUN_FORKS_SHOW, "show-forks", NoBuffer },
{ LFUN_FORKS_KILL, "kill-forks", NoBuffer }, { LFUN_FORKS_KILL, "kill-forks", NoBuffer },
{ LFUN_TOOLTIPS_TOGGLE, "toggle-tooltips", NoBuffer }, { LFUN_TOOLTIPS_TOGGLE, "toggle-tooltips", NoBuffer },
{ LFUN_TRACK_CHANGES, "track-changes", Noop }, { LFUN_TRACK_CHANGES, "track-changes", Noop },
@ -313,7 +300,7 @@ void LyXAction::init()
{ LFUN_REJECT_CHANGE, "reject-change", Noop }, { LFUN_REJECT_CHANGE, "reject-change", Noop },
{ LFUN_ACCEPT_ALL_CHANGES, "accept-all-changes", Noop }, { LFUN_ACCEPT_ALL_CHANGES, "accept-all-changes", Noop },
{ LFUN_REJECT_ALL_CHANGES, "reject-all-changes", Noop }, { LFUN_REJECT_ALL_CHANGES, "reject-all-changes", Noop },
{ LFUN_DIALOG_SHOW, "dialog-show", Noop }, { LFUN_DIALOG_SHOW, "dialog-show", NoBuffer },
{ LFUN_DIALOG_SHOW_NEW_INSET, "dialog-show-new-inset", Noop }, { LFUN_DIALOG_SHOW_NEW_INSET, "dialog-show-new-inset", Noop },
{ LFUN_DIALOG_SHOW_NEXT_INSET, "dialog-show-next-inset", Noop }, { LFUN_DIALOG_SHOW_NEXT_INSET, "dialog-show-next-inset", Noop },
{ LFUN_DIALOG_UPDATE, "dialog-update", Noop }, { LFUN_DIALOG_UPDATE, "dialog-update", Noop },

View File

@ -1,3 +1,8 @@
2003-06-19 Angus Leeming <leeming@lyx.org>
* lyx_gui.C (getStatus): changes due to replacement of lots of lfuns
with LFUN_DIALOG_SHOW <name>.
2003-06-17 Angus Leeming <leeming@lyx.org> 2003-06-17 Angus Leeming <leeming@lyx.org>
* Dialogs.C: rename math panel identifier as "mathpanel". * Dialogs.C: rename math panel identifier as "mathpanel".

View File

@ -201,9 +201,11 @@ FuncStatus getStatus(FuncRequest const & ev)
{ {
FuncStatus flag; FuncStatus flag;
switch (ev.action) { switch (ev.action) {
case LFUN_LAYOUT_PREAMBLE: case LFUN_DIALOG_SHOW:
if (ev.argument == "preamble" || ev.argument == "forks")
flag.unknown(true);
break;
case LFUN_TOOLTIPS_TOGGLE: case LFUN_TOOLTIPS_TOGGLE:
case LFUN_FORKS_SHOW:
flag.unknown(true); flag.unknown(true);
break; break;
default: default:

View File

@ -34,309 +34,293 @@ enum kb_action {
LFUN_MENUWRITE, LFUN_MENUWRITE,
// 5 // 5
LFUN_WRITEAS, LFUN_WRITEAS,
LFUN_MENUPRINT,
LFUN_MENUSENDTO,
LFUN_BUILDPROG, LFUN_BUILDPROG,
LFUN_TOCVIEW, LFUN_TOCVIEW,
// 10
LFUN_PREVIEW, LFUN_PREVIEW,
LFUN_CLOSEBUFFER, LFUN_CLOSEBUFFER,
// 10
LFUN_QUIT, LFUN_QUIT,
LFUN_AUTOSAVE, LFUN_AUTOSAVE,
LFUN_UNDO, LFUN_UNDO,
// 15
LFUN_REDO, LFUN_REDO,
LFUN_MENUSEARCH,
LFUN_PASTE, LFUN_PASTE,
// 15
LFUN_PASTESELECTION, LFUN_PASTESELECTION,
LFUN_CUT, LFUN_CUT,
// 20
LFUN_COPY, LFUN_COPY,
LFUN_GOTOERROR, LFUN_GOTOERROR,
LFUN_GOTONOTE, LFUN_GOTONOTE,
// 20
LFUN_INSET_TOGGLE, LFUN_INSET_TOGGLE,
LFUN_HYPHENATION, LFUN_HYPHENATION,
// 25
LFUN_LIGATURE_BREAK, LFUN_LIGATURE_BREAK,
LFUN_HFILL, LFUN_HFILL,
LFUN_FREEFONT_APPLY, LFUN_FREEFONT_APPLY,
// 25
LFUN_FREEFONT_UPDATE, LFUN_FREEFONT_UPDATE,
LFUN_EMPH, LFUN_EMPH,
// 30
LFUN_BOLD, LFUN_BOLD,
LFUN_ROMAN, LFUN_ROMAN,
LFUN_NOUN, LFUN_NOUN,
// 30
LFUN_ITAL, LFUN_ITAL,
LFUN_FRAK, LFUN_FRAK,
// 35
LFUN_RIGHT, LFUN_RIGHT,
LFUN_LEFT, LFUN_LEFT,
LFUN_UP, LFUN_UP,
// 35
LFUN_DOWN, LFUN_DOWN,
LFUN_PRIOR, LFUN_PRIOR,
// 40
LFUN_NEXT, LFUN_NEXT,
LFUN_HOME, LFUN_HOME,
LFUN_END, LFUN_END,
// 40
LFUN_CELL_FORWARD, LFUN_CELL_FORWARD,
LFUN_CELL_BACKWARD, LFUN_CELL_BACKWARD,
// 45
LFUN_WORDRIGHT, LFUN_WORDRIGHT,
LFUN_WORDLEFT, LFUN_WORDLEFT,
LFUN_BEGINNINGBUF, LFUN_BEGINNINGBUF,
// 45
LFUN_ENDBUF, LFUN_ENDBUF,
LFUN_RIGHTSEL, LFUN_RIGHTSEL,
// 50
LFUN_LEFTSEL, LFUN_LEFTSEL,
LFUN_UPSEL, LFUN_UPSEL,
LFUN_DOWNSEL, LFUN_DOWNSEL,
// 50
LFUN_PRIORSEL, LFUN_PRIORSEL,
LFUN_NEXTSEL, LFUN_NEXTSEL,
// 55
LFUN_HOMESEL, LFUN_HOMESEL,
LFUN_ENDSEL, LFUN_ENDSEL,
LFUN_WORDRIGHTSEL, LFUN_WORDRIGHTSEL,
// 55
LFUN_WORDLEFTSEL, LFUN_WORDLEFTSEL,
LFUN_WORDSEL, LFUN_WORDSEL,
// 60
LFUN_BEGINNINGBUFSEL, LFUN_BEGINNINGBUFSEL,
LFUN_ENDBUFSEL, LFUN_ENDBUFSEL,
LFUN_SPACE_INSERT, // JSpitzm 20030520 LFUN_SPACE_INSERT, // JSpitzm 20030520
// 60
LFUN_SETMARK, LFUN_SETMARK,
LFUN_DELETE, LFUN_DELETE,
// 65
LFUN_BACKSPACE, LFUN_BACKSPACE,
LFUN_BREAKLINE, LFUN_BREAKLINE,
LFUN_BREAKPARAGRAPH, LFUN_BREAKPARAGRAPH,
// 65
LFUN_BREAKPARAGRAPHKEEPLAYOUT, LFUN_BREAKPARAGRAPHKEEPLAYOUT,
LFUN_QUOTE, LFUN_QUOTE,
// 70
LFUN_CIRCUMFLEX, LFUN_CIRCUMFLEX,
LFUN_SUBSCRIPT, LFUN_SUBSCRIPT,
LFUN_SUPERSCRIPT, LFUN_SUPERSCRIPT,
// 70
LFUN_GRAVE, LFUN_GRAVE,
LFUN_ACUTE, LFUN_ACUTE,
// 75
LFUN_TILDE, LFUN_TILDE,
LFUN_CEDILLA, LFUN_CEDILLA,
LFUN_MACRON, LFUN_MACRON,
// 75
LFUN_UNDERBAR, LFUN_UNDERBAR,
LFUN_UNDERDOT, LFUN_UNDERDOT,
// 80
LFUN_CIRCLE, LFUN_CIRCLE,
LFUN_TIE, LFUN_TIE,
LFUN_BREVE, LFUN_BREVE,
// 80
LFUN_CARON, LFUN_CARON,
LFUN_SPECIAL_CARON, LFUN_SPECIAL_CARON,
// 85
LFUN_HUNG_UMLAUT, LFUN_HUNG_UMLAUT,
LFUN_UMLAUT, LFUN_UMLAUT,
LFUN_DOT, LFUN_DOT,
// 85
LFUN_OGONEK, LFUN_OGONEK,
LFUN_SELFINSERT, LFUN_SELFINSERT,
// 90
LFUN_GETBUFNAME, LFUN_GETBUFNAME,
LFUN_GETXY, LFUN_GETXY,
LFUN_SETXY, LFUN_SETXY,
// 90
LFUN_CHARATCURSOR, LFUN_CHARATCURSOR,
LFUN_LINEATCURSOR, LFUN_LINEATCURSOR,
// 95
LFUN_GETLAYOUT, LFUN_GETLAYOUT,
LFUN_GETFONT, LFUN_GETFONT,
LFUN_GETNAME, LFUN_GETNAME,
// 95
LFUN_NOTIFY, LFUN_NOTIFY,
LFUN_GOTOFILEROW, LFUN_GOTOFILEROW,
// 100
LFUN_INSERT_NOTE, LFUN_INSERT_NOTE,
LFUN_ENVIRONMENT_INSERT, LFUN_ENVIRONMENT_INSERT,
LFUN_KMAP_OFF, LFUN_KMAP_OFF,
// 100
LFUN_KMAP_PRIM, LFUN_KMAP_PRIM,
LFUN_KMAP_SEC, LFUN_KMAP_SEC,
// 105
LFUN_KMAP_TOGGLE, LFUN_KMAP_TOGGLE,
LFUN_INSERT_MATH, LFUN_INSERT_MATH,
LFUN_INSERT_MATRIX, LFUN_INSERT_MATRIX,
// 105
LFUN_MATH_LIMITS, LFUN_MATH_LIMITS,
LFUN_MATH_DELIM, // Alejandro 180696 LFUN_MATH_DELIM, // Alejandro 180696
// 110
LFUN_MATH_DISPLAY, // Alejandro 180696 LFUN_MATH_DISPLAY, // Alejandro 180696
LFUN_MATH_MODE, // Alejandro 040696 LFUN_MATH_MODE, // Alejandro 040696
LFUN_MATH_NUMBER, // Alejandro 040696 LFUN_MATH_NUMBER, // Alejandro 040696
// 110
LFUN_MATH_NONUMBER, // Alejandro 180696 LFUN_MATH_NONUMBER, // Alejandro 180696
LFUN_MATH_SIZE, // Alejandro 150896 LFUN_MATH_SIZE, // Alejandro 150896
// 115
LFUN_MATH_MACRO, // ale970510 LFUN_MATH_MACRO, // ale970510
LFUN_MATH_EXTERN, // Andre' 20010424 LFUN_MATH_EXTERN, // Andre' 20010424
LFUN_MATH_PANEL, // Andre' 20010522
LFUN_MATH_MUTATE, // Andre' 20010523 LFUN_MATH_MUTATE, // Andre' 20010523
// 115
LFUN_MATH_IMPORT_SELECTION, // Andre' 20010704 LFUN_MATH_IMPORT_SELECTION, // Andre' 20010704
// 120
LFUN_MATH_SPACE, // Andre' 20010725 LFUN_MATH_SPACE, // Andre' 20010725
LFUN_DELETE_WORD_FORWARD, LFUN_DELETE_WORD_FORWARD,
LFUN_DELETE_WORD_BACKWARD, LFUN_DELETE_WORD_BACKWARD,
LFUN_DELETE_LINE_FORWARD, LFUN_DELETE_LINE_FORWARD,
// 120
LFUN_MARK_OFF, LFUN_MARK_OFF,
// 125
LFUN_MARK_ON, LFUN_MARK_ON,
LFUN_LAYOUT, LFUN_LAYOUT,
LFUN_LAYOUT_CHARACTER,
LFUN_LAYOUT_PARAGRAPH, LFUN_LAYOUT_PARAGRAPH,
LFUN_LAYOUT_DOCUMENT,
// 130
LFUN_LAYOUT_PREAMBLE,
LFUN_DROP_LAYOUTS_CHOICE, LFUN_DROP_LAYOUTS_CHOICE,
// 125
LFUN_CODE, LFUN_CODE,
LFUN_SANS, LFUN_SANS,
LFUN_DEFAULT, LFUN_DEFAULT,
// 135
LFUN_UNDERLINE, LFUN_UNDERLINE,
LFUN_FONT_SIZE, LFUN_FONT_SIZE,
// 130
LFUN_FONT_STATE, LFUN_FONT_STATE,
LFUN_UPCASE_WORD, LFUN_UPCASE_WORD,
LFUN_LOWCASE_WORD, LFUN_LOWCASE_WORD,
// 140
LFUN_CAPITALIZE_WORD, LFUN_CAPITALIZE_WORD,
LFUN_INSERT_LABEL, LFUN_INSERT_LABEL,
// 135
LFUN_DEPTH_MIN, LFUN_DEPTH_MIN,
LFUN_DEPTH_PLUS, LFUN_DEPTH_PLUS,
LFUN_MENU_OPEN_BY_NAME, LFUN_MENU_OPEN_BY_NAME,
// 145
LFUN_SPELLCHECK,
LFUN_CANCEL, LFUN_CANCEL,
LFUN_META_FAKE, LFUN_META_FAKE,
// 140
LFUN_EXEC_COMMAND, LFUN_EXEC_COMMAND,
LFUN_FILE_INSERT, LFUN_FILE_INSERT,
// 150
LFUN_FILE_INSERT_ASCII, // CFO-G 1997-11-19 LFUN_FILE_INSERT_ASCII, // CFO-G 1997-11-19
LFUN_FILE_INSERT_ASCII_PARA, // Levon 2001-02-14 LFUN_FILE_INSERT_ASCII_PARA, // Levon 2001-02-14
LFUN_FILE_NEW, LFUN_FILE_NEW,
// 145
LFUN_FILE_OPEN, LFUN_FILE_OPEN,
LFUN_UP_PARAGRAPH, // Asger 1996-10-01 LFUN_UP_PARAGRAPH, // Asger 1996-10-01
// 155
LFUN_UP_PARAGRAPHSEL, // Asger 1996-10-01 LFUN_UP_PARAGRAPHSEL, // Asger 1996-10-01
LFUN_DOWN_PARAGRAPH, // Asger 1996-10-01 LFUN_DOWN_PARAGRAPH, // Asger 1996-10-01
LFUN_DOWN_PARAGRAPHSEL, // Asger 1996-10-01 LFUN_DOWN_PARAGRAPHSEL, // Asger 1996-10-01
// 150
LFUN_BREAKPARAGRAPH_SKIP, LFUN_BREAKPARAGRAPH_SKIP,
LFUN_BACKSPACE_SKIP, LFUN_BACKSPACE_SKIP,
// 160
LFUN_DELETE_SKIP, LFUN_DELETE_SKIP,
LFUN_MENUNEWTMPLT, // Asger 1997-02-02 LFUN_MENUNEWTMPLT, // Asger 1997-02-02
LFUN_MENURELOAD, // Asger 1997-02-02 LFUN_MENURELOAD, // Asger 1997-02-02
// 155
LFUN_RECONFIGURE, // Asger 1997-02-14 LFUN_RECONFIGURE, // Asger 1997-02-14
LFUN_INDEX_PRINT, // Lgb 97-02-27 LFUN_INDEX_PRINT, // Lgb 97-02-27
// 165
LFUN_LATEX_LOG, // Lgb 97-04-05
LFUN_CELL_SPLIT, LFUN_CELL_SPLIT,
LFUN_CHILDOPEN, // Ale 970528 LFUN_CHILDOPEN, // Ale 970528
LFUN_TOC_INSERT, // Lgb 97-05-27 LFUN_TOC_INSERT, // Lgb 97-05-27
// 160
LFUN_FLOAT_LIST, // Lgb 20010503 LFUN_FLOAT_LIST, // Lgb 20010503
// 170
LFUN_READ_ONLY_TOGGLE, // Lgb 97-05-27 LFUN_READ_ONLY_TOGGLE, // Lgb 97-05-27
LFUN_VC_REGISTER, // Lgb 97-07-01 LFUN_VC_REGISTER, // Lgb 97-07-01
LFUN_VC_CHECKIN, // Lgb 97-07-01 LFUN_VC_CHECKIN, // Lgb 97-07-01
LFUN_VC_CHECKOUT, // Lgb 97-07-01 LFUN_VC_CHECKOUT, // Lgb 97-07-01
// 165
LFUN_VC_REVERT, // Lgb 97-07-01 LFUN_VC_REVERT, // Lgb 97-07-01
// 175
LFUN_VC_UNDO, // Lgb 97-07-01 LFUN_VC_UNDO, // Lgb 97-07-01
LFUN_VC_HISTORY, // Lgb 97-07-01
LFUN_EXPORT, // Lgb 97-07-29 LFUN_EXPORT, // Lgb 97-07-29
LFUN_REF_GOTO, // Ale 970806 LFUN_REF_GOTO, // Ale 970806
LFUN_LDOTS, // Asger 970929 LFUN_LDOTS, // Asger 970929
// 180 // 170
LFUN_END_OF_SENTENCE, // Asger 970929 LFUN_END_OF_SENTENCE, // Asger 970929
LFUN_TOGGLECURSORFOLLOW, // ARRae 971202 LFUN_TOGGLECURSORFOLLOW, // ARRae 971202
LFUN_RUNCHKTEX, // Asger 971030 LFUN_RUNCHKTEX, // Asger 971030
LFUN_HTMLURL, // CFO-G 971121 LFUN_HTMLURL, // CFO-G 971121
LFUN_URL, // CFO-G 971121 LFUN_URL, // CFO-G 971121
// 185 // 175
LFUN_WORDFINDFORWARD, // Etienne 980216 LFUN_WORDFINDFORWARD, // Etienne 980216
LFUN_WORDFINDBACKWARD, // Etienne 980220 LFUN_WORDFINDBACKWARD, // Etienne 980220
LFUN_APPENDIX, // ettrich 980505 LFUN_APPENDIX, // ettrich 980505
LFUN_IMPORT, // Asger 980724 LFUN_IMPORT, // Asger 980724
LFUN_MENU_SEPARATOR, // Asger 990220 LFUN_MENU_SEPARATOR, // Asger 990220
// 190 // 180
LFUN_SEQUENCE, // Andre' 991111 LFUN_SEQUENCE, // Andre' 991111
LFUN_DIALOG_PREFERENCES, // ARRae 20000726
LFUN_SAVEPREFERENCES, // Lgb 991127 LFUN_SAVEPREFERENCES, // Lgb 991127
LFUN_HELP_OPEN, // Jug 990627 LFUN_HELP_OPEN, // Jug 990627
LFUN_DATE_INSERT, // jdblair 20000131 LFUN_DATE_INSERT, // jdblair 20000131
// 195
LFUN_LANGUAGE, // Dekel 20000203 LFUN_LANGUAGE, // Dekel 20000203
// 185
LFUN_INSET_ERT, // Jug 20000218 LFUN_INSET_ERT, // Jug 20000218
LFUN_INSET_FOOTNOTE, // Jug 20000307 LFUN_INSET_FOOTNOTE, // Jug 20000307
LFUN_PARAGRAPH_SPACING, // Lgb 20000411 LFUN_PARAGRAPH_SPACING, // Lgb 20000411
LFUN_TABULAR_INSERT, // Jug 20000412 LFUN_TABULAR_INSERT, // Jug 20000412
// 200
LFUN_LOFVIEW, // Dekel 20000519 LFUN_LOFVIEW, // Dekel 20000519
// 190
LFUN_LOTVIEW, // Dekel 20000519 LFUN_LOTVIEW, // Dekel 20000519
LFUN_LOAVIEW, // Dekel 20000519 LFUN_LOAVIEW, // Dekel 20000519
LFUN_SET_COLOR, // SLior 20000611 LFUN_SET_COLOR, // SLior 20000611
LFUN_INSET_MARGINAL, // Lgb 20000626 LFUN_INSET_MARGINAL, // Lgb 20000626
// 205
LFUN_INSET_MINIPAGE, // Lgb 20000627 LFUN_INSET_MINIPAGE, // Lgb 20000627
// 195
LFUN_INSET_FLOAT, // Lgb 20000627 LFUN_INSET_FLOAT, // Lgb 20000627
LFUN_INSET_WIDE_FLOAT, // Lgb 20010531 LFUN_INSET_WIDE_FLOAT, // Lgb 20010531
LFUN_INSET_CAPTION, // Lgb 20000718 LFUN_INSET_CAPTION, // Lgb 20000718
LFUN_SWITCHBUFFER, LFUN_SWITCHBUFFER,
// 210
LFUN_TABULAR_FEATURE, // Jug 20000728 LFUN_TABULAR_FEATURE, // Jug 20000728
// 200
LFUN_LAYOUT_TABULAR, // Jug 20000731 LFUN_LAYOUT_TABULAR, // Jug 20000731
LFUN_SCROLL_INSET, // Jug 20000801 LFUN_SCROLL_INSET, // Jug 20000801
LFUN_UPDATE, // Dekel 20000805 LFUN_UPDATE, // Dekel 20000805
LFUN_INDEX_INSERT, // Angus 20000803 LFUN_INDEX_INSERT, // Angus 20000803
// 215
LFUN_SCREEN_FONT_UPDATE, // ARRae 20000813 LFUN_SCREEN_FONT_UPDATE, // ARRae 20000813
// 205
LFUN_GOTO_PARAGRAPH, // Dekel 20000826 LFUN_GOTO_PARAGRAPH, // Dekel 20000826
LFUN_REFERENCE_GOTO, // Dekel 20010114 LFUN_REFERENCE_GOTO, // Dekel 20010114
LFUN_BOOKMARK_SAVE, // Dekel 20010127 LFUN_BOOKMARK_SAVE, // Dekel 20010127
LFUN_BOOKMARK_GOTO, // Dekel 20010127 LFUN_BOOKMARK_GOTO, // Dekel 20010127
// 220
LFUN_SELECT_FILE_SYNC, // Levon 20010214 LFUN_SELECT_FILE_SYNC, // Levon 20010214
// 210
LFUN_MESSAGE, // Lgb 20010408 LFUN_MESSAGE, // Lgb 20010408
LFUN_TRANSPOSE_CHARS, // Lgb 20010425 LFUN_TRANSPOSE_CHARS, // Lgb 20010425
LFUN_ESCAPE, // Lgb 20010517 LFUN_ESCAPE, // Lgb 20010517
LFUN_HELP_ABOUTLYX, // Edwin 20010712
// 225
LFUN_THESAURUS_ENTRY, // Levon 20010720 LFUN_THESAURUS_ENTRY, // Levon 20010720
LFUN_HELP_TEXINFO, // Herbert 20011001
LFUN_FORKS_SHOW, // Angus 16 Feb 2002
LFUN_FORKS_KILL, // Angus 16 Feb 2002 LFUN_FORKS_KILL, // Angus 16 Feb 2002
// 215
LFUN_TOOLTIPS_TOGGLE, // Angus 8 Mar 2002 LFUN_TOOLTIPS_TOGGLE, // Angus 8 Mar 2002
// 230
LFUN_INSET_OPTARG, // Martin 12 Aug 2002 LFUN_INSET_OPTARG, // Martin 12 Aug 2002
LFUN_MOUSE_PRESS, // André 9 Aug 2002 LFUN_MOUSE_PRESS, // André 9 Aug 2002
LFUN_MOUSE_MOTION, // André 9 Aug 2002 LFUN_MOUSE_MOTION, // André 9 Aug 2002
LFUN_MOUSE_RELEASE, // André 9 Aug 2002 LFUN_MOUSE_RELEASE, // André 9 Aug 2002
// 220
LFUN_MOUSE_DOUBLE, // André 9 Aug 2002 LFUN_MOUSE_DOUBLE, // André 9 Aug 2002
// 235
LFUN_MOUSE_TRIPLE, // André 9 Aug 2002 LFUN_MOUSE_TRIPLE, // André 9 Aug 2002
LFUN_INSET_EDIT, // André 16 Aug 2002 LFUN_INSET_EDIT, // André 16 Aug 2002
LFUN_INSET_WRAP, // Dekel 7 Apr 2002 LFUN_INSET_WRAP, // Dekel 7 Apr 2002
LFUN_TRACK_CHANGES, // Levon 20021001 (cool date !) LFUN_TRACK_CHANGES, // Levon 20021001 (cool date !)
// 225
LFUN_MERGE_CHANGES, // Levon 20021016 LFUN_MERGE_CHANGES, // Levon 20021016
// 240
LFUN_ACCEPT_CHANGE, // Levon 20021016 LFUN_ACCEPT_CHANGE, // Levon 20021016
LFUN_REJECT_CHANGE, // Levon 20021016 LFUN_REJECT_CHANGE, // Levon 20021016
LFUN_ACCEPT_ALL_CHANGES, // Levon 20021016 LFUN_ACCEPT_ALL_CHANGES, // Levon 20021016
LFUN_REJECT_ALL_CHANGES, // Levon 20021016 LFUN_REJECT_ALL_CHANGES, // Levon 20021016
// 230
LFUN_INSERT_BIBITEM, // André 14 Feb 2003 LFUN_INSERT_BIBITEM, // André 14 Feb 2003
// 245
LFUN_DIALOG_SHOW, LFUN_DIALOG_SHOW,
LFUN_DIALOG_SHOW_NEW_INSET, LFUN_DIALOG_SHOW_NEW_INSET,
LFUN_DIALOG_SHOW_NEXT_INSET, LFUN_DIALOG_SHOW_NEXT_INSET,
LFUN_DIALOG_UPDATE, LFUN_DIALOG_UPDATE,
// 235
LFUN_DIALOG_HIDE, LFUN_DIALOG_HIDE,
// 250
LFUN_DIALOG_DISCONNECT_INSET, LFUN_DIALOG_DISCONNECT_INSET,
LFUN_INSET_APPLY, LFUN_INSET_APPLY,
LFUN_INSET_INSERT, LFUN_INSET_INSERT,
LFUN_INSET_MODIFY, LFUN_INSET_MODIFY,
// 240
LFUN_INSET_DIALOG_UPDATE, LFUN_INSET_DIALOG_UPDATE,
// 255
LFUN_INSET_SETTINGS, LFUN_INSET_SETTINGS,
LFUN_PARAGRAPH_APPLY, LFUN_PARAGRAPH_APPLY,
LFUN_PARAGRAPH_UPDATE, LFUN_PARAGRAPH_UPDATE,
LFUN_EXTERNAL_EDIT, LFUN_EXTERNAL_EDIT,
// 245
LFUN_LASTACTION // end of the table LFUN_LASTACTION // end of the table
}; };

View File

@ -318,10 +318,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & ev) const
// encode this in the function itself. // encode this in the function itself.
bool disable = false; bool disable = false;
switch (ev.action) { switch (ev.action) {
case LFUN_MENUPRINT:
disable = !Exporter::IsExportable(buf, "dvi")
|| lyxrc.print_command == "none";
break;
case LFUN_EXPORT: case LFUN_EXPORT:
disable = ev.argument != "custom" disable = ev.argument != "custom"
&& !Exporter::IsExportable(buf, ev.argument); && !Exporter::IsExportable(buf, ev.argument);
@ -353,10 +349,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & ev) const
disable = !Exporter::IsExportable(buf, "program"); disable = !Exporter::IsExportable(buf, "program");
break; break;
case LFUN_LAYOUT_CHARACTER:
disable = tli && tli->lyxCode() == Inset::ERT_CODE;
break;
case LFUN_LAYOUT_TABULAR: case LFUN_LAYOUT_TABULAR:
disable = !tli disable = !tli
|| (tli->lyxCode() != Inset::TABULAR_CODE || (tli->lyxCode() != Inset::TABULAR_CODE
@ -463,7 +455,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & ev) const
break; break;
case LFUN_VC_REVERT: case LFUN_VC_REVERT:
case LFUN_VC_UNDO: case LFUN_VC_UNDO:
case LFUN_VC_HISTORY:
disable = !buf->lyxvc.inUse(); disable = !buf->lyxvc.inUse();
break; break;
case LFUN_MENURELOAD: case LFUN_MENURELOAD:
@ -527,10 +518,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & ev) const
break; break;
} }
case LFUN_LATEX_LOG:
disable = !IsFileReadable(buf->getLogName().second);
break;
case LFUN_MATH_MUTATE: case LFUN_MATH_MUTATE:
if (mathcursor) if (mathcursor)
//flag.setOnOff(mathcursor->formula()->hullType() == ev.argument); //flag.setOnOff(mathcursor->formula()->hullType() == ev.argument);
@ -549,6 +536,31 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & ev) const
disable = !mathcursor; disable = !mathcursor;
break; break;
case LFUN_DIALOG_SHOW: {
string const name = ev.getArg(0);
if (!buf) {
disable = !(name == "aboutlyx" ||
name == "file" ||
name == "forks" ||
name == "preferences" ||
name == "texinfo");
break;
}
if (name == "print") {
disable = !Exporter::IsExportable(buf, "dvi") ||
lyxrc.print_command == "none";
} else if (name == "character") {
UpdatableInset * tli = view()->theLockingInset();
disable = tli && tli->lyxCode() == Inset::ERT_CODE;
} else if (name == "vclog") {
disable = !buf->lyxvc.inUse();
} else if (name == "latexlog") {
disable = !IsFileReadable(buf->getLogName().second);
}
break;
}
default: default:
break; break;
} }
@ -1095,10 +1107,6 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
owner->buffer()->runChktex(); owner->buffer()->runChktex();
break; break;
case LFUN_MENUPRINT:
owner->getDialogs().showPrint();
break;
case LFUN_EXPORT: case LFUN_EXPORT:
if (argument == "custom") if (argument == "custom")
owner->getDialogs().showSendto(); owner->getDialogs().showSendto();
@ -1134,10 +1142,6 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
view()->redo(); view()->redo();
break; break;
case LFUN_MENUSEARCH:
owner->getDialogs().showSearch();
break;
case LFUN_DEPTH_MIN: case LFUN_DEPTH_MIN:
changeDepth(view(), TEXT(false), DEC_DEPTH, false); changeDepth(view(), TEXT(false), DEC_DEPTH, false);
owner->view_state_changed(); owner->view_state_changed();
@ -1176,14 +1180,6 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
//#warning Find another implementation here (or another lyxfunc)! //#warning Find another implementation here (or another lyxfunc)!
#endif #endif
#endif #endif
case LFUN_HELP_ABOUTLYX:
owner->getDialogs().show("about");
break;
case LFUN_HELP_TEXINFO:
owner->getDialogs().showTexinfo();
break;
case LFUN_HELP_OPEN: case LFUN_HELP_OPEN:
{ {
string const arg = argument; string const arg = argument;
@ -1239,12 +1235,6 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
} }
break; break;
case LFUN_VC_HISTORY:
{
owner->getDialogs().show("vclog");
break;
}
// --- buffers ---------------------------------------- // --- buffers ----------------------------------------
case LFUN_SWITCHBUFFER: case LFUN_SWITCHBUFFER:
@ -1264,21 +1254,6 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
open(argument); open(argument);
break; break;
case LFUN_LATEX_LOG:
owner->getDialogs().show("log");
break;
case LFUN_LAYOUT_DOCUMENT:
owner->getDialogs().showDocument();
break;
case LFUN_LAYOUT_CHARACTER: {
string data = freefont2string();
if (!data.empty())
owner->getDialogs().show("character", data);
break;
}
case LFUN_LAYOUT_TABULAR: case LFUN_LAYOUT_TABULAR:
if (view()->theLockingInset()) { if (view()->theLockingInset()) {
if (view()->theLockingInset()->lyxCode()==Inset::TABULAR_CODE) { if (view()->theLockingInset()->lyxCode()==Inset::TABULAR_CODE) {
@ -1294,10 +1269,6 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
} }
break; break;
case LFUN_LAYOUT_PREAMBLE:
owner->getDialogs().showPreamble();
break;
case LFUN_DROP_LAYOUTS_CHOICE: case LFUN_DROP_LAYOUTS_CHOICE:
owner->getToolbar().openLayoutList(); owner->getToolbar().openLayoutList();
break; break;
@ -1306,10 +1277,6 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
owner->getMenubar().openByName(argument); owner->getMenubar().openByName(argument);
break; // RVDK_PATCH_5 break; // RVDK_PATCH_5
case LFUN_SPELLCHECK:
owner->getDialogs().showSpellchecker();
break;
// --- lyxserver commands ---------------------------- // --- lyxserver commands ----------------------------
@ -1404,13 +1371,32 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
dispatch(FuncRequest(view(), LFUN_SELFINSERT, "^")); dispatch(FuncRequest(view(), LFUN_SELFINSERT, "^"));
break; break;
case LFUN_MATH_PANEL: case LFUN_DIALOG_SHOW: {
owner->getDialogs().show("mathpanel"); string const name = ev.getArg(0);
break; string data = trim(ev.argument.substr(name.size()));
case LFUN_DIALOG_SHOW: if (name == "character") {
owner->getDialogs().show(argument); data = freefont2string();
if (!data.empty())
owner->getDialogs().show("character", data);
} else if (name == "document")
owner->getDialogs().showDocument();
else if (name == "findreplace")
owner->getDialogs().showSearch();
else if (name == "forks")
owner->getDialogs().showForks();
else if (name == "preamble")
owner->getDialogs().showPreamble();
else if (name == "preferences")
owner->getDialogs().showPreferences();
else if (name == "print")
owner->getDialogs().showPrint();
else if (name == "spellchecker")
owner->getDialogs().showSpellchecker();
else
owner->getDialogs().show(name, data);
break; break;
}
case LFUN_DIALOG_SHOW_NEW_INSET: { case LFUN_DIALOG_SHOW_NEW_INSET: {
string const & name = argument; string const & name = argument;
@ -1504,10 +1490,6 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
} }
break; break;
case LFUN_DIALOG_PREFERENCES:
owner->getDialogs().showPreferences();
break;
case LFUN_SAVEPREFERENCES: case LFUN_SAVEPREFERENCES:
{ {
Path p(user_lyxdir); Path p(user_lyxdir);
@ -1574,10 +1556,6 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
owner->message(argument); owner->message(argument);
break; break;
case LFUN_FORKS_SHOW:
owner->getDialogs().showForks();
break;
case LFUN_FORKS_KILL: case LFUN_FORKS_KILL:
{ {
if (!isStrInt(argument)) if (!isStrInt(argument))

View File

@ -1,3 +1,8 @@
2003-06-19 Angus Leeming <leeming@lyx.org>
* formulabase.C (localDiapatch): replace LFUN_MATH_PANEL with
LFUN_DIALOG_SHOW "mathpanel".
2003-06-17 Angus Leeming <leeming@lyx.org> 2003-06-17 Angus Leeming <leeming@lyx.org>
* formulabase.C (lfunMouseRelease): s/showMathPanel/show("mathpanel")/ * formulabase.C (lfunMouseRelease): s/showMathPanel/show("mathpanel")/

View File

@ -669,10 +669,6 @@ dispatch_result InsetFormulaBase::localDispatch(FuncRequest const & cmd)
} }
break; break;
case LFUN_MATH_PANEL:
result = UNDISPATCHED;
break;
case LFUN_ESCAPE: case LFUN_ESCAPE:
if (mathcursor->selection()) if (mathcursor->selection())
mathcursor->selClear(); mathcursor->selClear();
@ -684,6 +680,11 @@ dispatch_result InsetFormulaBase::localDispatch(FuncRequest const & cmd)
mathcursor->insetToggle(); mathcursor->insetToggle();
break; break;
case LFUN_DIALOG_SHOW:
if (argument == "mathpanel")
result = UNDISPATCHED;
break;
case LFUN_DIALOG_SHOW_NEW_INSET: { case LFUN_DIALOG_SHOW_NEW_INSET: {
string const & name = argument; string const & name = argument;
string data; string data;