Commit Graph

2078 Commits

Author SHA1 Message Date
Johannes Schickel
1fea2b733c GUI: Make activeDialog in runLoop const, since it should not be changed.
svn-id: r54346
2010-11-18 21:32:42 +00:00
Johannes Schickel
8cd20c70a9 GUI: Simplify Tooltip implementation.
Formerly there was much special handling for the Tooltip dialog in
GuiManager::runLoop. This was replaced by overloading the event handling
functions in Tooltip. Also the Tooltip was adapted to be run like every
other normal dialog.

svn-id: r54337
2010-11-18 18:17:00 +00:00
Yotam Barnoy
b77ef177ed GUI: changed tooltip to be deleted when inactive
Before, it could be instantiated after an engine loaded and then was never deleted, causing memory fragmentation. Also removed inner tooltip call to the GuiManager runloop, which makes the logic simpler since the tooltip is a bit of a hack. I had to remove it because deleting _tooltip in the inner loop (called from tooltip itself) is trouble.

svn-id: r54311
2010-11-18 07:17:53 +00:00
David Turner
de0f878d1e GUI: Fixed build failure in console due to missing header.
svn-id: r54268
2010-11-16 11:07:48 +00:00
Max Horn
5b735131ba GUI: Push down some header (inter)dependencies
svn-id: r54267
2010-11-16 10:29:31 +00:00
Max Horn
f3f73a7832 GUI: Commit some changes missing in my previous commit (oops)
svn-id: r54266
2010-11-16 10:24:16 +00:00
Max Horn
668adaa461 GUI: Rename gui/GuiManager.* to gui/gui-manager.*
svn-id: r54265
2010-11-16 10:19:01 +00:00
Max Horn
427dc1ae93 GUI: Move major widgets to new directory gui/widgets
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-16 10:11:57 +00:00
David Turner
a9b3dccaaa GUI: Fixed Memory Leak in RadiobuttonGroup usage in Options Dialog.
RadiobuttonGroup has a destructor which must be called to avoid leaking memory.
Have also added missing NULL init() declarations on object member pointers to avoid any future issues.

svn-id: r54260
2010-11-16 09:26:35 +00:00
Max Horn
abe1959d36 COMMON: Simplify DECLARE_SINGLETON macro
This makes it possible to write
  DECLARE_SINGLETON(foo);
instead of
  DECLARE_SINGLETON(foo)
without causing a warning about an extra semicolon.
The extra semicolon helps some editors at parsing the C++ code.

svn-id: r54258
2010-11-16 08:23:13 +00:00
Max Horn
3450f47667 GUI: Fix bug in ThemeEngine::addFont related to localized fonts
Basically, it was remembering the font under its non-localized name.
This resulted in a leak, and potentially could have caused the wrong
font to be used in a localization.

svn-id: r54256
2010-11-15 23:52:06 +00:00
Max Horn
8799db594e GUI: Tweak ThemeEngine methods to use Common::String params & const qualifier
svn-id: r54255
2010-11-15 23:51:46 +00:00
Thierry Crozat
2c058a1235 CREDITS: Add Hungarian translator.
svn-id: r54252
2010-11-15 21:01:48 +00:00
Thierry Crozat
df73b6d49f I18N: Update Hungarian translation and add iso-8859-2 fonts to themes.
The new Hungarian translation is from patch #3109396

svn-id: r54251
2010-11-15 20:59:41 +00:00
Eugene Sandulenko
a537ddb614 GUI: Added IS8859-7 fonts. Helvetica is missing
svn-id: r54172
2010-11-09 21:31:23 +00:00
Eugene Sandulenko
b00c631f20 GUI: Generate iso8859-2 codepage fonts
svn-id: r54171
2010-11-09 21:30:00 +00:00
Eugene Sandulenko
f4a78c9b0c GUI: Added original 5x8 font
svn-id: r54170
2010-11-09 21:29:04 +00:00
Johannes Schickel
708593c7a0 CREDITS: Add myself to the Infrastructure section (after talking with Max).
svn-id: r54112
2010-11-07 02:24:31 +00:00
Johannes Schickel
05986f09fd CREDITS: Mark Joachim Eberhard as retired.
svn-id: r54110
2010-11-07 02:13:22 +00:00
Yotam Barnoy
a6bee87990 PLUGINS: improved one-at-a-time plugin code
I reduced memory fragmentation using 2 principles: Plugins should be loaded for as little time as possible, and long lasting memory allocations should be allocated before plugins are loaded. There might still be a little fragmentation left.
Note that command line settings that require plugins to be loaded don't work yet, but they didn't work (properly) before either.

svn-id: r54097
2010-11-05 13:24:57 +00:00
Filippos Karapetis
4f3cedd11f GUI: Better description of the dithering checkbox
svn-id: r54092
2010-11-05 11:17:57 +00:00
Filippos Karapetis
18345b970d Grammar
svn-id: r54091
2010-11-05 10:58:48 +00:00
Filippos Karapetis
2416cbf75b COMMON/GUI/SCI: Changes to the EGA dithering checkbox
- Changed the new dithering checkbox to be more generic (i.e. relevant for all engines that may support such a feature in the future)
- Changed the checkbox to be unchecked by default. As discussed on -devel, game enhancements in ScummVM should be off by default, and opt-in
- Changed the option from "sci_undither" to "disable_dithering"
- Changed theme version style to X.Y.Z and bumped it to 0.8.2

svn-id: r54090
2010-11-05 10:53:37 +00:00
Filippos Karapetis
7c8470255c SCUMMVM: Bumped theme version to 0.81.
This fixes regression #3103351 - "GUI: Crashes on Edit Game/Options Buttons"

svn-id: r54088
2010-11-05 10:16:36 +00:00
Willem Jan Palenstijn
92841e9832 GUI: Fix build with readline enabled
svn-id: r54067
2010-11-04 16:09:20 +00:00
Filippos Karapetis
1dac4fbd55 SCI/SCUMMVM: Added an option to enable the dithering removal algorithm (so called "undithering") in the graphics options tab. The algorithm is now disabled by default, after popular demand. In retrospect, we really shouldn't have made it default, in order to preserve the authenticity of the graphics in early SCI EGA games, and allow the user to opt in and enable the option if needed. Unfortunately, the lack of an easy way to modify the option made it hard to do so.
svn-id: r54066
2010-11-04 15:58:53 +00:00
Yotam Barnoy
13b904d282 Merge from gsoc2010-plugins
This merge was extremely difficult to carry out. It wasn't entirely SVN's fault -- there were several merges to the branch that were done by hand. Please check for any issues and regressions. Also note that the DS makefile was not copied over since the "one at a time" plugin mode currently has too much fragmentation ie. it doesn't work.

svn-id: r54051
2010-11-03 22:01:01 +00:00
Max Horn
a984fb17c2 GUI: Add GCC_PRINTF to GUI::Debugger::DebugPrintf & fix resulting warnings
svn-id: r54007
2010-11-01 16:03:35 +00:00
Max Horn
2af2704421 GUI: Rename ConsolDialog methods (v)printf, putchar
svn-id: r54006
2010-11-01 16:03:02 +00:00
Max Horn
e27b05ef35 COMMON: Rename String::printf() to String::format()
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.

The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.

svn-id: r54004
2010-11-01 16:02:28 +00:00
Max Horn
a4bdd3cdec WINCE: Code formatting
svn-id: r53979
2010-10-31 17:11:43 +00:00
Max Horn
086fe78af1 WINCE: Enable use of forbidden symbols, cleanup
I tried to untangle the header interdependencies a bit, but this
is still quite a mess.
This commit also fixes some warnings.

svn-id: r53978
2010-10-31 17:10:45 +00:00
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
Thierry Crozat
1f986e14af i18n: Add lowres context in a few places.
I also changed the english text for the GUI Renderer items in 1x mode
as the text was tool long and cut.

svn-id: r52683
2010-09-12 11:43:51 +00:00
Thierry Crozat
5cbe8270dd i18n: Update Italian and Spanish translations
The change to the spanish translation fixes bug #3063423

svn-id: r52678
2010-09-11 16:47:30 +00:00
Thierry Crozat
c81c7fd0bc i18n: Add lowres context in a few places
Also update the Italian and French  translations.

svn-id: r52677
2010-09-11 16:18:55 +00:00
Jordi Vilalta Prat
873d794a6c I18N: Update the catalan translation.
svn-id: r52646
2010-09-08 22:58:41 +00:00
Andre Heider
f3a9828d36 WII: Fix typo, update translations.
svn-id: r52640
2010-09-08 17:41:31 +00:00
Willem Jan Palenstijn
29afa3094d CREDITS: Fix typo
svn-id: r52624
2010-09-07 17:45:36 +00:00
Eugene Sandulenko
771d2274dd CREDITS: Thanked for Drascula and Hugo sources
svn-id: r52622
2010-09-07 17:38:21 +00:00
Andre Heider
09834b8bec MERGE: Merge trunk to branch.
svn-id: r52564
2010-09-05 15:26:00 +00:00
Thierry Crozat
3606e51e76 i18n: Update German translation
svn-id: r52499
2010-09-02 19:34:23 +00:00
Eugene Sandulenko
4b9a8d8899 i18n: Update Russian translation
svn-id: r52483
2010-09-01 15:46:44 +00:00
Thierry Crozat
25d267888f I18N: Add "lowres" context in one place for the Add Game button
svn-id: r52475
2010-08-31 20:03:47 +00:00
Thierry Crozat
3c7a068682 I18N: Update translation template and all translations.
svn-id: r52462
2010-08-30 22:27:51 +00:00
Thierry Crozat
37027d6531 I18N: Add "lowres" context for several GUI strings when in 1x mode.
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-08-30 22:24:40 +00:00
Thierry Crozat
8c08e6e80c I18N: Do not translate 'English' in the language selection PopUpWidget.
svn-id: r52313
2010-08-23 22:46:05 +00:00
Thierry Crozat
bc821136fd i18n: Add support for context in translations.
This change means there can now be different translations for the same
english string depending on the context. It is based on gettext msgctxt feature.
There is a new macro _c(msg, ctxt) that should be used instead of _(msg) in
the source code when we want to add a context to the message. For the
moment I have added contexts to only one message ("None") so that I could
test the changes. Context could be added also to get shorter translations when
GUI is in 1x mode.

I have also added back the fuzzy option to msmerge since it is useful when
adding contexts to populate the translations for the new contexts.

svn-id: r52308
2010-08-23 19:45:14 +00:00
Thierry Crozat
769ad3109d GUI: fix crash when localized font could not be found
The ThemeEngine had a fallback implemented to use the
non-localized font if the localized one (e.g. for Hungarian) could not
be found. However the fallback was not working. Now it is working. 

svn-id: r52243
2010-08-20 21:50:58 +00:00
Eugene Sandulenko
6682659da0 i18n: add translations.dat file
svn-id: r52209
2010-08-19 11:48:27 +00:00
Tony Puccinelli
2cd99b449f refactored NEW_PLUGIN_DESIGN_FIRST_REFINEMENT define into ONE_PLUGIN_AT_A_TIME
svn-id: r52058
2010-08-13 05:58:11 +00:00
Eugene Sandulenko
ff8b296c29 Use tabs instead of spaces for indentation.
svn-id: r51997
2010-08-11 19:32:07 +00:00
Florian Kagerer
4a159bcb1e GUI: add music devices for c64, amiga and apple II gs
These devices are not able to create appropriate drivers.
The only purpose for now is having proper gui options and flags and music types for the device detector.
The corresponding GUIO flags for the new devices have been added, too.

svn-id: r51995
2010-08-11 18:54:56 +00:00
Tony Puccinelli
6543062e57 manually merged base, graphics, common, sound, and gui as I am quite skilled at somehow messing up svn merge :-)
svn-id: r51963
2010-08-11 00:54:34 +00:00
Tony Puccinelli
682807f0e9 merged trunk into branch, reverted Cruise Singleton changes
svn-id: r51961
2010-08-10 23:21:08 +00:00
Florian Kagerer
2db12a1ae7 GUI: fix broken MT-32 tab
svn-id: r51953
2010-08-10 16:24:00 +00:00
Neeraj Kumar
8e7cce6e5b fixed a typo with hotkeys in ButtonWidget
svn-id: r51830
2010-08-07 12:13:12 +00:00
Johannes Schickel
ff2ad216b1 GUI: Fix classic theme's GMM in 320x200.
svn-id: r51756
2010-08-05 14:40:22 +00:00
Tony Puccinelli
66b42d486b added intermediary function 'findGameOnePlugAtATime' and switched load game and run game code to use it. Added checks for DYNAMIC_MODULES defines to the checks for NEW_PLUGIN_DESIGN_FIRST_REFINEMENT
svn-id: r51746
2010-08-05 00:26:46 +00:00
Johannes Schickel
2b73c50a47 GUI: Fix valgrind warning.
svn-id: r51658
2010-08-02 20:43:42 +00:00
Thierry Crozat
575d38f602 i18n: Adding Spanish and Ukrainian translations
svn-id: r51596
2010-08-01 21:41:43 +00:00
Johannes Schickel
2095ce31bd GUI: Fix loading BDF fonts from theme archives.
svn-id: r51585
2010-08-01 19:31:18 +00:00
Eugene Sandulenko
af76912e87 i18n: Added Cyrillic fonts to theme packages
This fixes ScummVM startup on systems with Russian set as locale.

svn-id: r51571
2010-08-01 10:17:31 +00:00
Thierry Crozat
1c6b339bbc i18n: use user friendly language names in GUI
The GUI now uses the content of the Language field from the po file
header if it is present and not empty for the language selection
PopupWidget. If not present it uses the file name as before (e.g.
ru_RU).

Also update all the translation template and all the translation files.

svn-id: r51542
2010-07-31 15:46:43 +00:00
Eugene Sandulenko
5787c8bb88 GUI: Rename Font cache to match new font naming scheme
svn-id: r51388
2010-07-27 20:17:29 +00:00
Johannes Schickel
9be3c69438 GUI: Fix regression from r51265.
This makes the GMM's option dialog work again.

The fix itself is exactly the same like I made in r50468, which
also broke the GMM's option dialog.

svn-id: r51330
2010-07-26 18:41:19 +00:00
Johannes Schickel
dec30186eb GUI: Fix MIDI gain position in MIDI tab for lowres classic theme.
svn-id: r51277
2010-07-25 16:38:25 +00:00
Eugene Sandulenko
ccbb12b1cb GUI: Fix overdrawn tabs
If tabs are scrolled, do not draw those which are supposed to be invisible.

svn-id: r51268
2010-07-24 22:54:56 +00:00
Eugene Sandulenko
d88ffa1341 GUI: Update built-in theme
svn-id: r51266
2010-07-24 22:31:31 +00:00
Eugene Sandulenko
7457011a87 GUI: Fix bug #3027772 by adding MT-32 tab
Bug #3027772: "Can't switch between Text and Speech". The problem was in
overcrowded Audio tab in any resolution with height < 480.

Solved by adding new MT-32 tab and grouping all relevant widgets there.

TODO:
 - The problem still exists for 320x200 resolution where Subtitle speed
   control is not accessible
 - Apparently nobody tested tab control scrolling after switching to new
   GUI, and now there are artifacts

svn-id: r51265
2010-07-24 22:29:17 +00:00
Eugene Sandulenko
1867b44bf4 GUI: Fix bug #3024930
Bug #3024930: "GUI: GMM errors out in Hercules mode". Fixed by switching
Hercules resolutions to lowres GUI.

svn-id: r51226
2010-07-23 21:26:30 +00:00
Eugene Sandulenko
d6695e180c GUI: Fix tooltip drawing
With help of Tanoku tooltips were switched from widgets to dialogs
which helped to fix nasty bug with background not being restored.
Although it is basically a hack around inconsistent font backbuffering
in our GUI code, for the time being it is feasible.

The patch was extended with way to specify tooltip background in the
theme file.

svn-id: r51217
2010-07-23 19:36:47 +00:00
Johannes Schickel
41190f8a7b GUI: Properly show external MIDI devices.
Formerly in case a game only specified GUIO_MIDIMT32, only the MT-32 Emulator
was shown, since that is the only device which is of type MT_MT32. All
external MIDI devices are currently only flagged with MT_GM.

svn-id: r51107
2010-07-21 20:37:46 +00:00
Johannes Schickel
e5e94d4511 Strip trailing whitespaces in our common code base.
svn-id: r51094
2010-07-21 18:17:51 +00:00
Max Horn
9977e2db90 GUI: Enhance ThemeEngine to find theme .zip files using SearchMan
This is based on the Android specific patch found under:
backends/platform/android/scummvm-android-themeengine.patch
After some testing we should be able to get rid of that custom patch.

svn-id: r51028
2010-07-19 14:28:46 +00:00
Filippos Karapetis
48b288d9aa Fixing compilation with MSVC
svn-id: r50966
2010-07-17 19:11:59 +00:00
Max Horn
0b48a71c99 Remove PalmOS port
svn-id: r50964
2010-07-17 18:41:38 +00:00
Max Horn
1d4c82885d DEBUGGER: Simplify how our console debugger works / is used
* Remove _isAttached member var and isAttached method
* Engines now always call the onFrame method; whether it does
  something is decided by the debugger class resp. its subclasses
* Make detach() protected instead of private, so that subclasses
  can invoke it
* Remove _detach_now member var (call detach() instead).
* Rename _frame_countdown to _frameCountdown and properly
  document it.
* Add more doxygen comments
* Cleanup

svn-id: r50963
2010-07-17 18:38:42 +00:00
Torbjörn Andersson
992a8bfd3f Cleanup.
svn-id: r50925
2010-07-16 03:14:58 +00:00
Johannes Schickel
9644e7fe5f Properly add Matteo Angelino to our credits for his Italian translation.
svn-id: r50822
2010-07-12 15:50:48 +00:00
Johannes Schickel
ac268edafb Consistently use "MT-32" as short name of the Roland MT-32 in our GUI and credits files.
svn-id: r50821
2010-07-12 15:50:23 +00:00
Thierry Crozat
65d6ce4193 Replace _s(test ? "string1" : "string2") by test ? _("string1") : _("string2") in two places. With the old code the second string was not detected as being translatable.
svn-id: r50763
2010-07-09 17:22:02 +00:00
Florian Kagerer
47e59d8cc2 GUI/AUDIO: minor fix for the case that after enabling individual audio options for a target the gui tries to select the audio device from global options, but that particular device is unavailable due to GUIO flags settings
svn-id: r50684
2010-07-05 15:53:17 +00:00
Johannes Schickel
2f138f6055 Simplify audio device settings handling by using the device handle as tag instead of newly created id.
svn-id: r50651
2010-07-04 18:24:13 +00:00
Johannes Schickel
9cf1cff5fc Whoops, always increase midiId, not only when it's added to the GM Device popup.
svn-id: r50650
2010-07-04 18:07:34 +00:00
Johannes Schickel
9880017c11 Prevent the MT-32 Emulator from being displayed in the "GM Device" pop up.
svn-id: r50649
2010-07-04 18:03:18 +00:00
Johannes Schickel
da1a8535b4 More cleanup / readability fixes.
svn-id: r50648
2010-07-04 18:00:46 +00:00
Johannes Schickel
8f2c0c2ff0 Cleanup.
svn-id: r50647
2010-07-04 17:40:06 +00:00
Florian Kagerer
6c9e3b01da GUI/AUDIO: This change will make individual game audio settings take over the audio device from the global settings if no device config key is found for that game (This should fix the problem reported by LordHoto on devel. It might make sense to implement this behaviour to other settings, like subtitle mode etc.)
svn-id: r50646
2010-07-04 15:06:42 +00:00
Johannes Schickel
db01417447 Fix the size of the ScummVM logo in the launcher in the modern theme.
svn-id: r50642
2010-07-04 01:19:16 +00:00
Johannes Schickel
052d2ab6f1 Prevent GraphicsWidget from being assigned a surface which wouldn't fit in the widget.
svn-id: r50641
2010-07-04 01:18:49 +00:00
Johannes Schickel
336cde4b61 Always use kThumbnailHeight2 (i.e. 120) for the height of the thumbnail widget.
This fixes the thumbnails for games with resolutions != n*200 in the launcher.

svn-id: r50640
2010-07-04 01:11:37 +00:00
Johannes Schickel
acecfcaf69 Center the surface of a GraphicsWidget in case it is smaller than the widget's size.
svn-id: r50639
2010-07-04 01:11:18 +00:00
Robert Špalek
5e030bebcc enable reading ZIP archives even without USE_ZLIB
our module unzip.cpp can read uncompressed ZIP archives even without zlib.  if some of the files
inside are compressed and zlib is not linked in, an error is returned.

svn-id: r50483
2010-06-29 06:38:00 +00:00
Johannes Schickel
23fa2296c3 Fix regression from r50382, which triggered an assert when clicking "OK" in the GMM's options dialog.
The problem here is that our ConfigDialog uses "" as domain name,
this will result in the assert in common/config-manager.cpp:323
getting triggered, when using ConfMan.removeKey.

Since setting the domain to the game's domain does not seem save
according to the FIXME in gui/dialogs.cpp about this domain hackery,
I decided to adapt the OptionsDialog to only call ConfMan.removeKey
for "music_driver" etc., when the music driver widgets are present.
This is consistent with the over uses of removeKey in
OptionsDialog::close too.

svn-id: r50468
2010-06-28 23:41:43 +00:00
Martin Kiewitz
0a58cdb6e9 common console: also show prompt, if the engine wrote onto gui console since last call - fixes sci breakpoints
svn-id: r50449
2010-06-28 16:09:54 +00:00
Eugene Sandulenko
0e7ccb896d i18n: Add support for locale-dependent fonts
Currently it ws not decided where to put fonts, but if you put BDF files into
themepath, they will get picked up.

The font name has to contain same codepage specification as in the .po file,
i.e. fixed5x8-iso-8859-5.bdf for Cyrillic codepage. In case the font does not
exist, default will be used.

All built in fonts get proper names.

TODO: Currently there is a bug with our font cacher. Font clR6x12-iso-8859-5
is empty after loading from FCC file. Reason is unknown.

svn-id: r50448
2010-06-28 15:17:10 +00:00
Eugene Sandulenko
0d6efb2334 Fonts: More BDF font renames
svn-id: r50437
2010-06-28 12:20:15 +00:00
Eugene Sandulenko
84d43b9ab4 Fonts: Add Russian codepage fonts, renamed existing ones
svn-id: r50436
2010-06-28 12:16:53 +00:00
Thierry Crozat
945297a599 Add italian translation from the patch tracker (#3022046) and update credits.
svn-id: r50386
2010-06-27 18:19:37 +00:00
Florian Kagerer
7e05376ebe GUI: and another fix for the music device popup
svn-id: r50384
2010-06-27 17:37:35 +00:00