Commit Graph

26 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
e359124a86 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-06-15 22:32:52 +01:00
Jean-Marc Lasgouttes
76c06e3535 Add missing entry in status.22x
This was forgotten in fe5e1170.
2016-06-15 22:32:52 +01:00
Guillaume Munch
12a45060cc status.22x 2016-06-15 22:32:52 +01:00
Jean-Marc Lasgouttes
1fd39e2974 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-06-15 22:32:52 +01:00
Stephan Witt
429bd8cdf4 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-06-15 22:32:52 +01:00
Jean-Marc Lasgouttes
0ea92e677a 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-06-15 22:32:52 +01:00
Jean-Marc Lasgouttes
cd27ae65a2 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-06-15 22:32:52 +01:00
Jean-Marc Lasgouttes
9fc27f6bb7 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-06-15 22:32:52 +01:00
Guillaume Munch
a81b030aee status.22x 2016-06-15 22:32:52 +01:00
Guillaume Munch
ce0053f7f3 status.22x 2016-06-15 22:32:52 +01:00
Guillaume Munch
122c66cbc7 status.22x 2016-06-15 20:26:14 +01:00
Guillaume Munch
d9550acdbe status.22x 2016-06-14 00:07:32 +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
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
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
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
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
Uwe Stöhr
a762244ca6 de.po: some translations 2016-05-31 23:18:28 +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
c5e63f73bb status.22x: document a bugfix 2016-05-30 01:59:13 +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