aboutsummaryrefslogtreecommitdiff
path: root/engines/dialogs.cpp
AgeCommit message (Collapse)Author
2017-05-25GUI: Fully hide GMM save/load buttons if not supported by engineWillem Jan Palenstijn
Previously, they were only greyed out. According to the discussion on patch #8925, this was a limitation of the GUI layout engine when these buttons were introduced in 2008. This no longer seems to be a problem.
2016-11-29ALL: game state => saved gameBen Castricum
2016-04-10ALL: Split SMALL_SCREEN_DEVICE into GUI_ENABLE_KEYSDIALOG and ↵Eugene Sandulenko
GUI_ONLY_FULLSCREEN
2014-04-28Merge pull request #426 from sunmax/masterEugene Sandulenko
PS2: Pull request to master for latest PS2 code
2014-02-18ENGINES: Make GPL headers consistent in themselves.Johannes Schickel
2014-01-18PS2: snprintf hack to fix scumm.plgMax Lingua
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-06-10GUI: Refactor default savegame description creation.Johannes Schickel
Formerly the GMM, AGI and SCI duplicated the logic for USE_SAVEGAME_TIMESTAMP. Now I added a method to SaveLoadChooser instead, which takes care of this. This might not be the best placement of such a functionality, thus I added a TODO which talks about moving it to a better place.
2012-06-10GUI: Add helper to SaveLoadChooser, which uses the currently active target.Johannes Schickel
This reduces the code duplication in all client code, which formerly duplicated the querying of the plugin, game id etc. and now simply calls the newly added method runModalWithCurrentTarget() on a SaveLoadChooser object.
2012-06-10GUI: Get rid of SaveLoadChooser::setSaveMode.Johannes Schickel
We already pass the title and process button name to the constructor of SaveLoadChooser and then do not offer any way of changing it, thus changing the edit mode of the chooser is kind of pointless and was never actually used. Instead we pass the mode on SaveLoadChooser construction now.
2012-02-21ENGINES: Add error handling for GMM Gamestate Load/Save Usage.D G Turner
As indicated by wjp, the Global Main Menu (GMM) did not check or report on the returned error state from saveGameState() and loadGameState() usage. This corrects this and adds a MessageDialog report of any failure.
2011-09-23ENGINES: make the default savegame description be the timestampTarek Soliman
Shamelessly copied from the SCI engine code
2011-08-07JANITORIAL: Remove trailing empty lines.Christoph Mallon
2011-06-25GUI: fix bug #2822778athrxx
(Savegames now get loaded after GMM dialogue execution. This avoids mouse cursor glitches (e.g. mouse cursors which get changed during loadGameState() being popped when the dialogue closes).
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-13I18N: Make many more GUI MessageDialog strings translatableThierry Crozat
2011-06-02ENGINES: Change 2nd param of Engine::saveGameState to Common::StringMax Horn
2011-06-02ENGINES: Get rid of some s(n)printf callsMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-02-07MOHAWK: Fix MohawkEngine_Myst::runLoadDialogMax Horn
This incorrectly invoked (indirectly) the runModal() method of a SaveLoadChooser, but for that one should use runModalWithPluginAndTarget instead. svn-id: r55816
2011-02-07GUI: Rename SaveLoadChooser::runModal to runModalWithPluginAndTargetMax Horn
This avoids hiding an overloaded virtual method, which in turn can cause weird bugs (see also the next commit). svn-id: r55815
2010-11-16GUI: Rename gui/GuiManager.* to gui/gui-manager.*Max Horn
svn-id: r54265
2010-11-16GUI: Move major widgets to new directory gui/widgetsMax Horn
Also renamed the source/header files, now they are more closely aligned to how we rename most other source files svn-id: r54264
2010-11-14GUI: Fix GMM labels translation for SCUMM engineThierry Crozat
In the SCUMM engine (and maybe other engines), the GMM Dialog is created in the engine constructor and before the window resolution is updated (so it is still using the resolution from the Launcher). Therefore if the global scaler is x2 but a SCUMM game overwrite it to use x1, it was not using the correct labels when they had a different translation for the lowres context. svn-id: r54237
2010-11-01ENGINES: Remove some 'using' statementsMax Horn
svn-id: r54001
2010-10-26GMM: Add a basic help dialogs for engines not providing one (i.e. all but ↵Max Horn
SCUMM) svn-id: r53860
2010-08-30I18N: Add "lowres" context for several GUI strings when in 1x mode.Thierry Crozat
This enables translators to use a different translation for these strings in 1x mode (e.g. 320x200 or 320x240) and in 2x or 3x modes. svn-id: r52461
2010-06-15GUI: Implement tooltips. FR #2821513.Eugene Sandulenko
FR #2821513: "GUI: add tooltips". Added tooltips for Add Game button, clear field buttons and couple other. Current problem: Only first call correctly restores text. I could not find where restore information gets lost. svn-id: r49774
2010-06-15GUI: Added in-place hotkeys for widgets.Eugene Sandulenko
Now it is possible to specify hotkeys in place for ButtonWidget and CheckboxWidget (the only widgets with hotkeys now). Use de-facto standard with putting hotkey between tildes (~). Like '~O~pen'. The tildes gets stripped before after hotkey is extracted. This is done for giving translators possibility to specify their own hotkeys. Old hotkeys defined at widget instance creation are left for leaving possibility to specify non-printable hotkeys such as Common::ASCII_ESCAPE. Translation files were updated respectively. svn-id: r49766
2010-06-15Implement translation support for ScummVM GUI.Eugene Sandulenko
Based on patch #2903830: "Updated Translation Prototype" by alexbevi which in turn is based on patch #1739965 by jvprat. Currently it builds all translations right into ScummVM. Once the feature will be accepted more widely, i.e. more translations will pop up, it will be trivial to move translation strings to external file. Finished translation: Russian Unfinished translation: Hungarian Things which are nice to do: - Language code -> language mapping for more user friendness - Specifying fonts to be used with language - Updating of interface language without restart. It will require moving of much code to reflowLayout() methods for each dialog The .po files must be in single byte encodings. I.e. no support for Unicode. svn-id: r49759
2010-05-26Replace SCUMM F5 dialog by GMM & add help button to GMMMax Horn
The new "Help" button in the GMM is currently only used by SCUMM. To use it, an engine currently needs to subclass MainMenuDialog. svn-id: r49249
2010-04-06GUI: Unify various definitions of kOKCmd and move it to namespace GUIMax Horn
svn-id: r48564
2010-04-06Factor out save/load code from MainMenuDialog::handleCommand into new methodsMax Horn
svn-id: r48563
2010-04-06Remove old & undocumented MSVC 6 workaroundMax Horn
svn-id: r48561
2009-06-06Implement FR#862150: "GUI: Show subtitles/speech options only for speech games"Eugene Sandulenko
Add generic per-game GUI options support along the way ;) svn-id: r41275
2009-02-28Added keyboard mapping for global menu. Lars Persson
svn-id: r38981
2009-02-12Fixed working Keys button in in game options dialogLars Persson
Fixed key mappings dialog layout svn-id: r36285
2009-02-07Make the subtitle settings in Options section of the global main menu ↵Travis Howell
optional, and enable only for game engines where subtitles settings are synced. svn-id: r36237
2009-01-02Renamed gui/newgui.cpp -> gui/GuiManager.cpp and gui/newgui.h -> ↵Johannes Schickel
gui/GuiManager.h svn-id: r35668
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-11-12Renamed Graphics::TextAlignment -> Graphics::TextAlign and merged it with ↵Max Horn
GUI::ThemeEngine::TextAlignVertical svn-id: r35023
2008-11-12cleanupMax Horn
svn-id: r35017
2008-11-11Moved GUI::SaveLoadChooser to its own source fileMax Horn
svn-id: r35002
2008-11-10Merged GUI::Theme and Gui::ThemeEngine into the same class, GUI::ThemeEngine.Vicent Marti
Massive cleanup. svn-id: r34983
2008-11-09Save game descriptions are now set correctly in the GMM save dialogFilippos Karapetis
svn-id: r34965
2008-11-09Fixed bug, which might mess up the description of new savegames.Johannes Schickel
svn-id: r34949
2008-11-09Fixed warning, and what looked to me like a very minor memory leak.Torbjörn Andersson
svn-id: r34946
2008-11-08Pushing down some header depsMax Horn
svn-id: r34936
2008-11-07Saving a game from GMM is now working for the SAGA engine, though the ↵Filippos Karapetis
description is not set correctly yet svn-id: r34932