Timothy Flynn
13dfadba79
LibJS: Propagate errors from VM creation
2023-03-17 16:39:08 +00:00
Kemal Zebari
3918a8492b
Browser: Have the bookmark button use the editor dialog
...
Now when the bookmark button that has not yet bookmarked the current
URL is pressed, it will add the bookmark but also prompt the user
with the BookmarkEditor dialog in case they wish to make final
touches to their bookmark title or URL. If they cancel or escape
the dialog, the bookmark will be removed.
2023-03-17 13:43:11 +00:00
Aliaksandr Kalenik
9d79a9b214
Browser: Implement notify_request_open_new_tab
2023-03-16 13:17:37 -04:00
Tim Ledbetter
bdaad815a1
PixelPaint: Rename Layer::resize() to Layer::scale()
...
This name more accurately describes the transform being performed.
2023-03-16 10:00:26 +01:00
Tim Ledbetter
690f3ae43b
PixelPaint: Always specify a new bounding rect when resizing layers
...
This commit also removes the other Layer::resize() overloads, as they
are no longer used.
2023-03-16 10:00:26 +01:00
Tim Ledbetter
c17b32e058
PixelPaint: Make Resize Image scale each layer to the correct size
...
The "Resize Image" action will now scale layer such that
the corners of each layer maintain their position relative to the edge
of the canvas.
Previously, each layer was scaled to the same size of the canvas.
2023-03-16 10:00:26 +01:00
Tim Ledbetter
92a0a7e3fa
PixelPaint: Don't resize layers when resizing the canvas
...
Calling Image::resize() with ScalingMode::None now resizes the canvas
without changing the size or position of any layers.
2023-03-16 10:00:26 +01:00
Karol Kosek
6c6af8ae4e
ThemeEditor: Store tab title in PropertyTabs as StringView
...
Removes a hop that creates a deprecated string.
We cannot store the title directly as a String, because we would have to
find a way to propagate the errors during constructing global static
objects.
2023-03-16 09:58:42 +01:00
Karol Kosek
66402b0666
LibGUI+Userland: Port TabWidget set_tab_title to new string
2023-03-16 09:58:42 +01:00
Karol Kosek
446c600d09
LibGUI+Applications: Port SettingsWindow::add_tab() to the new string
2023-03-16 09:58:42 +01:00
Karol Kosek
797968c310
LibGUI+Userland: Make TabWidget::*add_tab() take title using new string
2023-03-16 09:58:42 +01:00
Karol Kosek
5fed25ca9a
PixelPaint: Port ImageEditor title to new string
2023-03-16 09:58:42 +01:00
Karol Kosek
3805e4e3a9
LibGUI+HackStudio+PixelPaint: Port Widget title to the new String
...
I had to add a set_title(String) helper function for ImageEditor because
TabWidget requires it. This is a temporary fix and will be handled in
subsequent commit.
2023-03-16 09:58:42 +01:00
Karol Kosek
ee5838084d
LibCore+Userland: Add DEPRECATED infix to REGISTER_STRING_PROPERTY macro
2023-03-16 09:58:42 +01:00
Tim Ledbetter
26662d7ecd
SpaceAnalyzer: Make "Open in File Manager" shortcut behave correctly
...
Previously, the incorrect action would be invoked when using the Open
in File Manager keyboard shortcut, while a directory was selected.
2023-03-16 00:02:08 +01:00
Tim Ledbetter
8ffe91c2f7
PixelPaint: Make the clone tool brush size consistent with other tools
...
Other brush tools treat the brush size as a radius, not diameter. The
clone tool now does the same.
2023-03-15 23:56:47 +01:00
Tim Ledbetter
8fa6a85100
PixelPaint: Scale the clone tool sample marker size with zoom level
2023-03-15 23:56:47 +01:00
Tim Ledbetter
da0ec8e635
PixelPaint: Repaint clone tool sample marker on size change
2023-03-15 23:56:47 +01:00
Tim Ledbetter
9f75c2b075
PixelPaint: Minimize clone tool sample marker repaints
...
This removes 2 FIXMEs :^)
2023-03-15 23:56:47 +01:00
Sam Atkins
6d8f046fd0
LibGfx+Userland: Make TextAttributes::underline_style optional
...
Rather than having a style AND a field saying whether to use the style,
just make the style Optional.
2023-03-15 14:55:49 +01:00
MacDue
52e2095a3f
PartitionEditor: Add missing unveils
...
These were somewhat found by trial and error, but it seems like this
is now the required set to launch this without error.
2023-03-15 11:28:12 +01:00
Matthew Olsson
b5f01bd212
Spreadsheet: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr
2023-03-15 08:48:49 +01:00
kleines Filmröllchen
68447d8f39
SoundPlayer: Display title and artist in the window title if available
2023-03-13 12:35:17 -04:00
Tim Schumacher
ae51c1821c
Everywhere: Remove unintentional partial stream reads and writes
2023-03-13 15:16:20 +00:00
Tim Schumacher
ecd1862859
AK: Rename Stream::write_entire_buffer to Stream::write_until_depleted
...
No functional changes.
2023-03-13 15:16:20 +00:00
Tim Schumacher
a3f73e7d85
AK: Rename Stream::read_entire_buffer to Stream::read_until_filled
...
No functional changes.
2023-03-13 15:16:20 +00:00
Tim Schumacher
d5871f5717
AK: Rename Stream::{read,write} to Stream::{read_some,write_some}
...
Similar to POSIX read, the basic read and write functions of AK::Stream
do not have a lower limit of how much data they read or write (apart
from "none at all").
Rename the functions to "read some [data]" and "write some [data]" (with
"data" being omitted, since everything here is reading and writing data)
to make them sufficiently distinct from the functions that ensure to
use the entire buffer (which should be the go-to function for most
usages).
No functional changes, just a lot of new FIXMEs.
2023-03-13 15:16:20 +00:00
kleines Filmröllchen
e20038a04b
LibAudio+Piano: Correct header style
2023-03-13 13:59:41 +00:00
kleines Filmröllchen
cf1fa419ab
LibThreading: Register BackgroundAction with EventLoop
...
BackgroundActions are now added as a job to the event loop, therefore
they get canceled when the loop exits and their on_complete action never
runs. This fixes all UAF bugs related to BackgroundAction's use of
EventLoops, as seen with e.g. thumbnail generation.
2023-03-13 12:12:17 +00:00
kleines Filmröllchen
8f4d0d3797
LibCore+Userland: Make Promise's on_resolve fallible
...
This will be primarily necessary for BackgroundAction integration, but
it already allows us to add proper error handling in LibIMAP :^)
2023-03-13 12:12:17 +00:00
kleines Filmröllchen
bfd9f681f7
LibCore+Userland: Allow canceling promises
...
To make EventLoop cancel its managed Promises, we need the ability to
cancel them in the first place.
2023-03-13 12:12:17 +00:00
Lucas CHOLLET
b5594bf9a2
PixelPaint: Display color information on mousemove with the PickerTool
...
Per-channel values of the pixel color are now displayed in the status
bar when the PickerTool is selected. This information obviously updates
on mousemove.
2023-03-12 22:08:24 +01:00
Nico Weber
f1a3028ef1
LibGfx: Change BMPWriter API to be consistent with other image writers
2023-03-12 21:32:21 +01:00
Nico Weber
9b297c634f
LibGfx: Make QOIWriter use ErrorOr
...
In addition to it now handling allocation failures, the encode() API is
now consistent with PNGWriter.
2023-03-12 13:23:34 +00:00
implicitfield
d4d1cab895
ThemeEditor: Support more color scheme-related roles
2023-03-10 22:03:49 +01:00
implicitfield
e9e4baee77
Everywhere: Support overriding the system color scheme
2023-03-10 22:03:49 +01:00
Andreas Kling
a504ac3e2a
Everywhere: Rename equals_ignoring_case => equals_ignoring_ascii_case
...
Let's make it clear that these functions deal with ASCII case only.
2023-03-10 13:15:44 +01:00
Tim Ledbetter
4fd12b6b79
PixelPaint: Add list of recently opened files to the file menu
2023-03-09 21:21:18 +01:00
Tim Ledbetter
4accc6a61f
PixelPaint: Propagate errors from menu initialization
2023-03-09 21:21:18 +01:00
Linus Groh
e76394d96c
AK: Remove infallible version of StringBuilder::to_byte_buffer
...
Also drop the try_ prefix from the fallible function, as it is no longer
needed to distinguish the two.
2023-03-09 15:51:00 +00:00
Linus Groh
ac9c39fa17
CrashReporter: Handle backtrace OOM errors
2023-03-09 15:50:45 +00:00
Linus Groh
f068ddb79f
LibIMAP: Propagate OOM errors from decode_quoted_printable()
2023-03-09 14:47:45 +00:00
Karol Baraniecki
63c4bdf5dc
BrowserSettings: Use fallible version of StringBuilder::to_byte_buffer
2023-03-09 12:59:57 +00:00
Sam Atkins
c6a2e8eb08
TextEditor: Enable CMakeCache.txt highlighting
2023-03-08 14:21:37 +00:00
Aliaksandr Kalenik
54a1ec2f10
Browser: Handle close event in WebContentView
2023-03-07 11:34:11 +00:00
Mathis Wiehl
f276e70ac9
Help: Don't defer tree view selection updates
...
It is unsafe to defer this selection update, because ::open_url itself
is called when users make selection updates, creating a race.
This fixes and infinite selection change loop one could easily reproduce
by holding an up or down arrow key in the tree view while clicking on a
tree view item a couple of times.
2023-03-07 09:50:50 +01:00
Andreas Kling
be91020d0b
Settings: Remove outdated comment about NonnullPtrVector
2023-03-06 23:46:36 +01:00
Andreas Kling
2973298df1
Assistant: Remove outdated comment about NonnullPtrVector
2023-03-06 23:46:36 +01:00
Andreas Kling
21db2b7b90
Everywhere: Remove NonnullOwnPtr.h includes
2023-03-06 23:46:35 +01:00
Andreas Kling
359d6e7b0b
Everywhere: Stop using NonnullOwnPtrVector
...
Same as NonnullRefPtrVector: weird semantics, questionable benefits.
2023-03-06 23:46:35 +01:00