Commit Graph

35630 Commits

Author SHA1 Message Date
Georg Baum
6390e6264e Fix version number 2016-05-05 13:39:45 +02:00
Georg Baum
23f5ae67c7 ja.gmo for cfa8d02029 2016-05-05 10:20:23 +02:00
Guillaume Munch
660a43ecf4 Clipboard: Retry on_dataChanged() after a delay on windows (#10109)
An undocumented behaviour of QClipboard::mimeData() is that it can fail on
windows due to the specificities of the windows API that allow a race condition.
In particular it seems that querying the clipboard as soon as the dataChanged()
signal is received favourises this race condition.

Thanks to Trac user bquistorff for the explanation and a proof of concept patch.
2016-05-04 19:20:56 +01:00
Guillaume Munch
8fd223146b Whitespace 2016-05-04 18:59:36 +01:00
Uwe Stöhr
b289c597ae Japanese doc files: big translation update fro 2.2.0 from Koji 2016-05-04 01:12:04 +02:00
Uwe Stöhr
cfa8d02029 ja.po: Update from Koji for 2.2.0 2016-05-04 01:08:56 +02:00
Guillaume Munch
5bfdaef980 TocWidget: clean-up the timer logic
The timer logic introduced to solve bug #7138 was not entirely reliable; in
particular it resulted in spurious updates (noticeable by the treeview
collapsing just after one opens a branch, in particular).

This commit cleans up the timer logic. I followed the original design decision
of having an immediate update followed by a delayed update. Now the updates are
appropriately compressed and done after a delay of 2s (as can be noticed with
the treeview still collapsing, unfortunately, but after a more predictable
delay...).
2016-05-03 17:20:58 +01:00
Guillaume Munch
90c8b0697f TocWidget: Fix perf regression
4d1ad336 fixed #9754 but caused perf issues by cancelling the gains of having a
timer (introduced after #7138). This introduces in GuiToc::enableView() a
lightweight check of whether the widget should be updated. The logic is inspired
from GuiViewSource::enableView().
2016-05-03 17:20:58 +01:00
Guillaume Munch
5b976a5ebc Whitespace 2016-05-03 17:20:57 +01:00
Jean-Marc Lasgouttes
79be66bdf1 Let getPosNearX take horizontal scrolling into account
If we do not do that, it is not possible to position the cursor after
a long inset with the mouse.

To do this, it is necessary to add the pit information to the Row
object. This is a good idea in any case, and will allow to simplify
some code later on.

Fixes bug #10094.
(cherry picked from commit 8851645799ef67015e49fd75b9dfeed65d685e85)
2016-05-03 10:53:10 +02:00
Jean-Marc Lasgouttes
390adf75c5 Add missing entry in status.22x
This was forgotten in fe5e1170.
2016-05-01 00:18:10 +02:00
Guillaume Munch
a5e2024fc4 status.22x 2016-04-30 16:07:51 +01:00
Jean-Marc Lasgouttes
fe5e117038 Fix cursor position after redo
When document settings are modified, a command
  inset-forall Branch inset-toggle asign
is run to open as needed all branches. At the end of the said loop,
the cursor is reset to where it was. However, the cur_after undo
element member is not set because it already had a value.

To make this work as expected, it is necessary in LFUN_INSET_FORALL to
reset the cursor before ending the undo group and to insert a dummy
recordUndo call.

Fixes bug #10097.

(cherry picked from commit 0036762f30def16ab8b2216f721f9e552893bc85)
2016-04-29 18:00:53 +02:00
Guillaume Munch
044933b0d9 Improvements to the shortcuts preference dialog (#9174)
Ask the user for removing bindings when using the "restore" button (#9174).

Fix the already-bound-key detection logic.

Don't forget to trigger the search when initializing the search LineEdit with
its former value.
2016-04-29 00:04:10 +01:00
Jean-Marc Lasgouttes
ff17b366a0 Resources.cpp is a built source, it should not be in SOURCEFILES
We want to avoid that Resources.cpp be distributed in the tar file.
2016-04-27 00:59:30 +02:00
Scott Kostyshak
2ab7c3ac11 RELEASE-NOTES: advise MSVC 2015 update 2 on Win
When compiling with Qt 5.6, MSVC 2015 update 2 is recommended in
order to avoid #9892.
2016-04-25 23:53:29 -04:00
Stephan Witt
21e4e939be Revert part of c053a9394d
This change introduced a regression and is not needed anymore.

(cherry picked from commit 1cbabdf8d51b26dd80677ddfeb64d13df91fefc0)
2016-04-25 20:59:25 +02:00
Enrico Forestieri
9384ed0f08 Update it.po 2016-04-25 17:36:51 +02:00
Georg Baum
04e4d6c4eb Update fuzzy translations from 2.1.x branch
This was done with
python ../lyx-2.3-staging/development/tools/mergepo.py -n -t po ../lyx-2.1/po

It should have been part of a26cdcb4ba, but the mergepo script did not overwrite
fuzzy translations with non-fuzzy ones at that time. Now 2.2 will not be missing
translations that are in 2.1 (but of course it might contain changed translations).
2016-04-24 21:33:38 +02:00
Georg Baum
4016d00c97 Forgot fi.gmo at 7eacd8d316 2016-04-24 20:44:31 +02:00
Georg Baum
dc38ae873a Fix bug 10074 (regression)
This was a regression of 8aa37c43. I did not take into account that end_pos
could be -1, so the code that checked whether a pair of braces needs to be
inserted between two hyphens did not work for that case. Now we check for
the length of text_, which should be done anyway, and only take end_pos into
account when it is not -1.
2016-04-24 20:12:43 +02:00
Georg Baum
7eacd8d316 Merge finnish translations from bug 10084
Jari-Matti provided an updated fi.po in bug 10084, but unfortunately I did not
see that before remerging the strings. Therefore, I did not take the updated
file directly, but downloaded it to /tmp/fi.po and merged the updates with

python ../lyx-2.3-staging/development/tools/mergepo.py -o -l fi -t po /tmp/

The two header changes were done manually. This way, the updated translations
are not hidden in lots of sorting changes. I had to use mergepo.py from 2.3
because the one in master does not treat fuzzy translations correctly.
2016-04-24 20:04:05 +02:00
Georg Baum
44f73d4c73 pt_BR.po: updates from Georger 2016-04-24 17:06:23 +02:00
Guillaume Munch
86227b196d Citation dialog: Fix trouble with openbox, fluxbox
http://thread.gmane.org/gmane.editors.lyx.devel/161725

These wms have trouble with the fix at b5a2f1c7, probably more precisely with
the trick to force the calculation of the actual sizes before the display
(layout->invalidate() and the code around it).

This patch gets rid of the code that forces the calculation. As a consequence,
the minimum sizes are again incorrect the first time the window is shown. They
are only correct the second time the window is shown. Now here is the trick: LyX
remembers the sizes of windows between sessions. Therefore, as soon as the good
minimum size has been set, the good size is remembered for the next
session. Thus, in the following sessions, even though the minimum size is
incorrect the first time, the dialog still opens with the good size. So the user
does not see the problem in practice, apart from the very first time.

This is meant as a temporary workaround.
2016-04-24 14:05:54 +01:00
Georg Baum
cfafffdf25 Remerge strings except for sv and fr
This is a complete remerge of strings (done with cmake) except for fr.po and
sv.po. Those files had already been remerged after the last string changes,
but they use a different sorting, so I did not want to produce an unneeded
diff.
The differences in the comment lines are a well known problem we have: The
last remerge was done on windows, mine was done on linux.
2016-04-24 10:57:36 +02:00
Georg Baum
7e75ebac45 fr.gmo for 79074e6c87 2016-04-23 11:26:28 +02:00
jpc
79074e6c87 Hopefully last update for 2.2.0 2016-04-22 22:55:47 +01:00
Jean-Marc Lasgouttes
c8e1c09236 Fix horizontal scrolling in full-width collapsable insets
While a one paragraph large collapsable inset (containing for example a tabular) could be very wide and trigger horizontal scrolling, the code that makes collapsable insets wide when they contain several paragraphs would actually make them narrower in this case.

Typical example is a wide tabular and a caption in a table float, where horizontal scrolling would not trigger.

(cherry picked from commit 8c7ace4b on 2.3.0-staging)
2016-04-22 15:31:40 +02:00
Richard Heck
74dd33e385 Updates to splitting of consecutive environments.
From Enrico.

(cherry picked from commit ee82dd604010d4c1bf250640a3df6d790ea08380)
2016-04-21 17:45:17 -04:00
Georg Baum
9bd6ed876f Update sv.gmo from sv.po
This has been forgotten in 93f58cb440
2016-04-21 21:52:44 +02:00
Georg Baum
57298bf59d Update pt_BR.gmo from pt_BR.po
This has been forgotten in c46d5ccdf6
2016-04-21 21:51:12 +02:00
Stephan Witt
24dfca3e2a Handle activateWindow in LFUN_BUFFER_SWITCH like in saveBufferIfNeeded() and doShowDialog() methods.
This is a requirement on Mac to get the current buffer view topmost after buffer switch.
2016-04-19 21:58:58 +02:00
Jean-Marc Lasgouttes
23ef2947a3 Change mouse cursor on tabular selection zones
This is done by implementing the clickable method. It is not possible yet to have the usual left and down arrows, because Qt does not implement them as far as I can see.

Factor the code that triggers row/column selection and fix the logic. Now it is possible to select also at the right of the tabular inset.
2016-04-19 13:50:09 +02:00
Jean-Marc Lasgouttes
6a1803e18d Fix display of InsetCollapsable with split views
When several bufferviews exist for the same inset, the data that depends on the view width have to be BufferView-dependent. While this is the case for several mutable members of InsetCollapsable, some were missing.

This commit makes button_dim_ (renamed from button_dim) and openinlined_ bv-dependent.

Get rid of the hitButton function.

Remove the bv-independent geometry() method and implement editable() explicitely instead.

Fixes bug #9756.
2016-04-19 12:02:27 +02:00
Jean-Marc Lasgouttes
fb90076e90 whitespace only 2016-04-19 11:58:57 +02:00
Jean-Marc Lasgouttes
6ad2edc381 Pass a BufferView to Inset::clickable 2016-04-19 11:58:41 +02:00
Uwe Stöhr
c46d5ccdf6 pt_BR.po: updates from Georger 2016-04-18 19:10:57 +02:00
Jean-Marc Lasgouttes
0576973b8d Make monolithic build code portable to Mac OS
"echo -e" is definitely not portable. Use a plain loop instead.

Also use the automake silent rule mechanism to make the generation of monolithic source files visible.
2016-04-18 18:20:06 +02:00
Guillaume Munch
9f04fc1c90 status.22x 2016-04-17 15:36:58 +01:00
Guillaume Munch
9bf7d99def Sanitize InsetMathHull and add a check for mutability in LFUN_MATH_MUTATE
Remove in particular all comparisons < and >= involving HullType.

Add a guard to make sure that mutate() only operates on types it has been
designed for. Then I figured I could use this new knowledge to give feedback
when math-mutate is not implemented via getStatus(). (To test this, insert a
regexp in Advanced Search & Replace and try to change it into a standard
equation via the contextual menu.)
2016-04-17 15:25:49 +01:00
Guillaume Munch
e3ab552ccb Correct col spacing in Cases environment 2016-04-17 15:25:49 +01:00
Guillaume Munch
1adb4efe60 Fix the display of column spacing in AMS environments
AMS align environment should have some spacing between odd and even columns.

Add a new virtual method displayColSpace() to InsetMathGrid, InsetMathHull and
InsetMathSplit.
2016-04-17 15:25:49 +01:00
Guillaume Munch
06a62c4894 Display the correct horizontal alignment in AMS environments
A longstanding problem... (related: #1861)

The columns in AMS math environments have a fixed alignment (colAlign() in
InsetMathGrid.cpp). We set this alignment for display (Georg's
displayColAlign()) in InsetMathHull and InsetMathSplit. This is done according
to tests and documentation for the various environments.

There is also some mechanical code factoring via colAlign().

Finally, I disable setting the horizontal alignment in InsetMathSplit, which has
no impact on the LaTeX output, and has no longer any impact on the screen. (As
for vertical alignment I discovered that it was in fact customisable for
\aligned & friends! I hope that the more faithful interface will let other
users discover that too.)
2016-04-17 15:25:49 +01:00
Guillaume Munch
72ce4519de status.22x 2016-04-16 23:23:03 +01:00
Guillaume Munch
36611a9ba8 Raise the maxlastfiles cap
This only changes the maximum value that the user can choose in the UI, not the
default value.
2016-04-16 23:12:38 +01:00
Guillaume Munch
4fb103180e Do not omit the starting space when copying (#9995)
The offending code appears to have been introduced a long time ago. My
understanding is that it is no longer relevant. Notably, it only appears on copy
and not on cut, which tells us that: 1) it should be safe to remove it, 2) we
should remove it for consistency.
2016-04-16 23:12:30 +01:00
Scott Kostyshak
287db1239b Fix a \origin unavailable 2016-04-16 15:20:33 -04:00
jpc
3d5cae4edd Minor rephrasing of last commit 2016-04-16 09:15:42 +01:00
Uwe Stöhr
93f58cb440 sv.po: updates for 2.2.0 from Jim 2016-04-16 01:55:40 +02:00
Guillaume Munch
744f6e3cd8 Compute the highlighting color from AlternateBase and Highlight roles (#10073) 2016-04-15 14:13:50 +01:00