1
0
mirror of synced 2024-11-12 02:00:52 +01:00
ImHex/plugins/builtin/include/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.hpp impr: Refactor various view drawing code (#1698) 2024-06-08 13:56:48 +02:00
view_achievements.hpp refactor: Streamline entire view system 2023-11-21 13:47:50 +01:00
view_bookmarks.hpp impr: Improve bookmark drag-n-drop logic 2024-06-09 20:11:55 +02:00
view_command_palette.hpp refactor: Get rid of this->m_ 2023-12-19 13:10:25 +01:00
view_constants.hpp refactor: Streamline entire view system 2023-11-21 13:47:50 +01:00
view_data_inspector.hpp impr: Refactor various view drawing code (#1698) 2024-06-08 13:56:48 +02:00
view_data_processor.hpp feat: Display pattern descriptions in file chooser and pattern popup 2024-08-03 22:00:47 +02:00
view_find.hpp feat: Added CSV, TSV and JSON as export options for Find results (#1673) 2024-06-18 20:57:55 +00:00
view_hex_editor.hpp impr: Make highlight hovering more efficient 2024-07-08 21:34:27 +02:00
view_highlight_rules.hpp feat: Added highlighting rules 2023-12-02 11:09:32 +01:00
view_information.hpp feat: Added option to highlight pattern parents in the hex editor when hovering 2024-02-25 14:30:56 +01:00
view_logs.hpp refactor: Streamline entire view system 2023-11-21 13:47:50 +01:00
view_patches.hpp fix: Modification highlighting not working correctly when provider data was moved 2024-02-15 22:09:37 +01:00
view_pattern_data.hpp feat: Highlight patterns in hex editor when hovering over pattern data row 2024-06-07 19:48:10 +02:00
view_pattern_editor.hpp feat: Added underwaved text functions (#1889) 2024-09-15 15:19:04 +02:00
view_provider_settings.hpp fix: Provider loader interface being closable and not resizing correctly 2023-12-17 23:15:52 +01:00
view_settings.hpp impr: Use sidebar for settings categories instead of tabs 2024-04-10 19:55:37 +02:00
view_store.hpp fix: Replace old defaults path system with a new one 2024-06-22 10:44:55 +02:00
view_theme_manager.hpp refactor: Streamline entire view system 2023-11-21 13:47:50 +01:00
view_tools.hpp impr: Various web build improvements, API cleanup (#1541) 2024-02-10 23:31:05 +01:00
view_tutorials.hpp feat: Added basic introduction tutorial 2023-12-13 23:03:39 +01:00