]> git.lyx.org Git - features.git/commit
Button for showing PDF if compilation error
authorScott Kostyshak <skostysh@lyx.org>
Tue, 31 Mar 2015 22:54:49 +0000 (18:54 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 4 Apr 2015 17:13:19 +0000 (13:13 -0400)
commit09700d5b717baec2c34a9451ca13b09a1d47e330
tree200c6aee6dc794e411193fee8955527b0701a864
parent8c1a484cd26e1ac7a94c2b098949769c61ef9766
Button for showing PDF if compilation error

Building on cd8be655, we still allow viewing a produced PDF even if
there were compilation errors. However, now the user must click the
"Show Output Anyway" button in the LaTeX Errors dialog. The reason
is that before, there was a chance that the user would not realize
there was an error (because the PDF would be shown over the error
dialog). The approach in this commit makes it more clear that there
is an error.

A new LFUN is introduced, LFUN_BUFFER_VIEW_CACHE. It is useful not
just for the implementation of the "Show Output Anyway" button, but
also to show the last compiled version of a document, which can save
time if a document takes a long time to compile (e.g. heavy use of
knitr).
src/Buffer.cpp
src/FuncCode.h
src/LyXAction.cpp
src/frontends/qt4/GuiErrorList.cpp
src/frontends/qt4/GuiErrorList.h
src/frontends/qt4/ui/ErrorListUi.ui