aboutsummaryrefslogtreecommitdiff
path: root/gui/saveload-dialog.cpp
AgeCommit message (Collapse)Author
2020-01-05GUI: Fix the SaveLoadDialog with the lowres layoutsBastien Bouclet
The thumbnail layout element is not available in the lowres layouts. Issue introduced by c0d8b6d9fc73abc8de4575686e0776e3468d37b2. Fixes #11304.
2020-01-04GUI: Introduce dynamic layoutsBastien Bouclet
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.
2019-10-03GUI: Add Missing Switch Default CasesD G Turner
These are flagged by GCC if -Wswitch-default is enabled.
2018-10-10GUI: Disable Current View Selection Button in Save/Load Chooser.D G Turner
Switching between List and Grid views causes a nasty redraw flicker. This also occurs if you press the button for the current view type. This patch does not fix the underlying refresh issue, but it does disable the button for the current view type as pressing this is not useful in any case. This is a partial fix for bug Trac #10441.
2018-07-09GUI: Show saveload date/time, or playtime even if thumbnail not enabledDavid Fioramonti
Previously, if playtime or date/time support was added it would not be displayed unless thumbnail support was also valid. Now they will be shown even if the thumbnail is not valid. No container is shown if only metainfo support is enabled.
2018-01-27GUI: Remove Dialog::markAsDirty to expose full GUI redrawsBastien Bouclet
2018-01-27GUI: Implement dirty-checking for widget redrawsBastien Bouclet
2017-11-27GUI: Fix Signed vs. Unsigned Comparison GCC Compiler Warning.D G Turner
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-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.
2016-11-29ALL: game state => saved gameBen Castricum
2016-10-17ALL: Fix compilation with disabled cloud but enabled libcurlEugene Sandulenko
2016-09-18CLOUD: Change the cloud icon to be updated by the main threadBastien Bouclet
The cloud manager registers itself as an event source as a mean to be polled periodically by the GUI or engine code. The periodical polling is used to update the OSD icon indicating background sync activity. Also move the cloud icon from ConnectionManager to CloudManager, allowing to decouple icon handling from network connections updates.
2016-09-18ALL: Homogeneize use of 'saved game' in messagesThierry Crozat
2016-08-24ALL: Make simpleSaveNames() a MetaEngineFeatureAlexander Tkachev
Added it into hasFeature() of all engines which returned `true` in simpleSaveNames() before. As mentioned in #788, SCI is not always using simple names, so it doesn't have such feature now.
2016-08-24GUI: JANITORIAL: Fix code formattingEugene Sandulenko
2016-08-24JANITORIAL: Remove spaces at the end of the lineAlexander Tkachev
I knew there were some, but I wanted to fix them once, instead of doing it all the time.
2016-08-24CLOUD: Replace USE_CLOUD with USE_LIBCURLAlexander Tkachev
In most cases that's the right one to check. USE_CLOUD is defined when either USE_LIBCURL or USE_SDL_NET are, which means if there is no curl, USE_CLOUD still could be defined and linking errors would appear.
2016-08-24CLOUD: Fix SaveLoadDialogs to check USE_CLOUDAlexander Tkachev
Linking was failing when disabling curl support.
2016-08-24GUI: Fix SaveLoadDialogAlexander Tkachev
It was SavesSyncRequest's target even when closed.
2016-08-24GUI: Disable "Run in background" for "difficult" enginesAlexander Tkachev
During saves sync slots of MetaEngines with simpleSaveNames() == false would not be available at all. User would have to wait for sync to complete.
2016-08-24ALL: Add MetaEngine::simpleSaveNames()Alexander Tkachev
Engines with "simple" savenames would support "Run in background" in save/load dialog and gradual save slots unlocking. Other engines save/load feature would be locked until save sync is over.
2016-08-24GUI: Fix SaveLoadCloudSyncProgressDialogAlexander Tkachev
* disabled progress bar; * removed syncTarget segfault; * fixed grid slots disabling for "locked" slots.
2016-08-24GUI: Add SaveLoadCloudSyncProgress in ScummModern themeAlexander Tkachev
ScummVM would probably crash when using a theme without SaveLoadCloudSyncProgress dialog described.
2016-08-24GUI: Update SaveLoadCloudSyncProgressDialogAlexander Tkachev
So now it's centered, includes a progress bar and two labels instead of one. Works fine in 320x200.
2016-08-24GUI: Show "locked" saves during syncAlexander Tkachev
2016-08-24CLOUD: Add SaveLoadCloudSyncProgress enumAlexander Tkachev
It's common for Save/Load dialogs and SavesSyncRequest.
2016-08-24CLOUD: Make DefaultSaveFileManager ignore syncing filesAlexander Tkachev
MetaEngines don't get "locked" files in the list, so won't try to open these. Save/Load dialog updates save list every time SavesSyncRequest tells it to.
2016-08-24CLOUD: Make ProgressDialog display downloading progressAlexander Tkachev
2016-08-24CLOUD: Fix SaveLoadCloudSyncProgressDialog crashAlexander Tkachev
It's closing itself a bit later now.
2016-08-24GUI: Add SaveLoadCloudSyncProgressDialogAlexander Tkachev
It's shown by SaveLoadChooserDialog when files are downloaded and some save slots are locked. One can hide that dialog to interact with non-locked slots or cancel saves sync completely. Dialog's label shows current sync progress. Dialog automatically hides itself when all files are downloaded. WARNING: right now that results in a crash!
2016-08-24CLOUD: Make Save/Load dialog start saves syncAlexander Tkachev
It also shows a "sync disabled" icon in case it has a savepath override.
2016-06-01GUI: Cleanup class initializationEugene Sandulenko
2014-12-29GUI: Do not overwrite write protected saves in grid based save dialog.Johannes Schickel
This fixes overwriting of, for example, autosaves in the grid based save load dialog when using "New Save".
2014-08-22GUI: s/savegame/saved game/Ben Castricum
Makes it consistant throughout the GUI
2014-02-18GUI: Make GPL headers consistent in themselves.Johannes Schickel
2013-07-15GUI: Mark some intentional fall throughs in switches.Johannes Schickel
All of these are for handling kCloseCmd.
2012-10-28GUI: Check for screen changes in the saveload chooser selection code.Johannes Schickel
2012-09-26GUI: Support for page restoring for non-continuous save lists in the grid ↵Johannes Schickel
chooser.
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26GUI: Fix maximum page number calculation in grid chooser.Johannes Schickel
This avoids a off by one error in some cases.
2012-09-26GUI: Save/restore last scroll position in the list save/load dialog.Johannes Schickel
This should give a better user experience, since the user will not have to scroll back to where he was when he used the dialog last. Thanks to wjp for suggesting this.
2012-09-26GUI: Save/restore the last used page in the grid save/load dialog.Johannes Schickel
This allows opening the dialog on (nearly) the same page again as when it was closed. Sadly due to the different number of entries in the save and load version this is not always exactly the same page as before. Same goes for resolution changes. Thanks to wjp for suggesting this.
2012-08-14GUI: Fix out-of-bounds in new chooser.Alyssa Milburn
2012-08-12GUI: Mark parts of the grid based chooser layout code as HACK.Johannes Schickel
2012-08-12GUI: Remove left-over code from theme based fill color in thumbnail display.Johannes Schickel
2012-08-12Merge pull request #260 from lordhoto/new-chooser.Johannes Schickel
New save/load chooser Conflicts: gui/saveload.cpp
2012-07-25GUI: Use "OK" instead of "Ok" in SavenameDialog.Johannes Schickel
2012-07-24GUI: Add possibility to disable the grid based chooser via ↵Johannes Schickel
DISABLE_SAVELOADCHOOSER_GRID.