Andreas Kling
0af61e9123
GVariant: Add to_string(GVariant::Type) helper.
2019-06-23 07:54:46 +02:00
Andreas Kling
0e18201b7e
GTextEditor: Don't replace selection on enter press in single-line editor.
2019-06-23 07:53:58 +02:00
Andreas Kling
3e7f33e4eb
GAbstractView: Correct placement of editor widgets.
2019-06-23 06:45:23 +02:00
Andreas Kling
dc8333067f
CHttpJob: Block until we can actually read during State::InBody.
...
Also move to State::Finished once we've received >= Content-Length.
2019-06-22 23:10:05 +02:00
Andreas Kling
6d5633904f
CIODevice: Don't discard already-buffered data when there's no more to read.
...
When we had some data already in the CIODevice buffer, we should make sure
we always return that data, even if the attempt to ::read() even more data
fails. This was causing us to lose partial HTTP payloads.
2019-06-22 23:07:42 +02:00
Andreas Kling
ec99f7f721
CHttpRequest: Okay let's go back to HTTP/1.0 for now..
...
I don't want to deal with sessions staying alive at the moment.
2019-06-22 23:04:31 +02:00
Andreas Kling
af75ccee65
CNetworkJob: Automatically delete finished jobs after on_finish.
...
Also, pretty-print any failure messages.
2019-06-22 22:46:05 +02:00
Andreas Kling
639478391b
Kernel: Colorize debugger output from the kernel.
...
This makes it easy to distinguish kernel/userspace dbgprintf()'s. :^)
2019-06-22 22:45:16 +02:00
Andreas Kling
db2980c848
CHttpRequest: Use the correct newline format ('\r\n').
...
Also let's say HTTP/1.1 instead of HTTP/1.0. :^)
2019-06-22 22:10:43 +02:00
Andreas Kling
4573eb226e
LibHTML: Implement enough of the CSS parser to parse the default stylesheet.
2019-06-22 21:48:56 +02:00
Andreas Kling
7e1cb86da7
LibHTML: Make it possible to build LibHTML on the host.
...
- "make" builds the normal Serenity libhtml.a
- "make -f Makefile.host" builds a test program for the host machine.
2019-06-22 21:21:57 +02:00
Andreas Kling
04b2082e97
Build: Enable the -Werror flag.
...
Okay, I've now fixed all the warnings and it was pretty lame. Let's keep the
build warning-free from now on.
2019-06-22 16:32:04 +02:00
Andreas Kling
3ed17b0792
printf: Support %zu (the 'z' is really just ignored.)
2019-06-22 16:30:32 +02:00
Andreas Kling
1b6fa30e58
WidgetGallery: Fix compiler warnings.
2019-06-22 16:27:35 +02:00
Andreas Kling
61b4da447d
PaintBrush: Fix compiler warnings.
2019-06-22 16:26:04 +02:00
Andreas Kling
46a06c23e3
Kernel: Fix all compiler warnings.
2019-06-22 16:22:34 +02:00
Andreas Kling
17acc1e0a8
VisualBuilder: Fix compiler warnings.
2019-06-22 16:16:39 +02:00
Andreas Kling
3b01d7fdff
Userland: Fix more compiler warnings.
2019-06-22 16:13:47 +02:00
Andreas Kling
4118aaaa32
Terminal: Fix compiler warnings.
2019-06-22 16:07:46 +02:00
Andreas Kling
1277d583ef
printf: Oops, '-' is the left padding modifier, not ' '.
...
It's kinda funny how I can make a mistake like this in Serenity and then
get so used to it by spending lots of time using this API that I start to
believe that this is how printf() always worked..
2019-06-22 15:53:52 +02:00
Andreas Kling
5980007e44
Userland: Fix many compiler warnings.
2019-06-22 15:47:08 +02:00
Andreas Kling
0deade2883
WindowServer: Fix compiler warnings.
2019-06-22 14:49:01 +02:00
Andreas Kling
3f0f7caa45
LibGUI: Fix compiler warnings.
2019-06-22 14:41:11 +02:00
Andreas Kling
56ae96558b
LibC: Fix locale.cpp warnings.
2019-06-22 14:32:59 +02:00
Andreas Kling
bd4ac6d42e
LibC: Fix various stdlib.cpp warnings.
2019-06-22 14:27:15 +02:00
Andreas Kling
54c5b68921
LibC: execvpe() should use the provided environment instead of 'environ'
2019-06-22 14:07:34 +02:00
Andreas Kling
25fd847ef2
PaintBrush: Add a color picker tool.
2019-06-22 12:05:35 +02:00
Andreas Kling
41613e4303
GSpinBox: Make the increment/decrement buttons unfocusable.
2019-06-22 11:16:41 +02:00
Andreas Kling
ff321d53ef
GComboBox: Don't make the list window wider than the widget unless needed.
2019-06-22 10:50:58 +02:00
Andreas Kling
7d17689e17
LibGUI: Add a new GComboBox widget.
...
This widget combines a GTextEditor, a GButton, a GWindow and a GListView
to implement a nice drop-down list.
It's currently using the GWindowType::Tooltip type because that's the most
appropriately behaving window type available at the moment. This should
definitely be fixed though.
2019-06-22 10:47:29 +02:00
Andreas Kling
d0b7d5e84c
GAbstractView: Add on_selection callback.
...
This callback is fired whenever the model's selection is updated.
Note that it only fires when there is a model, and when the index is valid.
2019-06-22 10:40:35 +02:00
Andreas Kling
dd6b8135c2
GScrollableWidget: Make the scrollbar metrics helpers public.
2019-06-22 10:39:42 +02:00
Andreas Kling
de4d85b097
GButton: Make it possible to disable focusability.
2019-06-22 10:39:13 +02:00
Andreas Kling
c31cf907ce
GTextEditor: Add select_all() API.
...
Take the implementation of Ctrl+A and expose it as an API for clients.
2019-06-22 10:38:38 +02:00
Andreas Kling
9ee63ef8b3
GVariant: Add a constructor that takes const char*.
...
This prevents the compiler from selecting the GVariant(bool) constructor
which is clearly not what I want when I do GVariant("Hello"). :^)
2019-06-22 10:37:44 +02:00
Andreas Kling
e9cbda29e9
GWindow: Make destroy-on-close an optional behavior.
...
Also add missing implementation of GWindow::is_visible().
2019-06-22 10:37:03 +02:00
Andreas Kling
ae8eff55a7
LibHTML: Some initial works towards a simple CSS parser.
2019-06-22 09:27:39 +02:00
Andreas Kling
891e668e35
LibHTML: Add an empty CSS parser.
2019-06-21 20:55:41 +02:00
Andreas Kling
85d71024f7
LibHTML: Add a basic default UA stylesheet.
...
We can't parse this yet, but we have to start somewhere. :^)
2019-06-21 20:27:11 +02:00
Andreas Kling
02e02ca3a5
LibHTML: More work on the CSS object model.
2019-06-21 19:19:49 +02:00
Andreas Kling
d343fb2429
AK: Rename Retainable.h => RefCounted.h.
2019-06-21 18:58:45 +02:00
Andreas Kling
550b0b062b
AK: Rename RetainPtr.h => RefPtr.h, Retained.h => NonnullRefPtr.h.
2019-06-21 18:45:59 +02:00
Andreas Kling
e97d714bbc
Documentation: Update SmartPointers.md with new pointer names.
2019-06-21 18:42:17 +02:00
Andreas Kling
c26e3ce86b
Change "retain" to "ref" in various comments.
2019-06-21 18:40:24 +02:00
Andreas Kling
90b1354688
AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr.
2019-06-21 18:37:47 +02:00
Andreas Kling
77b9fa89dd
AK: Rename Retainable => RefCounted.
...
(And various related renames that go along with it.)
2019-06-21 15:30:03 +02:00
Andreas Kling
ef1bfcb9d8
WindowServer: Move some event code from WSWindowManager to WSMenuBarKeeper.
2019-06-21 15:02:11 +02:00
Andreas Kling
ede598589a
WindowServer: Make most of WSMenuBarKeeper private.
...
The outside world doesn't need to know about all this stuff.
2019-06-21 11:12:45 +02:00
Andreas Kling
2e9cc75d11
WindowServer+Taskbar: Let WindowServer manage the "window menus".
...
Taskbar now simply asks the WindowServer to popup a window menu when right
clicking on a taskbar button.
This patch also implements the "close" menu item, and furthermore makes the
window menu show up when you left-click a window's titlebar icon. :^)
2019-06-21 11:03:43 +02:00
Andreas Kling
da475ce3f5
LibGUI: Refactor the keyboard activation code a bit to use WeakPtr<GWidget>.
2019-06-21 10:09:57 +02:00