3315 Commits

Author SHA1 Message Date
Bastien Bouclet
358d95e909 GUI: Fix pressing escape erroneously saving the changes in the options dialog
Pressing escape sets the dialog result to -1.
2019-10-23 20:57:47 +02:00
Bastien Bouclet
39815f50b7 GUI: Increase height of tab widget by 2px in lowres layout
The height of the tab widget was reduced by 2px in
eabb81829f29716e949890844029567687626bc8. However, that change caused
the tab nav buttons to be drawn slightly outside of the tabs with the
low resolution layout.
2019-10-22 19:40:45 +02:00
Thierry Crozat
a50f35458e I18N: Regenerate translations data file 2019-10-21 05:05:01 +02:00
Bastien Bouclet
287a4a12e2 GUI: Fix crash when opening the save name dialog
The changes in 1dce33dd9f909b09a73902b3939b61a81a149b7a introduced a
case where the width of widgets would not be set. This commit reverts
the offending changes and introduces a different fix for the original
issue.

Only recompute the width/height of a stack if it is not explicitly set.

Fixes #11214.
2019-10-19 10:50:56 +02:00
Bastien Bouclet
1dce33dd9f GUI: Fix launcher layout for small widths
* Testing if a widget can be centered was ignoring the padding.
* Only resize a layout based on its content if it was not explicitely
   sized by its parent. Fixes the logo causing incorrect layout
   computations when the window width is lower than the image width.
2019-10-17 19:33:50 +02:00
Jaromir Wysoglad
b9d3c84db4 TTS: Fix language setting. 2019-10-16 19:30:56 +02:00
Cameron Cawley
06b038a1c1 GUI: Fix crash when clicking and dragging a tab widget 2019-10-15 20:37:28 +01:00
Eugene Sandulenko
e5caf79c6a GUI: Fix crash with attempt to switch to Greek or Hebrew
These languages have 2 charater codes, and setting third character
in the Common::String led to assert. The proper consturctor is used
instead now.
2019-10-14 21:11:52 +02:00
Eugene Sandulenko
be95a7a2dd JANITORIAL: Whitespace fixes 2019-10-14 21:11:40 +02:00
Eugene Sandulenko
0e9d3d0bc8 GUI: Fix warnings 2019-10-14 20:57:15 +02:00
Thierry Crozat
9ec7df1c14 I18N: Regenerate translations data file 2019-10-14 05:05:01 +02:00
D G Turner
f1e564c92c GUI: Add Missing Switch Default Cases in About Dialog Easter Egg
These are flagged by GCC if -Wswitch-default is enabled.
2019-10-14 04:00:45 +01:00
D G Turner
8500883831 GUI: Fix Compiler Warnings in About Dialog Easter Egg 2019-10-14 00:14:38 +02:00
Eugene Sandulenko
aad6c6346b GUI: Added easter egg 2019-10-14 00:14:38 +02:00
Bastien Bouclet
1d764bd787 GRAPHICS: Vector renderer clipping rect related cleanups
Selecting whether a clipping variant of a draw call needs to be used is
no longer the responsibility to the caller. The clipping rect is now
part of the state of the renderer.

Also fix some of the draw calls to better apply the clipping rect.
2019-10-07 21:47:42 +02:00
Thierry Crozat
750b19dce9 I18N: Regenerate translations data file 2019-10-07 05:05:06 +02: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
Thierry Crozat
4092d73f23 I18N: Regenerate translations data file 2019-09-30 05:05:02 +02:00
Thierry Crozat
857ec791c9 I18N: Regenerate translations data file 2019-09-23 05:05:04 +02:00
Cameron Cawley
014bef9eab BACKENDS: Add a default clipboard implementation 2019-09-21 22:16:01 +03:00
Thierry Crozat
4db2f8139f I18N: Regenerate translations data file 2019-09-16 05:05:05 +02:00
D G Turner
cbb5a31715 DEBUGGER: Fix MSVC Warning
This was reported by Henke37 on IRC.
2019-09-16 00:39:41 +01:00
Ben Castricum
eee786d71f GUI: Change "saves" to "saved games" in labels 2019-09-14 01:36:37 +01:00
D G Turner
019de0cc23 EVENTRECORDER: Fix GCC Compiler Warnings
These were memcpy usage to copy a non-trivial structure.
2019-09-14 00:54:10 +01:00
Eugene Sandulenko
ac3586eb9a CREDITS: Add credits for all of the engines 2019-09-13 17:04:11 +02:00
Thierry Crozat
a8fc073c7d CREDITS: Add special thanks for HDB and Supernova 2019-09-13 01:08:30 +01:00
Thierry Crozat
eeb685533d I18N: Regenerate translations data file 2019-09-09 19:40:52 +02:00
Thierry Crozat
9f5f5ad992 I18N: Regenerate translations data file 2019-09-03 20:29:02 +02:00
D G Turner
e376abf650 GUI: Fix Missing Field Initializer in List Widget
This field was introduced by the TTS code changes, but only one of
the constructors was modified to set the default value.
2019-09-02 11:42:17 +01:00
Jaromir Wysoglad
c402666635 TTS: Refactoring
Refactoring as suggested by bluegr on github.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
c2c4458253 JANITORIAL: Remove some trailing whitespaces 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
7613bcaa5f TTS: Use QUEUE_NO_REPEAT action for tooltips 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
a81b59a3c4 TTS: Don't read tooltips when TTS is speaking 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
f89ca9ad5c TTS: Add tooltip reading when they appear. 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
59631627c8 TTS: Fix reading of list widgets
The TTS read items from list widgets even when the mouse was
outside the widget
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
58065ceacd TTS: Refactoring
* Delete multiple empty rows
 * Make getVolume non-virtual and leave just the implementation
    in base class
 * Resolve warning about signed / unsigned comparison in
    gui-manager
 * Clear availableVoices when updating voices on linux
 * By default set language to transMan language on windows
    (if the transMan is available)
 * Remove freeVoices method from Windows ttsMan, it isn't needed
    anymore
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
4ec10ffec7 TTS: Remove "static" from initTextToSpeech() 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
324a90f4f6 TTS: Implement tts state switching when needed.
The state has to be pushed and poped when there is a transition
between game and gui code.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
3027acc12e TTS: Minor refactorisations
- Add comment to tts initialization on Windows
 - Correctly free the voicesInfo in linux ttsMan
 - Remove popState method from linux-text-to-speech.h and
	windows-text-to-speech.h
 - Add tts to help in configure
 - Refactor language setting in gui-manager.cpp
	It counted with english being the default language in
	ttsMan constructors, which isn't true anymore.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
4d95720731 TTS: Fix voice setting on startup
The ScummVM was crashing because of an assert, when there was less
voices availaible, than what was set in the ConfMan.

Now the voice just falls back to 0th voice, if there are not
enough voices.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
ce64528129 TTS: Make sure that TTS lang matches transMan lang 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
33f8aadfeb TTS: Add age to TTSVoice 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
318c6d7ec6 TTS: Finish implementing the Windows TTS manager 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
8357e8e6bf TTS: Prepare for windows TTS
Add windows configuration in configure
Add basic skeleton to backends
Check if ttsMan is initialized in GUI
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
53e0f21adc TTS: Reformat tts volume setting for GUI 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
5e44796d6b TTS: Add correct language switching 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
5ee30a1b73 TTS: Convert strings to UTF-8
Conversion happens only for languages, that might needed (not
for english)
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
c899f5fbc3 TTS: Add Accessibility tab to all themes 2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
7d72fc0d60 TTS: Restrict TTS on linux to only english
Unfortunatedly the encoding used by ScummVM breaks the
speech-dispatcher, so after trying to say non-ascii character
the connection has to be restarted. So for now I am restricting
the GUI TTS to english only.
2019-09-01 22:47:55 +03:00
Jaromir Wysoglad
8bd7e39265 TTS: Add voice selection to options 2019-09-01 22:47:55 +03:00