]> git.lyx.org Git - features.git/log
features.git
9 years agoFix instant preview for documents not specifying a specific output format.
Enrico Forestieri [Mon, 27 Apr 2015 10:27:42 +0000 (12:27 +0200)]
Fix instant preview for documents not specifying a specific output format.

Fixes the regression introduced at 0bb378ba.

9 years agoFollow-up on Uwe's whitespace amendments.
Juergen Spitzmueller [Mon, 27 Apr 2015 08:04:15 +0000 (10:04 +0200)]
Follow-up on Uwe's whitespace amendments.

9 years agopdfform.module: correct the description
Uwe Stöhr [Mon, 27 Apr 2015 01:00:27 +0000 (03:00 +0200)]
pdfform.module: correct the description

9 years agopdfform.module: new module to create PDF forms
Uwe Stöhr [Mon, 27 Apr 2015 00:56:25 +0000 (02:56 +0200)]
pdfform.module: new module to create PDF forms

- PDF-form.lyx: example file describing the module

No special package is required since the PDF form features are provided by hyperref.

9 years agoPDF-comment.lyx: some fixes
Uwe Stöhr [Mon, 27 Apr 2015 00:33:38 +0000 (02:33 +0200)]
PDF-comment.lyx: some fixes

9 years agoFix bug #7850 (Preview of inline math misaligned)
Enrico Forestieri [Sun, 26 Apr 2015 17:08:16 +0000 (19:08 +0200)]
Fix bug #7850 (Preview of inline math misaligned)

9 years agopdfcomment.module: reintroduce whitespace mixture because of bug #9518
Uwe Stöhr [Sun, 26 Apr 2015 16:25:20 +0000 (18:25 +0200)]
pdfcomment.module: reintroduce whitespace mixture because of bug #9518

9 years agoUse namespace.
Juergen Spitzmueller [Sun, 26 Apr 2015 14:49:16 +0000 (16:49 +0200)]
Use namespace.

9 years agoAdd Jari-Matti Mäkelä to the credits
Juergen Spitzmueller [Sun, 26 Apr 2015 11:39:37 +0000 (13:39 +0200)]
Add Jari-Matti Mäkelä to the credits

9 years agopdfcomment.module: promote our example file in the description
Uwe Stöhr [Sun, 26 Apr 2015 11:41:44 +0000 (13:41 +0200)]
pdfcomment.module: promote our example file in the description

- PDF-comment.lyx: port recent typo fixes to master

9 years agofi.po: another update by Jari-Matti Mäkelä
Juergen Spitzmueller [Sun, 26 Apr 2015 11:25:38 +0000 (13:25 +0200)]
fi.po: another update by Jari-Matti Mäkelä

9 years agopdfcomment.module: uniform whitespace
Uwe Stöhr [Sun, 26 Apr 2015 02:23:10 +0000 (04:23 +0200)]
pdfcomment.module: uniform whitespace

the file used spaces and tabs, now it uses only tabs for the whitespace

9 years agoUpdate previews when going to a bookmark (#6173)
Scott Kostyshak [Wed, 22 Apr 2015 01:11:17 +0000 (21:11 -0400)]
Update previews when going to a bookmark (#6173)

Note that I move the definition of cur up because we need to check if
it changed before the return. I also removed the const because
notifyCursorLeavesOrEnters() requires that.

This commit probably fixes other issues for any inset that defines
notifyCursorLeaves().

This fixes only part of #6173.

9 years agoWhitespace
Scott Kostyshak [Fri, 24 Apr 2015 04:10:00 +0000 (00:10 -0400)]
Whitespace

9 years agoFeynmanDiagrams.lyx: rename German version
Uwe Stöhr [Sat, 25 Apr 2015 15:08:54 +0000 (17:08 +0200)]
FeynmanDiagrams.lyx: rename German version

it turned out that the example files that should appear in LyX's Help menu must have the same name as their English versions

9 years agoFeynman-Diagramme.lyx: new German translation
Uwe Stöhr [Sat, 25 Apr 2015 15:01:09 +0000 (17:01 +0200)]
Feynman-Diagramme.lyx: new German translation

FeynmanDiagrams.lyx: an adjustment and added the missing note to the French translation

9 years agoFeynmanDiagrams.lyx: fix some typos and expressions
Uwe Stöhr [Sat, 25 Apr 2015 00:03:19 +0000 (02:03 +0200)]
FeynmanDiagrams.lyx: fix some typos and expressions

9 years agoinstaller: preparation and updates for upcoming LyX 2.1.4 release
Uwe Stöhr [Fri, 24 Apr 2015 21:53:15 +0000 (23:53 +0200)]
installer: preparation and updates for upcoming LyX 2.1.4 release

9 years agoDon't write \PassThruChars if it is empty.
Richard Heck [Fri, 24 Apr 2015 16:49:26 +0000 (12:49 -0400)]
Don't write \PassThruChars if it is empty.

9 years agoCmake build: Enable debug output for check_layouts.
Kornel Benko [Fri, 24 Apr 2015 09:20:33 +0000 (11:20 +0200)]
Cmake build: Enable debug output for check_layouts.

9 years agoAttempt to fix (mixed) line terminators.
Juergen Spitzmueller [Thu, 23 Apr 2015 09:13:28 +0000 (11:13 +0200)]
Attempt to fix (mixed) line terminators.

9 years agoUpdate the Finnish localization
Juergen Spitzmueller [Thu, 23 Apr 2015 08:25:15 +0000 (10:25 +0200)]
Update the Finnish localization

Patch by Jari-Matti Mäkelä

9 years agoAssert if unknown argument to internal paste
Scott Kostyshak [Wed, 22 Apr 2015 03:22:21 +0000 (23:22 -0400)]
Assert if unknown argument to internal paste

9 years agoFix bug #8258 (Zoom of editor doesn't zoom instant preview)
Enrico Forestieri [Tue, 21 Apr 2015 21:57:53 +0000 (23:57 +0200)]
Fix bug #8258 (Zoom of editor doesn't zoom instant preview)

9 years agoUpdate sk.po
Kornel Benko [Tue, 21 Apr 2015 20:51:53 +0000 (22:51 +0200)]
Update sk.po

9 years agode.po: typo
Juergen Spitzmueller [Tue, 21 Apr 2015 18:57:28 +0000 (20:57 +0200)]
de.po: typo

9 years agode.po
Juergen Spitzmueller [Tue, 21 Apr 2015 18:43:44 +0000 (20:43 +0200)]
de.po

9 years agoDocument new Glosse inset and some further minor changes.
Juergen Spitzmueller [Tue, 21 Apr 2015 18:38:47 +0000 (20:38 +0200)]
Document new Glosse inset and some further minor changes.

9 years agoRewrite the linguistic Glosse insets.
Juergen Spitzmueller [Tue, 21 Apr 2015 18:33:35 +0000 (20:33 +0200)]
Rewrite the linguistic Glosse insets.

This gets rid of the PassThru hack and makes the inset actually usable
for linguistists.

Fixes: #7773
File format change.

9 years agoMake ParBreakIsNewline work in inset layout without PassThru
Juergen Spitzmueller [Tue, 21 Apr 2015 17:43:41 +0000 (19:43 +0200)]
Make ParBreakIsNewline work in inset layout without PassThru

Fixes: #9513
9 years agoFix version number
Juergen Spitzmueller [Tue, 21 Apr 2015 13:48:32 +0000 (15:48 +0200)]
Fix version number

9 years agoFix wrong symbol in IPA toolbar.
Juergen Spitzmueller [Tue, 21 Apr 2015 09:04:28 +0000 (11:04 +0200)]
Fix wrong symbol in IPA toolbar.

Richard, this shuld also go to branch.

9 years agolinguistics.lyx: small tweak.
Juergen Spitzmueller [Tue, 21 Apr 2015 08:23:33 +0000 (10:23 +0200)]
linguistics.lyx: small tweak.

9 years agoUpdate previews after pasting (#6211)
Scott Kostyshak [Sun, 19 Apr 2015 17:46:04 +0000 (13:46 -0400)]
Update previews after pasting (#6211)

The reason we want to do this is for if there is pasting across buffers.
For within buffer, the previews should already be updated. Calling the
buffer-wide updatePreviews() might seem like overkill, but actually it
should be quick because only the previews that need updating are updated
(and this check feels quick to me, although I did not profile).

If we were to loop through the pasted text and update each preview
individually, this might take more time. When updating previews
together, only one .tex file is compiled.

9 years agoUpdate previews on preference change (#9507)
Scott Kostyshak [Sun, 19 Apr 2015 06:30:28 +0000 (02:30 -0400)]
Update previews on preference change (#9507)

Normally the theBufferList().updatePreviews(); statement would go inside
of PrefDisplay::applyRC. However, that would not work well because
Buffer::updatePreviews() calls loader() which conditions on
(lyxrc.preview == LyXRC::PREVIEW_OFF) but the new RC has not been set at
this point.

9 years agoPreview and math now update on screen-up (#6173)
Scott Kostyshak [Sun, 19 Apr 2015 00:31:18 +0000 (20:31 -0400)]
Preview and math now update on screen-up (#6173)

When editing a preview inset, or math, when we leave the inset, we
should update the preview. This update now happens for screen-up and
screen-down (commonly bound to Page Up and Page Down).

Note that this is only relevant if preview is turned on in
preferences.

This commit probably fixes other issues for any inset that defines
notifyCursorLeaves().

This fixes only part of #6173.

9 years agofr.po: update from Jean-Pierre
Uwe Stöhr [Mon, 20 Apr 2015 22:34:19 +0000 (00:34 +0200)]
fr.po: update from Jean-Pierre

9 years agoDocument forest.
Juergen Spitzmueller [Mon, 20 Apr 2015 16:30:50 +0000 (18:30 +0200)]
Document forest.

9 years agoAdd support for linguistic trees (via forest)
Juergen Spitzmueller [Mon, 20 Apr 2015 16:14:42 +0000 (18:14 +0200)]
Add support for linguistic trees (via forest)

9 years agoNew (Inset)Layout tag PassThruChars
Juergen Spitzmueller [Mon, 20 Apr 2015 16:13:49 +0000 (18:13 +0200)]
New (Inset)Layout tag PassThruChars

9 years agoDo not show obsoleted flex insets in the menu.
Juergen Spitzmueller [Mon, 20 Apr 2015 16:10:25 +0000 (18:10 +0200)]
Do not show obsoleted flex insets in the menu.

9 years agode/linguistics.lyx: small tweak.
Juergen Spitzmueller [Mon, 20 Apr 2015 10:21:29 +0000 (12:21 +0200)]
de/linguistics.lyx: small tweak.

9 years agode.po
Juergen Spitzmueller [Mon, 20 Apr 2015 10:20:52 +0000 (12:20 +0200)]
de.po

9 years agoSupport item argument in linguistic examples
Juergen Spitzmueller [Mon, 20 Apr 2015 10:15:20 +0000 (12:15 +0200)]
Support item argument in linguistic examples

File format change.

9 years agoUpdate previews after doing a find/replace (#7242)
Scott Kostyshak [Sun, 19 Apr 2015 01:40:43 +0000 (21:40 -0400)]
Update previews after doing a find/replace (#7242)

This commit addresses #7242 for normal Find/Replace. That issue was
fixed for Advanced Find at 29948eec.

9 years agoRemove bad hack.
Jean-Marc Lasgouttes [Fri, 17 Apr 2015 13:58:14 +0000 (15:58 +0200)]
Remove bad hack.

The macro N_() is a no-op which does exactly what is needed here: tell gettext that the string should be in the list of translations.

9 years agoctests: remove some tests from ignored file
Scott Kostyshak [Fri, 17 Apr 2015 02:54:33 +0000 (22:54 -0400)]
ctests: remove some tests from ignored file

The bug that caused these tests to enter into infinite loops
(and have a memory leak) has been fixed. These tests now
pass on an updated TeX Live 2014 as well as the current TeX
Live 2015 pretest.

9 years agoAdd \li Origin for the buffer-move-* LFUNs
Scott Kostyshak [Fri, 17 Apr 2015 02:50:48 +0000 (22:50 -0400)]
Add \li Origin for the buffer-move-* LFUNs

9 years agoFrench UserGuide.lyx: updates from Jean-Pierre
Uwe Stöhr [Fri, 17 Apr 2015 00:19:29 +0000 (02:19 +0200)]
French UserGuide.lyx: updates from Jean-Pierre

9 years agocua.bind: switch shortcuts for bold and boldsymbol
Uwe Stöhr [Thu, 16 Apr 2015 23:18:56 +0000 (01:18 +0200)]
cua.bind: switch shortcuts for bold and boldsymbol

fixes bug #9413

9 years agoUserGuide.lyx: fix a typo
Uwe Stöhr [Thu, 16 Apr 2015 23:11:36 +0000 (01:11 +0200)]
UserGuide.lyx: fix a typo

9 years agoUserGuide.lyx: fix a LaTeX warning
Uwe Stöhr [Thu, 16 Apr 2015 23:03:18 +0000 (01:03 +0200)]
UserGuide.lyx: fix a LaTeX warning

\bf is deprecated

9 years agoToggle properly the math-display icon
Jean-Marc Lasgouttes [Thu, 16 Apr 2015 16:51:29 +0000 (18:51 +0200)]
Toggle properly the math-display icon

9 years agoDo not remove separators at end of rows.
Jean-Marc [Thu, 16 Apr 2015 09:39:33 +0000 (11:39 +0200)]
Do not remove separators at end of rows.

I am not sure why I addd this code at the time. I do not think there was a good reason.

Fixes bug #9447.

9 years agoAvoid requiring messages with empty language.
Jean-Marc Lasgouttes [Wed, 15 Apr 2015 13:27:05 +0000 (15:27 +0200)]
Avoid requiring messages with empty language.

This is a follow-up to commit 8aa2d6b1.

9 years agoemacs.bind: Added shortcuts for dictionaries
Kornel Benko [Tue, 14 Apr 2015 08:51:39 +0000 (10:51 +0200)]
emacs.bind: Added shortcuts for dictionaries

9 years agoUpdate it.po
Enrico Forestieri [Mon, 13 Apr 2015 14:16:03 +0000 (16:16 +0200)]
Update it.po

9 years agoUpdate sk.po
Kornel Benko [Mon, 13 Apr 2015 08:40:34 +0000 (10:40 +0200)]
Update sk.po

9 years agode.po
Juergen Spitzmueller [Mon, 13 Apr 2015 07:57:19 +0000 (09:57 +0200)]
de.po

9 years agoIssue a warning if thesaurus dir is not set up (as suggested in #9496)
Juergen Spitzmueller [Sun, 12 Apr 2015 13:55:01 +0000 (15:55 +0200)]
Issue a warning if thesaurus dir is not set up (as suggested in #9496)

9 years agoTweak some icons.
Enrico Forestieri [Sun, 12 Apr 2015 10:58:24 +0000 (12:58 +0200)]
Tweak some icons.

9 years agoUpdate tex2lyx test references
Georg Baum [Sun, 12 Apr 2015 08:07:42 +0000 (10:07 +0200)]
Update tex2lyx test references

The lyx2lyx conversions for the new formats are empty, therefore we can simply
update the format number.

9 years agoFix output of \lightning in math mode.
Enrico Forestieri [Sat, 11 Apr 2015 22:47:18 +0000 (00:47 +0200)]
Fix output of \lightning in math mode.

The \lightning symbol is text mode only. Hence, for using it in
mathed, it must be inserted in a text mode environment such as
\mbox, \text, etc. However, as it is not marked as textmode,
LyX "helpfully" encloses it in \ensuremath everytime one tries
to put it in a text mode environment, thus defying the countermeasure.
By declaring it textmode only, LyX stops doing that and thus it can be
correctly output by simply selecting it and hitting Ctrl-M.

9 years agoMath Panels: add "Fonts" icons.
Enrico Forestieri [Sat, 11 Apr 2015 21:02:25 +0000 (23:02 +0200)]
Math Panels: add "Fonts" icons.

9 years agoMath Panels: revise the "Math spacings" svg icons.
Enrico Forestieri [Sat, 11 Apr 2015 17:46:42 +0000 (19:46 +0200)]
Math Panels: revise the "Math spacings" svg icons.

9 years agoMath Panels: revise the "Miscellaneous (extended)" svg icons.
Enrico Forestieri [Sat, 11 Apr 2015 14:51:18 +0000 (16:51 +0200)]
Math Panels: revise the "Miscellaneous (extended)" svg icons.

9 years agoRemove problematic accelerator (#9495)
Juergen Spitzmueller [Fri, 10 Apr 2015 08:13:12 +0000 (10:13 +0200)]
Remove problematic accelerator (#9495)

Seems there is no free accelerator left for the source view pane.

9 years agoAdapt creation of preview images to the defaul document output.
Kornel Benko [Thu, 9 Apr 2015 14:29:59 +0000 (16:29 +0200)]
Adapt creation of preview images to the defaul document output.

Sometimes, even compilable documents could not display preview
snippets. Previously the preview was computed only with help
of latex or xelatex.
This also fixes #9371

9 years agoFix potential link error in tests.
Jean-Marc Lasgouttes [Thu, 9 Apr 2015 09:57:00 +0000 (11:57 +0200)]
Fix potential link error in tests.

This is a followup of d4718b18, which itself fixes a problem introduced in 66fa801e.

9 years agoFile format change caused by 34eadf5d4.
Juergen Spitzmueller [Thu, 9 Apr 2015 09:01:44 +0000 (11:01 +0200)]
File format change caused by 34eadf5d4.

9 years agoFix tex2lyx linker error on windows
Georg Baum [Wed, 8 Apr 2015 20:04:13 +0000 (22:04 +0200)]
Fix tex2lyx linker error on windows

The FontMetrics dummy class was in the wrong namespace. Linking on linux
did work because the GNU linker is more clever than the MSVC linker for this
particular example and throws out more unused code, so that theFontMetrics was
not referenced at all.

9 years agoUpdate sk.po
Kornel Benko [Wed, 8 Apr 2015 19:48:34 +0000 (21:48 +0200)]
Update sk.po

9 years agoctest: do not disable the English version test
Scott Kostyshak [Wed, 8 Apr 2015 19:04:43 +0000 (15:04 -0400)]
ctest: do not disable the English version test

9 years agoctests: disable two fr/Math.lyx tests
Scott Kostyshak [Wed, 8 Apr 2015 18:26:07 +0000 (14:26 -0400)]
ctests: disable two fr/Math.lyx tests

One of the tests is also disabled for es/Math.lyx. However,
the other test passes for es/Math.lyx. To reproduce,
open fr/Math.lyx, click "Use non-TeX fonts", and choose
e.g. "FreeSans" for the three fonts. Then view as PDF (LuaTeX).

I put a note to look into why this one fails.

9 years agoImplement and bind buffer-move-{next,previous}
Scott Kostyshak [Wed, 8 Apr 2015 03:18:21 +0000 (23:18 -0400)]
Implement and bind buffer-move-{next,previous}

Control + Shift + PgDn now moves a tab to the right.
Control + Shift + PgUp now moves a tab to the left.

These keybindings are consistent with Chromium, Firefox,
Nautilus, and gnome-terminal.

Note that I allow for wrapping. This is consistent with
allowing wrapping for buffer-{next,previous}, but there
might be reasons to disable it in the future.

9 years agoFix compilation of the template ACM-sigplan.lyx
Scott Kostyshak [Wed, 8 Apr 2015 17:29:13 +0000 (13:29 -0400)]
Fix compilation of the template ACM-sigplan.lyx

This template was only reported as failing to compile by LyX as of
0a6120cb. I do not know how long this template was actually failing
to compile without error. The problem was that the class requires
\doi to be defined. This might not have been a requirement in
previous versions of the class.

Thanks to Enrico for finding the problem and solution.

9 years agoUpdate a fileformat
Scott Kostyshak [Wed, 8 Apr 2015 17:20:28 +0000 (13:20 -0400)]
Update a fileformat

9 years agoSet enable for both cases
Scott Kostyshak [Wed, 8 Apr 2015 16:58:03 +0000 (12:58 -0400)]
Set enable for both cases

Thanks to Jürgen.

9 years agoMath Panels: revise the "Dots" and "Delimiters" svg icons.
Enrico Forestieri [Wed, 8 Apr 2015 15:59:54 +0000 (17:59 +0200)]
Math Panels: revise the "Dots" and "Delimiters" svg icons.

9 years agoMath Panels: revise the "Negative relations" svg icons.
Enrico Forestieri [Wed, 8 Apr 2015 10:15:15 +0000 (12:15 +0200)]
Math Panels: revise the "Negative relations" svg icons.

9 years agoCorrect typo from last commit
Scott Kostyshak [Wed, 8 Apr 2015 03:00:51 +0000 (23:00 -0400)]
Correct typo from last commit

9 years agoSimplify previous commit
Scott Kostyshak [Wed, 8 Apr 2015 02:59:34 +0000 (22:59 -0400)]
Simplify previous commit

The brackets are not necessary.

9 years agoAdd getStatus check that >1 tab for switching
Scott Kostyshak [Wed, 8 Apr 2015 02:55:20 +0000 (22:55 -0400)]
Add getStatus check that >1 tab for switching

buffer-next and buffer-previous are now only enabled
if there is more than one tab. Note that it does not
matter whether we are at the first or last tab because
we cycle.

9 years agoFix external middle-mouse pasting with Qt5/X11.
Enrico Forestieri [Tue, 7 Apr 2015 10:59:41 +0000 (12:59 +0200)]
Fix external middle-mouse pasting with Qt5/X11.

Closes #9216. Patch by Jürgen and me.

9 years agoContinue compilation despite errors (#8739)
Scott Kostyshak [Tue, 7 Apr 2015 06:55:59 +0000 (02:55 -0400)]
Continue compilation despite errors (#8739)

Now that we have the "Show Output Anyway" button (09700d5b),
it makes sense to continue compilation even if there is an error.

9 years agoDocument buffer-view-cache in RELEASE-NOTES
Scott Kostyshak [Tue, 7 Apr 2015 07:03:46 +0000 (03:03 -0400)]
Document buffer-view-cache in RELEASE-NOTES

9 years agoAdd on to fix for #2757
Scott Kostyshak [Tue, 7 Apr 2015 06:30:54 +0000 (02:30 -0400)]
Add on to fix for #2757

- Treat BibTeX errors as errors so the LaTeX Errors dialog is shown.
- Add RELEASE-NOTES (updated from cba432f1).

9 years agoMath Panels: revise the "Relations (extra)" svg icons.
Enrico Forestieri [Mon, 6 Apr 2015 22:49:34 +0000 (00:49 +0200)]
Math Panels: revise the "Relations (extra)" svg icons.

9 years agoDo not close LyX in the commitData process (#9277)
Juergen Spitzmueller [Mon, 6 Apr 2015 11:50:32 +0000 (13:50 +0200)]
Do not close LyX in the commitData process (#9277)

Since the logout process still can be canceled here, we should only
check that all dirty buffers are saved and that the session state is
recorded.

Please test, particularly on Windows and OSX, that logging out with LyX
running (both with and without dirty buffers) proceeds sensibly and that
the LyX session is correctly restored when you re-login.

9 years agoPrevent crash when attempting to restore a file multiple times.
Juergen Spitzmueller [Mon, 6 Apr 2015 07:55:07 +0000 (09:55 +0200)]
Prevent crash when attempting to restore a file multiple times.

We currently cannot restore multiple views of the same buffer properly.
On the mac, we even crash.
So do not try it, record each file only once in the last opened list.

Fixes: #9483.
9 years agoRe-introduce BibTeX error reporting via Error dialog (#2757)
Juergen Spitzmueller [Mon, 6 Apr 2015 07:43:06 +0000 (09:43 +0200)]
Re-introduce BibTeX error reporting via Error dialog (#2757)

Since PDF can now viewed anyway, the objections to the previous attempt might be addressed.

9 years agoMultilingualCaptions.lyx: update some menu names
Uwe Stöhr [Mon, 6 Apr 2015 04:10:30 +0000 (06:10 +0200)]
MultilingualCaptions.lyx: update some menu names

9 years agolyx2lyx/lyx_2_2.py: correct a whitespace mistake
Uwe Stöhr [Mon, 6 Apr 2015 04:08:26 +0000 (06:08 +0200)]
lyx2lyx/lyx_2_2.py: correct a whitespace mistake

9 years agosupport for Georgian
Uwe Stöhr [Mon, 6 Apr 2015 04:00:11 +0000 (06:00 +0200)]
support for Georgian

add support to set Georgian as document language, fileformat change

9 years agoMultilingualCaptions.lyx: new German translation
Uwe Stöhr [Mon, 6 Apr 2015 01:36:57 +0000 (03:36 +0200)]
MultilingualCaptions.lyx: new German translation

- also some fixes for the other language variants

9 years agoar.po: update from Hatim
Uwe Stöhr [Mon, 6 Apr 2015 00:37:23 +0000 (02:37 +0200)]
ar.po: update from Hatim

9 years agoShow Anyway button needs to be enabled/disabled in paramsToDialog.
Juergen Spitzmueller [Sun, 5 Apr 2015 08:50:30 +0000 (10:50 +0200)]
Show Anyway button needs to be enabled/disabled in paramsToDialog.

Else, the state set on first launch persists, notwithstanding the change of function state.

9 years agoSimplify code
Scott Kostyshak [Sat, 4 Apr 2015 18:56:29 +0000 (14:56 -0400)]
Simplify code

9 years agoDetect when an external command crashes
Scott Kostyshak [Sat, 4 Apr 2015 17:39:42 +0000 (13:39 -0400)]
Detect when an external command crashes

This fixes a situation where LyX did not detect that something went
wrong (that an external comman crashed) and reported that export was
successful. To reproduce, use the following version of LuaTeX (the
bug in LuaTeX causing the crash has since been fixed):
LuaTeX, Version beta-0.79.1 (TeX Live 2014) (rev 4971)
Then open FeynmanDiagrams.lyx and export with PDF (LuaTeX).

In the documentation [1] for QProcess::exitCode() it states:
"This value is not valid unless exitStatus() returns NormalExit."

For more information, see:
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg185317.html

[1] http://doc.qt.io/qt-5/qprocess.html#exitCode

9 years agoButton for showing PDF if compilation error
Scott Kostyshak [Tue, 31 Mar 2015 22:54:49 +0000 (18:54 -0400)]
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).