1
0
mirror of synced 2025-01-06 11:44:25 +01:00
ImHex/plugins/builtin/source/content/views
paxcut 54f5bd1d80
feat: Added underwaved text functions (#1889)
### Problem description
Currently when errors are found the entire line where the error occurred
is highlighted and one has to look at the error message in order to find
where the error is located on the line. With this PR the line will no
longer be highlighted and the location of the error will be marked with
an red waved line under the error location. Hovering over the text where
the error occurred produces an error overlay so if several errors occur
on the same line they can all be seen separately.

### Implementation description
The definition of error marker was switched to include column and size
as well as line and message like before.
This change required changing the way view pattern editor draws the
error markers because the errors themselves don't have size information.
Also, a new errorHoverBoxes type was defined to help in the detection of
the floating error messages when error is hovered.

Note that the underwave code depends on having a monospaced. If font is
not monospaced the underwaved text can be short/long or displaced.


### Screenshots

![image](https://github.com/user-attachments/assets/f0b08e10-612c-404a-8863-d4f00054d198)


![image](https://github.com/user-attachments/assets/911fcacb-2a1e-431f-bbc8-8e05bcd61341)
2024-09-15 15:19:04 +02:00
..
view_about.cpp impr: Added Boost.Regex to about page 2024-07-01 22:01:28 +02:00
view_achievements.cpp impr: Store settings and achievements immediately 2024-05-15 18:27:09 +02:00
view_bookmarks.cpp fix: Task names not displaying correctly anymore 2024-07-27 14:09:52 +02:00
view_command_palette.cpp build: Updated ImGui to v1.91.0 2024-08-03 23:49:47 +02:00
view_constants.cpp fix: Replace old defaults path system with a new one 2024-06-22 10:44:55 +02:00
view_data_inspector.cpp fix: Copy paste error 2024-07-27 16:46:10 +02:00
view_data_processor.cpp fix: Race condition during data processor execution 2024-08-03 15:17:35 +02:00
view_find.cpp impr: Make all task names properly translatable 2024-07-27 16:29:06 +02:00
view_hex_editor.cpp build: Updated ImGui to v1.91.0 2024-08-03 23:49:47 +02:00
view_highlight_rules.cpp impr: Swap some items between File and Edit menu to fit better 2024-06-28 11:13:03 +02:00
view_information.cpp fix: Sub windows being used incorrectly 2024-06-26 19:11:31 +02:00
view_logs.cpp impr: Restructure various components much better (#1520) 2024-01-28 22:14:59 +01:00
view_patches.cpp impr: Load small files into memory, open larger files as read-only by default 2024-03-10 14:31:39 +01:00
view_pattern_data.cpp impr: Make highlight hovering more efficient 2024-07-08 21:34:27 +02:00
view_pattern_editor.cpp feat: Added underwaved text functions (#1889) 2024-09-15 15:19:04 +02:00
view_provider_settings.cpp impr: Switch most usages of modals over to toasts 2023-12-26 00:22:47 +01:00
view_settings.cpp build: Updated ImGui to v1.91.0 2024-08-03 23:49:47 +02:00
view_store.cpp impr: Make all task names properly translatable 2024-07-27 16:29:06 +02:00
view_theme_manager.cpp impr: Restructure various components much better (#1520) 2024-01-28 22:14:59 +01:00
view_tools.cpp impr: Various web build improvements, API cleanup (#1541) 2024-02-10 23:31:05 +01:00
view_tutorials.cpp fix: Sub windows being used incorrectly 2024-06-26 19:11:31 +02:00