70 Commits

Author SHA1 Message Date
Mohit Bankar 5ef242d112 GUI: Implenet Fluid Scroll in Richtext widget
- Implement Fluid Scroll in HelpDialog
2026-04-20 23:33:23 +02:00
TusharGautam29 8c7e8bf715 GUI: Implement GlobalOptionsDialog dumping in dumpAllDialogs 2025-04-08 21:53:20 +02:00
Cameron Cawley afb383f3b1 GUI: Remove automatic scrollbars from TabWidget 2024-06-14 01:15:12 +02:00
Eugene Sandulenko 6d6a7a9b3a GUI: First step to draw tabs on bottom 2023-09-17 00:56:28 +02:00
antoniou79 dc69bd4d67 GUI: Fix infinite loop with mouse wheel over tab
Reported as regression in #13106

Comment link:  https://bugs.scummvm.org/ticket/13106#comment:4
2022-06-29 15:54:06 +03:00
Die4Ever 626b86fcce GUI: fix removeTab not writing back _firstWidget 2022-01-23 20:28:55 +02:00
Die4Ever 42a27fda40 GUI: tabs with scrollbars for more pages 2022-01-23 20:28:55 +02:00
Die4Ever 4ef38a9255 GUI: tabs with scrollbars 2022-01-23 20:28:55 +02: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
Eugene Sandulenko 109beb4f86 GUI: Explicitely use Common:: namespace 2021-11-12 14:46:34 +01:00
SupSuper b3fd7c524d GUI: Recalculate tab variables consistently 2021-04-24 21:10:00 +01:00
Eugene Sandulenko 9113f24120 GUI: Fix tab dimensions on resize 2021-04-13 02:13:20 +02:00
Eugene Sandulenko 5d6941f8b2 GUI: Move hardcoded tab title spacing to themes
This fixes HiDPI tabs rendering.
2021-04-11 21:21:44 +02:00
Eugene Sandulenko 493a343e6a GUI: Avoid double scaling for scrollbar and tab navbuttons 2021-04-11 21:21:44 +02:00
Cameron Cawley c877097b49 ALL: Remove use of "" in Common::U32String constructors 2020-11-16 16:56:58 +00:00
aryanrawlani28 ef7ec444d3 GUI: U32: Enable u32 for tts (Windows)
They always take in U32 strings now.

- Revert tts descriptions to string, they don't use translations, so better to keep it as strings.
- Make read() take in const U32 references.
2020-08-30 14:43:41 +02:00
aryanrawlani28 160a1320cc GUI: U32: Rename more temp code and fix issues
- Remove convertFromU32.. where necessary
- Replace convertFromU32 to .encode() for better readability
- Fix spacing issues in tabs
- Fix spacing issues in popups
- Fix weird font rendering in certain menus.
- Fix dialog changing sizes by huge amount when changing languages
- Some minor changes from String::format to U32String::Format
2020-08-30 14:43:41 +02:00
aryanrawlani28 96912f4adb GUI: U32: Rename some references of strings to use U32() & not helper method 2020-08-30 14:43:41 +02:00
aryanrawlani28 f800ca4ada GUI: U32: Convert majority of code to use U32
This commit also includes some additional major changes.

- Return U32String from TransMan getTranslation()
- Change tooltips to be U32Strings
- Remove temporary code of convertToU32String
- U32 Support various dialogs (Browser, FileBrowser, Messages, Chooser, etc)
- U32 for music plugins
- U32 for OSD messages
- Add some helper functions to ustr.cpp
- Change default tooltips from nullptr & 0 -> ""
- Some runtime exceptions may occur when changing languages due to incorrect String::Format
2020-08-30 14:43:41 +02:00
aryanrawlani28 aafade4507 GUI: U32: Shift most widgets to draw with u32
- ButtonWidgets (Button, Radio, Checkbox, dropdown)
- StaticTextWidgets
- PopUpWidgets
- Tabs
- Add a temporary overloaded drawDDText function to make other widgets draw normally
2020-08-30 14:43:41 +02:00
D G Turner fe30434a2e GUI: Fix Signed vs. Unsigned Compiler Warning in Tab Widget 2020-06-23 21:41:54 +01:00
aryanrawlani28 e3db189f0b GUI: RTL: Fix small issues
- Remove unused variable in tab.cpp
- Remove wrong check for alignment in popups. For rtl, set align to right.
2020-06-22 00:03:02 +02:00
aryanrawlani28 1ae2de366b GUI: RTL: Improve tab drawing for rtl 2020-06-22 00:03:02 +02:00
aryanrawlani28 9cd2ef1271 GUI: RTL: Cleanup tab drawing to make it simpler 2020-06-22 00:03:02 +02:00
aryanrawlani28 6211747fd3 GUI: RTL: Fix missing backgrounds for tabs in hebrew when navbars present 2020-06-22 00:03:02 +02:00
aryanrawlani28 19aa7baba7 GUI: RTL: Wrapping a variable used for rtl 2020-06-22 00:03:02 +02:00
aryanrawlani28 48eb0d095c GUI: RTL: Remove hardcoded padding for RTL tabs layout 2020-06-22 00:03:02 +02:00
aryanrawlani28 5c334d56ad GUI: RTL: Fix tabs for smallres and when removed 2020-06-22 00:03:02 +02:00
aryanrawlani28 b8a9331138 GUI: RTL: Shift to a better way of positioning when dialogs are stacked 2020-06-22 00:03:02 +02:00
aryanrawlani28 312862b541 GUI: RTL: Correctly draw backgrounds of Tabs 2020-06-22 00:03:02 +02:00
aryanrawlani28 c83e57fc69 GUI: JANITORIAL: Code cleanup, add comments 2020-06-22 00:03:02 +02:00
aryanrawlani28 cef4f20eec GUI: RTL: Support navigating in options dialog
GUI: RTL: Perfect drawing of tabs
2020-06-22 00:03:02 +02:00
aryanrawlani28 58704be218 GUI: RTL: Correctly draw tabs, consistent among screen sizes and different themes
GUI: RTL: Correctly draw theme-browser
2020-06-22 00:03:02 +02:00
aryanrawlani28 7e27af8148 GUI: Code cleanup 2020-06-22 00:03:02 +02:00
aryanrawlani28 f3e4e3e009 GUI: Code & comment cleanup, fix review issues 2020-06-22 00:03:02 +02:00
aryanrawlani28 c7469a1145 GUI: RTL: Base support for tab widgets 2020-06-22 00:03:02 +02:00
aryanrawlani28 d6a340d3b4 GUI: Cleanup hacky function for internal flip and fix review issues 2020-06-22 00:03:02 +02:00
aryanrawlani28 732e79b1cf GUI: RTL: Add disabled code for tab drawing 2020-06-22 00:03:02 +02:00
Eugene Sandulenko 86ac3aeafc GUI: Disable tab scroll buttons instead of making them invisible 2020-03-27 22:28:17 +01:00
aryanrawlani28 bd688cfbc1 GUI: properly display scrollbuttons at edge 2020-03-27 22:21:40 +01:00
Bastien Bouclet 6e1abf064a GUI: Use nullptr instead of 0 or NULL where appropriate 2020-01-19 15:08:37 +01:00
Bastien Bouclet c0d8b6d9fc GUI: Introduce dynamic layouts
Prior to this change, a GUI layout was only affected by the screen size.
Now, a layout can additionally be influenced by the GUI dialog and widgets
that uses it. This capability is leveraged to implement the following
features:

* Layout elements that are not bound to a GUI widget do not take space.
   This means that dialogs where the widgets shown depend on for example
   a feature being enabled at configure time no longer have blank spaces.
* Widgets can define a minimal required size for their contents not to be
   cut. For now this is only used for buttons so their width is always
   sufficient for their caption not to be cut. This mechanism could be
   applied to other widget types in the future.
2020-01-04 10:56:25 +01:00
Cameron Cawley 06b038a1c1 GUI: Fix crash when clicking and dragging a tab widget 2019-10-15 20:37:28 +01:00
D G Turner 30c366ee5d GUI: Add Missing Switch Default Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-10-03 06:03:46 +01:00
Jaromir Wysoglad c2c4458253 JANITORIAL: Remove some trailing whitespaces 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad b5cebcbeae TTS: Add text to speech to the GUI. 2019-09-01 22:47:55 +03:00
Alexander Tkachev 0a3d6d8054 GUI: Fix TabWidget's < and > buttons
These were incorrectly positioned (typos in code, missing value in one
expression).
2019-08-03 04:35:48 -04:00
Adrian Frühwirth c7f3416daa JANITORIAL: Remove trailing whitespace 2018-05-20 23:40:20 +02:00
Bastien Bouclet 4d29ce21d0 GUI: Unify clip and non-clip draw calls 2018-04-19 19:18:39 +02:00