1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-19 12:57:39 +00:00
serenity/Userland/Applications/Spreadsheet
Lucas CHOLLET 1a97382305 LibGUI: Make Application's construction fallible
The pattern to construct `Application` was to use the `try_create`
method from the `C_OBJECT` macro. While being safe from an OOM
perspective, this method doesn't propagate errors from the constructor.
This patch make `Application` use the `C_OBJECT_ABSTRACT` and manually
define a `create` method that can bubble up errors from the
construction stage.

This commit also removes the ability to use `argc` and `argv` to
create an `Application`, only `Main`'s `Arguments` can be used.

From a user point of view, the patch renames `try_create` => `create`,
hence the huge number of modified files.
2023-05-05 16:41:21 +01:00
..
CellType AK: Remove StringBuilder::build() in favor of to_deprecated_string() 2023-01-27 20:38:49 +00:00
Readers LibCore: Rename File to DeprecatedFile 2023-02-13 00:50:07 +00:00
Tests Spreadsheet: Throw if lookup value doesn't exist and no default is given 2022-06-26 22:21:17 +01:00
Writers AK: Rename Stream::write_entire_buffer to Stream::write_until_depleted 2023-03-13 15:16:20 +00:00
Cell.cpp Spreadsheet: Add CellChange constructor for changes in type metadata 2023-04-29 12:09:08 +01:00
Cell.h Spreadsheet: Add CellChange constructor for changes in type metadata 2023-04-29 12:09:08 +01:00
CellSyntaxHighlighter.cpp Spreadsheet+LibSyntax: Never insert spans directly 2023-04-14 10:00:52 +02:00
CellSyntaxHighlighter.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
CellTypeDialog.cpp LibGUI+Userland: Port Labels to String 2023-04-30 05:48:14 +02:00
CellTypeDialog.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
CMakeLists.txt Spreadsheet: Add list of recently-opened files 2023-04-03 21:16:26 +02:00
CondFormatting.gml Spreadsheet: Make conditional-formatting condition-list scrollable 2022-06-30 11:53:50 +02:00
ConditionalFormatting.h Everywhere: Stop using NonnullRefPtrVector 2023-03-06 23:46:35 +01:00
CondView.gml Spreadsheet: Use new layout system 2022-06-30 11:51:25 +02:00
csv_export.gml Userland: Replace empty GUI::Widgets in GML with GUI::Layout::Spacer 2022-09-29 08:31:15 -04:00
csv_import.gml Userland: Replace empty GUI::Widgets in GML with GUI::Layout::Spacer 2022-09-29 08:31:15 -04:00
ExportDialog.cpp AK: Add new failable JsonArray::{append/set} functions 2023-04-24 09:21:51 +02:00
ExportDialog.h Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
Forward.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HelpWindow.cpp AK+Everywhere: Change URL::path() to serialize_path() 2023-04-15 06:37:04 +02:00
HelpWindow.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ImportDialog.cpp LibGUI+Userland: Port Labels to String 2023-04-30 05:48:14 +02:00
ImportDialog.h Everywhere: Stop using NonnullRefPtrVector 2023-03-06 23:46:35 +01:00
JSIntegration.cpp LibJS: Port Value::to_object() to NonnullGCPtr 2023-04-14 09:59:29 +02:00
JSIntegration.h LibJS+Everywhere: Allow Cell::initialize overrides to throw OOM errors 2023-01-29 00:02:45 +00:00
main.cpp LibGUI: Make Application's construction fallible 2023-05-05 16:41:21 +01:00
Position.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
select_format_page.gml Userland: Replace empty GUI::Widgets in GML with GUI::Layout::Spacer 2022-09-29 08:31:15 -04:00
Spreadsheet.cpp Spreadsheet: Add CellChange constructor for changes in type metadata 2023-04-29 12:09:08 +01:00
Spreadsheet.h Spreadsheet: Add CellChange constructor for changes in type metadata 2023-04-29 12:09:08 +01:00
SpreadsheetModel.cpp Spreadsheet: Add CellUndoMetadataCommand class 2023-04-29 12:09:08 +01:00
SpreadsheetModel.h Spreadsheet: Add CellUndoMetadataCommand class 2023-04-29 12:09:08 +01:00
SpreadsheetView.cpp Userland: Specify margins and spacing in the GUI::Layout constructor 2023-02-18 16:56:56 +00:00
SpreadsheetView.h Userland: Replace remaining Core::Timer::construct()s with try_create() 2023-01-12 11:25:51 +01:00
SpreadsheetWidget.cpp LibGfx+Userland: Merge FrameShape and FrameShadow into FrameStyle 2023-04-30 05:49:46 +02:00
SpreadsheetWidget.h Spreadsheet: Propagate errors from SpreadsheetWidget::initialize_menubar 2023-04-03 21:16:26 +02:00
Workbook.cpp LibJS: Propagate errors from VM creation 2023-03-17 16:39:08 +00:00
Workbook.h Spreadsheet: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr 2023-03-15 08:48:49 +01:00