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
Andreas Kling
689ca370d4
Everywhere: Remove NonnullRefPtr.h includes
2023-03-06 23:46:35 +01:00
Andreas Kling
8a48246ed1
Everywhere: Stop using NonnullRefPtrVector
...
This class had slightly confusing semantics and the added weirdness
doesn't seem worth it just so we can say "." instead of "->" when
iterating over a vector of NNRPs.
This patch replaces NonnullRefPtrVector<T> with Vector<NNRP<T>>.
2023-03-06 23:46:35 +01:00
timre13
eef07a411b
VideoPlayer: Create submenu to set sizing mode
...
Also add icon to the sizing mode cycling button.
2023-03-06 20:28:22 +00:00
Matthew Olsson
6003bcfd2d
Browser: Add a missing include in InspectorWidget
2023-03-06 13:05:43 +00:00
Sam Atkins
a1baa5cb00
CharacterMap: Make the search happen as you type
2023-03-05 23:03:32 +01:00
Sam Atkins
1f0f96e6d7
CharacterMap: Limit the number of results from the GUI character search
...
Past a few hundred matches, the search is no longer useful, and takes an
excessive amount of time to recalculate the column widths by measuring
thousands of pieces of text. 250 seems like a reasonable arbitrary
limit, and keeps things nice and snappy. :^)
2023-03-05 23:03:32 +01:00
Sam Atkins
bb8bd48dc0
CharacterMap: Pause updates while generating search results
...
Co-authored-by: Tim Flynn <trflynn89@pm.me>
2023-03-05 23:03:32 +01:00
Sam Atkins
8110cf9fab
PartitionEditor: Migrate to Directory::for_each_entry()
2023-03-05 20:23:42 +01:00
Sam Atkins
3c25a9b5fe
MouseSettings: Migrate to Directory::for_each_entry()
2023-03-05 20:23:42 +01:00
Sam Atkins
1b776bffcf
KeyboardSettings: Migrate to Directory::for_each_entry()
2023-03-05 20:23:42 +01:00