Georg Baum [Mon, 3 Nov 2014 15:07:17 +0000 (10:07 -0500)]
Fix for bug #9234, from Georg.
Our TempFile class uses QTemporaryFile internally, and, on Windows,
this keeps the file locked so that we cannot rename it. So we have
to release the lock.
Uwe Stöhr [Sat, 1 Nov 2014 23:56:55 +0000 (00:56 +0100)]
PDF-comment.lyx: reset style and some fixes
- the example was designed to follow the style of the other LyX documentation files, e.g. not to insert options as one big TeX-code inset.
- fix some typos
- (I cannot save files with LyX 2.2 atm due to bug #9234)
Uwe Stöhr [Wed, 29 Oct 2014 00:02:13 +0000 (01:02 +0100)]
pdfcomment.module: total revision
this module was not usable since the preamble stuff was missing and also almost all options. But many PDF-comment types are quite useless without options.
Richard Heck [Fri, 8 Aug 2014 16:02:20 +0000 (12:02 -0400)]
If we successfully save a file but fail to move it to its proper location,
then, if we made a backup and the original file was not a symlink, we moved
that file, so it will look to the user as if it was deleted. This is bug
Richard Heck [Fri, 28 Mar 2014 16:51:55 +0000 (12:51 -0400)]
Sort debug options in the message pane by string. This makes it
much easier to find what you need, especially when we're trying
to help users. Previously, they were sorted by their enum values.
The shape of the parbreak separator is slightly changed in order to
better distinguish it from the forced newline. This allows using the
same color of the plain version without risk of confusion.
Kornel Benko [Fri, 24 Oct 2014 14:58:54 +0000 (16:58 +0200)]
Cmake build: Moved creation of variable LYX_GIT_COMMIT_HASH to development/cmake/scripts/LyXGetVersion.cmake.
1.) The only file which needs this define is src/version.cpp. Our use in config.h
resulted in recompiling most of our sources.
With this change, only version.cpp needs to be recompiled.
2.) Without reconfiguring, the old commit hash was still valid. Now the
detection of commit hash is done at compile time.
Kornel Benko [Thu, 23 Oct 2014 14:49:41 +0000 (16:49 +0200)]
Cmake build: No need to recreate lyx.pot on every make call.
We can check if imput data for 'gettext' command has changed from previous call.
If not, there is no need to recreate lyx.pot, which we only differ in
"POT-Creation-Date: ...."
These are SVGs from the Tango icon set as well as some theme-independent self-made icons. Many icons are missing. This set s a wild mixture of Tango, old KDE icons and some self-made icons drawing on (to me) unknown models.
I leave the task to finish this set (and thus the SVG icons generally) to others.
Stephan Witt [Mon, 20 Oct 2014 15:15:23 +0000 (17:15 +0200)]
#9130 Text in main work area isn't rendered with high resolution
Search high resolution images only when application has detected high resolution screen
Fix bug #9288: Cannot position cursor near the end of a line.
The problem was that some parts of the code assume that the right margin is part of the width of the row. This is not the case, only the left margin (Row::x) is counted.
The code has been fixed and documented to reflect this.
Stephan Witt [Sat, 18 Oct 2014 13:50:22 +0000 (15:50 +0200)]
#9130 Text in main work area isn't rendered with high resolution
Load images with search mode check_hidpi to read images with double size when present.
Stephan Witt [Sat, 18 Oct 2014 13:30:58 +0000 (15:30 +0200)]
#9130 Text in main work area isn't rendered with high resolution
Add display_pixel_ratio to buffer params to use it for displays with high resolution.
It holds the highest ratio between physical pixels and device-independent pixels of the LyX application.
Preview snippets will be generated using this value to get high resolution preview.
Stephan Witt [Sat, 18 Oct 2014 13:26:49 +0000 (15:26 +0200)]
#9130 Text in main work area isn't rendered with high resolution
Add pixel_ratio to graphics params to use it for displays with high resolution.
It holds the ratio between physical pixels and device-independent pixels of the graphics.
Stephan Witt [Sat, 18 Oct 2014 13:19:47 +0000 (15:19 +0200)]
#9130 Text in main work area isn't rendered with high resolution
Add search mode check_hidpi to ease the lookup for images with double size to use for displays with high resolution.
Stephan Witt [Sun, 12 Oct 2014 17:23:13 +0000 (19:23 +0200)]
#9130 Text in main work area isn't rendered with high resolution
Introduce the concept of pixel ratio: the ratio of physical and device independent pixels.
This is useful for rendering of content on Retina-displays of Mac hardware with high resolution.
Qt has real support for this starting with Qt5 - therefore it has to be compiled conditionally.
This change uses some work of Marcelo Galvão Póvoa, thank you.
What a selection spans several cells in mathed, and a deletion occurs though LFUN_CHAR_DELETE_FORWARD for example, only the case of a proper grid was handled. When no such grid exists, all cells between the first and the last index are cleared now.
Rewrite of change-related helpers
lyxfind.cpp(findNextChange, findPreviousChange, findChange, selectChange): factor the change-selection part out of the change-finding part
Text.cpp (acceptOrRejectChanges): call only selectChange
insets/InsetTabular.cpp (doDispatch): fix to #9291. The problem was simply that the default status for the cursor in the call to *::doDispatch is "dispatched".
insets/InsetTabular.cpp (edit): do not reset the selection
mathed/InsetMathHull.cpp (InsetMathHull::doDispatch): do not declare LFUN_FINISHED_* lfuns as undispatched after handling them
Fixes #9289, and an unreported cousin of #3900
Text2.cpp (checkAndActivateInset, checkAndActivateInsetVisual): activate insets on selection if the anchor is inside the inset.
insets/InsetText.cpp (InsetText::edit): do not reset the selection
Fixes #2346.