Andreas Kling
f5c295ecc5
FontEditor: Add a "Glyph width:" label and align some things.
2019-04-10 03:51:03 +02:00
Andreas Kling
cf8b117d97
GCheckBox: Paint the box part as a container frame.
2019-04-10 03:44:23 +02:00
Andreas Kling
4ab0cd5d4c
LibGUI: Move frame painting from GFrame to StylePainter.
...
This way it can be used by others who might not have a GFrame object.
2019-04-10 03:43:46 +02:00
Andreas Kling
e61dd994df
FontEditor: Tighten the window size a bit.
2019-04-10 03:14:17 +02:00
Andreas Kling
313ac51832
LibGUI: Turn GTextBox into a wrapper around a single-line GTextEditor.
2019-04-10 03:08:29 +02:00
Andreas Kling
981623f4ee
FontEditor: Convert the glyph map and editor widgets to be GFrames.
2019-04-10 02:43:57 +02:00
Andreas Kling
5ab043a687
GSpinBox: Move increment/decrement button within the widget frame.
2019-04-10 02:09:06 +02:00
Andreas Kling
9311164439
GWidget: Make hit testing respect child z-order.
...
This was as simple as iterating the children in reverse order. Duh. :^)
2019-04-10 02:08:32 +02:00
Andreas Kling
b8f150457e
LibGUI: Repaint GScrollBar without hover highlight immediately on leave.
2019-04-10 01:50:10 +02:00
Andreas Kling
4abffa4dbe
GSpinBox: Put nice little arrow glyphs on the buttons.
2019-04-10 01:37:08 +02:00
Andreas Kling
a00a2a9db5
WindowServer: Show ongoing resize in number of w/h increments, too.
...
This makes something like "(80x25)" show up in the resizing label as well
during Terminal resize. :^)
2019-04-09 17:48:01 +02:00
Andreas Kling
1ab99903af
WindowServer: Display the window geometry while it's being moved or resized.
2019-04-09 17:17:30 +02:00
Andreas Kling
4c0f586f2b
LibGUI: Add a spinbox widget.
...
This is essentially a combo widget containing a single-line GTextEditor
and two buttons for increment and decrement. The GTextEditor::on_change
callback is hooked to prevent non-numeric input but it's not entirely
perfect since that callback is asynchronous. This will work until we have
some more sophisticated input validation mechanism though.
2019-04-09 16:29:00 +02:00
Andreas Kling
4ba5e472be
WindowServer: Always activate newly added windows.
...
This feels a lot better than new windows popping in inactive state.
2019-04-09 16:25:14 +02:00
Andreas Kling
151b7149e6
GTextEditor: Add GTextEditor::on_change callback for when content changes.
2019-04-09 16:20:36 +02:00
Andreas Kling
60a819c14a
Kernel: Yet more work on bringing up POSIX SHM.
2019-04-09 02:37:38 +02:00
Andreas Kling
d6ff64db00
Launcher: Add tooltips to LauncherButtons.
2019-04-09 02:21:24 +02:00
Andreas Kling
26a06f3fcd
Kernel: More work towards POSIX SHM, also add ftruncate().
2019-04-09 01:10:00 +02:00
Andreas Kling
99f3cc26c3
Kernel+LibC: Add stubs for POSIX shared memory API.
...
Specifically shm_open() and shm_unlink(). This patch just adds stubs.
2019-04-08 23:44:12 +02:00
Andreas Kling
7f2eeb0b35
LibGUI+WindowServer: Add support for GWidget tooltips.
...
Any GWidget can have a tooltip and it will automatically pop up below the
center of the widget when hovered. GActions added to GToolBars will use
the action text() as their tooltip automagically. :^)
2019-04-08 18:58:44 +02:00
Andreas Kling
3e175c9a96
LibGUI: Move GSocketAddress to its own file.
2019-04-08 17:19:35 +02:00
Andreas Kling
93a4a4c597
Taskbar: Replace TaskbarWidget with a simple GFrame.
...
There's no need for a custom widget here, at least not now.
2019-04-08 17:17:16 +02:00
Andreas Kling
6d5a54690e
LibGUI: Make GSocket connection asynchronous.
...
Now connect() will return immediately. Later on, when the socket is actually
connected, it will call GSocket::on_connected from the event loop. :^)
2019-04-08 04:56:11 +02:00
Andreas Kling
65d6318c33
Kernel: Support non-blocking connect().
...
If connect() is called on a non-blocking socket, it will "fail" immediately
with -EINPROGRESS. After that, you select() on the socket and wait for it to
become writable.
2019-04-08 04:52:21 +02:00
Andreas Kling
7fcca0ce4b
GHttp: Rename GHttpNetworkJob => GHttpJob. And tidy up a little bit.
2019-04-08 02:24:34 +02:00
Andreas Kling
37ae00a4dd
Kernel+Userland: Add the rename() syscall along with a basic /bin/mv.
2019-04-07 23:35:26 +02:00
Andreas Kling
71b6436552
GHttp: Fix little bug in HTTP header parsing.
2019-04-07 22:47:34 +02:00
Andreas Kling
f93b3b7806
AK: Improve StringImpl chomping a bit.
...
Chomp off any number of trailing [\0\n\r] characters and trim the allocation
to fit instead of keeping the original size.
2019-04-07 20:21:11 +02:00
Andreas Kling
31b9d8354e
GIODevice: Remove accidentally committed debug spam.
2019-04-07 20:18:58 +02:00
Andreas Kling
51b4d3fe5a
GHttp: Work on bringing this up.
2019-04-07 19:35:48 +02:00
Andreas Kling
8f30657390
Start working on a Downloader app and backing classes in LibGUI.
...
LibGUI is slowly becoming LibKitchensink but I'm okay with this for now.
2019-04-07 14:36:10 +02:00
Andreas Kling
c7365a00f8
WindowServer: Add ability to initiate window resize from window edges.
2019-04-06 23:20:06 +02:00
Andreas Kling
0808d5158c
WindowServer: Make WSButton a Weakable and stop rawly pointing to it.
...
We had a crash due to dereferencing a destroyed WSButton after clicking
a window close button. Avoid that problem by using WeakPtr.
2019-04-06 21:17:02 +02:00
Andreas Kling
e74f32ae40
LibGUI: Always invalidate layout on GWidget child removal.
...
This code can get a bit confused when the child is destroyed before we
handle the ChildRemoved event. In those cases, the GChildEvent::child()
getter will return nullptr as it's backed by a WeakPtr.
To work around this issue, just always invalidate the layout for now.
This can be made a lot tighter in the future.
2019-04-06 21:15:13 +02:00
Andreas Kling
d89d759c36
WindowServer: Pick a new active window when the active window is minimized.
...
Also use the same logic when the active window is removed.
2019-04-06 20:50:38 +02:00
Andreas Kling
ddba6c1b7f
Kernel: Oops, also moved FileDescriptor into FileSystem/, fix Makefile.
2019-04-06 20:34:59 +02:00
Andreas Kling
644c887594
Kernel: Move FIFO into FileSystem/ and Socket+LocalSocket into Net/.
2019-04-06 20:29:48 +02:00
Andreas Kling
f2580dcfeb
FontEditor: Remove weird focus rects and optimize repaint while drawing.
...
I added focus rects to these widgets because I had just started working on
focus support and I was excited but it doesn't really make sense for these
things to have focus rects. :^)
While I was here I also optimized the repaint code to only update the edited
glyph in the glyph map when editing its pixels.
2019-04-06 15:28:06 +02:00
Andreas Kling
ac6c7d3e19
Kernel: Use alloc_fd() more instead of walking fd list manually.
2019-04-06 14:54:32 +02:00
Andreas Kling
a58d7fd8bb
Kernel: Get rid of Kernel/types.h, separate LinearAddress/PhysicalAddress.
2019-04-06 14:29:29 +02:00
Andreas Kling
6306cf5c27
GScrollBar: Add the same hover highlight effect as GButton.
2019-04-06 13:55:56 +02:00
Andreas Kling
8bda69e32f
WindowServer: Remove some debug spam.
2019-04-06 13:45:42 +02:00
Andreas Kling
f12573cb63
Add a slight hover highlight to GButton and WSButton. :^)
2019-04-06 04:08:09 +02:00
Andreas Kling
22c204af66
Meta: Time for a new screenshot :^)
...
Also update ReadMe with a link to the build instructions.
2019-04-06 01:31:12 +02:00
Andreas Kling
ef9fbef4c6
Taskbar: Show minimized window titles in [brackets].
...
Had to plumb the minimization state from WindowServer to Toolbar in order
to implement this.
2019-04-06 00:58:30 +02:00
Andreas Kling
74142d78c1
LibGUI: GButton's caption should be drawn in the foreground color.
2019-04-06 00:57:31 +02:00
Andreas Kling
f6ca94605c
WindowServer: Add a window minimization button.
...
The window is simply ignored in the painting and hit testing traversal
when in minimized state, same as we do for invisible windows.
The WM_SetActiveWindow message (sent by Taskbar) brings it back into the
non-minimized state. :^)
2019-04-05 22:32:00 +02:00
Andreas Kling
0fc3ccaa52
WindowServer: Make WSButton behave more like a normal button.
...
Previously it would just close the window on MouseDown. Now we do the normal
thing where we require a MouseUp inside the button rect before committing.
2019-04-05 21:53:45 +02:00
Andreas Kling
0d60c56b51
WindowServer: Make WSWindowFrame and WSButton deal in relative coordinates.
...
This was a bit painful to get right. The code is a lot more pleasant to
deal with now that all coordinates are relative to their local system
instead of being absolute screen coordinates.
2019-04-05 21:33:34 +02:00
Andreas Kling
2ac2d79a8e
WindowServer: Simplify two mouse coordinate conversions.
2019-04-05 20:27:12 +02:00