Caolán McNamara
5dc0c03f79
implement spread button layout
...
Change-Id: Ia17d3f4d14319adec6b0b20dced5daf5b8018c36
2013-01-01 16:15:58 +00:00
Caolán McNamara
7d48d41d9e
don't remove blank rows/cols more than once
...
Change-Id: I7b46ac1f9fcca5a3ae9dbb6b6c4f92917f522295
2012-12-29 18:02:26 +00:00
Caolán McNamara
953cb304b1
export VclScrolledWindow for external-to-builder use
...
as a work-in-progress
Change-Id: I6065f3a4db5056cd925152dccd275de0d17b77b9
2012-12-04 16:19:10 +00:00
Ivan Timofeev
87c923be60
fdo#57499: VclContainer: enable child transparent mode
...
Change-Id: I42aa0c578a927777725e5be4f8534f68bc709cd6
2012-11-25 18:33:41 +04:00
Ivan Timofeev
59e59a16c1
fdo#57472: VclContainer: make it paint-transparent
...
Change-Id: I02f09ecf7edb8a8b01b996782ee9618988b5f56e
2012-11-24 18:07:42 +04:00
Caolán McNamara
4546ef5664
*height* not width
...
Change-Id: I6ca792b9658e89d1b3dd147332e57625eb31256a
2012-11-22 13:45:22 +00:00
Ivan Timofeev
a0a5eed63b
VclContainer: use transparent background
...
see http://lists.freedesktop.org/archives/libreoffice/2012-November/040587.html ,
screenshot at [3].
Change-Id: Iaf72b3734564301244365773f05c6df01a6dea62
Reviewed-on: https://gerrit.libreoffice.org/1143
Reviewed-by: Caolán McNamara <caolanm@redhat.com >
Tested-by: Caolán McNamara <caolanm@redhat.com >
2012-11-21 13:52:34 +00:00
Caolán McNamara
052a6a99e6
honour child alignment in all layout widgets, not just grid
...
i.e. so that the original cmis checkin dialog of
207ed1b1a1
would have worked without rework as grid of
5cc34dc912
Change-Id: Ide047cfca63558867c427d4fcbb91ad182fb71e4
2012-11-17 20:10:50 +00:00
Caolán McNamara
d00ee312b2
honour widget [v|h]expand in VclBox as well as packing expand
...
Change-Id: I5ccd28c8d9d62d5a7bec118312752f66a9a4d609
2012-11-17 20:10:50 +00:00
Caolán McNamara
1e1bcd008e
favour expandables over non-expandables for shrinking scenario
...
if grid contents change their mind and want to be bigger than
available space, then somethings got to give, prefer expandables
as shrinkables too
Change-Id: Iefd87adb722548c11df04f194cf6d6e17665289a
2012-11-13 09:49:18 +00:00
Caolán McNamara
e0c4e1f8b7
honour padding property in VclBox
...
Change-Id: Ie387898535ec8f638c4a2a2785cdb39273136f0e
2012-10-24 16:28:55 +01:00
Caolán McNamara
88fe7d133b
refactor buttonbox calculations to allow nonhomogeneous buttons
...
Change-Id: If0f3c09a2fb6577615f33576fee1dde5b627ca82
2012-10-24 15:39:27 +01:00
Caolán McNamara
0853819285
merge and correct buttonbox spacing calculation
...
Change-Id: Ibd378c85c6b7cf774ed2a6f652264a2a78bfe366
2012-10-24 15:39:26 +01:00
Caolán McNamara
841b975a09
implement secondary button groups in buttonboxes
...
Change-Id: I0e60b7e197ba4f6ebd3f24cb2e9072ce3e1353fb
2012-10-22 10:28:45 +01:00
Caolán McNamara
ca6aa93fd4
add infrastructure for secondary button groups
...
Change-Id: I5fd1bbc31a0259e92f6eb23beef5d3c77b74eed8
2012-10-22 09:13:39 +01:00
Caolán McNamara
12a971118f
don't process empty grid cells
...
Change-Id: Ibd8ea6a40ced219c5f64d1c04df28b85c99a00bb
2012-10-12 12:51:35 +01:00
Caolán McNamara
c08c67c8a0
add a get_label_widget to VclFrame
...
Change-Id: Ia0561a5f185878342b15be54c6147aa1c81fa9ef
2012-10-11 17:31:25 +01:00
Caolán McNamara
54acc08629
default internal-children to visible, default containers to not-shown
...
Change-Id: I25cd15e586abeeeabfde7539986309b187690320
2012-10-09 16:41:56 +01:00
Caolán McNamara
f52f89dc65
mark layout as clean before setting allocation
...
so that if setting the allocation makes the control
change its mind the dirty flag won't be unset in
this iteration, and will trigger a second one
Change-Id: Ia4bb37848495bc6115eb8b16ec7a390cd58bd84f
2012-10-08 15:41:42 +01:00
Caolán McNamara
f954e900f4
improve col/row spanning
...
Change-Id: I7a8d7dd9f504183bb7d40c301f28c7a6a2153872
2012-10-04 12:49:26 +01:00
Caolán McNamara
fac4bed44b
fix up merge
...
Change-Id: I1ce7e72c2c0d1a2cf56df66197510e6870c18047
2012-09-28 08:48:55 +01:00
Caolán McNamara
be23f7fbb8
sort child positions within parents according to grid position
...
so that tabbing between widgets jumps between then in a sensible
order
Change-Id: I852f4fb08781da2b703f8f87e84abdf4c366fa26
2012-09-28 08:48:54 +01:00
Caolán McNamara
0c430547d8
truly skip unshown widgets in tab traversal
...
make tab traversal of dialog widgets hidden because their containers are hidden
and/or disabled
Change-Id: I1947584717030f3703c018cbf05235811df7835e
2012-09-28 08:48:54 +01:00
Caolán McNamara
595feb2f04
fix getNonLayout[Real]Parent helpers
...
Change-Id: Idae11802aaeb3d9192cdf7fe8fae61788bbb9b5b
2012-09-28 08:48:52 +01:00
Caolán McNamara
dc5d6deb15
we need to have the outermost TabDialog as the recipient of tab keystrokes
...
Change-Id: I1d230512d2145a9a3198c25c60dcd8954928120e
2012-09-28 08:48:52 +01:00
Caolán McNamara
a390a10269
move layout diagnostics to vcl.layout channel
...
Change-Id: Ib33d91ea56219036182d30fdd3dc2159ce32a48c
2012-09-28 08:48:51 +01:00
Caolán McNamara
87b5cdd5ed
convert writer, draw, impress, calc and starmath printer dialogs
...
to new-style widget layout mostly described in .ui format
Change-Id: I8ead53a246a8ac3e2d446d158f06d7e2e436ce60
2012-09-28 08:48:44 +01:00
Caolán McNamara
f4af1f209d
we need to retain invisible children for the first grid pass
...
We will drop them frm the final grid, but for the first pass we need to know
about invisible spanning children
Change-Id: If3938a622a5f0609964bb5e72f8428c64cb09f79
2012-09-28 08:48:44 +01:00
Caolán McNamara
fd7849d58d
make spanning of empty row/cols work better
...
Change-Id: I4ef6cee2ffdfced8d98dc48cf21a142bb15fd4a3
2012-09-28 08:48:43 +01:00
Caolán McNamara
a216f1db77
calculate and position taking external margins into account
...
Change-Id: I64acc2bc19051626e6c175b5d84f09c4dbbeb908
2012-09-28 08:48:39 +01:00
Caolán McNamara
8eaf815815
add left/right/top/bottom margin support
...
Change-Id: Ia43941071f3e1f1a364558e93928bce094d4c81f
2012-09-28 08:48:39 +01:00
Caolán McNamara
7e1a1d4c84
we can need to redo the layout even when the sizes don't change
...
i.e. container remains the same size, but something inside it
has disappeared, requiring contents to be readjusted
We still want to minimize recalculations, so mark parent containers as dirty on
queue_resize of a widget and we can retain the layout tree of the clean ones
and just move them into their new positions as big fat blocks
Change-Id: I8c5d9b836b48c98765b5cc41be72eaa2913ae7d8
2012-09-28 08:48:38 +01:00
Caolán McNamara
13dde575a9
Implement a VclExpander equivalent of GtkExpander
...
Change-Id: I539d8d313a35509cf603f18e5f074eab331f2480
2012-09-28 08:48:37 +01:00
Caolán McNamara
97f69c7f75
honour hexpand/vexpand in the grid
...
Change-Id: I6f57592d83a53de0933d669438851c9a326af02e
2012-09-28 08:48:35 +01:00
Caolán McNamara
0296b3a694
ditch over complex property buckets
...
A fairly small fixed number of properties are needed, so simplify
Change-Id: Iedce02264816666dbac53d7ad3cfb64be8e1c8bb
2012-09-28 08:48:35 +01:00
Caolán McNamara
a27550dc9a
make isLayoutEnabled stricter
...
dialog/tabpage must have only one child that is a container
2012-09-28 08:48:32 +01:00
Caolán McNamara
eb1e793906
add and use a "WINDOW_CONTAINER" type
...
use it instead of dynamic_cast seeing as we already are dragging
the window type information around with us
2012-09-28 08:48:31 +01:00
Caolán McNamara
43713eb40f
avoid redraws when size/pos is unchanged
2012-09-28 08:48:31 +01:00
Caolán McNamara
ba28def295
keep empty but spanned rows/cols
2012-09-28 08:48:30 +01:00
Caolán McNamara
b89114144d
drop empty rows/cols in VclGrid
2012-09-28 08:48:30 +01:00
Caolán McNamara
839acd1be4
implement widget alignment within gtkgrid
2012-09-28 08:48:26 +01:00
Caolán McNamara
f5e6be39bd
fix grid spanning for non-homogeneous cols/rows
2012-09-28 08:48:25 +01:00
Caolán McNamara
a3fb005d0c
column spacing, not row spacing
2012-09-28 08:48:24 +01:00
Caolán McNamara
94c960e458
Add GtkNotebook->TabControl import and update demo to use it
2012-09-28 08:48:24 +01:00
Caolán McNamara
142e382e12
implement start and end button layouts and connect them up
2012-09-28 08:48:24 +01:00
Caolán McNamara
048c797483
drop extra padding
2012-09-28 08:48:22 +01:00
Caolán McNamara
75e99c7a64
don't reorder children without position properties
2012-09-28 08:48:19 +01:00
Caolán McNamara
0b5d156dee
implement sucking in the padding from the theme
...
pretty up dialogs, centralize adding the borders into
VclContainer, reduce default space between buttons
2012-09-28 08:48:19 +01:00
Caolán McNamara
d3f29153fe
n-rows doesn't matter, auto sizes depending on children
2012-09-28 08:48:18 +01:00
Caolán McNamara
e432b5e60c
basic optimization pass
2012-09-28 08:48:16 +01:00