Andreas Kling
bd61e75e0b
LibGUI: Remove Window::try_add_menu()
...
And fall back to the infallible add_menu().
2023-08-14 14:57:54 +02:00
Andreas Kling
676ef0cc3d
LibGUI: Make Menu::add_recent_files_list() infallible
2023-08-14 14:57:54 +02:00
Andreas Kling
f2faf2767f
LibGUI: Remove Menu::try_add_action()
...
And fall back to the infallible add_action().
2023-08-14 14:57:54 +02:00
Andreas Kling
eec328e2ab
LibGUI: Remove Menu::try_add_submenu()
...
And fall back to the infallible add_submenu().
2023-08-14 14:57:54 +02:00
Andreas Kling
1525fa3b8f
LibGUI: Remove Menu::try_add_separator()
...
And fall back to the infallible add_separator().
2023-08-14 14:57:54 +02:00
Lucas CHOLLET
3f35ffb648
Userland: Prefer _string over _short_string
...
As `_string` can't fail anymore (since 3434412 ), there are no real
benefits to use the short variant in most cases.
2023-08-08 07:37:21 +02:00
Andreas Kling
34344120f2
AK: Make "foo"_string infallible
...
Stop worrying about tiny OOMs.
Work towards #20405 .
2023-08-07 16:03:27 +02:00
Sam Atkins
aa7346d23e
HexEditor: Show status tips in Statusbar
2023-06-17 20:36:03 +02:00
Karol Kosek
2029750519
LibGUI+Userland: Port StatusBar::text() and set_text functions to String
2023-06-15 13:53:22 +01:00
Karol Kosek
27011cf55d
LibFSAC+Userland: Pass options for FSAC::open_file() using a struct
...
It was rather inconvenient having to specify all arguments if you wanted
to modify only the last one.
2023-06-11 09:40:17 +01:00
thankyouverycool
02d94a303c
Base+Userland: Apply Human Interface Guidelines to Object text
...
Corrects a slew of titles, buttons, labels, menu items and status bars
for capitalization, ellipses and punctuation.
Rewords a few actions and dialogs to use uniform language and
punctuation.
2023-05-23 05:59:49 +02:00
Caoimhe
99de0b2c14
HexEditor: Add list of recently opened files
2023-05-11 20:20:40 +01:00
Caoimhe
2adcf85d9d
HexEditor: Remember all of the layout options in the configuration
2023-05-03 08:33:11 +01:00
Tim Ledbetter
05c8aa71f2
Applications: Update man page links for applications
...
This commit updates all application man page links to point to the
Applications subdirectory.
2023-04-25 02:16:48 -06:00
Karol Kosek
41cf3b741f
HexEditor: Propagate errors from HexEditorWidget::initialize_menubar()
2023-04-20 17:02:23 +01:00
Karol Kosek
51bd9ca037
LibGUI+Userland: Make Menu::*add_submmenu take name using new string
2023-04-19 07:59:54 +02:00
Karol Kosek
969543a847
LibGUI+Userland: Make Window::*add_menu take name using new string
2023-04-19 07:59:54 +02:00
thankyouverycool
02a9e5d3f6
LibGUI+Userland: Improve error and font handling for InputBox
...
Adds fallible factories, ports DeprecatedString, and rebuilds the
layout to accomodate system font changes.
2023-04-18 10:05:21 +02:00
MacDue
35612c6a7f
AK+Everywhere: Change URL::path() to serialize_path()
...
This now defaults to serializing the path with percent decoded segments
(which is what all callers expect), but has an option not to. This fixes
`file://` URLs with spaces in their paths.
The name has been changed to serialize_path() path to make it more clear
that this method will generate a new string each call (except for the
cannot_be_a_base_url() case). A few callers have then been updated to
avoid repeatedly calling this function.
2023-04-15 06:37:04 +02:00
Patryk Pilipczuk
b87b1472e1
HexEditor: Add BE decoding for UTF16String column in ValueInspector
2023-02-27 13:39:40 +01:00
Sam Atkins
2db168acc1
LibTextCodec+Everywhere: Port Decoders to new Strings
2023-02-19 17:15:47 +01:00
MetallicSquid
eb27b397b8
HexEditor: Add selection strings to the value inspector
...
Strings include ASCII, UTF-8, and UTF-16
Co-authored-by: Andreas Krohn <hamburger1984@gmail.com>
2023-02-15 12:13:31 +00:00
Tim Schumacher
874c7bba28
LibCore: Remove Stream.h
2023-02-13 00:50:07 +00:00
Tim Schumacher
606a3982f3
LibCore: Move Stream-based file into the Core namespace
2023-02-13 00:50:07 +00:00
MacDue
63b11030f0
Everywhere: Use ReadonlySpan<T> instead of Span<T const>
2023-02-08 19:15:45 +00:00
Karol Baraniecki
506c26acce
LibGUI+Userland: Switch order of parameters for InputBox::show
...
Because usage of the input_type parameter is now higher than of the
placeholder parameter, this makes for a cleaner API.
2023-02-04 18:46:39 -07:00
Karol Baraniecki
8095d9276b
Userland: Replace manual checking by using GUI::InputType::NonemptyText
...
Do this where we were already checking if the input was empty after the
InputBox was submitted. Those places gain interactive input validation.
:^)
2023-02-04 18:46:39 -07:00
Lucas CHOLLET
a2dca2b762
HexEditor: Propagate errors when using "Save"
2023-02-04 17:20:31 -07:00
Lucas CHOLLET
2bba743c24
HexEditor: Propagate errors when using "Save as"
2023-02-04 17:20:31 -07:00
Lucas CHOLLET
3d914247cc
HexEditor: Port to Core::Stream
2023-02-04 17:20:31 -07:00
Tim Schumacher
82a152b696
LibGfx: Remove try_ prefix from bitmap creation functions
...
Those don't have any non-try counterpart, so we might as well just omit
it.
2023-01-26 20:24:37 +00:00
Timothy Flynn
d0403ec14f
AK+Everywhere: Rename Utf16View::to_utf8 to to_deprecated_string
...
A subsequent commit will add to_utf8 back to create an AK::String.
2023-01-09 23:00:24 +00:00
Timothy Flynn
d793262beb
AK+Everywhere: Make UTF-16 to UTF-8 converter fallible
...
This could fail to allocate the underlying storage needed to store the
UTF-8 data. Propagate this error.
2023-01-08 12:13:15 +01:00
Sam Atkins
f0395a2042
LibGUI+Userland: Rename try_load_from_gml() -> load_from_gml() :^)
...
It's the only one, so the `try` prefix is unnecessary now.
2023-01-07 14:39:30 +01:00
Sam Atkins
54b1326165
Userland: Replace all uses of load_from_gml with try_load_from_gml
...
MOAR FIXMES! ;^)
2023-01-07 14:39:30 +01:00
Karol Kosek
247db3fdd0
LibFileSystemAccessClient: Rename try_* functions to try_*_deprecated
...
These functions return the deprecated `Core::File` class, so let's mark
it as such to avoid possible confusion between future non try_*
functions which will use Core::Stream family classes and to possibly
grab someone's attention. :^)
2023-01-07 10:53:43 +00:00
Arda Cinar
2dd7fa2d44
HexEditor: Handle some errors inside the editor
...
Specifically, the ones HexEditor::did_complete_action possibly raised in
case creating an undo stack entry or pushing it onto the undo stack
fails. In this case, an error popup is displayed and the modifications
are undone.
This removes 2 FIXMEs inside the code :^)
2022-12-14 23:43:20 -07:00
Lucas CHOLLET
9ae97c8cb1
LibFileSystemAccessClient: Rename try_save_file =>
...
`try_save_file_deprecated`
This precedes the addition of a new api using `Core::Stream`
2022-12-14 18:26:25 +00:00
Linus Groh
57dc179b1f
Everywhere: Rename to_{string => deprecated_string}() where applicable
...
This will make it easier to support both string types at the same time
while we convert code, and tracking down remaining uses.
One big exception is Value::to_string() in LibJS, where the name is
dictated by the ToString AO.
2022-12-06 08:54:33 +01:00
Linus Groh
6e19ab2bbc
AK+Everywhere: Rename String to DeprecatedString
...
We have a new, improved string type coming up in AK (OOM aware, no null
state), and while it's going to use UTF-8, the name UTF8String is a
mouthful - so let's free up the String name by renaming the existing
class.
Making the old one have an annoying name will hopefully also help with
quick adoption :^)
2022-12-06 08:54:33 +01:00
Karol Kosek
0b7f5bbdfb
Userland: Accept drag_enter events for widgets supporting file drops
...
This patch will switch cursor to DragCopy when a user enters a widget
while dragging file(s), giving them a visual clue that it *might* be
dropped into this widget.
This is a rather naive approach, as the cursor icon will change for any
kind of file, as currently programs don't know the drag contents before
dropping it. But after all I think it's better than nothing. :^)
2022-11-13 16:13:03 -07:00
Karol Kosek
6b8d351b40
TextEditor+HexEditor: Warn about unsaved changes after dropping files
2022-11-07 12:55:46 +00:00
kamp
8b0a464f5c
HexEditor: Implement undo and redo actions
2022-11-01 12:07:28 +00:00
kamp
24f729d0ef
HexEditor: Only mark window as modified when document is actually dirty
2022-11-01 12:07:28 +00:00
demostanis
34acae90c7
Userland: Let applications make use of make_command_palette_action()
2022-10-25 10:21:18 +01:00
networkException
4230dbbb21
AK+Everywhere: Replace "protocol" with "scheme" url helpers
...
URL had properly named replacements for protocol(), set_protocol() and
create_with_file_protocol() already. This patch removes these function
and updates all call sites to use the functions named according to the
specification.
See https://url.spec.whatwg.org/#concept-url-scheme
2022-09-29 09:39:04 +01:00
djwisdom
27f5a18ce6
HexEditor: Add Help->Manual entry in Menu
2022-08-29 09:25:29 +01:00
Jannis Weis
8fa34b43ce
HexEditor: Fix utf16 validation
...
Previously the utf8_view was validated for the utf16 valude instead
of the utf16_view.
2022-08-22 12:48:47 +02:00
James Puleo
88cf40179d
HexEditor: Make HexEditor::open_new_file fallible and reduce branching
...
Returning a `bool` is meaningless, so let's make it more expresive :^)
2022-08-03 10:12:11 -04:00
James Puleo
0bfcbf0b0a
HexEditor: Change Find All Strings shortcut to Ctrl + Shift + F
...
The previous shortcut of `Ctrl + Shift + S` conflicted with `Save As...`
action shortcut.
2022-08-03 10:12:11 -04:00