Commit Graph

35528 Commits

Author SHA1 Message Date
Guillaume Munch
a73f2e6eb6 Autotools: restore deprecation warning
-Wno-deprecated-declarations was added at 314a121c.
2016-06-09 15:21:39 +01:00
Guillaume Munch
557975a8de Replace auto_ptr with unique_ptr
This is a mechanical replacement. For now it seems that unique_ptrs are
essentially used for exception-safety. More could certainly be done to clarify
pointer ownership in general.
2016-06-09 15:21:39 +01:00
Guillaume Munch
af5f69cea7 unique_ptr and make_unique 2016-06-09 15:21:39 +01:00
Jean-Marc Lasgouttes
af6a164e3c Initialize all MathMacroTemplate members in constructors
Found by coverity.
2016-06-09 16:19:31 +02:00
Jean-Marc Lasgouttes
8cd8080322 Please Coverity (code should be equivalent)
The parameter passed to allowDisplayMath will need to be copied, so it
made sense to pass it by value. Since Coverity complains about that,
the code is rewritten to make the copy explicit.
2016-06-09 16:02:39 +02:00
Jean-Marc Lasgouttes
731dbddd11 Annotate source code to please coverity
This code is signalled as a copy and paste error, but it is a false
positive.

According to the documentation, adding a comment starting with
  // coverity[name_of_error]
should be enough to flag the false positive.
2016-06-09 15:51:07 +02:00
Jean-Marc Lasgouttes
5e5440f2f3 Fix right_boundary properly after a row is shortened
Instead of resetting it to false, do a proper test to see whether
there is a separator at the end of the row.

Fixes bug #10180.
2016-06-09 10:48:15 +02:00
Pavel Sanda
3f4901de9c Improve build for FreeBSD.
Patch from Shankar Giri Venkita Giri.
2016-06-08 19:33:08 -07:00
Uwe Stöhr
3433888046 Win installer: new version with Qt 5.6.1
- the update to JabRef 3.4 which fixes installation problems if user has no admin privileges
- also update MiKTeX and ImageMagick
2016-06-09 02:14:28 +02:00
Georg Baum
e93013057f Add missing backslashes
Found by 2to3, but useful for python2 as well for consistency reasons.
2016-06-08 22:17:14 +02:00
Georg Baum
d0aa7d24ab Make scripts python3 compatible
Again using 2to3 and manual checking
2016-06-08 20:02:33 +02:00
Georg Baum
73a5e423bd Make configure.py python3 compatible
This was done using 2to3 and manual tweaking afterwards to ensure that it
works with python2 as well.
2016-06-08 19:29:15 +02:00
Georg Baum
7328cc0cc0 Make commented code python3 compatible 2016-06-08 18:41:57 +02:00
Kornel Benko
8019732b39 Cmake build: Check for QPA_XCB when QT_USES_X11 is known
Since QT_USES_X11 is determined in ConfigureChecks
we have to check after this call
2016-06-08 09:21:48 +02:00
Georg Baum
8a20f4b394 Mention C++11 requirement in INSTALL
Thanks to Scott and Jean-Marc for pointing that out, I forgot it.
2016-06-07 22:29:38 +02:00
Georg Baum
3611d90ffe We do not use the provided MSVC proj files 2016-06-07 22:19:10 +02:00
Georg Baum
7d558d3e2a Remove boost::typeof
Jean-Marc found out that we do not need it.
2016-06-07 22:10:49 +02:00
Georg Baum
2a3efc1585 Update boost to version 1.61
I updated using the new extract script. This gets rid of boost::bind, but the
other parts are still needed internally.
2016-06-07 21:14:12 +02:00
Georg Baum
bdbe81be15 Remove unneeded files from extract.sh
We do require less files from boost now.
2016-06-07 21:10:19 +02:00
Georg Baum
0f5554a8f2 Remove zombie noncopyable.hpp dependency
The header was still included, but not used.
2016-06-07 20:49:27 +02:00
Georg Baum
273c67d8aa Require a C++11 compiler
As discussed on the list. If no C++11 compiler is found configuration stops
with an error. There are now unneeded parts of boost, the will be removed in
a second commit.
2016-06-07 20:34:52 +02:00
Kornel Benko
9dd695b17a Cmake build: Correct some installation paths 2016-06-07 14:38:20 +02:00
Richard Heck
6f88e11da3 Fix bug #10194: Space missing in UI. 2016-06-06 20:41:07 -04:00
Richard Heck
b3cf3b67d9 Fix some problems with the preamble in th eKoma-script letter
template.

Thanks to Richard Talley for the report.
2016-06-06 19:55:54 -04:00
Georg Baum
41fda35c59 Fix cppcheck initialization warnings 2016-06-06 21:55:39 +02:00
Georg Baum
03395b7871 Rethrow excepction instead of a copy
This fixes the cppcheck warning "(style) Throwing a copy of the caught
exception instead of rethrowing the original exception."
2016-06-06 21:52:52 +02:00
Georg Baum
42362cfb87 Remove duplicated if clause
This was a thinko in 760b7cf2 (found by cppcheck), it was added in 977bbd9b as
well.
2016-06-06 20:33:31 +02:00
Scott Kostyshak
b1bc328396 Start a fresh RELEASE-NOTES 2016-06-06 04:57:47 -04:00
Kornel Benko
06539caccb Cmake build: Refactor determination of destination paths. 2016-06-06 08:29:07 +02:00
Kornel Benko
b5c87f2963 Cmake build: Set new installation paths
For a suffixed version (with suffix 2.3) and installation dir (/usr/local)
the new paths are:
binary -> /usr/local/bin
system-lib -> /usr/local/share/lyx2.3
fonts -> /usr/local/fonts/truetype/lyx2.3
manuals -> /usr/local/man/man1
locales -> /usr/local/share/locale
tex -> /usr/local/texmf/tex/latex/lyx2.3
2016-06-05 22:59:13 +02:00
Georg Baum
0009732fe8 Fix encoding for computer modern fonts
The essential hints came from Guillaume amd Jean-Marc at bug #8883.
Tested by comparing the output of

python generate_symbols_list.py `kpsewhich fontmath.ltx`

with lib/symbols.
2016-06-05 16:53:55 +02:00
Georg Baum
961d629301 Make generate_symbols_list.py python3 compatible 2016-06-05 16:39:19 +02:00
Kornel Benko
7c0eba4d75 Cmake build: Allow user defined suffix for program files 2016-06-05 16:26:59 +02:00
Georg Baum
c2433d8b8f Implement gcc version check for cmake 2016-06-05 15:54:29 +02:00
Georg Baum
ad63374e26 Require at least gcc 4.3
This is a prerequisite for mandatory C++11 support.
I could not find a cmake gcc version check btw.
2016-06-05 15:40:00 +02:00
Georg Baum
2ba8705435 Fix svgz output path
In the old script the output path given on the command line was ignored,
because of teh way how dvisgm expects commandline options.
2016-06-05 13:28:06 +02:00
Georg Baum
a847fef684 Merge generate_symbols_* scripts
Most of the code was identical, but the templates are sifferent, so they are
not merged.
2016-06-05 13:21:03 +02:00
Georg Baum
888662c4ef Update image template docs to current format 2016-06-05 12:56:32 +02:00
Georg Baum
96d63d28a7 Prepare generate_symbols* for python3
This is the usual encoding and print stuff, but the scripts don't run yet
under python 3 because of the missing Image module.
2016-06-05 12:51:07 +02:00
Georg Baum
e9fa76054e Look for svgz images as well
Almost all toolbar images are now in svgz format, bu thos were not found by
the scripts.
2016-06-05 12:25:48 +02:00
Scott Kostyshak
dc52bdf647 configure: Add export format for 2.2.x 2016-06-05 03:53:57 -04:00
Georg Baum
8e7bed57da Adjust generate_symbols* to db363ab1
The image map was renamed, so it was not found anymore.
2016-06-04 20:13:37 +02:00
Georg Baum
f965fc95f6 Make unicodesymbols.py python3 compatible 2016-06-04 19:58:42 +02:00
Georg Baum
0560e5df04 Update gen_lfuns.py to current format
And run it to update LFUNs.lyx. This overtakes the  syntax fix from b356df7fc
as well.
2016-06-04 19:46:40 +02:00
Georg Baum
d9703617bd Make gen_lfuns.py python3 compatible
Also read files with universal line endings and write files using native line
endings, so the script can also be used on windows without changing the line
endings.
2016-06-04 19:40:53 +02:00
Georg Baum
7ead59da40 Remove convert_kmap.py
This was used to convert LaTeX symbols in kmap files in 2007, we do not
need it anymore.
2016-06-04 19:09:44 +02:00
Georg Baum
960bcc71c1 Get rid of pseudo diffs when remerging strings
cmake sorts the input files for lyx_pot.py internally, but autotools use a
shell pattern like *.ui on the command line, so the order may be different
on different machines. It is more robust not to require any sorting from the
caller, so lyx_pot.py sorts now internally.
2016-06-04 17:33:19 +02:00
Georg Baum
bf60696ee6 update test references for ba2b86fa 2016-06-04 17:00:17 +02:00
Georg Baum
6bd5263405 Work around limited SVG support (bug #9778)
Qt only supports SVG 1.2 tiny, so we prefer to convert on our own if an
explicit converter is defined and the converter cache is used (otherwise
the conversion would be too expensive).
2016-06-04 09:09:33 +02:00
Kornel Benko
73f33d67d7 Update sk.po 2016-06-03 21:41:38 +02:00