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
Andreas Kling
41bcabd9aa
PaintBrush: Make a little icon for the spray tool.
2019-06-21 09:22:32 +02:00
Andreas Kling
9ac17c7bc9
WindowServer: Render the global menubar into a separate WSWindow.
...
Previously we were rendering the whole menubar on every compose(),
even if nothing changed about it. Now it's in its own window and can
be invalidated and painted separately.
2019-06-21 08:19:43 +02:00
Andreas Kling
d99b1a9ea0
LibHTML: Add the outline of a CSS stylesheet object graph.
2019-06-20 23:25:25 +02:00
Andreas Kling
2e2b97dc8a
LibHTML: Add layout() overrides for LayoutText and LayoutBlock.
2019-06-20 23:00:26 +02:00
Andreas Kling
8cb0c765ca
LookupServer: Use a CFile for loading /etc/hosts.
...
This fixes an issue with the lines having extra bytes at the end due after
converting from ByteBuffer to String.
2019-06-20 21:48:33 +02:00
Andreas Kling
a7dc1a7d6b
AK: Make StringImpl a bit smaller.
...
There's no need for a member char* m_characters if we always store them
in the inline buffer. So with this patch, we now do.
After that, rearrange the members a bit for ideal packing. :^)
2019-06-20 13:23:48 +02:00
Andreas Kling
8c0ae711d8
Kernel+LibC: Make page fault crashes a bit more readable.
...
We'll now try to detect crashes that were due to dereferencing nullptr,
uninitialized malloc() memory, or recently free()'d memory.
It's not perfect but I think it's pretty good. :^)
Also added some color to the most important parts of the crash log,
and added some more modes to /bin/crash for exercising this code.
Fixes #243 .
2019-06-19 20:52:12 +02:00