Andreas Kling
7a906ab539
LibGUI: Teach GScrollableWidget how to hide unnecessary scrollbars
...
This is now an opt-in mode enabled by calling:
should_hide_unnecessary_scrollbars(true)
This patch enables the mode for GTreeView and GTableView. :^)
2019-09-05 21:37:15 +02:00
Sergey Bugaev
22e6978c71
WindowServer+LibGUI+FontEditor: Encode special characters as UTF-8
2019-09-05 16:37:39 +02:00
Andreas Kling
8a91b90258
GTableView: Fix column resize cursor not showing up in scrolled tables
...
If the table was scrolled somewhat, we'd stop showing the resize cursor
when hovering the mouse cursor between two table column headers.
2019-08-17 15:01:45 +02:00
Andreas Kling
8031960541
GTableView: Fix row selection when clicking between two cells
...
We should still select the entire row when you click between two cells.
2019-08-17 14:56:53 +02:00
Andreas Kling
9789ee9b58
GTableView: Add a way to customize cell painting per-column
...
You can now set a GTableCellPaintingDelegate per column in GTableView.
For columns with a painting delegate set, the view will defer to the
delegate for painting each cell in that column.
2019-08-14 20:34:46 +02:00
Ignas S
6228e18a09
GTableView and friends: API improvements for 'Sortable' flag.
2019-08-12 11:01:47 +02:00
Ignas S
823d5d097b
GTableView: add 'sortable' column header flag.
...
This prevents sorting unsortable by unsortable things, like icons.
2019-08-12 11:01:47 +02:00
Andreas Kling
b5525d4ec3
GTableView: Add a mode for automatically sizing column to fit content
...
You can now call GTableView::set_size_columns_to_fit_content(true) and
the table columns will grow to fit the content. They will never shrink,
only grow.
This means I can spend a lot less time fidgeting with column widths :^)
2019-08-09 19:30:24 +02:00
Andreas Kling
899366da9d
GTableView: Debug-log the current column width while resizing
...
This makes it easier to decide on a good initial width for a column.
2019-08-08 20:41:24 +02:00
Andreas Kling
df51014834
GTableView: Elide cell content so it doesn't overflow the cell rect
...
I originally thought I'd have to implement text clipping in Painter for
this, but it seems like I can get away without doing that today. :^)
Fixes #390 .
2019-07-31 21:18:01 +02:00
Andreas Kling
04b9dc2d30
Libraries: Create top level directory for libraries.
...
Things were getting a little crowded in the project root, so this patch
moves the Lib*/ directories into Libraries/.
2019-07-04 16:16:50 +02:00