Commit Graph

35893 Commits

Author SHA1 Message Date
Guillaume Munch
c69426d7f5 TocWidget: fix an erroneous collapse and optimise updates based on profiling
TocModels::reset() in GuiView::structureChanged() collapses the TocWidget, and
therefore requires an update right after, which was missing.

In fact, profiling TocWidget::updateView() shows that delaying the update is
good only for fast keypresses (essentially movement). It costs 5% of a
char-forward operation in a document with approx. 100 table of contents
items. The update optimisation has been rewritten to take this data into
account.

This also fixes #9826: Outline disclosure of subsection content disappears one
second after doubleclicking content item.
2016-06-12 23:14:22 +01:00
Guillaume Munch
210f97c67b Fix bug #9218
This makes Qt 5.4 as usable as Qt 5.5.1 in my experience. Otherwise, fix again
INSTALL.
2016-06-12 23:12:24 +01:00
Guillaume Munch
e6d28aad0a Fix compilation with Qt < 4.7
Thanks to jkulesza
2016-06-12 23:12:24 +01:00
Stephan Witt
4d9f2e740b Correct path names were to look for RPM based dictionaries for hunspell on Linux.
(cherry picked from commit 3a2fc1595b)
2016-06-12 14:02:35 +02:00
Richard Heck
0e6b63a262 When we use InPremable styles, we want to write as many versions
to the premable as the user enters.

(cherry picked from commit fa190691a8)
2016-06-12 01:00:01 -04:00
Pavel Sanda
8a1578e405 * Math.lyx : add few maxima examples to ch. 23.1. 2016-06-11 11:23:39 -07:00
Richard Heck
bb9e0e122a Fix silly error outputting math sizes. Fixes bug #10129.
(cherry picked from commit bb5c760b37)
2016-06-11 00:50:36 -04:00
Richard Heck
097b17f732 Restore last selected label when using the "go to label" feature
of the reference dialog.

(cherry picked from commit 9d5ffa8e75)
2016-06-10 18:28:37 -04:00
Pavel Sanda
425b7c9fbe Improve build for FreeBSD.
Patch from Shankar Giri Venkita Giri.
2016-06-08 20:42:16 -07:00
Uwe Stöhr
a239018f42 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:10:32 +02:00
Richard Heck
6234a48950 Forgot I shouldn't cherry pick changes to the docs. So fix it. 2016-06-07 17:37:54 -04:00
Richard Heck
20d9da5b5d Fix bug #10194: Space missing in UI.
(cherry picked from commit 6f88e11da3)
2016-06-06 21:42:39 -04:00
Richard Heck
c8a7759fdc Fix some problems with the preamble in th eKoma-script letter
template.

Thanks to Richard Talley for the report.

(cherry picked from commit b3cf3b67d9)
2016-06-06 19:58:09 -04:00
Georg Baum
1191052a91 Force native line endings for .po files
As discussed on the list some time ago. cmake produces .po files already in
native line endings. Only autotools on mingw might produce wrong line endings
now, but I am pretty sure that nobody updates .po files using autotools on mingw.
2016-06-04 19:24:15 +02:00
Georg Baum
8423db037a 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 19:21:06 +02:00
Richard Heck
28ab2a2776 Fix version number. 2016-06-03 17:45:42 -04:00
Richard Heck
6c3849b4c7 Fix version number. 2016-06-03 17:45:15 -04:00
Jean-Marc Lasgouttes
7850e77bd9 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 a879bc2575)
2016-06-03 23:13:43 +02:00
Jean-Marc Lasgouttes
07dcd0c4e9 Take inset dimension into account in row signature
In some cases, the insets may change height or width without changing
the other apsects of the row.

Fixes bug #6991 and #10182.

(cherry picked from commit 508518ad95)
2016-06-03 23:07:05 +02:00
Uwe Stöhr
1862a97ea1 Win installer: sync package list with master and 2.1.x 2016-06-03 01:28:56 +02:00
Uwe Stöhr
c672cfe74f Tutorial.lyx: don't use true small caps
this would require another font package with several MB size for only one single word -> not worth it for the Tutorial. The other language versions of the Tutorial do already not use true small caps.
2016-06-03 01:27:48 +02:00
Kornel Benko
38d4a6a12c Update sk.po 2016-06-02 15:39:56 +02:00
Jean-Marc Lasgouttes
7855c0c1fc Allow automatic text direction in Painter::text()
It is wrong to assume that direction is left-to-right when no indication exist.

Add a new enum with values LtR, RtL and Auto to be used as argument of
the private text() methods. When direction is Auto, let Qt decide how
the string shall be layed out.

This is reimplementation of 51ee267c. A direct cherry-pick was not possible.

Fixes bug #10169.
2016-06-01 13:48:15 +02:00
Jean-Marc Lasgouttes
40f0659ec0 Fix drawing of buttonText (enforce same left/right spacing)
The computation of the width of the button was wrong. If <--> stands
for TEXT_TO_INSET_OFFSET/2 spacing, and if `[]' marks the button's
limits, then the intent is
  <-->[<-->button text<-->]<-->

Therefore the physical grey rectangle width is
   width - Inset::TEXT_TO_INSET_OFFSET

With this change, the spacing on the right of the button is not larger
than the left one.

Fixes bug #10147.
(cherry picked from commit 516d5d29dc)
2016-06-01 13:43:07 +02:00
Jean-Marc Lasgouttes
f97f849e5c Remove extra spacing around InsetCommand buttons
There is already a spacing of 2 pixels on each side of a button (e.g.
collapsed inset). There is no need to add one extra pixel for command
insets.

Fixes part of bug #10149.
(cherry picked from commit 68149e380d)
2016-06-01 13:34:05 +02:00
Uwe Stöhr
a762244ca6 de.po: some translations 2016-05-31 23:18:28 +02:00
Uwe Stöhr
13af7aa426 ErrorListUi.ui: correct an expression 2016-05-31 23:16:32 +02:00
Juergen Spitzmueller
d5067bb36d Add forgotten fix to status 2016-05-31 08:51:46 +02:00
Uwe Stöhr
1921baf88c Win installer: fix mistake introduced with last commit 2016-05-31 01:24:47 +02:00
Uwe Stöhr
52548a4436 Win installer: 2 bugfixes 2016-05-31 01:22:12 +02:00
Uwe Stöhr
cbd103e159 UserGuide.lyx: update 2 images 2016-05-30 23:19:24 +02:00
Georg Baum
4dd30bca57 status.22x: undocument a bugfix
This reverts c5e63f73b, since the fix is already in 2.2.0.
2016-05-30 21:34:33 +02:00
Uwe Stöhr
b2f04f8784 UserGuide.lyx: update 2 images 2016-05-30 04:26:13 +02:00
Uwe Stöhr
c5e63f73bb status.22x: document a bugfix 2016-05-30 01:59:13 +02:00
Uwe Stöhr
eeef785bad tufte-handout.lyx: remove some unnecessary TeX code 2016-05-30 01:55:18 +02:00
Uwe Stöhr
4c7c3a24c1 tufte-handout.lyx: remove some unnecessary TeX code 2016-05-30 01:54:30 +02:00
Juergen Spitzmueller
55f2cc2286 Implement some forgotten context menu items for arguments
* Dissolve context menu
* Label toggle (for conglomerate-styled arguments)

Fixes: #10150
2016-05-29 20:23:28 +02:00
Stephan Witt
5a8259839b 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-05-28 17:41:21 -04:00
Jean-Marc Lasgouttes
5d770859f8 Avoid narrow boxes when using \width as box width unit
When the box has a special width, one should not consider that as a fixed width. Otherwise, due to implementation quirks, the width will be set on screen as 1 inch.

A better solution would be to actually set the width by taking in account the contents width, height ans total height. This is not very difficult, but I do not know whether it would workout well in the work area.

Fixes bug #10048.
2016-05-28 17:41:20 -04:00
Jean-Marc Lasgouttes
c705347523 Move the documentation changelogs out of attic
They should not be hidden in this directory.
2016-05-28 17:41:20 -04:00
Jean-Marc Lasgouttes
3e7dee32ed When a counter is stepped, reset recursively all slaves
Fixes bug #10063.
2016-05-28 17:41:20 -04:00
Scott Kostyshak
97a3a64290 This is LyX 2.2.0 2016-05-23 19:49:15 -04:00
Scott Kostyshak
92615ce648 Update ANNOUNCE for 2.2.0
The https download URL is given now.
2016-05-23 18:54:50 -04:00
jpc
9e5198f4f5 * One more shortcut conflict solved
* fr.gmo updated
2016-05-23 23:15:10 +01:00
jpc
f5146e729b * Edit translation mistakes for icon sizes
* Resolve a shortcut conflict
* Provide fr.gmo using msgfmt
2016-05-23 22:43:39 +01:00
Enrico Forestieri
63153b8937 Add note about required svg support in Qt. 2016-05-23 03:05:36 +02:00
Scott Kostyshak
594748374b Fix using system theme icons with Qt 5 (#10052)
With Qt 5, our code did not correctly detect when icons were
available and thus tried to use nonexistent icons.

QIcon::hasThemeIcon(theme_icon) returns true when theme_icon is
empty. We now rely on the behavior that QIcon::isNull() returns true
if the icon is empty.

The same code is used with Qt 4 and Qt 5.
2016-05-22 20:56:12 -04:00
Scott Kostyshak
e16018afb8 RELEASE-NOTES: add a known issue regarding LuaTeX
Our LuaTeX export is not expected to work in all cases with the
newest version, e.g. the one shipped with TeX Live 2016.
2016-05-22 18:08:05 -04:00
Georg Baum
ff4668621b Fxy typo in XHTML output (bug #10124)
There was a simple typo that did ouput the slash before the closing tag
instead of inside the closing tag.
2016-05-22 17:32:04 +02:00
Scott Kostyshak
6280d8f261 Fix compilation if Intro manual for it 2016-05-21 23:13:27 -04:00