Commit Graph

169 Commits

Author SHA1 Message Date
Filippos Karapetis e157b7044e GUI: Use C++ 11 range-based for loops 2025-03-27 13:47:57 +08:00
Eugene Sandulenko 3ef17b9643 GUI: Fix shadowing of overloaded method 2024-10-24 15:07:01 +02:00
Hubert Maier e70139d158 JANITORIAL: GUI: Fix typos 2024-09-16 09:41:26 +03:00
Cameron Cawley da56ee871b GUI: EE: Use a dialog instead of drawing directly on the overlay 2024-07-31 02:50:43 +03:00
Le Philousophe d0e0ff60c5 GUI: Don't list available engines if this is too slow 2024-06-30 18:39:06 +02:00
Le Philousophe ca2c49476f GUI: Avoid engine plugin unload while creating AboutDialog
When in game, don't list engines if the PluginManagerUncached is used.
If the detection is built as a separate plugin, nothing is listed but
that's better than crashing.
2024-06-30 18:39:06 +02:00
Le Philousophe 1c1667bf68 GUI: Fix listing of available engines when using uncached plugins
Also avoids loading detection while iterating over engines
2024-06-30 18:39:06 +02:00
Le Philousophe 2645b1431c PLUGINS: Rename findPlugin to findDetectionPlugin
This function does return a MetaEngineDetection plugin
2024-06-30 18:39:06 +02:00
Eugene Sandulenko 8722701a94 ALL: Set copyright year to 2024 2024-01-01 00:04:27 +01:00
Cameron Cawley 5b1b14ad80 COMMON: Mark more symbols as const 2023-12-26 20:23:59 +01:00
Kaloyan Chehlarski db6b2a11cc GUI: Make sure About dialog can scroll to top
Fixed an issue where scrolling up in the About dialog would
stop before the top of the text, sometimes cropping
parts of it.
2023-11-14 12:05:27 +02:00
Kaloyan Chehlarski 226470434f GUI: Add CPU extension info to About dialog 2023-11-14 12:05:27 +02:00
elasota 648d7e9718 GUI: Add mousewheel scrolling to credits. 2023-01-04 11:26:25 +02:00
Eugene Sandulenko 22c37d2c90 ALL: Update copyright year 2023-01-01 00:00:51 +01:00
Cameron Cawley f3b094e53f ENGINES: Change the MetaEngineDetection interface to match MetaEngine 2022-07-23 23:31:58 +02:00
Cameron Cawley 89c634be2d GUI: Display the full engine name in the About dialog 2022-07-23 22:08:53 +01:00
Cameron Cawley 07498687bd GRAPHICS: Add Surface::copyRectToSurfaceWithKey() 2022-06-05 17:28:28 +03:00
Cameron Cawley 5f35e2008a GUI: Fix line wrapping in the about dialog with small screens 2022-05-30 17:04:52 +01:00
Le Philousophe d308600bcb GUI: Add comment for translators 2022-04-16 15:47:47 +02:00
Donovan Watteau 1e33079b25 GUI: Print compiler name/version in About dialog 2022-04-15 22:43:57 +02:00
Eugene Sandulenko 823bc16312 ALL: Update copyright year 2022-01-01 00:00:45 +01:00
Eugene Sandulenko c532943aef GUI: Update license text in the about dialog 2021-12-26 18:52:05 +01: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
Eugene Sandulenko eda31b9498 GUI: Initialized more variables 2021-05-01 01:49:47 +02:00
Cameron Cawley ac15a0017a GUI: Fix screen resizing when EE is active 2021-04-18 15:28:51 +02:00
Cameron Cawley 376defbdbf GUI: Minor simplification to the EE graphics code 2021-04-18 15:28:51 +02:00
Cameron Cawley cb6c058c7d GUI: Use UTF-8 for the credits 2021-04-18 01:31:01 +01:00
Eugene Sandulenko 1009078024 GUI: Speedup rendering in EE 2021-04-15 23:44:04 +02:00
Eugene Sandulenko 3e84b88400 GUI: Scale EE in About dialog 2021-04-15 23:44:04 +02:00
Eugene Sandulenko 71888ad4db GUI: Switch to Amiga font in EE rendering 2021-04-15 21:20:35 +02:00
Eugene Sandulenko 40facbe6d3 GUI: Show only truly compiled-in engines in the About dialog 2021-04-14 14:42:10 +02:00
Eugene Sandulenko c1cca8c869 ALL: Update copyright year 2021-01-01 00:00:18 +01:00
Cameron Cawley c877097b49 ALL: Remove use of "" in Common::U32String constructors 2020-11-16 16:56:58 +00:00
Eugene Sandulenko 7ff34bc9ec PLUGINS: MetaEngineStatic -> MetaEngineDetection 2020-10-11 23:14:39 +02:00
aryanrawlani28 71a820caff ENGINES: Begin class renaming of ME & AME
- ME -> MetaEngineStatic (static parts)
- MEC -> MetaEngine (dynamic parts)
2020-10-03 14:56:36 +02:00
aryanrawlani28 5ab12afd2a JANITORIAL: Spacing issues in gui/about. 2020-08-30 14:43:41 +02:00
aryanrawlani28 68d01321d6 GUI: U32: Downscale changes of U32, fix review issues
This commit addresses a range of changes, within scummvm subproject.

- Audio files, like mididrv, remove U32String based name and identifier, because ASCII only.
- mididrv.cpp had some wrong format for warning messages, fix those
- Message dialogs were modified to use default arguments more often, but reverting back to the orignal to minimize changes.
- SetTooltip has a fake constructor that takes in a string, and use it.
- U32Format had some break statements missing, add those.
- RemapWidget: Use fake constructor for setLabel and setTooltip, to make minimal changes
- SDL: setting text in clipboard no longer uses SDL_iconv_string
- TTS: Override base class "say" with strings, so tts->say can be used with normal strings too.
- About dialog: fix incorrect code for u32string variables
- Fix some extra brackets
- Some buttons were incorrectly removed from using translated labels, revert those
- Message Dialog: Pass default and alt buttons as const references
- Saveload Dialog: Use translations in missing places, use const-references. Also, use translations in a correct manner.
- Use const references for tooltip in GraphicsWidget, EditTextWidget, error.cpp
- DomainEditTextWidget: Use U32String for text
2020-08-30 14:43:41 +02:00
aryanrawlani28 185fb72783 GUI: U32: Improve U32 code
- Revert accidentally put translations in mt32.cpp
- Use U32::format in some places earlier missed
- Add %u and %i for u32::format
- Add support for GUIErrorMsgFormat to use u32::format internally
- Use the above whereever needed
- Improve linux tts by removing redundant code
- Some places I had changed nullptr -> "". Revert this
2020-08-30 14:43:41 +02:00
aryanrawlani28 cec0985d5a GUI: U32: Update credits.pl script to not write ascii string
- Also generate new credits file to reflect above changes
- Remove ascii checks from about dialog
2020-08-30 14:43:41 +02:00
aryanrawlani28 3d97be2559 GUI: U32: Remove redundant code
Because po files now (should) use UTF-8, a bunch of code in ScummVM is redundant. This commit addresses that.

- Remove charsetMapping and related variables.
- Remove the code that used these functions.
- Remove cp_parser.cpp. This is removed because the use of codepages is no longer needed.
- Remove iso-8859-x codepages (see above message)
- Always set mapping as 0 in ThemeEngine::loadScalableFont
- Check if ascii or not by getting charset in about dialog.
2020-08-30 14:43:41 +02:00
aryanrawlani28 ba0d57f350 GUI: Compare iterator condition properly for about dialog 2020-08-30 14:43:41 +02:00
aryanrawlani28 1ca1712b4d GUI: U32: Fix problems with u32strings formatting
- Improve U32's format helper
- Add insertString helper to u32
2020-08-30 14:43:41 +02:00
aryanrawlani28 bed05ea134 GUI: U32: Fix compilation errors across entire project
After the initial changes just to scummvm/gui for u32, this commit includes the whole project

- Widget creations now always have u32 descriptions, labels, or tooltips
- Message dialogs make use of default arguments instead of providing the same argument explicitly
- encode String::format properly before passing on as argument where necessary
- Modify hugo utils (yesNoBox and notify box) to use u32
- Also provide fake constructors for the above which redirect to the u32 constructor
- Convert all keymap descriptions to u32 across all engines
- showConfirmationDialog in mohawk now uses u32
- showScummVMDialog also uses u32
- Scumm engine has dialogs now which use u32
- General fixes and wrapping convertToU32String for setLabels and related functions
- Add a fake constructor to MesssageDialog which redirects to the u32 constructor
2020-08-30 14:43:41 +02:00
aryanrawlani28 c0458adec2 GUI: U32: Use u32 for about dialog 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
Eugene Sandulenko 05634542c3 GUI: Code formatting 2020-07-15 23:30:10 +02:00
mataniko 06242a712b JANITORIAL: Rename EVENT_RTL
Now that ScummVM is adding RTL support, the EVENT_RTL should be disambigious that it is for returning to launcher
2020-05-12 10:36:38 +02:00
Eugene Sandulenko bc378c6999 GUI: Initialize variable and remove redundant check 2020-04-27 14:38:58 +02:00