Andreas Kling
974c0f97b8
GGroupBox: Allow constructing these without an initial text.
2019-07-11 20:16:34 +02:00
Lawrence Manning
01998a10e3
GSlider: Make the knob width proportional to the range, if in that mode ( #288 )
...
Regardless of mode, made the knob container clickable so the knob position
can be moved without dragging the knob itself.
Added a 3rd GSlider to the WidgetGallery showing the proportional mode in
action.
2019-07-11 16:31:43 +02:00
Andreas Kling
b522e3cc05
GWidget: Make set_font() take either Font* or Font&.
2019-07-11 16:02:39 +02:00
Andreas Kling
7faf878e0a
GToolBar: Make add_action() take a GAction& instead of NonnullRefPtr&&.
...
There's very little reason to take NonnullRefPtr&& in arguments really.
You can avoid ref-count churn in the cases where ownership is transferred
from the caller to the callee, but that's a pretty unusual situation and
not worth optimizing for at this stage.
2019-07-11 15:57:29 +02:00
Andreas Kling
22528d8db3
GLabel: Make set_icon() take a GraphicsBitmap*.
...
Taking a RefPtr<GraphicsBitmap>&& was just making things unnecessarily
complicated for clients, and didn't actually improve anything.
2019-07-11 15:52:15 +02:00
Andreas Kling
992272761c
LibGUI: Remove use of copy_ref().
2019-07-11 15:49:47 +02:00
Andreas Kling
b3d431e390
GWidget: Add "set_autofill" as an alias for set_fill_with_background_color.
2019-07-10 21:12:09 +02:00
Andreas Kling
f465de8f76
GWidget: Add placeholder setters for the backcolor/forecolor properties.
2019-07-10 21:00:34 +02:00
Andreas Kling
7083a0104a
LibGUI: Add GActionGroup, a way to group a bunch of GActions.
...
This can be used to make a bunch of actions mutually exclusive.
This patch only implements the exclusivity behavior for buttons.
2019-07-09 22:10:03 +02:00
Andreas Kling
2ae0333f5d
GAction: Remove "custom_data" and the related convenience constructors.
...
This mechanism was never actually used, just something I imagined would be
useful while I was first creating the class.
2019-07-09 21:28:52 +02:00
Andreas Kling
c110cf193d
Kernel: Have the open() syscall take an explicit path length parameter.
...
Instead of computing the path length inside the syscall handler, let the
caller do that work. This allows us to implement to new variants of open()
and creat(), called open_with_path_length() and creat_with_path_length().
These are suitable for use with e.g StringView.
2019-07-08 20:01:49 +02:00
Andreas Kling
0e75aba7c3
StringView: Rename characters() to characters_without_null_termination().
...
This should make you think twice before trying to use the const char* from
a StringView as if it's a null-terminated string.
2019-07-08 15:38:44 +02:00
Andreas Kling
d47432487d
GStackWidget: Add a notification hook for when the active widget changes.
2019-07-07 21:50:38 +02:00
Andreas Kling
8b0953a795
Libraries: Unbreak "make install" with new directory locations.
2019-07-04 16:41:42 +02:00
Andreas Kling
04b9dc2d30
Libraries: Create top level directory for libraries.
...
Things were getting a little crowded in the project root, so this patch
moves the Lib*/ directories into Libraries/.
2019-07-04 16:16:50 +02:00