Commit Graph

10 Commits

Author SHA1 Message Date
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
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
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
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
72ce4519de status.22x 2016-04-16 23:23:03 +01:00