Andreas Kling
b4f307f982
LibGUI+WindowServer: Rename window "override cursor" to just "cursor"
...
Let's just say each window has a cursor, there's not really overriding
going on.
2020-09-11 14:26:37 +02:00
Andreas Kling
0f9be82826
LibGfx: Move StandardCursor enum to LibGfx
...
This enum existed both in LibGUI and WindowServer which was silly and
error-prone.
2020-09-10 19:25:13 +02:00
Andreas Kling
447b65bf7b
LibGUI: Add (optional) row headers to GUI::TableView
...
You can now get row headers in your TableView by simply calling:
table_view.row_header().set_visible(true)
Note that rows are not yet resizable.
2020-08-26 17:00:40 +02:00
Andreas Kling
49a5038a1a
LibGUI: Avoid implementing vertical HeaderView section resize for now
...
Resizable rows will require a bunch of changes in the table view layout
code, so let's not make the normal resizing areas grabbable for now.
2020-08-26 17:00:40 +02:00
Andreas Kling
e418bdf95b
LibGUI: Don't update key column when clicking vertical headers
...
Vertical headers are only concerned with rows, after all.
2020-08-26 17:00:40 +02:00
Andreas Kling
5b46835a9d
LibGUI: Fix HeaderView::section_rect() for vertical headers
...
Vertical headers shouldn't worry about horizontal padding.
2020-08-26 17:00:40 +02:00
Andreas Kling
c241ab75cd
LibGUI: Simplify HeaderView::mouseup_event() slightly
2020-08-26 17:00:40 +02:00
Andreas Kling
3f4df7c6da
LibGUI: Reset hovered section when mouse cursor leaves a HeaderView
2020-08-26 17:00:40 +02:00
Andreas Kling
9a25dd99c3
LibGUI: HeaderView should always notify parent when sections resize
...
The view needs to recompute the scrollable content size whenever this
happens, so let's always notify it. Previously we were only doing this
when resizing columns with interactively (not programmatically.)
2020-08-26 00:51:35 +02:00
Andreas Kling
44e371635e
LibGUI: Move table view headers into their own widget
...
This patch introduces the HeaderView class, which is a widget that
implements the column headers of TableView and TreeView.
This greatly simplifies event management in the view implementations
and also makes it much easier to eventually implement row headers.
2020-08-26 00:51:35 +02:00