aboutsummaryrefslogtreecommitdiff
path: root/gui
AgeCommit message (Collapse)Author
2017-12-04I18N: Regenerate translations data fileThierry Crozat
2017-12-03BASE: Remove bad casts between incompatible Plugin typesColin Snover
Previously, a C-style cast was used to convert a Common::Array<Plugin *>, populated with pointers to StaticPlugin and DynamicPlugin instances, to a Common::Array<PluginSubclass<T> *>, but PluginSubclass<T> is a *sibling* class to StaticPlugin/DynamicPlugin, so this cast was invalid and the results undefined. The methods for retrieving subclasses of plugins can't be easily changed to just generate an array of temporary wrapper objects that expose an identical API which dereferences to the preferred PluginObject subclass because pointers to these objects are retained by other parts of ScummVM, so the wrappers would needed to be persisted or they would need to just re-expose the underlying Plugin object again. This indicated that a way to solve this problem is to have the callers receive Plugin objects and get the PluginObject from the Plugin by explicitly stating their desired type, in a similar manner to std::get(std::variant), so that the pattern used by this patch to solve the problem. Closes gh-1051.
2017-11-27GUI: Fix Signed vs. Unsigned Comparison GCC Compiler Warning.D G Turner
2017-11-27I18N: Regenerate translations data fileThierry Crozat
2017-11-24GUI: Fix incorrect SaveLoad dialog state after updating the save listThierry Crozat
Updating the list reset the selection in the list widget, however if a save had previously been selected and the Choose button was enabled, it remained enabled despite no save being selected. Trying to load the game resulted in a crash. This was particularly an issue with cloud enabled as if you are unlucky you could have tried to load a save just as the cloud sync finished, which updated the list and unselected the save. This change fixes bug #9766: Assert in SaveLoadChooser dialog. In addition to adding a sanity check on the selected index for the Choose command, this commit also preserves the selection when updating the list as I think this would be the expected behaviour in this dialog.
2017-11-24Merge pull request #1063 from bgK/keyboard-repeatBastien Bouclet
SDL2: Improve handling of keyboard repeat events
2017-11-21CREDITS: Add credits for RISC OS portCameron Cawley
Closes gh-1068.
2017-11-20I18N: Regenerate translations data fileThierry Crozat
2017-11-19EVENTS: Rename synthetic to kbdRepeatBastien Bouclet
2017-11-13I18N: Regenerate translations data fileThierry Crozat
2017-11-10ALL: Fix misuse of comma operatorColin Snover
2017-11-06I18N: Regenerate translations data fileThierry Crozat
2017-10-23I18N: Regenerate translations data fileThierry Crozat
2017-10-16I18N: Regenerate translations data fileThierry Crozat
2017-10-15GUI: CleanupEugene Sandulenko
2017-10-15GUI: UPDATES: Redesign updates dialog as suggested by criezy in PR#1040Eugene Sandulenko
2017-09-29GUI: Fix memory leak with empty debugger inputWillem Jan Palenstijn
2017-09-29GUI: Fix crash after empty debugger commandWillem Jan Palenstijn
2017-09-24Merge pull request #1010 from dreammaster/debugger_paramsPaul Gilbert
GUI: Support double quoted debugger parameters
2017-09-18I18N: Regenerate translations data fileThierry Crozat
2017-09-12GUI: Remove mostly-broken audio output sample rate controlColin Snover
Removing this GUI control was suggested as far back as 2011 at <http://lists.scummvm.org/pipermail/scummvm-devel/2011-November/010416.html>. There were no objections, but it was never removed. When working on audio latency bugs, I independently rediscovered that the GUI option was broken: the per-game options would *never* work, and the option would not take effect until ScummVM was restarted because there is no API for interacting with the backend audio mixer. So now, it is finally gone. Primarily for the sake of future troubleshooting, configurability of the audio sample frequency within SdlMixerManager is maintained for the moment, but now users will need to edit their ScummVM configuration file manually to change it.
2017-09-10GUI: Fix non-macOS/iOS buildsColin Snover
2017-09-10CREATE_PROJECT: Move browser_osx.mm hack to Xcode generatorColin Snover
c19c10d548b2867bc4fd003fb29ac0017b2bd29d fixed the bad parsing of module.mk which meant the Xcode generator broke. For the moment, just move the hack for browser_osx.mm into the generator, until there is a more elegant solution to this problem (if ever).
2017-09-11I18N: Regenerate translations data fileThierry Crozat
2017-09-08DEBUGGER: Flush stdout after debugger writes with USE_TEXT_CONSOLE_FOR_DEBUGGERColin Snover
stdout may be buffered, in which case debugger messages are delayed until a newline is written. The same kinds of calls to OSystem::logMessage are flushed, so this just seems to be a simple omission on this non-default code branch.
2017-09-05GUI: Remove code that closes debugger if # or ~ keys are pressedPaul Gilbert
2017-09-05GUI: Update comment for strdup callPaul Gilbert
2017-09-04GUI: Add support for double quoted parameters in debuggerPaul Gilbert
2017-09-02CREDITS: Add TitanicBastien Bouclet
2017-08-14I18N: Regenerate translations data fileThierry Crozat
2017-08-07I18N: Regenerate translations data fileThierry Crozat
2017-08-06GUI: Mark some fall-through cases as intentionalBastien Bouclet
Comments explain how the num lock handling works before the fall-through cases.
2017-08-06JANITORIAL: Silence some more GCC 7 fall through warningsTorbjörn Andersson
I think these are the last one that were already flagged as being deliberate.
2017-07-31I18N: Regenerate translations data fileThierry Crozat
2017-07-26OSX: Make sure the native file browser runs in the main threadThierry Crozat
2017-07-26OSX: Make sure to release the NSOpenPanel immediately after closing itThierry Crozat
This is an attempt to fix a difficult to reproduce issue where the NSOpenPanel remains open in the background and locks the application. Some tests suggest that it might fix the issue, but only time will tell.
2017-07-26OSX: Set focus back to the ScummVM window when closing the native file browserThierry Crozat
2017-07-26OSX: Clear pending events when closing the native file browserThierry Crozat
This is to avoid dispatching to ScummVM events that were intended for the NSOpenPanel dialog.
2017-07-17I18N: Regenerate translations data fileThierry Crozat
2017-07-10Revert "COMMON: Change way the Singleton instances are instantiated"Eugene Sandulenko
This reverts commit eefa72afa1978a9dea10f5b1833fcc8f58a3468e. With this patch ConfigManager is broken.
2017-07-10COMMON: Change way the Singleton instances are instantiatedThierry Crozat
This fixes tons of warnings with clang from a recent xcode version on macOS (and possibly other systems) complaining that an instantiation of _singleton is required but no definition is available.
2017-07-10I18N: Regenerate translations data fileThierry Crozat
2017-06-26I18N: Regenerate translations data fileThierry Crozat
2017-06-20GUI: Separate bevel and shadow effect when extending widget rectThierry Crozat
When widget::draw() is called it asks the ThemeEngine to redraw the background first and then the widget gets redrawn in drawWidget(). The ThemeEngine uses an extended rect to restore the background to include bevel and shadow effects. However if this extended rect overlaps with other widgets, since those other widgets are not redrawn, a part of those will be missing. See for example bug #6394: GUI: List View save page drawns over font. In case we get overlap we might need to change the way widgets are drawn so that all widgets intersecting the area where the backgroud is restored are redrawn. This commit simply seperate the bevel and shadow effects, and uses the shadow offset only to extend the bottom and right sides of the rectangle (while the bevel offset is still used to extend all four sides). This results in a smaller extended rectangle (if the shadow offset is bigger than the bevel offset, which is the case of the list view) and thus decrease the risk of the issue happening. The particular cases described in bug #6394 are all fixed with this change.
2017-06-19I18N: Regenerate translations data fileThierry Crozat
2017-06-13GUI: Focus the first 'focusable' widget when rebuilding dialogsBastien Bouclet
Fixes Trac#9838.
2017-06-09GUI: Improve calculation for savegame thumbnail labelsTarek Soliman
Instead of shrinking the rect based on how many labels aren't there, expand the rect based on how many labels are there. Closes gh-958
2017-06-09GUI: Fix savegame thumbnail label layoutTarek Soliman
The Save/Load screen has a preview area with labels for date and time. The bottom label was drawing past the bottom of the rect.
2017-06-09GUI: Use dashes in default save descriptionTarek Soliman
Closes gh-956
2017-05-29I18N: Regenerate translations data fileThierry Crozat