]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoexample files: remove unnecessary latexpar
Uwe Stöhr [Fri, 15 Jul 2016 22:24:27 +0000 (00:24 +0200)]
example files: remove unnecessary latexpar

- fixes part of bug #10068

7 years agodoc/template/examples files: port recent changes
Uwe Stöhr [Fri, 15 Jul 2016 22:11:28 +0000 (00:11 +0200)]
doc/template/examples files: port recent changes

By the way: Please only edit the files in the 2.2.x branch unless you describe a new features of LyX 2.3.

7 years agoAdd .dirstamp to the list of ignored files.
Richard Heck [Fri, 15 Jul 2016 17:36:15 +0000 (13:36 -0400)]
Add .dirstamp to the list of ignored files.

This seems to be generated by recent versions of automake. It isn't
an issue if you use a separate build directory, but not everyone
does that.

7 years agoLaTeX highlighter: make at a letter in the user preamble
Guillaume Munch [Fri, 15 Jul 2016 16:45:47 +0000 (17:45 +0100)]
LaTeX highlighter: make at a letter in the user preamble

Syntax highlighting now provides the appropriate cue that the user preamble is
inside \makeatletter…\makeatother.

7 years agoCmake build: Added code to compile with QT5.7
Kornel Benko [Fri, 15 Jul 2016 08:37:18 +0000 (10:37 +0200)]
Cmake build: Added code to compile with QT5.7

QT5.7 cmake config files explicitly instruct cmake to use `-std=gnu++11`.
This is not the same as is found by our FindCXX11Compiler.cmake,
which leads to compilation errors.
Here we overrule the setting.

Thanks to helpfull hand from Brad King <brad.king@kitware.com>

7 years agoUserGuide.lyx: port today's changes
Uwe Stöhr [Fri, 15 Jul 2016 00:56:47 +0000 (02:56 +0200)]
UserGuide.lyx: port today's changes

7 years agode.po: some translations
Uwe Stöhr [Fri, 15 Jul 2016 00:55:45 +0000 (02:55 +0200)]
de.po: some translations

7 years agodoc files: port recent changes
Uwe Stöhr [Thu, 14 Jul 2016 23:40:43 +0000 (01:40 +0200)]
doc files: port recent changes

7 years ago Fix typos in InStar module explanantions
jpc [Thu, 14 Jul 2016 21:46:12 +0000 (22:46 +0100)]
  Fix typos in InStar module explanantions

7 years agoBetter error message when try to bind a Hidden LFUN
Guillaume Munch [Tue, 5 Jul 2016 19:38:24 +0000 (21:38 +0200)]
Better error message when try to bind a Hidden LFUN

7 years agoPrioritize the shortcuts from the work areas
Guillaume Munch [Mon, 4 Jul 2016 02:23:32 +0000 (04:23 +0200)]
Prioritize the shortcuts from the work areas

* Fix bug #10261 : KDE smartly adds conflicting accelerators.

* Prevent bugs like #9495 in the future.

Issues (non-regression):

* It does not appear possible to prevent Ubuntu's Unity from grabbing the
  accelerators for the menus. For instance Alt+A still opens _Affichage in the
  French localization.

7 years agoRevert "Add qt-dir bin directory value to PATH - matching Qt tools may not found...
Stephan Witt [Thu, 14 Jul 2016 05:57:52 +0000 (07:57 +0200)]
Revert "Add qt-dir bin directory value to PATH - matching Qt tools may not found at build time anymore if not in front of PATH"

This reverts commit 535429d91445a72cc244d4649cfa5e5d4b7c06c7.

7 years agoCitation commands do not absolutely have to start with "c".
Richard Heck [Tue, 12 Jul 2016 23:38:28 +0000 (19:38 -0400)]
Citation commands do not absolutely have to start with "c".

7 years agoFix typo
José Matos [Wed, 13 Jul 2016 15:46:52 +0000 (16:46 +0100)]
Fix typo

7 years agoImprove the file format upgrade and downgrade for microtype
José Matos [Wed, 13 Jul 2016 14:01:17 +0000 (15:01 +0100)]
Improve the file format upgrade and downgrade for microtype

Add get_bool_value to parser_tools to be used in other places.
Make the upgrade convertion seamless from lyx writing the file (regarding
microtypes, there are still other dragons to chase. :-)

7 years agoAdd CMake flag for keytests and disable by default
Scott Kostyshak [Wed, 13 Jul 2016 08:51:58 +0000 (04:51 -0400)]
Add CMake flag for keytests and disable by default

The keytests were previously enabled by default if the necessary
dependencies were found. They require a GUI and mouse so can
sometimes be annoying. Further, they are not currently reliable.
They are thus now disabled by default.

7 years agoRevert "linguistics.module: add new dependencies"
Juergen Spitzmueller [Wed, 13 Jul 2016 06:00:07 +0000 (08:00 +0200)]
Revert "linguistics.module: add new dependencies"

This reverts commit 33e550a986003a243c23b0cd16e0de76b6b0d272.

7 years agoUserGuide: "Toggle Inversion" -> "Invert Inset"
Scott Kostyshak [Wed, 13 Jul 2016 02:21:58 +0000 (22:21 -0400)]
UserGuide: "Toggle Inversion" -> "Invert Inset"

Consistent with change at 6f97684d.

7 years agoDevelopment.lyx: fix a typo
Scott Kostyshak [Wed, 13 Jul 2016 02:21:51 +0000 (22:21 -0400)]
Development.lyx: fix a typo

7 years agoAdd missing dlls
Georg Baum [Tue, 12 Jul 2016 20:00:28 +0000 (22:00 +0200)]
Add missing dlls

Again thanks to racoon. This is a quick fiyx, in the long term we need to
find out why this is not done automatically.

7 years agoUpdate it.po
Enrico Forestieri [Tue, 12 Jul 2016 16:54:58 +0000 (18:54 +0200)]
Update it.po

7 years agoBranch-invert: Fix discrepancy with the outliner and document statistics
Guillaume Munch [Tue, 12 Jul 2016 13:28:12 +0000 (14:28 +0100)]
Branch-invert: Fix discrepancy with the outliner and document statistics

7 years agoBranch-invert: Record undo and update Toc
Guillaume Munch [Tue, 12 Jul 2016 13:27:40 +0000 (14:27 +0100)]
Branch-invert: Record undo and update Toc

7 years agoBranch-invert: Add a check mark to the switch in the contextual menu.
Guillaume Munch [Tue, 12 Jul 2016 13:27:08 +0000 (14:27 +0100)]
Branch-invert: Add a check mark to the switch in the contextual menu.

7 years agoUI for save_transient_properties
Guillaume Munch [Fri, 8 Jul 2016 15:36:05 +0000 (16:36 +0100)]
UI for save_transient_properties

Add a new checkbox "Save transient properties" to the "Output" panel in the
document properties dialog (now renamed as "Format").

This provides the front-end for the change at 5c2d04999.

7 years agoDocument new inverted branch insets in User Guide. Also add note to
Richard Heck [Tue, 12 Jul 2016 04:20:27 +0000 (00:20 -0400)]
Document new inverted branch insets in User Guide. Also add note to
RELEASE_NOTES.

7 years agoLFUN to toggle branch inversion status, now available from the
Richard Heck [Tue, 12 Jul 2016 04:16:05 +0000 (00:16 -0400)]
LFUN to toggle branch inversion status, now available from the
context menu.

7 years agoIntroduce "inverted" branch insets: These are branches whose content
Richard Heck [Tue, 12 Jul 2016 03:56:32 +0000 (23:56 -0400)]
Introduce "inverted" branch insets: These are branches whose content
is output when a branch is NOT activated. Fixes bug #7698.

At the moment, inversion is controlled through the branch settings
dialog. There is no provision for inserting inverted insets directly,
or for changing them from the context menu. Both of these could be
done, of course. The latter would need LFUN_BRANCH_TOGGLE_INVERTED.

7 years agoWe do not need to enter the format numbers for 2.3 at this time.
Richard Heck [Tue, 12 Jul 2016 02:48:04 +0000 (22:48 -0400)]
We do not need to enter the format numbers for 2.3 at this time.
The code just below fills thiss automatically.

(cherry picked from commit 3d8082346e16770f3af4ee6d617c8fe91e9292e1)

7 years agoCmake build: Add needed libraries if using QT5_Extras
Kornel Benko [Mon, 11 Jul 2016 17:08:11 +0000 (19:08 +0200)]
Cmake build: Add needed libraries if using QT5_Extras

Commit cb0c881 does this already for automake.

7 years agoSimplify BufferParams::bufferFormat()
Juergen Spitzmueller [Mon, 11 Jul 2016 09:18:55 +0000 (11:18 +0200)]
Simplify BufferParams::bufferFormat()

The differentiation of "xetex" and "platex" is not needed here,
is ambiguous and confusing (see #10013). The code that relies on
it can/should get its information otherwise.

Furthermore, polyglossia-exclusive languages now also work with
LuaTeX, since we support LuaTeX + polyglossia.

7 years agobuild4-2010.bat: remove outdated script
Uwe Stöhr [Mon, 11 Jul 2016 00:12:36 +0000 (02:12 +0200)]
build4-2010.bat: remove outdated script

building with MSVC 2010 won't be possible with LyX 2.3

7 years agoUpdate sk.po
Kornel Benko [Sun, 10 Jul 2016 20:16:49 +0000 (22:16 +0200)]
Update sk.po

7 years agoAmend cb0c881
Kornel Benko [Sun, 10 Jul 2016 20:14:08 +0000 (22:14 +0200)]
Amend cb0c881

7 years agoMore fixes to MSVC compilation instructions
Georg Baum [Sun, 10 Jul 2016 18:31:18 +0000 (20:31 +0200)]
More fixes to MSVC compilation instructions

Many thanks to racoon for all the patience and feedback!

7 years agoFix paste of selection to (unfocused) external applications
Enrico Forestieri [Sun, 10 Jul 2016 17:31:32 +0000 (19:31 +0200)]
Fix paste of selection to (unfocused) external applications

With both Qt4 and Qt5, when using a click-to-focus policy, the first
attempt to paste a selection by middle mouse in an external application
which has no focus may fail. It is not clear why this succeeds for some
applications and fails for others, but refreshing the timestamp of the
selection request cures the issue. The cmake part is by Kornel.

See also this thread:
http://thread.gmane.org/gmane.editors.lyx.devel/162491

7 years agoGenerate a proper error dialog title for XeTeX/LuaTeX
Juergen Spitzmueller [Sun, 10 Jul 2016 09:14:03 +0000 (11:14 +0200)]
Generate a proper error dialog title for XeTeX/LuaTeX

(see bug #10013)

Candidate for stable

7 years agoClarify some comments wrt XeTeX/LuaTeX (see bug #10013)
Juergen Spitzmueller [Sun, 10 Jul 2016 09:13:13 +0000 (11:13 +0200)]
Clarify some comments wrt XeTeX/LuaTeX (see bug #10013)

7 years agoTestcase now OK after fixing #8022
Kornel Benko [Sun, 10 Jul 2016 09:06:01 +0000 (11:06 +0200)]
Testcase now OK after fixing #8022

7 years agoDelete obsolete comment: We no longer support Qt < 4.4.
Richard Heck [Sun, 10 Jul 2016 05:43:56 +0000 (01:43 -0400)]
Delete obsolete comment: We no longer support Qt < 4.4.

7 years agoSimplify logic a bit. (This was meant to be part of a previous
Richard Heck [Sun, 10 Jul 2016 05:43:19 +0000 (01:43 -0400)]
Simplify logic a bit. (This was meant to be part of a previous
commit.)

7 years agoFix thinko in Buffer::preview. It is possible for this routine to
Richard Heck [Sun, 10 Jul 2016 05:12:42 +0000 (01:12 -0400)]
Fix thinko in Buffer::preview. It is possible for this routine to
be called when we do not have a cloned Buffer, namely, if we do not
have EXPORT_in_THREAD defined.

7 years agoOnly trim right end of lines in header. This allows us to preserve
Richard Heck [Fri, 24 Jun 2016 18:57:28 +0000 (14:57 -0400)]
Only trim right end of lines in header. This allows us to preserve
whitespace in local layout.

7 years agoRename some variables and routines.
Richard Heck [Sun, 10 Jul 2016 03:53:18 +0000 (23:53 -0400)]
Rename some variables and routines.

7 years agoFix problem with branch handling. The problem was that we were not
Richard Heck [Sun, 10 Jul 2016 03:12:32 +0000 (23:12 -0400)]
Fix problem with branch handling. The problem was that we were not
dealing properly with the paragraph separator tag.

We really need to use that tag as a kind of general marker for which
tags we're responsible for in a given paragraph and which tags we are
not. So the changes to InsetText.cpp use the tag as that kind of marker.

Note that, as of this commit, the User Guide again exports without any
kind of error. I haven't yet checked the other manuals.

This fixes bug #8022.

7 years agoUpdate XHTML debugging code a bit.
Richard Heck [Sat, 9 Jul 2016 18:28:27 +0000 (14:28 -0400)]
Update XHTML debugging code a bit.

7 years agoWrite magic paragraph label to main paragraph tag.
Richard Heck [Fri, 8 Jul 2016 20:38:37 +0000 (16:38 -0400)]
Write magic paragraph label to main paragraph tag.

7 years agoFix for recent luatex versions.
Juergen Spitzmueller [Sat, 9 Jul 2016 14:45:27 +0000 (16:45 +0200)]
Fix for recent luatex versions.

7 years agoCorrect format
Juergen Spitzmueller [Sat, 9 Jul 2016 11:57:49 +0000 (13:57 +0200)]
Correct format

7 years agoFix bug #10273
José Matos [Fri, 8 Jul 2016 15:06:03 +0000 (16:06 +0100)]
Fix bug #10273

Although this a problem that only manifests itself on windows the change is general
and it works anywhere.

The major change is to change the file redirection > to -o the specifies the output file.

At the same time it makes the call to lyx2lyx less cryptic, e.g. to revert to the 1.3
format we have:

\converter lyx lyx13x "python -tt $$s/lyx2lyx/lyx2lyx -t 221 $$i > $$o"     ""

now instead of
python -tt $$s/lyx2lyx/lyx2lyx -t 221 $$i > $$o

we use a call where the version to revert is explicit
python -tt $$s/lyx2lyx/lyx2lyx -V 1.3 -o $$o $$i

or we could write a longer, but more understandable form:
python -tt $$s/lyx2lyx/lyx2lyx --final_version 1.3 --output $$o $$i

FWIW I shuffled the order of the arguments just for the sake of readability,
to let $$i be the last argument.

7 years agoAdd comment
Juergen Spitzmueller [Fri, 8 Jul 2016 14:48:56 +0000 (16:48 +0200)]
Add comment

7 years agolinguistics: minor doc tweaks
Juergen Spitzmueller [Fri, 8 Jul 2016 11:58:32 +0000 (13:58 +0200)]
linguistics: minor doc tweaks

7 years agoAccessibility of document class combo box (#10035)
Guillaume Munch [Fri, 8 Jul 2016 10:29:26 +0000 (12:29 +0200)]
Accessibility of document class combo box (#10035)

* Access it with tab

* Access it with the accelerator from the title of the group

7 years agoCmake build: Mimic changes done in autoconf at f70dd65
Kornel Benko [Fri, 8 Jul 2016 08:58:32 +0000 (10:58 +0200)]
Cmake build: Mimic changes done in autoconf at f70dd65

7 years agoFix incompatibility of covington and beamer.
Juergen Spitzmueller [Fri, 8 Jul 2016 08:04:24 +0000 (10:04 +0200)]
Fix incompatibility of covington and beamer.

Candidate for stable.

7 years agoFix building on cygwin after 23dbcb59
Enrico Forestieri [Thu, 7 Jul 2016 21:37:14 +0000 (23:37 +0200)]
Fix building on cygwin after 23dbcb59

7 years agoAccount for the case in which Qt tools are not in PATH
Enrico Forestieri [Thu, 7 Jul 2016 21:12:07 +0000 (23:12 +0200)]
Account for the case in which Qt tools are not in PATH

If the Qt directory is specified by --with-qt-dir, the full path
of the tools is retained. Otherwise, if qtchooser is detected,
the generic names are attempted with proper arguments to select
the desired Qt version. Otherwise, the generic names with and without
proper suffixes (either -qt5 or -qt4) are checked in the PATH.

This means that --with-qt-dir=qtdir should be used only if the tools
are not in the PATH, or qtdir/bin/{moc,rcc,uic} are the right versions
for the desired Qt. In any case, it is later checked that the selected
tools are the right ones and a warning is issued if there is a mismatch.

7 years agoRevert "Skip all drawing with NoScreenUpdate strategy"
Jean-Marc Lasgouttes [Thu, 7 Jul 2016 12:21:55 +0000 (14:21 +0200)]
Revert "Skip all drawing with NoScreenUpdate strategy"

This reverts commit b874bdfd402a94428c8f5fe7ef2180146069120a.

It was commited by mistake and actually does not seem to improve
performance.

7 years agoAdd qt-dir bin directory value to PATH - matching Qt tools may not found at build...
Stephan Witt [Wed, 6 Jul 2016 23:04:09 +0000 (01:04 +0200)]
Add qt-dir bin directory value to PATH - matching Qt tools may not found at build time anymore if not in front of PATH

7 years agoUse a proper test for detecting usable std::regex
Jean-Marc Lasgouttes [Wed, 6 Jul 2016 12:49:18 +0000 (14:49 +0200)]
Use a proper test for detecting usable std::regex

The test is stolen from cmake code.

Tested on:

* ubuntu 12.04 with g++ 4.6, clang 3.3 (with libstdc++)

* ubuntu 16.04 with g++ 5.3, clang 3.7 (with libstdc++) and clang 3.7
  (with libc++)

The last combination fails, but it seems to be related to real bugs
(reported for debian), so this is OK.

7 years agoNew test to determine correct -std option for CXX compiler
Jean-Marc Lasgouttes [Wed, 6 Jul 2016 12:03:22 +0000 (14:03 +0200)]
New test to determine correct -std option for CXX compiler

The test file is stolen from cmake. The options tested are, from the
most desirable to the least desirable:
  -std=c++14 -std=c++11 "" -std=c++0x -std=gnu++14 -std=gnu++11 -std=gnu++0x

It is expected that the result will not be correct for cygwin, but
this is fixable.

7 years agoSkip all drawing with NoScreenUpdate strategy
Jean-Marc Lasgouttes [Wed, 6 Jul 2016 09:32:54 +0000 (11:32 +0200)]
Skip all drawing with NoScreenUpdate strategy

It seems that it was needed in 0b0c27ef, but nowadays the metrics are
not touched when we set this strategy.

7 years agoRecord undo when deleting end of paragraph in change tracking mode
Jean-Marc Lasgouttes [Tue, 5 Jul 2016 14:22:49 +0000 (16:22 +0200)]
Record undo when deleting end of paragraph in change tracking mode

Fixes bug #10253.

7 years agoCmake build: Split use of 3RDPARTY_BUILD to build individual libs
Kornel Benko [Tue, 5 Jul 2016 13:57:04 +0000 (15:57 +0200)]
Cmake build: Split use of 3RDPARTY_BUILD to build individual libs

The split is now analogous to automake. The individual libs are handled
analogously to already handled boost.
automake config setting cmake config settings
--with-included-iconv -DLYX_EXTERNAL_ICONV=OFF
--with-included-zlib -DLYX_EXTERNAL_Z=OFF
--with--included-hunspell -DLYX_EXTERNAL_HUNSPELL=OFF

7 years agoPoor man's profiler: add support for cache hit/miss
Jean-Marc Lasgouttes [Tue, 5 Jul 2016 13:29:28 +0000 (15:29 +0200)]
Poor man's profiler: add support for cache hit/miss

This is still very basic profiling, but it seems to get the work done.

7 years agoRevert c6ce76c2 and fix 670efa8f
Guillaume Munch [Mon, 4 Jul 2016 22:18:21 +0000 (00:18 +0200)]
Revert c6ce76c2 and fix 670efa8f

Thanks Stephan

7 years agoAutoconf : Try to select the correct Qt tools by using the -qt option
Jean-Marc Lasgouttes [Mon, 4 Jul 2016 14:22:57 +0000 (16:22 +0200)]
Autoconf : Try to select the correct Qt tools by using the -qt option

With this change, it is now possible to configure with --enable-qt5
and have make use "moc -qt=qt5" automatically.

This is done when the command qtchooser is available nd the desired Qt
version (qt4/qt5) is available.

This means that it is now possible to have qt4 and qt5 builds easily
on a same linux system.

7 years agoGerman UserGuide.lyx: backport recent changes from branch
Uwe Stöhr [Tue, 5 Jul 2016 01:02:11 +0000 (03:02 +0200)]
German UserGuide.lyx: backport recent changes from branch

7 years agodoc files: backport recent changes
Uwe Stöhr [Tue, 5 Jul 2016 00:27:36 +0000 (02:27 +0200)]
doc files: backport recent changes

7 years agoBring window to front only for single-instance mode
Enrico Forestieri [Mon, 4 Jul 2016 23:01:02 +0000 (01:01 +0200)]
Bring window to front only for single-instance mode

A window manager could be configured such that to maintain a certain
stack order for the windows. It would be annoying that opening a new
file through menu brings up the window, so do this only if we are
loading a file through the lyx-server.

7 years agofix make check.
Pavel Sanda [Mon, 4 Jul 2016 21:10:30 +0000 (14:10 -0700)]
fix make check.

7 years agoRessurect make distcheck.
Pavel Sanda [Mon, 4 Jul 2016 20:17:07 +0000 (13:17 -0700)]
Ressurect make distcheck.

7 years agoFix display of \leq, \geq, and \lnot in mathed
Enrico Forestieri [Mon, 4 Jul 2016 19:49:55 +0000 (21:49 +0200)]
Fix display of \leq, \geq, and \lnot in mathed

Commit 343a379b used a wrong syntax that was causing the display
of the above symbols as blanks.

7 years agoFix missing TexRow.h include after change 670efa8f646218f2a378f0cc614c4c37a9f6b89a
Stephan Witt [Mon, 4 Jul 2016 18:37:06 +0000 (20:37 +0200)]
Fix missing TexRow.h include after change 670efa8f646218f2a378f0cc614c4c37a9f6b89a

7 years agoAdd missing include for abs(int)
Stephan Witt [Mon, 4 Jul 2016 18:36:16 +0000 (20:36 +0200)]
Add missing include for abs(int)

7 years agoGcc 6+ use C++14 as default, so there is no need to enforce C++11
Jean-Marc Lasgouttes [Thu, 30 Jun 2016 09:15:14 +0000 (11:15 +0200)]
Gcc 6+ use C++14 as default, so there is no need to enforce C++11

Also, use gnu++11 unconditionnally with gcc as we used to do before 67385e69.

7 years agoFix missing includes after change 670efa8f646218f2a378f0cc614c4c37a9f6b89a
Stephan Witt [Mon, 4 Jul 2016 10:11:24 +0000 (12:11 +0200)]
Fix missing includes after change 670efa8f646218f2a378f0cc614c4c37a9f6b89a

7 years agoFix missing include for endl after header cleanup in change 670efa8f646218f2a378f0cc6...
Stephan Witt [Mon, 4 Jul 2016 09:04:53 +0000 (11:04 +0200)]
Fix missing include for endl after header cleanup in change 670efa8f646218f2a378f0cc614c4c37a9f6b89a

7 years agoFix missing include for file i/o prototypes after header cleanup in change 489dca71cd...
Stephan Witt [Mon, 4 Jul 2016 08:30:19 +0000 (10:30 +0200)]
Fix missing include for file i/o prototypes after header cleanup in change 489dca71cd99bbc78780fa40311a2eb042c0320e

7 years agoFix missing include for malloc prototype after header cleanup in change 489dca71cd99b...
Stephan Witt [Mon, 4 Jul 2016 06:33:03 +0000 (08:33 +0200)]
Fix missing include for malloc prototype after header cleanup in change 489dca71cd99bbc78780fa40311a2eb042c0320e

7 years agoAmend 670efa8f
Guillaume Munch [Mon, 4 Jul 2016 02:43:22 +0000 (04:43 +0200)]
Amend 670efa8f

Lost in rebasing.

7 years agoRationalise includes
Guillaume Munch [Sun, 19 Jun 2016 02:39:38 +0000 (03:39 +0100)]
Rationalise includes

Modifying TexRow.h or texstream.h no longer triggers the recompilation of the
complete source tree.

7 years agoNot in tree anymore.
Pavel Sanda [Sun, 3 Jul 2016 23:39:57 +0000 (16:39 -0700)]
Not in tree anymore.

Uwe, watch your step.

7 years agoMatch code with comment
Guillaume Munch [Sun, 3 Jul 2016 23:03:36 +0000 (01:03 +0200)]
Match code with comment

The line felt too thin.

Note: I am still sceptical with the principle of an increase at the rate of
1/200% instead of 1/100%.

Also, I am sceptical with changing painting dimensions to int when Qt supports
doubles for everything (see e.g. 463bd17d). If the goal is to force
integer-width solid lines then one could try to disable antialiasing on Qt's
side.

I think the painter should move in the other direction, towards more doubles and
fewer ints. For instance, for Hi-DPI, Qt could probably take advantage of the
increased precision even without AA. (Then one would have to fix the problem
regarding uneven lines, mentioned in the above commit, in another fashion.)

7 years agoChange tracking cue: InsetText and InsetCollapsible
Guillaume Munch [Mon, 23 May 2016 09:01:29 +0000 (10:01 +0100)]
Change tracking cue: InsetText and InsetCollapsible

* Underline or strike through the label as if it was text (it is).

* Strike through deleted InsetText, but let RowPainter handle the case of
  non-MultiPar text insets.

* Change the colour of the frame as a cue, unless its colour is customised (not
  Color_foreground). (Essentially do the border of CharStyles like Tabular does
  it already.)

* The change info needs to be reset when entering InsetText. Otherwise labels
  are painted with the change of their n+1-th parent.

7 years agoBring window to front after loading a document
Enrico Forestieri [Sun, 3 Jul 2016 20:58:25 +0000 (22:58 +0200)]
Bring window to front after loading a document

Fixes #7875.

7 years agoFix regression of 6dfc25508
Georg Baum [Sun, 3 Jul 2016 17:41:04 +0000 (19:41 +0200)]
Fix regression of 6dfc25508

We need to remove the temp file now manually.

7 years agoFix linking with cmake and included iconv
Georg Baum [Sun, 3 Jul 2016 16:51:22 +0000 (18:51 +0200)]
Fix linking with cmake and included iconv

Previously, the GNU linker would complain about missing libcharset_relocate.
The MSVC linker did not complain, since the code that uses libcharset_relocate
does not seem to be sued, so it removed it.

7 years agoChange tracking cue: for Graphics
Guillaume Munch [Mon, 23 May 2016 16:01:48 +0000 (17:01 +0100)]
Change tracking cue: for Graphics

Strike through deleted graphics.

7 years agoChange tracking cue: for instant preview
Guillaume Munch [Mon, 23 May 2016 14:44:29 +0000 (15:44 +0100)]
Change tracking cue: for instant preview

Strike through deleted previews (expect for inline math where it is already taken care of by RowPainter).

7 years agoChange tracking cue: for display() math insets
Guillaume Munch [Mon, 23 May 2016 14:06:26 +0000 (15:06 +0100)]
Change tracking cue: for display() math insets

Strike through deleted display math insets.

7 years agoPainter: Add a line style to disable antialiasing
Guillaume Munch [Mon, 23 May 2016 10:38:48 +0000 (11:38 +0100)]
Painter: Add a line style to disable antialiasing

It is not possible to use opacity effects (such as drawing an antialiased line
to strike diagonally through an inset), until the painter is fixed so that it
does not redraw repeatedly over the same spot (otherwise, the usual aritfacs
appear).

For now, pixellated lines are OK.

7 years agoBeautify ToolTips in work area
Guillaume Munch [Sat, 11 Jun 2016 11:57:18 +0000 (12:57 +0100)]
Beautify ToolTips in work area

* Justification and nicer line breaks.

* Much nicer tooltip for lists of bibliographical references.

* Removed unnecessary iterated copies of the string buffer in
  InsetText::ToolTipText() which looked bad. This function used to be costly
  (cf64064), maybe it is quicker now.

7 years agoRemove tooltips from the data of Toc Items
Guillaume Munch [Mon, 6 Jun 2016 19:02:49 +0000 (20:02 +0100)]
Remove tooltips from the data of Toc Items

After the previous commit, tooltip in the outliner are formatted automatically,
along with the other tooltips. A previous commit had already removed the
expensive call to tooltipText() that, although it gave a better rendering, was
very expensive (cf64064). This patch finishes to remove the custom tooltip
from the model data in the outliner.

(It would be nice to reintroduce a tooltip based on tooltipText(), but there
seemed to be a consensus that in that case one would prefer a less expensive
approach that computes the tooltip on the fly.)

7 years agoGuiDocument: some polishing of the list of modules.
Guillaume Munch [Tue, 31 May 2016 17:47:29 +0000 (18:47 +0100)]
GuiDocument: some polishing of the list of modules.

* The tooltips in the list of modules now include the names of the modules.

* The tooltips of modules more consistent across the widgets.

* Sort the list of modules according to the locale (i.e. "É" comes before "F").

* Replace a hand-made sentence boundary finder by Qt's.

7 years agoRemove manual line breaks.
Guillaume Munch [Fri, 10 Jun 2016 23:11:42 +0000 (01:11 +0200)]
Remove manual line breaks.

Line breaks in tooltips are now done automatically, there is no more need to
break the strings explicitly.

7 years agoLine breaks in tooltips
Guillaume Munch [Sun, 5 Jun 2016 19:35:35 +0000 (21:35 +0200)]
Line breaks in tooltips

* New function formatToolTip(QString):

Format text for display as a ToolTip, breaking at lines of a certain
width. Note: this function is expensive. Better call it in a delayed manner,
i.e. not to fill in a model (see for instance the function
ToolTipFormatter::eventFilter).

* Install a global event filter that formats tooltips on-the-fly

Inspired from
https://github.com/bitcoin/bitcoin/pull/1090/commits/3793fa09ff920fc720dfad3738f105d2c9563662
but much improved.

When is formatToolTip called automatically? Whenever the tooltip is not already
rich text beginning with <html>, and is defined by the following functions:
 * QWidget::setToolTip(),
 * QAbstractItemModel::setData(..., Qt::ToolTipRole),
 * Inset::toolTip() (added in one of the subsequent patches)

In other words, tooltips can use Qt html and the tooltip will still be correctly
broken. Moreover, it is possible to specify an entirely custom tooltip (not
subject to automatic formatting) by giving it in its entirety, i.e. starting
with <html>.

7 years agoSimplifications, mainly removal of boost::function and useless std::bind
Guillaume Munch [Wed, 29 Jun 2016 09:22:13 +0000 (10:22 +0100)]
Simplifications, mainly removal of boost::function and useless std::bind

7 years agoSquash some warnings.
Richard Heck [Sat, 2 Jul 2016 18:12:34 +0000 (14:12 -0400)]
Squash some warnings.

7 years agoremove 2 outdated build scripts
Uwe Stöhr [Sat, 2 Jul 2016 17:40:18 +0000 (19:40 +0200)]
remove 2 outdated build scripts

LyX 2.3 cannot be compiled with MSVC 2010