Commit Graph
218 Commits
Author SHA1 Message Date
Le Philousophe 5ed9b34bf2 GUI: Resolve text alignment on reflow
Resolving it when constructing the text widget may be too early for
widgets not defined in XML (like Android options widget).
This makes the alignment being invalid some times and valid some other
times.
2024-11-02 20:02:17 +01:00
Cameron Cawley da56ee871b GUI: EE: Use a dialog instead of drawing directly on the overlay 2024-07-31 02:50:43 +03:00
Cameron Cawley 96f9569790 GUI: Make use of simple blitting routines where possible 2024-06-19 02:36:17 +02:00
Cameron Cawley efec9b2d25 GUI: Remove built-in scroll containers from OptionsContainerWidget 2024-06-14 01:15:12 +02:00
Hubert Maier 2df817fa0e JANITORIAL: Fix layed typo in widget.h 2024-05-18 13:52:31 +02:00
Le Philousophe 868b0d3c00 GUI: Initialize _path while constructing PathWidget
Without this, if PathWidget is never set, the getLabel function returns
an empty Path.
Thanks to athrxx for finding this and proposing a fix.
2024-05-05 15:48:26 +02:00
Le Philousophe 74a6158347 GUI: Add a PathWidget
It stores a Path and displays an optional placeholder if the path is
empty.
It is based on StaticTextWidget and doesn't allow edits.
2023-12-24 13:19:25 +01:00
Matthew Jimenez 70a7fef8af GUI: Fix scrollbar visibility for keymaps option tab.
This fixes #14701
2023-11-27 15:55:06 +01:00
Kurian Jojo 595a3d7724 GUI: Use Keymapper for EditableWidget 2023-10-24 19:01:12 +02:00
Eugene Sandulenko 2b35c7997f GUI: Implemented link tooltips for RichTextWidget 2023-09-17 00:56:28 +02:00
Eugene Sandulenko f048d170e7 GUI: Added stubs for RichTextWidget 2023-09-17 00:56:28 +02:00
Cameron Cawley fb2503d02e GUI: Only use a transparent colour for BMP images 2023-04-09 12:54:38 +02:00
Thierry Crozat b1fcd15cad GUI: Allow scaling dialog and widget sizes in constructors
The resize() function has the option to do the scaling, but
adding it to the construtor avoids having to then call resize().
Also this makes more explicit that by default the sizes are not
scaled. The reason for not scaling by default is because values
with get from the ThemeEngine are already scaled.
2023-03-25 11:27:02 +01:00
grisenti 7b53202a9e ALL: add support for --config and refactor code 2022-05-29 13:56:21 +02:00
grisenti 819f52a14d ALL: add support for --fullscreen command 2022-05-29 13:56:21 +02:00
grisenti c0acb85605 ALL: add support for --savepath command 2022-05-29 13:56:21 +02:00
Die4Ever e36d66f0e5 GUI: button widget auto size with screen width 2022-05-23 23:44:59 +02:00
Die4Ever 2296af6b1e GUI: Move the lowres string handling logic inside the button widgets 2022-05-15 13:16:29 +03:00
antoniou79 325260f1ae GUI: Fix scrolling in launcher and GMM tabs
This should address the #13106 issue and similar

It makes widgets, who don't implement handleMouseWheel(), call the handleMouseWheel() of their parent by default
Logic is borrowed from how widgets forward unhandle commands to their parent in handleCommand()
2022-04-11 23:01:30 +03:00
SupSuper 57d0df273e GUI: Scale grid widget icons with filtering 2022-02-22 17:46:21 +00:00
Die4Ever 30a8d927a1 GUI: tabs with scrollbars 2022-01-23 20:28:55 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
av-dx 699b939d9d GUI: Add scaleGfx declaration to widget.h 2021-11-12 14:46:34 +01:00
av-dx bfca5f8b11 JANITORIAL: Cleanup leftovers 2021-11-12 14:46:34 +01:00
av-dx 6a57173c5a GUI: Moved Grid widgets to separate files. 2021-11-12 14:46:34 +01:00
av-dx 8dcb3c298a GUI: Reverted scaleGfx() to return const pointer 2021-11-12 14:46:34 +01:00
av-dx ba91762825 GUI: Reusable containers for Grid Items 2021-11-12 14:46:34 +01:00
av-dx cf3dd4f845 GUI: Fix memory leak in thumbnail scaling. 2021-11-12 14:46:34 +01:00
av-dx 4d07dd48e3 GUI: Switch to GridItemInfo struct from LauncherEntry 2021-11-12 14:46:34 +01:00
av-dx f09a05cbb4 GUI: Dynamically "load" thumbnails during scroll or resize 2021-11-12 14:46:34 +01:00
av-dx 823474faaf GUI: Remove gridFromList() to move code to reflowLayout() 2021-11-12 14:46:34 +01:00
av-dx b6ccca78c0 GUI: Move Grid Initialisation to reflowLayout() 2021-11-12 14:46:34 +01:00
av-dx 64afe7a55f GUI: JANITORIAL: Fix misleading/ambigous names 2021-11-12 14:46:34 +01:00
av-dx 50611aa60b GUI: Fix transitive clipping behaviour 2021-11-12 14:46:34 +01:00
av-dx 43d864e97a GUI: Fix grid scroll going offscreen 2021-11-12 14:46:34 +01:00
av-dx b931a37028 GUI: Make use of scaleGfx() to scale icons 2021-11-12 14:46:34 +01:00
av-dx 2900553a43 GUI: Reflow Grid when window size changes 2021-11-12 14:46:34 +01:00
av-dx 059deb0e50 MISC: Remove temporary warnings 2021-11-12 14:46:34 +01:00
av-dx dc878846ee GUI: Create new widgets for the grid system. 2021-11-12 14:46:34 +01:00
av-dx 999c5d2bc6 GUI: Testing grid view with constraints 2021-11-12 14:46:34 +01:00
Cameron Cawley d460f8f70a GUI: Avoid showing ellipses in smaller labels 2021-10-12 23:29:21 +01:00
Cameron Cawley b444f53685 GUI: Specify the spacing for checkboxes and radio buttons in the theme files 2021-10-12 23:27:07 +01:00
antoniou79 da461da6f6 GUI: Fix tooltip behavior to be less interruptive
The tooltip will show only if mouse cursor was moved but not on a hovered focused editText field

Changes and implications in this commit:
- Fix _lastMousePosition coordinates and time being updated upon giving focus to the tooltip
- Check for mouse cursor movement first in the decision for showing the tooltip, then check if sufficient time for mouse resting position has passed (kTooltipDelay).
- Prevents showing a tooltip for a widget if it is an editable field (editText) and has both mouse hovering above it and the current focus.
This is so that typing text is not interrupted / slowed down by a periodical display of the tooltip, if the mouse is hovering over the same text field that the user is editing.
- If mouse cursor is moved but lands on the same widget as the one that had its tooltip shown last, then show the tooltip but after a different (larger) delay kTooltipSameWidgetDelay.
- Still shows tooltip for other widgets, including editText ones, if the mouse is hovered over them and they are not the current focused editText widget.

The bug was mentioned for the Android port on the forums here:
https://forums.scummvm.org/viewtopic.php?p=95531#p95531
However, it is not Android specific, even though the slowdown is a lot more noticeable on an Android device.
2021-06-19 14:39:34 +02:00
Eugene Sandulenko 36755f2276 GUI: Add parameter for optional scaling GraphicsWidget 2021-04-17 15:04:35 +02:00
Eugene Sandulenko bd083c7fa7 GUI: Switch GUI to ManagedSurface 2021-04-11 21:21:44 +02:00
Eugene Sandulenko 51525eeb43 GUI: Added SVG support to PicButtonWidget 2021-04-11 21:21:44 +02:00
Eugene Sandulenko 19de7655c1 GUI: Switch GraphicsWidget to ManagedSurface 2021-04-11 21:21:44 +02:00
Eugene Sandulenko 7937c4599c GUI: Implemented GraphicsWidget::setGfxFromTheme() 2021-04-11 21:21:44 +02:00
Eugene Sandulenko 7a3752b394 GUI: Scale gfx from PicButtonWIdget. This fixed Hugo top menu 2021-04-11 21:21:44 +02:00
Eugene Sandulenko 81e194d458 GUI: Scale GUI object on resize 2021-04-11 21:21:44 +02:00