Andreas Kling
34150f0836
WindowServer: Remove unused old "middle border" color.
2019-05-25 21:19:42 +02:00
Andreas Kling
cca510162e
GButton: Align the button text according to text_alignment().
...
Added a Rect::align_within(other_rect, alignment) helper that seemed useful.
2019-05-25 20:15:52 +02:00
Andreas Kling
75b0e5cce5
Ext2FS: Block #0 can terminate an inode block list early.
...
We were already handling this for the indirect blocks, but the direct ones
would happily consider #0 to be a valid block list entry.
2019-05-25 19:19:43 +02:00
Andreas Kling
e1f922ded2
Base: Add a 32x32 icon for Minesweeper.
2019-05-25 18:46:25 +02:00
Andreas Kling
10391bd82b
Base: Tweak the small Terminal icon slightly.
2019-05-25 18:23:12 +02:00
Andreas Kling
728327df8a
Ext2FS: Fix build with EXT2_DEBUG enabled, and tweak some variable names.
2019-05-25 17:23:17 +02:00
Andreas Kling
9cfd674a75
Base: Make a 32x32 icon for Snake.
2019-05-25 14:21:08 +02:00
Andreas Kling
83aa785c57
GSlider: Oops, fix typo in previous commit.
2019-05-25 13:44:37 +02:00
Andreas Kling
d12857fc36
LibGUI: Notify widgets when their enabled state changes.
...
This is done by dispatching a (synchronous) "EnabledChange" event that can
be picked up in change_event(). Use this event to kick widgets out of their
"being pressed"-type modes if the user is interacting with them while the
state is programmatically changed.
2019-05-25 13:40:57 +02:00
Andreas Kling
e478a2fb0a
WindowServer: Don't draw titlebar separator for titlebar-less windows.
2019-05-25 04:17:21 +02:00
Andreas Kling
817ac9c22b
LibGUI: Elide the text in GCheckBox and GRadioButton when low on space.
2019-05-25 04:01:22 +02:00
Andreas Kling
be62b42352
StylePainter: Remove some unused code.
2019-05-25 03:29:37 +02:00
Christopher Dumas
957f8b84f2
WindowServer: Make it possible to turn off window title bars ( #88 )
...
Also, Launcher now does not use titlebars.
Only check if titlebar should be shown if the window type works with that.
2019-05-24 23:37:23 +02:00
Andreas Kling
cb9134a2ca
GSlider: Ignore mouse events when disabled.
2019-05-24 23:03:11 +02:00
Andreas Kling
ac7e02d984
GLabel: Paint the text with a disabled look when appropriate.
...
Also turn on right-side text elision in all cases by default.
2019-05-24 23:00:36 +02:00
Andreas Kling
b0ccd04a9c
LibGUI: When tabbing between focusable widgets, skip over disabled ones.
2019-05-24 22:57:05 +02:00
Andreas Kling
c62be7bb2b
LibGUI: Share code for text painting in GAbstractButton.
...
This gives all the GAbstractButton a consistent disabled appearance.
2019-05-24 22:54:37 +02:00
Andreas Kling
149b7f92a7
Demos: Start working on a simple WidgetGallery app.
...
It's good to have a place where we can try out all the different widgets.
This needs some more work on a nice layout, and should also include more
of the widgets. :^)
2019-05-24 22:47:41 +02:00
Andreas Kling
d0bc21b96f
WindowServer: Remove some unused WSWindowManager members.
2019-05-24 21:11:55 +02:00
Christopher Dumas
dd84dcf31f
Launcher loads applications from Launcher.ini, is started by default, and is resized automatically
...
Co-Authored-By: Andreas Kling <awesomekling@gmail.com>
2019-05-24 20:40:09 +02:00
Andreas Kling
ad908f1395
WindowServer: Factor out compositing from WSWindowManager into WSCompositor.
...
This is far from finished and the two classes are awkwardly grabbing at each
other's innards, but here's a first step in the right direction.
2019-05-24 19:32:46 +02:00
Andreas Kling
508007f1dd
GRadioButton: Draw a focus rect when focused.
2019-05-24 17:41:22 +02:00
Andreas Kling
677794f30d
LibGUI: Make GCheckBox inherit from GAbstractButton.
2019-05-24 17:11:42 +02:00
Andreas Kling
21c56477b0
LibGUI: Add a GAbstractButton base class for button widgets.
...
This patch moves GButton and GRadioButton to inherit from it. This allows
them to share code for mouse event handling, etc.
2019-05-24 16:32:20 +02:00
Andreas Kling
abbcdba72e
WindowServer: Add 2560x1440 resolution option.
...
Also expand the QEMU VGA memory size to 64 MB, since otherwise we won't
have enough memory for double-buffering the screen.
2019-05-24 14:02:17 +02:00
Christopher Dumas
9823354754
LibGUI: Don't crash when updating menu item that's not in the window server ( #83 )
...
Don't crash when updating menu item that's not in the window server. Menu Items begin with an invalid ID of -1, and only get a valid ID if the menu they are attached to is added to the window server. They don't send updates to the server unless they have a valid ID.
Fixes #82
2019-05-24 04:31:00 +02:00
Andreas Kling
ebf645d72a
Kernel: Tidy up IDEDiskDevice a bit.
...
The main cleanup here is putting the I/O address base in a member variable.
2019-05-24 04:17:15 +02:00
Andreas Kling
36d8b9e89b
LibGUI: Add a GRadioButton widget.
...
Radio buttons are automagically exclusive with other radio button children
of the same parent. :^)
2019-05-24 02:29:16 +02:00
Christopher Dumas
00075b1c8a
Added functionality to make back and forward buttons work in FileManager. Also
...
fixed it so that directories don't get double-opened (first when they are
opened, and second when the selection changes to match in the file tree view)
2019-05-24 00:24:28 +02:00
Andreas Kling
fba57d6ba3
Always run QEMU with -debugcon stdio.
...
If someone wants to run without this, they can disable it manually :^)
2019-05-23 20:57:32 +02:00
Andreas Kling
9806a23f83
Kernel: Return ENOSYS if an invalid syscall number is requested.
2019-05-23 17:04:26 +02:00
Robin Burchell
6917c42140
Kernel/AK: Move ELF loader to AK
...
This is in preparation for eventually using it in userspace.
LinearAddress.h has not been moved for the time being (as it seems to be
only used by a very small part of the code).
2019-05-23 16:57:34 +02:00
Robin Burchell
5b3c4afff2
LibC: Stub out dlfcn
2019-05-23 16:57:34 +02:00
Andreas Kling
14a202f011
Kernel: getpeername() should fail with ENOTCONN for non-connected sockets.
2019-05-23 15:39:52 +02:00
Andreas Kling
709893364d
LibC: The "install" target should depend on the "startfiles" target.
...
This ensures that crt0.o is built during the Toolchain bootstrap.
2019-05-23 14:10:37 +02:00
Robin Burchell
a04a58b7eb
LibC: Port setjmp syntax to avoid nasm dependency
2019-05-23 13:06:59 +02:00
Andreas Kling
7afc0fb9c8
Kernel: Forked children should inherit their RangeAllocator by copy.
...
Otherwise we'll start handing out addresses that are very likely already in
use by existing ranges.
2019-05-22 13:24:28 +02:00
Andreas Kling
8098d2e337
Kernel: If a signal is ignored, make sure we unset BlockedSignal state.
2019-05-22 13:23:41 +02:00
Andreas Kling
c048ded470
Kernel: Dump backtrace on illegal opcode exception.
2019-05-22 13:22:27 +02:00
Andreas Kling
e388808479
LibC: Some compat fixes for GNU make.
2019-05-22 13:21:49 +02:00
Andreas Kling
f490ce0fb5
LibC: Implement wait() as a wrapper around waitpid().
2019-05-22 13:21:17 +02:00
Andreas Kling
4aef87a9a4
LibC: First pass of compat work / stubs while trying to build OpenSSL.
2019-05-21 21:36:08 +02:00
Andreas Kling
08228f34b9
GWindow: Only flip the window backing stores once per paint event.
2019-05-21 21:05:10 +02:00
Robin Burchell
9aa9454c6b
WindowServer: Don't eat a MouseUp when producing a MouseDoubleClick
...
Otherwise, double clicking a button will leave it in pressed state.
2019-05-21 16:43:56 +02:00
Andreas Kling
c9a9ca0dfe
Kernel: Bump kernel stacks to 64 KB.
...
This makes the ELF symbolication crash go away while I work out a smart fix.
2019-05-21 16:15:52 +02:00
Andreas Kling
a8313ae0a3
AK: Always inline convert_between_host_and_network<T>.
2019-05-21 16:14:02 +02:00
Andreas Kling
e383bc6fd8
LibC: Oops, forgot to commit sigsuspend() prototype.
2019-05-21 12:31:14 +02:00
Andreas Kling
3c7b46a85a
LibC: Add htonl() and ntohl().
2019-05-21 02:22:21 +02:00
Andreas Kling
02033873b7
LibC: Add sigsuspend() stub.
2019-05-21 02:22:02 +02:00
Andreas Kling
52f135fe13
AK: Add some more features to Vector iterators.
2019-05-21 01:36:36 +02:00