Commit Graph
3146 Commits
Author SHA1 Message Date
Yotam Barnoy 94c8d0a14d Updated with latest from trunk
svn-id: r53976
2010-10-31 11:08:43 +00:00
Max Horn 44393b2dc8 ALL: Add code to help stop people from accidentally using "bad" APIs
A new header file common/forbidden.h is included by scummsys.h and it
re-#defines numerous symbols like fopen(), fread(), system(), etc. with
garbage, in order to provoke compile errors in any code using them.

If a .cpp file really *must* use any of these (e.g. because it is a
backend file), then these redefinitions can be disabled by #defining
FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever
this is done, an explanatory comment should be added.

Note that this system cannot catch all "bad" usages (notably the Lua
code in the sword25 engine), as it can only work if scummsys.h is
included.

svn-id: r53961
2010-10-30 21:27:42 +00:00
Max Horn ff34a77831 GUI: Don't #include Mac OS X sys header here
svn-id: r53960
2010-10-30 21:26:32 +00:00
Max Horn dfdf8f2e80 Update credits
svn-id: r53862
2010-10-26 21:55:29 +00:00
Florian Kagerer 65c7299b38 GUI/LAUNCHER: follow-up to r53771
The GM and MT-32 popup widgets would be set to the first available MIDI device by default (before any selection has taken place yet). Instead, default will now be the first list entry.

svn-id: r53827
2010-10-25 14:31:06 +00:00
Florian Kagerer 0db700a3dc GUI/LAUNCHER: improved MIDI device selection (also #3088438)
This fixes an issue with the <default> setting in the GM and MT-32 device tabs that has caused some complaints and discussions on -devel. It might also be what bug #3088438 is about.

With a <default> setting ScummVM would just use the first available MIDI device (even if this is the not really well working MT-32 emulator). This <default> setting was also indeed set by default - making it even more annoying.

Now there is a new setting for both the GM and MT-32 device tabs ("Don't use GM/MT-32 music").
This will cause MIDI device detection to be skipped and the best of the other devices (Adlib etc.) to be used. This new setting is used as default. So users who haven't specified anything will get Adlib, PC Speaker etc. (if supported by the engine) even if the engine prefers Midi.

There is a new "Use first available device" setting which will have the same effect as the "<default>" setting we had before.

svn-id: r53771
2010-10-24 19:15:17 +00:00
Willem Jan Palenstijn 225fd20bee Revert r53747: "GUI: added close() call to Dialog::runModal()"
It broke the launcher after adding new games.

svn-id: r53765
2010-10-24 13:26:58 +00:00
Yotam Barnoy deb461d200 GUI: added close() call to Dialog::runModal()
This should prevent a small leak in the GuiManager when adding the dialog to the stack. Check for any regressions.

svn-id: r53747
2010-10-23 21:30:39 +00:00
John Willis 6dfab4fce8 CREDITS: Commit the result of 'make credits'.
svn-id: r53643
2010-10-20 13:50:16 +00:00
Julien Templier 5c2bcadd21 CREDITS: Add lastexpress engine
svn-id: r53590
2010-10-18 21:35:15 +00:00
Eugene Sandulenko 7f7a6cdafd Revert "GUI: Use vprintf in Console class. Patch by littleboy"
svn-id: r53585
2010-10-18 20:19:58 +00:00
Eugene Sandulenko 05b3f2a071 GUI: Use vprintf in Console class. Patch by littleboy
svn-id: r53577
2010-10-18 19:07:24 +00:00
Johannes Schickel 3b69f1cae6 CREDITS: Sync credits with r53530.
svn-id: r53531
2010-10-16 01:15:09 +00:00
Max Horn 36cd5caf95 COMMON: Add XMLParser::parseIntegerKey variant accepting a Common::String
Almost all places where we used XMLParser::parseIntegerKey were using
it like this:
  XMLParser::parseIntegerKey(str.c_str(), ...)
Since this makes the code harder to read, I overloaded the method to
also accept Commmon::String directly.
Also removed all .c_str() invocations where necessary.

svn-id: r53479
2010-10-15 12:19:13 +00:00
Eugene Sandulenko 072c5b447c CREDITS: Add Sword2.5 team. The wording was agreed with them
svn-id: r53448
2010-10-13 22:15:22 +00:00
Eugene Sandulenko f2d8d71a78 CREDITS: Added qvist to credits per his request
svn-id: r53164
2010-10-12 19:33:36 +00:00
Torbjörn Andersson 54b2a8c98d JANITORIAL: Cleanup (mostly whitespace)
svn-id: r53161
2010-10-12 04:19:58 +00:00
Jordi Vilalta Prat 8388e0dfea JANITORAL: Clean trailing whitespaces.
svn-id: r53160
2010-10-12 02:18:11 +00:00
Jordi Vilalta Prat 43161858ac I18N: Forward-port r53063 (minor lowres fixes)
svn-id: r53159
2010-10-12 00:26:17 +00:00
Arnaud Boutonné af6ffafe5f GUI: Message dialog width
Ensure the message dialog is wide enough when it contains 2 buttons. This is used by Hugo's engine, e.g. when Exiting the DOS versions.

svn-id: r53114
2010-10-10 10:32:58 +00:00
Torbjörn Andersson bcf3b35285 GUI: Clean up my previous commit.
svn-id: r53112
2010-10-10 10:11:33 +00:00
Torbjörn Andersson 25dac76b35 GUI: Ensure that the message dialog is wide enough
The Hugo engine currently uses the message dialog. Make sure that
the dialog is always at least wide enough to hold the "Ok" button.

svn-id: r53107
2010-10-10 08:13:26 +00:00
Thierry Crozat ad24be827c I18N: Update German translation in trunk
svn-id: r52982
2010-10-02 21:36:47 +00:00
Eugene Sandulenko 54127a2123 i18n: Update Russian translation
svn-id: r52979
2010-10-02 13:27:06 +00:00
Thierry Crozat 1177692701 GUI: Fix bug #3075649 (Fonts not found with built-in theme)
When switching to a theme that do not have the fonts needed to properly
display the current language, it now revert to the previously used theme
and display an error message telling the user to change the language
first if he wants to use the theme he selected.

svn-id: r52969
2010-10-01 21:41:40 +00:00
Thierry Crozat be1d196da5 GUI: Error message for theme incompatible with current language
Add an error message when switching to a theme that does not support
the current language (i.e. it does not have fonts for the charset used by
that language).

svn-id: r52965
2010-10-01 19:16:09 +00:00
Thierry Crozat 7296a2d8d0 I18N: Add translation for wince specific titles for key mapping dialog
Also backport fix from branch on translation of default title for key mapping
dialog. 

svn-id: r52959
2010-09-30 18:09:01 +00:00
Max Horn a0c0b934c7 GUI: Replace GUI_ENABLE_BUILTIN_THEME by DISABLE_GUI_BUILTIN_THEME
svn-id: r52936
2010-09-28 20:31:17 +00:00
Max Horn 484bf9c269 ALL: Fixup some #define names
svn-id: r52935
2010-09-28 20:30:50 +00:00
Thierry Crozat b1f63deba3 GUI: Partial fix to bug #3075649 Fonts not found with buit-in theme
When the locale font are not found when loading the theme, it now
fallbacks to default language (i.e. English) and default font. For this to work
I had to move the TranslationManager initialization before the Theme is
loaded. Therefore it is now initialized when the GuiManager is constructed.

svn-id: r52896
2010-09-25 22:47:00 +00:00
Thierry Crozat 40e96d8dc5 I18N: Update Spanish and French translations
svn-id: r52893
2010-09-25 21:09:54 +00:00
Thierry Crozat 0117525669 I18N: Update Ukrainian translation
svn-id: r52861
2010-09-22 21:22:15 +00:00
Jordi Vilalta Prat 25c91513f8 I18N: Update the catalan translation.
svn-id: r52851
2010-09-21 21:17:49 +00:00
Thierry Crozat eb5ede13c3 GUI: Quick fix for the mute checkbox label being cut in the in-game options
This happened with some translations as the width of the checkbox was
fixed to 80 pixels, even though more space was available. I have increased
it to 120 pixels.

svn-id: r52849
2010-09-21 19:50:30 +00:00
Thierry Crozat d110685e66 I18N: Update Italian translation
svn-id: r52847
2010-09-21 18:43:19 +00:00
Thierry Crozat b65c17edc4 GUI: Give slightly more space to the options label in scummmodern theme
I think I have checked everywhere and it looks good both in English and in
French. This might help for future translations. I am not committing the
change to the 1.2.0 branch though as I am not completely sure it is
harmless.

svn-id: r52830
2010-09-20 21:17:28 +00:00
Thierry Crozat 10031f81f6 GUI: Fix Subtitles speed option cut in Audio tab of game options.
In normal (no scaling) mode and aspect ratio correction turned off, the
height of the Audio tab of the game options was too small and the subtitle
speed option was subsequently cut.

svn-id: r52829
2010-09-20 21:06:15 +00:00
Thierry Crozat f556a4d852 I18N: Update Spanish German and French translations
svn-id: r52822
2010-09-20 20:12:32 +00:00
Thierry Crozat 965ec170cb I18N: Add lowres context for one string.
Also update German and French translations.

svn-id: r52808
2010-09-19 17:50:21 +00:00
Torbjörn Andersson c91a07229a JANITORIAL: Removed most punctuation at end of warning() and error()
Our warning() and error() functions always add an exclamation mark
to the end of the message anyway.

svn-id: r52791
2010-09-18 10:55:16 +00:00
Thierry Crozat e0794fef75 I18N: Update Spanish translation
svn-id: r52753
2010-09-16 20:02:24 +00:00
Thierry Crozat 057056b8d3 I18N: Add translation for load/save success or failure messages
Also improve and update the french translation.

svn-id: r52740
2010-09-15 23:25:46 +00:00
Thierry Crozat 8ab435397f I18N: Update Spanish and Italian translations
svn-id: r52725
2010-09-14 19:02:33 +00:00
Johannes Schickel 2a353089aa GUI: Remove dead code.
This code was added when tooltip support was added. Since we changed the way
how tooltips are drawn later on, this code is not required anymore. Actually
it was never used, but it could've been used to save/restore the state of the
GUI for the tooltips.

svn-id: r52717
2010-09-14 00:34:12 +00:00
Johannes Schickel dd76a20acd GUI: Fix caret undrawing. (Regression from r48551)
Starting with r48551 the caret undrawing caused the text selection color in
ListWidgets to be removed. It also added a slight offset to the character
next to the undrawn caret. All this is fixed now.

svn-id: r52716
2010-09-14 00:15:20 +00:00
Thierry Crozat 3ed22f9f30 I18N: Update German translation
svn-id: r52714
2010-09-13 21:19:58 +00:00
Jordi Vilalta Prat c2fb737950 I18N: Update the catalan translation.
svn-id: r52701
2010-09-13 12:53:27 +00:00
Jordi Vilalta Prat bfbb69f77e I18N: Unified messages by removing whitespaces.
svn-id: r52700
2010-09-13 12:50:26 +00:00
Thierry Crozat c073369f0a i18n: Translate Save and Restore buttons in SCI engine
svn-id: r52694
2010-09-12 21:56:37 +00:00
Thierry Crozat 5b6ca46ade i18n: Update German translation
svn-id: r52690
2010-09-12 19:18:30 +00:00