Commit Graph

268 Commits

Author SHA1 Message Date
Max Horn
88913c0139 ALL: Remove trailing whitespaces
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-20 00:59:48 +02:00
Alyssa Milburn
a809ac9b7e I18N: Make some more GUI strings translatable. 2011-06-06 12:00:06 +02:00
Alyssa Milburn
6835433a42 GUI: Fix message after changing languages. 2011-06-06 11:43:49 +02:00
Max Horn
333be9c072 GUI: Replace some s(n)printf uses by Common::String::format 2011-06-02 00:07:18 +02:00
Max Horn
a4610df482 Merge branch 'branch-1-3-0' into master
I manually resolved all conflicts, and inspected every single change.
Many were due to the version string mismatch and thus easily resolved.
The MSVC project files add in the 1-3-0 branch were not merged,
neither where the changes to gui/themes/translations.dat.

Conflicts:
	NEWS
	backends/base-backend.cpp
	backends/graphics/samsungtvsdl/samsungtvsdl-graphics.cpp
	backends/module.mk
	backends/platform/ds/arm9/makefile
	backends/platform/psp/README.PSP
	backends/platform/samsungtv/main.cpp
	backends/platform/samsungtv/samsungtv.cpp
	backends/saves/posix/posix-saves.cpp
	base/commandLine.cpp
	base/internal_version.h
	base/main.cpp
	common/array.h
	configure
	devtools/create_project/create_project.cpp
	dists/android/AndroidManifest.xml
	dists/android/plugin-manifest.xml
	dists/iphone/Info.plist
	dists/irix/scummvm.spec
	dists/macosx/Info.plist
	dists/redhat/scummvm-tools.spec
	dists/redhat/scummvm.spec
	dists/scummvm.rc
	dists/slackware/scummvm.SlackBuild
	dists/wii/meta.xml
	engines/sci/parser/vocabulary.cpp
	engines/tinsel/handle.cpp
	gui/themes/translations.dat
2011-06-01 15:15:31 +02:00
agent-q
f1903004c0 GUI: Prevent the GUI code from incorrectly reloading the theme when the builtin theme is used. 2011-05-21 15:55:36 +01:00
Johannes Schickel
8a46c017cf GUI: Fix for bug #3303501 "Switching from HQ2x->HQ3x crashes ScummVM". 2011-05-17 23:16:40 +02:00
Thierry Crozat
0b8d2c4d60 GUI: Apply graphics mode change when closing global options dialog 2011-05-16 00:11:32 +01:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Engin Manap
d20a85d4f1 GUI: Fix indentation problems. Remove unwanted space.
All cosmetic changes, nothing changed.
2011-04-17 16:40:13 +03:00
Engin Manap
8463649f49 GUI: Fix apply old theme even if theme is not changed.
There was no control if theme was changed. If you click cancel, it
always changes theme to which options panel opened with. This is
unneccessery if theme is not changed so a if statement added before
applying old theme.
2011-04-17 16:18:32 +03:00
Engin Manap
a1509af8b6 GUI: Fix theme change ignores cancel on options window.
add new protected value _oldTheme. It keeps theme at the init of
options window, and cancel button reapplies old theme.
2011-04-17 16:17:20 +03:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Jordi Vilalta Prat
8393bc5b5f I18N: Don't build TranslationManager when translation is disabled.
svn-id: r54684
2010-11-30 18:50:19 +00:00
Filippos Karapetis
3abab136da GUI: Changed wording of "Disable dithering" to "Enable undithering"
svn-id: r54467
2010-11-25 02:35:18 +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
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
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
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
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
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
Jordi Vilalta Prat
bfbb69f77e I18N: Unified messages by removing whitespaces.
svn-id: r52700
2010-09-13 12:50:26 +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
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
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
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
Florian Kagerer
2db12a1ae7 GUI: fix broken MT-32 tab
svn-id: r51953
2010-08-10 16:24:00 +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
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
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
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
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