]> git.lyx.org Git - lyx.git/log
lyx.git
7 years agoUse call_once to ensure something is only called once
Guillaume Munch [Sat, 30 Jul 2016 19:46:29 +0000 (20:46 +0100)]
Use call_once to ensure something is only called once

This is thread-safe.

7 years agoMake static counters atomic
Guillaume Munch [Sun, 10 Jul 2016 15:50:19 +0000 (16:50 +0100)]
Make static counters atomic

This ensures thread-safety

(requires: gcc >= 4.6, MSVC >= 2015)

7 years agoC++11 supports thread-safe initialization of statics
Guillaume Munch [Sat, 30 Jul 2016 19:28:44 +0000 (20:28 +0100)]
C++11 supports thread-safe initialization of statics

A static local variable is guaranteed to be initialized only once, and in time.

Lambda expressions can be used to perform complex initialization of those static
variables on the spot.

(starting from: gcc >= 4.8, msvc >= 2015)

7 years agoFix "scroll here" feature of scrollbar (#10311)
Guillaume Munch [Fri, 29 Jul 2016 20:27:13 +0000 (21:27 +0100)]
Fix "scroll here" feature of scrollbar (#10311)

Prevent setRange() from causing a recursive call to scrollTo(). Reduces three
calls of scrollTo() to one call for all scrolling functions of the scroll bar
(e.g. clicking on the arrow, dragging, or clicking somewhere on the scrollbar).

7 years agoBasic implementation of QSignalBlocker for qt4
Guillaume Munch [Fri, 29 Jul 2016 20:18:43 +0000 (21:18 +0100)]
Basic implementation of QSignalBlocker for qt4

7 years agoFix typo in new dia converter.
Richard Heck [Sun, 31 Jul 2016 16:46:12 +0000 (12:46 -0400)]
Fix typo in new dia converter.

7 years agoCustomization.lyx: port recent changes to master
Uwe Stöhr [Sun, 31 Jul 2016 08:43:00 +0000 (10:43 +0200)]
Customization.lyx: port recent changes to master

7 years agoCustomization.lyx: accept Richards changes
Uwe Stöhr [Sun, 31 Jul 2016 08:37:28 +0000 (10:37 +0200)]
Customization.lyx: accept Richards changes

Richard, please do everything that does not depend on LyX 2.3 this in the 2.2.x branch. Also don't upgrade the fileformat if not necessary.

7 years agoFix output of floats, etc, inside environments.
Richard Heck [Sun, 31 Jul 2016 07:18:32 +0000 (03:18 -0400)]
Fix output of floats, etc, inside environments.

Fixes bug #9094.

7 years agoRename, for a little clarity.
Richard Heck [Sun, 31 Jul 2016 07:03:26 +0000 (03:03 -0400)]
Rename, for a little clarity.

7 years agoAdd 'dir="auto"' to the body tag for XHTML export. This should take
Richard Heck [Sun, 31 Jul 2016 06:52:30 +0000 (02:52 -0400)]
Add 'dir="auto"' to the body tag for XHTML export. This should take
care of much of what we need to do for RTL languages. It does not
take care of inline language changes, probably.

7 years agoAlignment
Richard Heck [Sun, 31 Jul 2016 06:49:38 +0000 (02:49 -0400)]
Alignment

7 years agoFix display of code listings in XHTML.
Richard Heck [Sun, 31 Jul 2016 05:47:30 +0000 (01:47 -0400)]
Fix display of code listings in XHTML.

Fixes bug #8362.

7 years agoEnable export of spreadsheets with XHTML.
Richard Heck [Sun, 31 Jul 2016 05:20:16 +0000 (01:20 -0400)]
Enable export of spreadsheets with XHTML.

7 years agoDummy export for spreadsheets: plaintext and DocBook.
Richard Heck [Sun, 31 Jul 2016 04:53:12 +0000 (00:53 -0400)]
Dummy export for spreadsheets: plaintext and DocBook.

7 years agoExport external raster graphics as png for XHTML.
Richard Heck [Sun, 31 Jul 2016 04:41:23 +0000 (00:41 -0400)]
Export external raster graphics as png for XHTML.

7 years agoExport external vector graphics as svg for XHTML.
Richard Heck [Sun, 31 Jul 2016 04:40:16 +0000 (00:40 -0400)]
Export external vector graphics as svg for XHTML.

7 years agoEnable SVG export of XFig figures for XHTML.
Richard Heck [Sun, 31 Jul 2016 04:28:37 +0000 (00:28 -0400)]
Enable SVG export of XFig figures for XHTML.

7 years agoActivate export of chess diagrams for XHTML.
Richard Heck [Sun, 31 Jul 2016 03:17:15 +0000 (23:17 -0400)]
Activate export of chess diagrams for XHTML.

7 years agoEnable XHTML export of LilyPond files.
Richard Heck [Sun, 31 Jul 2016 04:36:46 +0000 (00:36 -0400)]
Enable  XHTML export of LilyPond files.

7 years agoAllow XHTML export of Dia diagrams.
Richard Heck [Sun, 31 Jul 2016 04:52:22 +0000 (00:52 -0400)]
Allow XHTML export of Dia diagrams.

7 years agoActivate export of external material for XHTML.
Richard Heck [Sun, 31 Jul 2016 02:42:01 +0000 (22:42 -0400)]
Activate export of external material for XHTML.

As of this commit, this is ineffective, since no changes have been
made to external_templates.

7 years agoFix some wrongly converted "LaTeX" logos.
Richard Heck [Sun, 31 Jul 2016 04:37:50 +0000 (00:37 -0400)]
Fix some wrongly converted "LaTeX" logos.

7 years agoFix substitution for $$Contents.
Richard Heck [Sun, 31 Jul 2016 04:15:48 +0000 (00:15 -0400)]
Fix substitution for $$Contents.

The second argument here is the length of the string to replace,
not the position of the final character.

7 years agowhitespace
Richard Heck [Sun, 31 Jul 2016 04:15:42 +0000 (00:15 -0400)]
whitespace

7 years agoFix preview of external material with plaintext and DocBook.
Richard Heck [Sun, 31 Jul 2016 03:48:27 +0000 (23:48 -0400)]
Fix preview of external material with plaintext and DocBook.

7 years agoFix indentation of fen2ascii script so it will run.
Richard Heck [Sun, 31 Jul 2016 03:17:30 +0000 (23:17 -0400)]
Fix indentation of fen2ascii script so it will run.

7 years agoUse scaling factor in XHTML output.
Richard Heck [Sun, 31 Jul 2016 01:57:52 +0000 (21:57 -0400)]
Use scaling factor in XHTML output.

7 years agoIf we cannot find the input format for a graphic, we cannot convert it.
Richard Heck [Sun, 31 Jul 2016 01:51:25 +0000 (21:51 -0400)]
If we cannot find the input format for a graphic, we cannot convert it.

Also includes some minor code cleanup.

7 years agoFix some symbols that are displayed incorrectly in MathML export.
Richard Heck [Sun, 31 Jul 2016 01:08:06 +0000 (21:08 -0400)]
Fix some symbols that are displayed incorrectly in MathML export.

7 years agoFix output of table borders for XHTML. Fixes bug #10154.
Richard Heck [Sat, 30 Jul 2016 23:41:51 +0000 (19:41 -0400)]
Fix output of table borders for XHTML. Fixes bug #10154.

7 years agoRevert most of dd7863b6.
Richard Heck [Sat, 30 Jul 2016 05:42:08 +0000 (01:42 -0400)]
Revert most of dd7863b6.

I did not mean to commit the caption-related stuff.

7 years agoWhitespace.
Richard Heck [Sat, 30 Jul 2016 05:35:22 +0000 (01:35 -0400)]
Whitespace.

7 years agoFix thinko from earlier commit.
Richard Heck [Sat, 30 Jul 2016 05:29:06 +0000 (01:29 -0400)]
Fix thinko from earlier commit.

We need to output the deferred material AFTER the paragraph is closed.

7 years agoFix HTML display of math matrices.
Richard Heck [Sat, 30 Jul 2016 04:25:09 +0000 (00:25 -0400)]
Fix HTML display of math matrices.

7 years agoFix CSS for math cases.
Richard Heck [Sat, 30 Jul 2016 04:15:33 +0000 (00:15 -0400)]
Fix CSS for math cases.

Fixes bug #8755.

7 years agoSimplify CSS classes for floats.
Richard Heck [Sat, 30 Jul 2016 04:03:35 +0000 (00:03 -0400)]
Simplify CSS classes for floats.

Fixes bug #8605 and probably parts of #8755 and #9328.

7 years agoBe more careful with braces, due to comments.
Richard Heck [Sat, 30 Jul 2016 03:59:24 +0000 (23:59 -0400)]
Be more careful with braces, due to comments.

7 years agoSimplify and unify code for special handling in argument insets.
Richard Heck [Sat, 30 Jul 2016 03:38:51 +0000 (23:38 -0400)]
Simplify and unify code for special handling in argument insets.

7 years agoFix display of colors in labels of arguments.
Richard Heck [Sat, 30 Jul 2016 03:36:48 +0000 (23:36 -0400)]
Fix display of colors in labels of arguments.

We need to handle this specially, just as we do the main font.

7 years agoFix display of branch buttons and tooltips.
Richard Heck [Sat, 30 Jul 2016 02:58:03 +0000 (22:58 -0400)]
Fix display of branch buttons and tooltips.

7 years agoUpdate sk.po
Kornel Benko [Fri, 29 Jul 2016 18:25:22 +0000 (20:25 +0200)]
Update sk.po

7 years agoRemove the now unused lyx::support::expandPath()
Scott Kostyshak [Fri, 29 Jul 2016 17:15:41 +0000 (13:15 -0400)]
Remove the now unused lyx::support::expandPath()

The function is no longer used in LyX's sources (as of the previous
comit, 9b64d7bd) and is thus removed with this commit. Perhaps the
advantage this function had over other path functions we have has
disappeared over time (see e.g. 1a7b7f65).

7 years agoRel. path in paths prefs preserved as rel. paths
Scott Kostyshak [Fri, 29 Jul 2016 17:13:55 +0000 (13:13 -0400)]
Rel. path in paths prefs preserved as rel. paths

Before this commit, in the paths preferences tab if you put a
relative path, LyX would convert it behind the scenes to an absolute
path by evaluating the relative path with respect to the working
directory of the LyX instance where the preference change is taking
place. This seems confusing because (1) it is done behind the scenes
(after the preferences dialog is closed) and (2) if the user chooses
to enter a relative path, the safest thing to do is to preserve it
as a relative path, instead of making the assumption that the user
intended for it to be expanded to an absolute path.

An explanation of how relative paths are handled is given at the
bottom of the paths tab. Note that the height/width of the
preferences window is not changed as a result of adding this
explanatory comment because the height of the preferences dialog is
already stretched by other tabs.

This commit improves consistency in the sense that the behavior of
LyX is now the same when a relative path is specified in the
preferences dialog as when it is manually specified in the
preferences file. Before, if the preferences file were manually
edited and a relative path were inserted, the next time the user
made a change to preferences with the GUI (even if the preference
change was a different preference, e.g. instant preview), the
relative path would be silently converted to an absolute path,
evaluated with respect to the working directory of that instance.

Beyond improving clarity and consistency (IMO), this commit allows
for a new feature to be implemented of using relative paths in the
paths preferences. For example, the user may now enter '.' as the
"Working directory" path and now whenever they start LyX from a
directory and create a new file, the default location of the file
will be the directory from which they started LyX, instead of the
user's home directory which is LyX's default and is less intuitive.

No prefs2prefs work is needed because if a relative path were
entered in the preferences dialog before this commit, it was
converted to an absolute path before being stored in preferences. If
a relative path were specified by manually editing the preferences
file, then (unless the path were already automatically converted to
an absolute path by a GUI preferences change, as described above)
the behavior will be the same (the path will be treated as a
relative path).

For related discussion, see the lyx-devel thread here:
https://www.mail-archive.com/search?l=mid&q=20160616003010.bnymtcouar7g55ti%40cotopaxi

This commit removes the last use of lyx::support::expandPath() in
LyX's sources.

7 years agoConst a function parameter
Scott Kostyshak [Fri, 29 Jul 2016 17:07:00 +0000 (13:07 -0400)]
Const a function parameter

7 years agoImprove implementation of TabWorkArea::posIsTab()
Scott Kostyshak [Fri, 29 Jul 2016 17:06:49 +0000 (13:06 -0400)]
Improve implementation of TabWorkArea::posIsTab()

The Qt documentation states that tabAt() returns -1 if the position
is not over a tab. This behavior has been consistent since Qt 4.3
[1]. This commit's improvement likely makes the code faster in two
ways:

(1) we do not need to loop through potentially all tabs
(2) we only need to look up the tab index corresponding with one
position

posIsTab() is not currently used intensively so no practical gain in
speed is achieved, but it protects against future use.

[1] https://doc.qt.io/archives/4.3/qtabbar.html#tabAt

7 years agoTypo
Kornel Benko [Wed, 27 Jul 2016 05:58:56 +0000 (07:58 +0200)]
Typo

7 years agoCmake build: Make missing polib less destructive.
Kornel Benko [Wed, 27 Jul 2016 05:34:50 +0000 (07:34 +0200)]
Cmake build: Make missing polib less destructive.

Configure still whines, but proceeds succesfull.
Only the target 'layouttranslations1' will fail.

7 years agowin installer: port recent changes from branch
Uwe Stöhr [Tue, 26 Jul 2016 21:41:23 +0000 (23:41 +0200)]
win installer: port recent changes from branch

7 years agoCmake build: Added check for pythons polib module
Kornel Benko [Sun, 24 Jul 2016 09:20:08 +0000 (11:20 +0200)]
Cmake build: Added check for pythons polib module

Idea stolen from http://public.kitware.com/pipermail/cmake/2011-January/041666.html

7 years agoAdd comment + factor out the error checking
Kornel Benko [Sun, 24 Jul 2016 07:30:14 +0000 (09:30 +0200)]
Add comment + factor out the error checking

7 years agoDocument closing a tab with middle-click
Scott Kostyshak [Sun, 24 Jul 2016 05:37:33 +0000 (01:37 -0400)]
Document closing a tab with middle-click

This commit documents the feature introduced at 4803c769, which
fixed #10288.

The User Guide already has a section on closing tabs, so this fits
in well.

7 years agoCmake build: Make sure that a sequence of commands to recreate layouttranslations...
Kornel Benko [Sat, 23 Jul 2016 18:30:45 +0000 (20:30 +0200)]
Cmake build: Make sure that a sequence of commands to recreate layouttranslations failes

Factored out the sequence into one cmake-script.
Previously it could happen that the python script failed, but the following
command was successfull and so the error was hidden.

7 years agoFix hang reported at #10307.
Richard Heck [Sat, 23 Jul 2016 17:42:54 +0000 (13:42 -0400)]
Fix hang reported at #10307.

Also, add a FIXME explaining what we'd need to do to fix the
convert_TeX_brace_to_Argument routine properly.

7 years agoClose a tab on middle-click (#10288)
Scott Kostyshak [Wed, 13 Jul 2016 06:42:35 +0000 (02:42 -0400)]
Close a tab on middle-click (#10288)

This is the default behavior of Chromium and Firefox. The main
appeal is that instead of having to precisely click on the 'x' to
close a tab, one can more easily middle-click anywhere in the tab.

The tab is closed if the middle button is pressed on a tab and is
relased on the same tab. After pressing, the user may move the mouse
over other tabs but as long as they move it back to the tab where
they initiated the press before they release, the close will
execute. This is how the feature works in Chromium and Firefox.

Nothing is done if the user middle-clicks on the blank part of the
tab bar. This is consistent with Chromium. Firefox, on the other
hand, opens a new tab. In LyX one can already double-click the blank
part to open a new tab, and in feedback from lyx-users [1] most
expected and desired that nothing be done in this case.

[1] https://www.mail-archive.com/search?l=mid&q=20160720063306.6fyarf3kywexbxvd%40steph

7 years agoFactor out useful code into a function
Scott Kostyshak [Thu, 21 Jul 2016 23:16:19 +0000 (19:16 -0400)]
Factor out useful code into a function

This code will be shared by TabWorkArea::mouseReleaseEvent,
which will be implemented shortly.

7 years agoAdd comment that a code chunk is unnecessary
Scott Kostyshak [Thu, 21 Jul 2016 23:14:16 +0000 (19:14 -0400)]
Add comment that a code chunk is unnecessary

A chunk of code in an event handler seems to be unnecessary to me
because the event that the situation handles never makes it this far
in the event handling hierarchy. I'm not sure why this is, and thus
I'm not sure if this is true in all cases (e.g. Qt version) and if
it will be true in the future so I leave this code for now.

7 years agoRecompute Paragraph::beginOfBody() earlier
Jean-Marc Lasgouttes [Thu, 21 Jul 2016 08:21:45 +0000 (10:21 +0200)]
Recompute Paragraph::beginOfBody() earlier

In redoParagraph, this should be done before coping with the insets,
other wise some graphic gliches may occur. This is a better fix for

Fixes bug #10163.

7 years agoRevert "Reset beginOfBody() when changing paragraph layout"
Jean-Marc Lasgouttes [Thu, 21 Jul 2016 08:15:39 +0000 (10:15 +0200)]
Revert "Reset beginOfBody() when changing paragraph layout"

This reverts commit ef8e499821a789461b11df6994ec6b471d58dadb.

7 years agoReset beginOfBody() when changing paragraph layout
Jean-Marc Lasgouttes [Wed, 20 Jul 2016 23:56:22 +0000 (01:56 +0200)]
Reset beginOfBody() when changing paragraph layout

This looks like a trivial thing to do, and it avoids some drawing problems.

Fixes bug #10163.

7 years agoWhen painting only insets, paint also change and language marks
Jean-Marc Lasgouttes [Wed, 20 Jul 2016 21:25:17 +0000 (23:25 +0200)]
When painting only insets, paint also change and language marks

Fixes bug #8133.

7 years agoCmake build with Qt4: Link lyx executable also to X11 library
Kornel Benko [Wed, 20 Jul 2016 00:10:23 +0000 (02:10 +0200)]
Cmake build with Qt4: Link lyx executable also to X11 library

With the commit cb0c881 we reference XSendEvent in X11-lib
if qt uses X11.
For QT5, this library is pulled by Qt5X11Extras, but
for QT4 we have to add it too.

Spotted by Scott Kostyshak.

7 years agoTry to fix #4889 in the right way
Jean-Marc Lasgouttes [Tue, 19 Jul 2016 22:12:21 +0000 (00:12 +0200)]
Try to fix #4889 in the right way

For reference, the bug was that quote insets grew bolder because, when
painted over themselves, anti-aliasing made them darker.

It turned out that the fix there created others than were
painstakingly fixed: #7164, #7165, #7174, #7193... More recently, it
created other problems:
http://article.gmane.org/gmane.editors.lyx.devel/163471

We use the right fix here:
* draw background of quote inset when not doing full repaint
* draw background of math macro template when not doing full repaint
* remove hack that grew from #4889 fix.

7 years agoRealize inset argument label font before using it
Jean-Marc Lasgouttes [Tue, 19 Jul 2016 20:29:57 +0000 (22:29 +0200)]
Realize inset argument label font before using it

7 years agoUpdate qpdfview info on inverse search
Enrico Forestieri [Tue, 19 Jul 2016 09:31:36 +0000 (11:31 +0200)]
Update qpdfview info on inverse search

7 years agoImprove documentation of LFUN_BUFFER_ZOOM_{IN,OUT}
Scott Kostyshak [Tue, 19 Jul 2016 06:11:27 +0000 (02:11 -0400)]
Improve documentation of LFUN_BUFFER_ZOOM_{IN,OUT}

The default for ZOOM_OUT is -20 from a user perspective. That is,
the following are equivalent:

  buffer-zoom-out -20
  buffer-zoom-out

The reason for this is that the argument to ZOOM_OUT is treated the
exact same way as ZOOM_IN. The only way they differ is how the
default case is handled.

This commit also clarifies that (1) the argument may be positive or
negative and that (2) the argument is interpreted as percentage
points, not percent.

7 years agoUpdate LFUNs.lyx to describe branch-invert
Scott Kostyshak [Tue, 19 Jul 2016 05:55:02 +0000 (01:55 -0400)]
Update LFUNs.lyx to describe branch-invert

7 years agoFix cut and paste error in last commit.
Richard Heck [Mon, 18 Jul 2016 17:53:40 +0000 (13:53 -0400)]
Fix cut and paste error in last commit.

Also, we can just realize the font ourselves here.

7 years agoDo not crash is release mode if we stumble across an unrealized font.
Richard Heck [Mon, 18 Jul 2016 17:01:42 +0000 (13:01 -0400)]
Do not crash is release mode if we stumble across an unrealized font.

7 years agoRevert "Do not crash is release mode if we stumble across an unrealized font."
Richard Heck [Mon, 18 Jul 2016 16:59:18 +0000 (12:59 -0400)]
Revert "Do not crash is release mode if we stumble across an unrealized font."

This reverts commit c560e6b3a6ae36ad9a333fe98da3b8688dfa2236.

I did not mean to comit the changes to the gmo files.

7 years agoDo not crash is release mode if we stumble across an unrealized font.
Richard Heck [Mon, 18 Jul 2016 16:56:20 +0000 (12:56 -0400)]
Do not crash is release mode if we stumble across an unrealized font.

7 years agoAdd feedback in status bar when zooming
Jean-Marc Lasgouttes [Mon, 18 Jul 2016 14:44:06 +0000 (16:44 +0200)]
Add feedback in status bar when zooming

Moreover enforce better the lower limit of 10 and avoid overflow due
to unsigned int.

Fixes bug #10212.

7 years agoWhitespace.
Juergen Spitzmueller [Mon, 18 Jul 2016 14:28:12 +0000 (16:28 +0200)]
Whitespace.

7 years agoTypo
Jean-Marc Lasgouttes [Mon, 18 Jul 2016 14:24:06 +0000 (16:24 +0200)]
Typo

7 years agoRemove obviously wrong documentation in Painter.h
Jean-Marc Lasgouttes [Mon, 18 Jul 2016 14:17:38 +0000 (16:17 +0200)]
Remove obviously wrong documentation in Painter.h

7 years agoSome things did not need to be mutable after all
Jean-Marc Lasgouttes [Mon, 18 Jul 2016 12:34:08 +0000 (14:34 +0200)]
Some things did not need to be mutable after all

7 years agoRemove mutable variable InsetTabular::offset_valign_
Jean-Marc Lasgouttes [Mon, 18 Jul 2016 10:37:14 +0000 (12:37 +0200)]
Remove mutable variable InsetTabular::offset_valign_

Introduce instead a function Tabular::offsetVAlignment() that does the
same thing.

7 years agoGet rid of InsetTabular::first_visible_cell_
Jean-Marc Lasgouttes [Mon, 18 Jul 2016 10:24:31 +0000 (12:24 +0200)]
Get rid of InsetTabular::first_visible_cell_

The code that uses it has been commented out since 2004. It is time to
delete it.

7 years agoSimplify display of InsetQuote
Jean-Marc Lasgouttes [Mon, 18 Jul 2016 10:17:01 +0000 (12:17 +0200)]
Simplify display of InsetQuote

The code that specializes for double elements in the display string
does not trigger anymore: displayString() returns a single unicode
value, plus some space for french guillemets.

Use a thin space for these french quotes instead of a plain space and
remove special case in metrics().

7 years agoautoconf: Check for C++11 and std::regex soon in LYX_PROG_CXX
Jean-Marc Lasgouttes [Mon, 18 Jul 2016 09:53:30 +0000 (11:53 +0200)]
autoconf: Check for C++11 and std::regex soon in LYX_PROG_CXX

This makes the test for std::regex a bit faster.

7 years agoThe way this was previously, it had to fail if the GUI language
Richard Heck [Mon, 18 Jul 2016 02:50:17 +0000 (22:50 -0400)]
The way this was previously, it had to fail if the GUI language
was not English: We return the the abbreviated author "One and Two",
but translated to the GUI language; then we search that for " and "
in order to pull the authors apart again.

I've just replaced the distinct routines with a single one that handles
both cases, depending upon whether a Buffer is provided as one argument.

7 years agoFix thinko that led 2-authors citations to be displayed with "et al."
Richard Heck [Mon, 18 Jul 2016 02:31:54 +0000 (22:31 -0400)]
Fix thinko that led 2-authors citations to be displayed with "et al."

7 years agoINSTALL.Win32: a typo
Uwe Stöhr [Sun, 17 Jul 2016 23:45:24 +0000 (01:45 +0200)]
INSTALL.Win32: a typo

7 years agoINSTALL.Win32: mention the new Wiki page
Uwe Stöhr [Sun, 17 Jul 2016 23:44:19 +0000 (01:44 +0200)]
INSTALL.Win32: mention the new Wiki page

7 years agoUse a more portable construct
Enrico Forestieri [Sun, 17 Jul 2016 21:50:34 +0000 (23:50 +0200)]
Use a more portable construct

Some shells do not understand the $() notation for command substitution.

7 years agoFix i18n.inc creation with some out of tree builds
Jean-Marc Lasgouttes [Sun, 17 Jul 2016 19:59:56 +0000 (21:59 +0200)]
Fix i18n.inc creation with some out of tree builds

Actually, POFILES already contains the relative path to the po files,
so that the old code was only working by chance when the source and
build directories were at same level.

7 years agoCheck path of Qt tools if qtchooser is detected
Enrico Forestieri [Sun, 17 Jul 2016 10:31:24 +0000 (12:31 +0200)]
Check path of Qt tools if qtchooser is detected

The full path of the tools is retained only if the Qt directory is
specified using --with-qt-dir. Now, when qtchooser was detected it
was blindly assumed that the corresponding system tools were being
used. These tools discriminate between Qt4 and Qt5 through the
option -qt=qt4 or -qt=qt5. However, the original Qt tools don't
understand these options, so that if they come first in the PATH,
configuration fails. So, only use those options if we are reasonably
sure that the system Qt is wanted. This is achieved by comparing the
paths of qtchooser and tools as, typically, they are located in the
same directory. In this way, if one prepends the bin directory of a
custom Qt build to PATH (and accordingly adjusts PKG_CONFIG_PATH),
configuration succeeds even if --with-qt-dir is not specified.

7 years agoAmmend c169861
Kornel Benko [Sat, 16 Jul 2016 20:03:56 +0000 (22:03 +0200)]
Ammend c169861

7 years agodoc files: remove unnecessary TeX braces
Uwe Stöhr [Sat, 16 Jul 2016 10:45:51 +0000 (12:45 +0200)]
doc files: remove unnecessary TeX braces

7 years agoMath.lyx: add shortcuts for font styles
Uwe Stöhr [Sat, 16 Jul 2016 00:31:34 +0000 (02:31 +0200)]
Math.lyx: add shortcuts for font styles

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