Commit Graph

2067 Commits

Author SHA1 Message Date
Johannes Schickel
cb92890d7b Commit updated common/messages.cpp too.
svn-id: r49946
2010-06-17 19:15:23 +00:00
Johannes Schickel
b56b3b9ead Fix common/messages.cpp rule for out of source directory builds. (Maybe this fixed bug #3017628 "AMIGAOS4: messages.cpp errors")
svn-id: r49940
2010-06-17 18:47:25 +00:00
David Turner
e5f609a40a Correction for Invalid reads in Translation iconv calls reported by Valgrind.
The string terminators were omitted from the iconv call and not restored.

svn-id: r49916
2010-06-17 03:22:52 +00:00
Johannes Schickel
49463c2bf9 Use USE_TRANSLATION, USE_DETECTLANG and USE_TERMCONV instead of (ENABLE_)TRANSLATION, DETECTLANG and TERMCONV.
svn-id: r49885
2010-06-15 19:20:58 +00:00
Johannes Schickel
a42ea73a76 Simplify code for the "ICONV_USES_CONST" case even more. (i.e. remove the "msg" variable there).
svn-id: r49880
2010-06-15 17:56:05 +00:00
Andre Heider
212d0ac28c Fix compilation when using ICONV_USES_CONST.
svn-id: r49878
2010-06-15 17:50:14 +00:00
Johannes Schickel
d8bc798145 Strip out charset information from the system locale again (like it was done before r49871).
Unlike with the old code, we know allow for locales
with a different size than 5 though.

svn-id: r49876
2010-06-15 17:47:23 +00:00
Johannes Schickel
f3288b0f26 Fix a typo.
svn-id: r49875
2010-06-15 17:47:04 +00:00
Johannes Schickel
34d8196334 Output some warning in case an invalid ID was passed to TranslationManager::getLangById.
svn-id: r49873
2010-06-15 17:34:26 +00:00
Johannes Schickel
f607fc59db Extend (and along with it add) some doxygen comments.
svn-id: r49872
2010-06-15 17:34:07 +00:00
Johannes Schickel
0bff5c29fe Use a Common::String instead of a fixed size array for _syslang in TranslationManager.
svn-id: r49871
2010-06-15 17:33:45 +00:00
Willem Jan Palenstijn
7c7054dbd1 Remove unnecessary svn:executable properties
svn-id: r49870
2010-06-15 17:14:38 +00:00
Johannes Schickel
c09af1dcae Some style fixes.
svn-id: r49869
2010-06-15 17:14:02 +00:00
Johannes Schickel
0d7c8071cc Fix iconv signature on BSD systems. (Based on what we do in tools/)
svn-id: r49868
2010-06-15 17:13:42 +00:00
Max Horn
365973542c Add TranslationManager::getTranslation variant taking/returning a Common::String (should fix WinCE build)
svn-id: r49861
2010-06-15 15:50:37 +00:00
Max Horn
44ce741f9c Code formatting
svn-id: r49859
2010-06-15 15:39:59 +00:00
Max Horn
651e2760a3 Fix spelling, cleanup
svn-id: r49843
2010-06-15 12:33:20 +00:00
Max Horn
703f0ca29c SYSTEM: Unify OSystem::getSupportedFormats() signature
svn-id: r49838
2010-06-15 12:21:08 +00:00
Eugene Sandulenko
2399f998a3 i18n: Update Russian translation.
svn-id: r49799
2010-06-15 11:05:52 +00:00
Eugene Sandulenko
94c9f9cdd1 I18n: Add backend files to POTFILES. Update .pot.
Translations were not updated.

svn-id: r49797
2010-06-15 11:03:11 +00:00
Eugene Sandulenko
01bc5dda94 GUI: Implemented Languages as GUI options.
SCUMM and AdvancedDetector support this feature.

svn-id: r49786
2010-06-15 10:57:28 +00:00
Eugene Sandulenko
67bc711580 GUI: Implement MIDI drivers as GUI options.
Proper version of patch #2988641: "GSoC: Select drivers in GUI
based on output types". So far only SCUMM engine supports this
feature.

svn-id: r49783
2010-06-15 10:56:12 +00:00
Eugene Sandulenko
7be2812757 i18n: Update Russian translation with new tooltips
svn-id: r49780
2010-06-15 10:54:48 +00:00
Eugene Sandulenko
b13636d624 i18n: update Russian translation with tooltips.
svn-id: r49776
2010-06-15 10:53:13 +00:00
Eugene Sandulenko
dc040aa867 GUI: Implement radiobuttons.
Implement radiobuttons in GUI. Also closes FR #2821529:
"GUI: volume and subtitles speed sliders".

Subtitle toggle button is replaced by three radiobuttons grouped
by a single group.

Updated translations and themes.

svn-id: r49767
2010-06-15 10:48:39 +00:00
Eugene Sandulenko
3fafa07ab0 GUI: Added in-place hotkeys for widgets.
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-15 10:47:31 +00:00
Eugene Sandulenko
859212df25 Implement translation support for ScummVM GUI.
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-06-15 10:44:51 +00:00
Eugene Sandulenko
024f492137 Added seek() method to MemoryWriteStreamDynamic.
If it deserves a separate class, shout.

svn-id: r49750
2010-06-15 10:34:14 +00:00
Eugene Sandulenko
9224a0bd6e Hid hashed fileopening to debuglevel 8.
svn-id: r49705
2010-06-15 10:19:06 +00:00
Max Horn
46155b2c36 Add Android backend from patch #2603856
svn-id: r49449
2010-06-06 09:34:36 +00:00
Max Horn
767edc91fa OSYSTEM: Get rid of kFeatureAutoComputeDirtyRects
svn-id: r49388
2010-06-02 00:52:57 +00:00
Johannes Schickel
9521f8d008 Typo fixes.
svn-id: r49324
2010-05-30 13:41:40 +00:00
Johannes Schickel
f02e31f2fc Fix non-const version of Common::String::begin.
Common::String::begin now assures the storage is a unique one, i.e. there are
no other Common::String objects pointing at it. This allows for safe use of
the writable iterators (and thus fixes the test case added with my last commit)

svn-id: r49323
2010-05-30 13:10:44 +00:00
Johannes Schickel
d0c79d21e9 Fix file length of zip file members inside ZipArchive (thanks to fuzzie for reporting).
svn-id: r49321
2010-05-30 12:44:59 +00:00
Max Horn
bbaf98127d correct typo
svn-id: r49270
2010-05-27 20:59:15 +00:00
Matthew Hoops
5ceb896b6b Have the MacResManager ignore resources with length 0.
svn-id: r49190
2010-05-24 16:51:33 +00:00
Eugene Sandulenko
1a938956ec Implement FR #2988017: exit status with --list-saves always 0
svn-id: r49132
2010-05-21 18:25:01 +00:00
Jordi Vilalta Prat
474b804e33 Make the MacResManager opening more robust to failed tries and plug its memory leaks
svn-id: r49116
2010-05-20 13:46:18 +00:00
Eugene Sandulenko
15986b81c2 Added getBaseFileName() method and enhanced open() with trying macbinary format in plain files
svn-id: r49074
2010-05-18 10:39:08 +00:00
Johannes Schickel
01070d72d3 Minor formatting.
svn-id: r49067
2010-05-17 22:17:42 +00:00
Max Horn
22caf0e1cf Get rid of Common::Rational::normalize and other redundant code
svn-id: r49066
2010-05-17 22:08:40 +00:00
Max Horn
00cd966f3d Some tweaks and fixes for Common::Rational
* Fix Common::gcd to work with negative input
* This fixes a bug in Common::Rational's multiplication code
* Add some more basic unit tests (including one which checks for
  the now fixed multiplication bug)
* cleanup

svn-id: r49064
2010-05-17 22:07:58 +00:00
Matthew Hoops
811fc0e7ec Add the Common::Rational class from patch #2963496 (VideoDecoder Rewrite)
svn-id: r49061
2010-05-17 20:53:04 +00:00
Joost Peters
dd0c1fd6f0 Restrict MIPSpro workaround to non-gcc compilers -- fixes compilation with gcc on irix.
svn-id: r49060
2010-05-17 16:50:10 +00:00
Matthew Hoops
fab2e2a8c4 Fix mismatched new[]/delete[]
svn-id: r49018
2010-05-12 20:22:10 +00:00
Matthew Hoops
8b1cb63de3 Pass by reference instead of value to getResource(String)
svn-id: r49008
2010-05-11 19:13:24 +00:00
Matthew Hoops
59476e44b9 Add support for getting a resource from the resource fork by name.
svn-id: r49004
2010-05-11 15:38:21 +00:00
Matthew Hoops
b9813063ad Add support to the MacResManager and AdvancedDetector to take the md5 of a resource fork. This introduces a new flag, ADGF_MACRESFORK, which when set will take the md5 and size from the resource fork instead of the data fork.
svn-id: r48997
2010-05-10 18:23:54 +00:00
Matthew Hoops
cdf30ecc5a Minor fix for using the MacResManager with a regular file; switch MacBinary's data fork to using a SeekableSubReadStream instead of a MemoryReadStream.
svn-id: r48995
2010-05-10 00:50:37 +00:00
Eugene Sandulenko
57f2425b28 Patch #2901515: HE: Resource Forks on Mac OS X
svn-id: r48984
2010-05-09 18:27:56 +00:00