Commit Graph

2700 Commits

Author SHA1 Message Date
Filippos Karapetis
570237ea51 GUI: Remove leftover code for the global dithering checkbox 2012-03-25 22:18:35 +03:00
D G Turner
9e93b8306d GUI: Fix for NDS compile failure after predictive dialog changes. 2012-03-25 20:15:53 +01:00
Filippos Karapetis
346c1fe461 GUI: Change the undithering checkbox to be an engine-specific option 2012-03-25 18:51:23 +03:00
Paweł Kołodziejski
94081bfbfd GUI: convert bitmap to make compatible 2012-03-25 12:44:20 +02:00
Oleksiy Kurochko
ec32ccb6d6 GUI: Move predictive dialog to common gui 2012-03-25 12:21:38 +03:00
Eugene Sandulenko
9b2471aeee Merge pull request #211 from lordhoto/game-gui-options-v2
GUI: Game gui options
2012-03-25 01:38:46 -07:00
Thierry Crozat
5ae9c96fed I18N: Update Czech translation from patch #3508096 2012-03-23 20:17:14 +00:00
Matthew Hoops
1e8eea4268 CREDITS: Add pegasus 2012-03-21 14:55:12 -04:00
Matthew Hoops
426c81a7a7 GRAPHICS: Rewrite ImageDecoder to have an improved API
The new bitmap decoder class is based off the Mohawk one, and now has 8bpp decoding capability.
2012-03-20 01:06:47 +01:00
Filippos Karapetis
c84cd8dee8 GUI: Add per-engine and per-game options 2012-03-19 20:32:34 +01:00
Eugene Sandulenko
34198fda35 Merge pull request #203 from fingolfin/guio-cleanup
COMMON: GuiOptions cleanup
2012-03-17 03:51:27 -07:00
Eugene Sandulenko
56252909f5 Merge pull request #202 from tsoliman/keymapper-nonkey-inputs
KEYMAPPER: Add Gesture Support
2012-03-17 03:46:46 -07:00
Thierry Crozat
03be03bb47 I18N: Update Basque translation from patch #3499452 2012-03-14 20:02:17 +00:00
Christoph Mallon
e40ba4c135 JANITORIAL: Simply use *x instead of *x.get() on smart pointers. 2012-03-13 15:43:59 +01:00
Christoph Mallon
75efdd2d84 JANITORIAL: Replace (x ? false : true) by !(x). 2012-03-13 15:43:36 +01:00
Thierry Crozat
d2d31de8cb I18N: Update translation data file 2012-03-11 13:21:42 +00:00
Thierry Crozat
e08ab4e8aa CREDITS: Add credits for Basque translation 2012-03-11 13:21:42 +00:00
Thierry Crozat
7cb82f5e12 I18N: Regenerate translations data file 2012-03-07 22:16:58 +00:00
Tarek Soliman
d12f21b31d KEYMAPPER: Map non-key custom input events
This also makes the keymapper be in charge of keymapping logic
2012-03-02 20:48:50 -06:00
Max Horn
92d219715f COMMON: Replace OptionsDialog::renderType2GUIO by API in rendermode.h 2012-02-29 11:43:21 +01:00
Max Horn
215b41b244 COMMON: Move RenderMode and GUIOptions functionality into separate files 2012-02-26 15:19:31 +01:00
Johannes Schickel
73df649fd6 GUI: Let edit text widgets use a non-bold (aka normal) font.
This change was done per request of _sev.
2012-02-25 18:52:47 +01:00
Torbjörn Andersson
6b17507b76 GUI: Fix "clear" buttons after theme switch (bug #3482459)
Because the "clear" buttons are very different between themes (in
the Modern theme they have a graphical symbol, while in the Classic
theme they have a letter), they have to be removed and re-added
when reflowing the layout. This is patterned after how the
LauncherDialog class handles the larger changes in layout.

Removing widgets from a tab turned out to be trickier than I first
thought, so I had to move the removeWidget() method from Dialog to
GuiObject.
2012-02-24 22:20:50 +01:00
athrxx
3b574466fa COMMON: distinguish between 256 colors and 16 colors PC-98 rendering modes
KYRA 1 PC-98 supports both modes in the same target. The desired mode can now be selected in the rendering options. We did have good support for the 16 colors mode of KYRA 1 already. This mode could not really be selected though (except by manually modifying the config file or the code).
2012-02-24 18:09:38 +01:00
Johannes Schickel
442bcb7d3e ALL: Fix some signed/unsigned comparison warnings. 2012-02-22 20:20:55 +01:00
athrxx
d9c05f7121 COMMON: add gui options for rendering modes
The purpose is the same as for the sound gui options: users shouldn't be offered modes that the engine doesn't support.
2012-02-21 21:48:35 +01:00
Willem Jan Palenstijn
9ffe3e11d9 Merge pull request #182 from fingolfin/forbid-ctype
ALL: Avoid using is* macros from ctype.h
2012-02-21 11:33:32 -08:00
Tarek Soliman
aa42d78658 KEYMAPPER: Remove automapping dead code 2012-02-21 08:20:40 -06:00
Willem Jan Palenstijn
2957321903 GUI: Rewrite AA rounded square renderer
This fixes bleeding of colours between different regions.
It also turns 'bevel' into an option that turns the stroke into a bevel,
and implements antialiased gradient-fills.
2012-02-20 22:17:28 +01:00
Max Horn
4f8665fc83 COMMON: Move isFoo functions to namespace Common, add doxygen comments 2012-02-20 16:18:27 +01:00
Tarek Soliman
3f6d549b0e KEYMAPPER: Move F7 and F8 handling to DefaultEventMapper 2012-02-20 06:49:22 -06:00
Thierry Crozat
f89bfcc3b6 I18N: Regenerate translations data file 2012-02-19 12:16:36 +00:00
Eugene Sandulenko
1030212aa2 I18N: Regenerate translations.dat 2012-02-16 13:10:27 +02:00
Tarek Soliman
a4798602d7 JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'

This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
2012-02-15 10:07:10 -06:00
Max Horn
658080deed ALL: Avoid using is* macros from ctype.h
On some systems, passing signed chars to macros like isspace() etc. lead
to a runtime error. Hence, mark these macros as forbidden by default,
and introduce otherwise equivalent alternatives for them.
2012-02-15 16:51:37 +01:00
Tarek Soliman
5cf932198e KEYMAPPER: Fix Action ctor args in most keymaps 2012-02-13 23:24:59 -06:00
Tarek Soliman
da4b03139d KEYMAPPER: Added Toggle FullScreen action 2012-02-04 19:53:57 -06:00
Johannes Schickel
8b172f0cef GUI: Put bitmap items in the on-screen draw queue when doing buffering.
This fixes bug #3482461 "GUI: X image on clear buttons might be vanishing".

I am afraid I can't really tell why this fixes the bug though.

This is a backport of a small part of MaximRussia's changes to the queueing
code. So thanks to him for this fix.
2012-02-03 19:15:09 +01:00
Eugene Sandulenko
2d6fda8c85 CREDITS: Added Daniel Balsom which is a stupid overlook 2012-01-31 21:32:17 +02:00
Johannes Schickel
453eeb496c GUI: Work around bug #3481395.
The bug in question is: "LAUNCHER: Can't quit from unsupported game dialog".
2012-01-30 23:00:16 +01:00
Thierry Crozat
88829b7ea3 I18N: Regenerate translations data file 2012-01-29 21:40:34 +00:00
Johannes Schickel
f41bc8bd98 GUI: Slight formatting fix. 2012-01-29 21:17:01 +01:00
Johannes Schickel
6895ea9ea1 GUI: Fix compilation with --disable-translation. 2012-01-29 19:18:36 +01:00
Johannes Schickel
00cc48f83d GUI: Add GNU FreeFont TTFs for use with our modern theme. 2012-01-29 16:26:20 +01:00
Johannes Schickel
b0dfd08ff9 GUI: Fix anti-aliased font drawing of checkbox/radio button texts.
Formerly the text background was not restored thus every time it got redrawn
the text got thicker.
2012-01-29 16:26:20 +01:00
Johannes Schickel
f63df3bf7b GRAPHICS/GUI: Implement charset mapping for TTF fonts.
The charsets used by the translations now need to have a "$(name).cp" file,
which contains an charset index => unicode mapping. Otherwise
create_translations will fail.
2012-01-29 16:26:20 +01:00
Johannes Schickel
9f3fbe1bd7 GRAPHICS/GUI: Implement kerning support for Font.
This adapts the related graphics code, which is the generic Font API and the
TTF font implementation.

It furthermore adapts the GUI to properly take care of kerning in text input
widgets.
2012-01-29 16:26:20 +01:00
Johannes Schickel
d21ae1aa40 GUI: Add support for loading TTF files with ISO-8859-1 charset. 2012-01-29 16:26:20 +01:00
Klaus Reimer
9ee0526541 CREDITS: Added Tom Frost as contributor to WebOS port. 2012-01-28 11:19:39 +01:00
Max Horn
f57b66e984 MACOSX: Replace use of a 10.4 only API by one available since 10.0 2012-01-14 20:13:50 +01:00
Matthew Hoops
e72201c6cc GUI: Make eraser.bmp a Windows v3 bitmap
We don't have proper support for v4 bitmaps
2012-01-08 20:40:27 -05:00
Tarek Soliman
37d77253cf KEYMAPPER: Add failsafe code for popping into Keymapper itself
Thanks LordHoto
2012-01-07 22:08:57 -06:00
Tarek Soliman
73160e54b4 KEYMAPPER: Only push/pop the gui keymap once per gui session
The removes a bit of waste when gui dialogs are opened.
Multiple gui keymaps were being pushed.
2012-01-07 20:48:49 -06:00
Johannes Schickel
050b8e3360 GUI: Rework how the default localized font is managed.
Now we set the default localized font to the "text_default" font of the
currently active theme and default to the big GUI font in case none is
specified properly.
2012-01-07 01:03:07 +01:00
Johannes Schickel
0d3e79cf77 GUI: Simplify font loading a bit more. 2012-01-07 00:35:26 +01:00
Johannes Schickel
47edab71e8 GUI: Do an case-insensitive filename comparison.
Should be a bit safer, in case there's files with different cases, which match
by chance.
2012-01-06 22:27:26 +01:00
Johannes Schickel
4531f0173e GUI: Slight cleanup for font/image loading. 2012-01-06 22:24:12 +01:00
Johannes Schickel
08b6f28d54 GRAPHICS: Rework BDF font code. 2012-01-06 15:38:29 +01:00
Thierry Crozat
654ff1ecb9 I18N: Regenerate translations data file 2012-01-03 21:20:53 +00:00
Strangerke
e2ded73d92 MISC: This is year 2012 2012-01-01 11:49:41 +01:00
Tarek Soliman
366a942a3a KEYMAPPER: Simplify calling getKeymap 2011-12-30 13:03:39 -06:00
Johannes Schickel
4a30fa8845 GUI: Update translation files. 2011-12-26 15:26:56 +01:00
Johannes Schickel
95cabb0ffd SCUMM: Add a difficulty selection dialog for Loom FM-Towns.
It is in spirit of the DOS version's selection dialog, but it has the
description above the buttons instead of below it.
2011-12-26 15:25:41 +01:00
Tarek Soliman
be0f8407b6 GUI: Handle adding clear buttons that don't exist in layouts
The buttons in the keymapper are dynamically generated and don't exist in
the layout; They have no name.
2011-12-13 08:37:18 -06:00
Tarek Soliman
c6e001a1f5 GUI: Move addClearButton() from options.cpp to widget.cpp
This is so it can be used outside options.cpp
2011-12-13 08:36:41 -06:00
Strangerke
82acd32853 CREDITS: Mark Cyx as retired 2011-12-12 22:04:09 +01:00
Alyssa Milburn
b017c9317b GUI: Fix and regenerate theme files for y==400 case. 2011-12-07 16:09:11 +01:00
Eugene Sandulenko
330916b356 GUI: Regenerated theme files for new arrow look 2011-12-07 14:04:31 +00:00
MaximRussia
ad4471f70c GUI: Improved pop up and scrollbar arrows look
Previous triangle drawing was all wrong, rewrote it from the scratch.
Added padding to drawsteps in stx files
2011-12-07 14:04:10 +00:00
Johannes Schickel
2362a3f689 GUI: Add new line to error string in debugger. 2011-12-05 23:00:34 +01:00
Johannes Schickel
bc0d9bd3a7 GUI: Simplify boolean parsing in our debugger. 2011-12-05 23:00:34 +01:00
Filippos Karapetis
f0fc910d28 COMMON: Fix styling 2011-12-05 21:24:36 +02:00
Filippos Karapetis
411892d848 COMMON: Handle boolean types in the debugger 2011-12-05 20:32:08 +02:00
Thierry Crozat
6fd2c58ee3 I18N: Update Swedish translation from patch #3443449 2011-11-27 21:20:55 +00:00
Thierry Crozat
f5e945c7d1 I18N: Update Hungarian translation from patch #3440606 2011-11-22 23:20:55 +00:00
Thierry Crozat
bc4397bf3e I18N: Update Czech translation from patch #3440467 2011-11-20 22:39:18 +00:00
Johannes Schickel
d206f591c9 GUI: Update translations by using "make update-translations". 2011-11-20 05:22:04 +01:00
Paul Gilbert
b0611f3189 M4: Removed the M4/MADS engine from trunk 2011-11-20 12:14:10 +11:00
Johannes Schickel
e8ee551e99 GUI: Disable speech volume slider in subtitle only mode. 2011-11-18 00:33:30 +01:00
Eugene Sandulenko
5420ad7619 Merge pull request #114 from tsoliman/keymapper2
KEYMAPPER: Keymapper improvements 2
2011-11-17 14:22:48 -08:00
Torbjörn Andersson
877d22652f CREDITS: Mark whoozle as retired
He announced on scummvm-devel that he's leaving.
2011-11-17 20:28:38 +01:00
Alyssa Milburn
8f60377097 CREDITS: Add myself for Composer. 2011-11-17 17:00:58 +01:00
Tarek Soliman
6523454db5 KEYMAPPER: Put the gui keymap pushing/popping back in GuiManager::runLoop
This because theoretically the GUI could be run without a dialog.
This also fixes the situations where the GUI keymap gets popped more times than pushed.

Thanks sev
2011-10-31 22:59:55 -05:00
Tarek Soliman
56b5c0ea9f KEYMAPPER: Make sure GuiManager only pops gui keymaps 2011-10-27 10:46:23 -05:00
Tarek Soliman
a5082ffa5d KEYMAPPER: Skip GUI keymap when displaying active keymap in keymapper dialog
This fixes a problem where opening the keymapper dialog would cause the current game
keymap to be displayed as the active keymap but then changing the keymap selection
back to it would cause the GUI keymap to be displayed as the active one. The GUI keymap
was indeed at the top of the stack but that's not the desired effect.

Also move the pushing and popping of the keymap to Dialog::Open/Close
Also constantify the GUI keymap name
2011-10-27 10:46:22 -05:00
Johannes Schickel
7022cdc82b GUI: Slight formatting fix. 2011-10-27 01:02:25 +02:00
Johannes Schickel
19be349a71 GUI: Fix search clear button when switching themes or resolution.
This only fixes the clear button of the launcher's search. For the other clear
buttons this is would be a bit more work since they are embedded in tabs.
2011-10-25 16:20:40 +02:00
Eugene Sandulenko
b2a2f76dd9 LAUNCHER: Fix MIDI override setting 2011-10-25 14:56:05 +01:00
Eugene Sandulenko
724e6cb638 GUI: Show empty savepath as 'Default', not 'None' 2011-10-25 14:56:05 +01:00
Eugene Sandulenko
fe4495cac0 LAUNCHER: Turned erase icon white 2011-10-25 14:56:05 +01:00
Eugene Sandulenko
5a68e40054 GUI: Refactor clear buttons 2011-10-25 14:56:05 +01:00
Eugene Sandulenko
2b6c2da831 GUI: Added clear button to paths 2011-10-25 14:56:05 +01:00
Eugene Sandulenko
202cce30b3 LAUNCHER: Improved clear soundfont button 2011-10-25 14:56:05 +01:00
Eugene Sandulenko
d99e855606 LAUNCHER: benefit from PicButton being derivative of Button 2011-10-25 14:56:04 +01:00
Eugene Sandulenko
b0fe2bbaf9 GUI: Made PicButtonWidget derivative of ButtonWidget 2011-10-25 14:56:04 +01:00
Eugene Sandulenko
25766500c0 LAUNCHER: Do not show clear image in classic theme 2011-10-25 14:56:03 +01:00
Thierry Crozat
e2e01dcd35 I18N: Regenerate translations data file 2011-10-24 20:59:09 +01:00
Johannes Schickel
c087f917dd GUI: Fix missing audio drivers in Edit Game dialog.
This is a regression from 77c65648b1.

Formerly the code used strtok to check for any audio related GUIO flag to be
present in _guioptions. Since strtok tokenizes the string this won't really
work. I changed it to use strpbrk, which searches a string for any character
from a set of characters (in our case flags). The code should now have the
same semantics as of before the above mentioned commit.

This also gets rid of copying the gui options into a char array and a strncpy
call.
2011-10-24 20:43:10 +02:00
Strangerke
9912d7b856 GUI: Add GUIO EGA Dithering option
This will be used to disable the EGA dithering option
2011-10-24 16:51:18 +02:00
Strangerke
9256652fcf GUI: in order to play it safe, re-enable the aspect checkbox if the gui options don't contain GUIO_NOASPECT.
Thanks lordHoto for pointing it
2011-10-24 13:36:52 +02:00
Eugene Sandulenko
5b3b73c523 GUI: Added icon to clear button. Reverted PNG support 2011-10-24 05:18:49 +01:00
Eugene Sandulenko
59474ca128 GUI: Replaced search icon with a better looking one.
Icons are by Yusuke Kamiyamane. http://p.yusukekamiyamane.com/
2011-10-23 23:44:14 +01:00
Eugene Sandulenko
4c08fccf58 GUI: Add support for PNG images in themes 2011-10-23 23:44:14 +01:00
Eugene Sandulenko
f1165b0b6e LAUNCHER: Do not show MIDI and MT32 tabs if game does not have MIDI 2011-10-23 23:44:14 +01:00
Strangerke
cfa42fee80 LAUNCHER: Add GUIO_NOASPECT to SCUMM engine 2011-10-23 21:45:02 +02:00
Johannes Schickel
3a196478c6 ALL: Reduce assignment of "" to Common::String.
When clearing an existant object clear() should be used.

When constructing objects (or using default values for parameters) the
constructor of String without any argument should be used.

This changes only a few instances I noticed while looking over some recent
commit logs.
2011-10-23 20:04:03 +02:00
Eugene Sandulenko
77c65648b1 AD: Swtich GUI options to a char array.
This eliminates nasty limitation of caping number of flags to 31.
Current code has limitation of 255 flags, though.

Only SCUMM engine is converted, rest do not even compile.
Detection of fan talkie MI is broken as it has to be implemented
differently.
2011-10-23 17:53:13 +01:00
Thierry Crozat
2efcee5288 I18N: Regenerate translations data file 2011-10-23 15:25:49 +01:00
Eugene Sandulenko
2dea24a835 I18N: Regenerate translations.dat 2011-10-19 13:48:02 +01:00
Eugene Sandulenko
ed2cb9a6b3 GUI: Added debug ouput for determining loaded theme 2011-10-19 13:48:01 +01:00
Chris Warren-Smith
ed07b99b22 BADA: Misc changes merged from appstore release 2011-10-18 23:22:25 +10:00
Thierry Crozat
90598bd4e2 I18N: Regenerate translations data file 2011-10-17 00:07:03 +01:00
Thierry Crozat
9ca17c4e95 I18N: Regenerate translations data file 2011-10-16 14:11:08 +01:00
Thierry Crozat
f525ff7d01 I18N: Update Hungarian translation from patch #3419482 2011-10-08 22:42:07 +01:00
Tarek Soliman
790b10bc2b CREDITS: Sort some sections by last name 2011-10-08 12:38:04 -05:00
Thierry Crozat
153e66318e I18N: Update Czech translation from patch #3419076 2011-10-05 19:56:37 +01:00
Jordi Vilalta Prat
22db5dda42 I18N: Update the catalan and spanish translations. 2011-10-05 11:36:56 +02:00
Jordi Vilalta Prat
9b03f26045 I18N: Update the translation template. 2011-10-05 11:36:56 +02:00
Tarek Soliman
26d4e4bdb6 CREDITS: properly retire fanoush and add myself 2011-09-28 15:13:59 -05:00
Filippos Karapetis
d01d228ee8 AGI/COMMON: Fixed bug #3407308 - "AGI: SQ2: Saving allowed in autosave slot 0 from scummvmmenu"
The save/load dialog code was not polling for meta info for empty slots
2011-09-25 15:03:02 +03:00
Strangerke
3542dc2c44 CGE: Add credits 2011-09-22 18:55:06 +02:00
Willem Jan Palenstijn
052177d136 COMMON: Remove some double-underscore defines (reserved) 2011-11-14 14:59:58 +01:00
Eugene Sandulenko
f56dc4151d Merge pull request #112 from tsoliman/fix-undithering-guioption1
GUI: Enable EGA Undithering in global options dialog
2011-10-30 18:29:50 -07:00
Johannes Schickel
7f2b2e99f8 GUI: Change scrollbar repeat handling from a timer proc to handleTickle.
This should be less heavy on timer usage and makes sure no race conditions
will occur.
2011-10-28 12:08:15 +02:00
Tarek Soliman
f30df9aa70 GUI: Enable EGA Undithering in global options dialog
GUIO_EGAUNDITHER is a positive flag unlike the rest of the GUIO
negative flags like GUIO_NOASPECT and GUIO_NOSPEECH.
This means the gui option is only enabled if the flag exists.

This caused the gui option to be disabled in the global options dialog due
to the flag not existing in the global confman domain.
It is an inconvenience and a regression IMHO to have to set this flag on
a game by game basis with no option to set it globally and have the games
override it.

Thanks Strangerke for making me clarify.

Thanks LordHoto for feedback on code style.
2011-10-27 09:48:21 -05:00
Torbjörn Andersson
642e0baacb GUI: Silence GCC warning
Rename local variable 'buffer' to keep it from clashing with the
buffer() method.
2011-09-19 20:10:46 +02:00
Littleboy
9796890cce GUI: Replace ConsoleDialog use of vsnprintf by Common::String::vformat() 2011-09-19 09:23:00 -04:00
Thierry Crozat
aad960f095 I18N: Regenerate translation.dat file 2011-08-23 21:42:42 +01:00
Thierry Crozat
8935c7cd64 I18N: Regenerate translations.dat file 2011-08-22 22:40:46 +01:00
Chris Warren-Smith
6d47a6d935 BADA: Updated credit.pl to include BADA port information 2011-08-21 16:37:41 +10:00
Eugene Sandulenko
8022c87060 I18N: Regenerated .pot, .po and translations.dat 2011-08-20 15:13:23 +01:00
Eugene Sandulenko
51fbc7200c CREDITS: Reflect new team structure 2011-08-20 13:12:18 +01:00
Eugene Sandulenko
4a7616c366 I18N: Regenerate translations.dat 2011-08-20 12:52:27 +01:00
Jordi Vilalta Prat
f92b21b377 I18N: Update the catalan and spanish translations. 2011-08-18 11:59:53 +02:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
Eugene Sandulenko
1e45c32558 I18N: Regenerate translations.dat 2011-08-06 11:31:10 +01:00
Eugene Sandulenko
ae02860784 GUI: Removed redundant button label 2011-08-06 11:31:01 +01:00
Eugene Sandulenko
9e0c1a38e1 GUI: Consistent behavior of ButtonWidget::setLabel() 2011-08-06 11:30:58 +01:00
Eugene Sandulenko
78f1ea7690 OSYSTEM: extended installTimerProc() with timer ID parameter 2011-08-06 11:28:35 +01:00
Matthew Hoops
03d9b63bcc CREDITS: Mark waltervn as retired
As requested by him
2011-07-03 17:17:39 -04:00
Johannes Schickel
7e4224e52a COMMON: Fix compilation when USE_HASHMAP_MEMORY_POOL is not defined. 2011-07-03 00:16:07 +02:00
Johannes Schickel
09501be85b ENGINES: Clean up SaveStateDescriptor.
Now SaveStateDescriptor no longer subclasses HashMap. Instead all possible
saved meta data is included directly into SaveStateDescriptor.

This is slightly less flexible, but we never needed that flexibility so far.
On the other hand it should reduce the memory usage. At least on my system
(Linux/amd64) the old SaveStateDescriptor had a size of 928 and the new
SaveStateDescriptor has a size of 200.
2011-07-02 21:07:55 +02:00
Johannes Schickel
fa5f8dc703 GRAPHICS: Rename NewFont to BdfFont. 2011-07-01 21:53:01 +02:00
Johannes Schickel
8201df7bb6 GRAPHICS: Move NewFont code to a separate file. 2011-07-01 21:10:25 +02:00
Ori Avtalion
aa0f307e06 ALL: Require DECLARE_SINGLETON to be used in the Common namepsace
Silences the clang warning:

  static data member specialization of '_singleton' must
  originally be declared in namespace 'Common'; accepted as a C++0x
  extension [-Wc++0x-extensions]

Wrapping "namespace Common {}" around the macro assignment causes clang
to complain about a spurious semicolon, and removing the semicolon at
the end of the macro causes some editors to misbehave.

Changing the requirement of using the macro in one namespace (the
global) to another (Common) seems a small price to pay to
silence a warning.
2011-06-30 22:41:41 +03:00
unknown
dde4cb1ff8 CREDITS: Update my status to active again. 2011-06-30 00:29:22 +10:00
Thierry Crozat
2e81e05a12 I18N: Regenerate translations data file 2011-06-28 19:54:30 +01:00
Eugene Sandulenko
bfdf12ad2f I18N: Update Russian translation 2011-06-26 01:53:43 +03:00
Eugene Sandulenko
c4a5fa8506 CREDITS: Add real name of serga per his request 2011-06-23 11:40:19 +03:00
Thierry Crozat
59d3b938d4 I18N: Regenerate translations data file 2011-06-22 22:48:09 +01:00
Eugene Sandulenko
33ce6e60fd Merge pull request #26 from Littleboy/taskbar
Taskbar integration
2011-06-22 13:35:37 -07:00
Max Horn
c2d31c4ca5 CREDITS: Mark myself as retired 2011-06-22 11:52:58 +02:00
Thierry Crozat
53dfd3a3f5 I18N: Regenerate translations data file 2011-06-20 23:16:58 +01:00
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
Thierry Crozat
3853e76202 I18N: Regenerate translations data file 2011-06-19 23:28:22 +01:00
athrxx
825c889e33 GUI: fix uninitialized var
(caused rendering glitches when compiling with MSVC)
2011-06-17 20:33:40 +02:00
Max Horn
da3fff8ab3 COMMON: Make use of Common::parseBool 2011-06-17 10:38:16 +02:00
Littleboy
9614834548 BACKENDS/COMMON/GUI: Remove complete support for TaskbarManager when taskbar integration is not enabled 2011-06-16 14:23:28 -04:00
Littleboy
e1dc9cdc0b BACKENDS: Add support for count status to TaskbarManager
- Show the number of found games when using the massadd dialog
2011-06-16 14:23:12 -04:00
Littleboy
2be35013f1 BACKENDS: Add progress to MassAdd dialog 2011-06-16 10:36:33 -04:00
Vladimir Menshakov
3a1b1a081a DREAMWEB: Added engine to the credits 2011-06-16 16:05:05 +04:00
Thierry Crozat
e826aaab39 I18N: Update Czech translation from patch #3316238 2011-06-14 21:10:35 +01:00
Thierry Crozat
6d952b3e58 I18N: Regenerate translations data file 2011-06-12 13:49:00 +01:00
Thierry Crozat
4e5907a5e4 I18N: Update translations from template 2011-06-06 23:20:13 +01:00
Thierry Crozat
226990bb58 I18N: Update translations from template 2011-06-06 23:20:11 +01:00
Thierry Crozat
6b13782967 GRAPHICS: Move genLocalizedFontFilename() to FontManager class
It was defined in ThemeEngine class , but I moved it to make it
possible to use localized font in other places.
2011-06-06 23:20:09 +01: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
a6e5b97e9f COMMON: Remove vfprintf call from XML parser 2011-06-06 11:19:09 +02:00
Max Horn
91b889e2d3 COMMON: Rename kFeatureCursorHasPalette -> kFeatureCursorPalette 2011-06-04 11:55:56 +02:00
Max Horn
b25fa194b3 GUI: Fix some comments 2011-06-03 16:16:38 +02:00
Max Horn
8b3c36cfad GUI: Add 'openlog' command to debugger 2011-06-03 13:36:04 +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
Matthew Hoops
9539017ee3 ALL: initialise -> initialize 2011-05-25 11:17:11 -04:00
Matthew Hoops
eea482fa43 ALL: behaviour -> behavior 2011-05-25 10:50:46 -04:00
Max Horn
4b7f6dfa3c BUILD: Rename USE_TEXT_CONSOLE -> USE_TEXT_CONSOLE_FOR_DEBUGGER
This reduces the similarity in name to the otherwise mostly
unrelated DISABLE_TEXT_CONSOLE #define.
2011-05-25 13:24:37 +02:00
CeRiAl
dcfa8fd048 CREDITS: Temporarily retire Jubanka, add CeRiAl 2011-05-25 00:05:16 +02:00
CeRiAl
0a03a620e1 CREDITS: Temporarily retire Jubanka, add CeRiAl 2011-05-25 05:57:19 +08:00
Eugene Sandulenko
2b11228734 I18N: Update translations.dat 2011-05-24 22:32:03 +01:00
Eugene Sandulenko
b1587a9082 I18N: rebuild translations.dat 2011-05-24 22:28:46 +01:00
Thierry Crozat
d2a55b42c9 ENGINES: Further unify engine names 2011-05-22 12:47:35 +01:00
agent-q
4076a0466d GUI/DS: Make 99 the maximum number of save slots displayed on the GMM load/save screens on the DS port. 2011-05-21 15:56:42 +01: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
agent-q
92a71f7452 DS: Port of changes from branch-1-2-0 that I should really have moved into the trunk.
"DS: Prevent the command line help string from being included in the binary."
5f3a90a5f6911188b8d1ded08dbdf6d233e9eb7b

"GUI: Allow disabling of Mass Add dialog.  Saves a few Kb of binary size on the DS, and is not particularly useful on that platform."
240ff87cf4472538d25a1c5628c8d15f1791ab1c

"GUI: Don't search for theme zip files on startup when running on the DS.  Themes aren't supported anyway, and the search severely delays startup."
fe3b18ce0df03117081e83d99f4a2cbd864d3286
2011-05-21 15:45:51 +01:00
Johannes Schickel
8a46c017cf GUI: Fix for bug #3303501 "Switching from HQ2x->HQ3x crashes ScummVM". 2011-05-17 23:16:40 +02:00
strangerke
766b31e94d CREDITS: retire Kirben (missing file) 2011-05-17 22:25:06 +02:00
Max Horn
52d81727a3 GUI: Trying to clarify my comment on ctrl-a/ctrl-e *sigh* 2011-05-17 16:27:10 +02:00
Max Horn
29851abaea GUI: Text editing tweaks
- Streamline keypad handling
- Allow up/down to act like home/end
- On Mac OS X, allow ctrl-a and ctrl-e to act like home/end
2011-05-17 12:23:55 +02:00
Max Horn
a3fe84cfe6 GUI: For a list entry in edit mode, move caret to end 2011-05-17 12:23:55 +02:00
Thierry Crozat
3062681eb5 KYRA: Change engine name to Kyra 2011-05-16 23:58:46 +01:00
Thierry Crozat
0b8d2c4d60 GUI: Apply graphics mode change when closing global options dialog 2011-05-16 00:11:32 +01:00
Thierry Crozat
3c59e37035 ENGINES: Unify engine names
This unifies the engine names in MetaEngine::getName() and the
credits. In particular drop "Engine" or "engine" from the names when
it was present and use expanded names in credits when the
MetaEngine uses it (e.g. "Beneath a Steel Sky" instead of "BASS").
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
Thierry Crozat
480aaa6504 I18N: Update translations data file 2011-05-08 23:56:12 +01:00
Thierry Crozat
371e617797 I18N: Update translations data file 2011-05-08 23:30:46 +01:00
Johannes Schickel
473337effd GUI: Allow .zip files with case differing from ".zip" as theme files too.
Formerly our code used "hasSuffix" to check for a ".zip" suffix. Since
hasSuffix does a case-sensitive match that would not work, in case the file
was called "scummmodern.ZIP" instead of "scummmodern.zip" for example.

To fix that I am using a case-insensitive matchString instead now.
2011-05-07 15:49:57 +02:00
Johannes Schickel
16f1b51e2a GUI: Clean up localized font filename generation. 2011-05-05 20:07:37 +02:00
Thierry Crozat
1aff380a15 I18N: Update translations data file 2011-05-02 20:19:13 +01:00
Thierry Crozat
cd9aabfb2d I18N: Update translations data file 2011-05-02 20:13:51 +01:00
Max Horn
d521d6a1c2 GUI: Inform use about ignored games when mass adding 2011-05-02 13:40:25 +02:00
Thierry Crozat
39d9566133 I18N: Update translations data file. 2011-05-01 23:57:43 +01:00
Thierry Crozat
9360ec7354 I18N: Update translations data file. 2011-05-01 23:50:39 +01:00
Johannes Schickel
71bdb86e02 Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16

Conflicts:
	graphics/png.cpp
2011-05-01 16:54:45 +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
Ori Avtalion
cd6ee0589d JANITORIAL: Format forward declarations to follow convention 2011-04-28 12:20:34 +03:00
Thierry Crozat
836ca2b4e2 I18N: Update translations data file. 2011-04-27 20:43:38 +01:00
Max Horn
759cac0abc GUI: Fix warning on systems where char is unsigned 2011-04-26 14:24:47 +02:00
Thierry Crozat
ff0f391a9c I18N: Update translations data file. 2011-04-25 23:03:00 +01:00
Max Horn
25d97593c5 Merged pull request #25 from Littleboy/corrupted_theme.
ZipArchive and corrupted themes
2011-04-25 12:46:39 -07:00
Johannes Schickel
34ec9f6439 GUI: Make git revision string fit in the modern theme's launcher again. 2011-04-25 20:30:46 +02:00
Littleboy
ea9774f689 GUI: Add basic validity check to ThemeEngine::themeConfigParseHeader (workaround for #3103051)
When loading a corrupted zip, the data returned for THEMERC will be garbage, which will cause an assert in isspace() when trying to trim the data.
This checks that the first character of the header is in the range [0;127] and bails out if not.
2011-04-24 22:45:36 -04:00
Thierry Crozat
9b47a42ebd I18N: Update translations data file. 2011-04-24 14:56:18 +01:00
Thierry Crozat
7a9157bb56 I18N: Update translations data file. 2011-04-24 10:39:18 +01:00
Thierry Crozat
42408c0d95 I18N: Update translation data file. 2011-04-22 20:01:54 +01:00
Max Horn
73f04118f3 COMMON: Rename Error to ErrorCode, introduce new Error class 2011-04-18 18:22:02 +02:00
Johannes Schickel
c824ef16a6 Merge branch 'master' of https://github.com/enginmanap/scummvm 2011-04-17 21:44:29 +02:00
Johannes Schickel
41586398ab GUI: Do not access Surface::bytesPerPixel anymore. 2011-04-17 20:58:07 +02:00
Johannes Schickel
2329a00873 GUI: Prefer Surface::create taking a PixelFormat over the one taking a byte depth. 2011-04-17 16:34:58 +02:00
Engin Manap
d20a85d4f1 GUI: Fix indentation problems. Remove unwanted space.
All cosmetic changes, nothing changed.
2011-04-17 16:40:13 +03:00
Thierry Crozat
9990ae6aa0 CREDITS: Add buildbot skin to billwashere crontibutions 2011-04-17 14:21:49 +01: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
Johannes Schickel
34093ac9a9 CREDITS: Update credits files. 2011-04-16 20:36:38 +02:00
Eugene Sandulenko
6224b74f34 GUI: Let EditTextWidget notify when the editing is finished 2011-04-16 16:18:59 +03:00
Paul Gilbert
4e8c047d4a CREDITS: Added credits for TsAGE 2011-04-14 20:53:03 +10:00
Klaus Reimer
bc0ed24915 CREDITS: Add credits for WebOS backend 2011-04-12 11:11:19 +02:00
Thierry Crozat
1383aed468 I18N: Update Ukrainian translation 2011-04-05 19:55:40 +01:00
dhewg
9640048ad6 GUI: Update the screen after handling events
Fixes crash on droid:
game -> gmm -> save -> click entry (EVENT_SCREEN_CHANGED due to vkeybd
beeing shown) -> delete -> confirm
another EVENT_SCREEN_CHANGED gets in simultaneously (due vkeybd being
deactivated) and the parent dialog updated Rects out of bounds.
2011-04-05 12:44:46 +02:00
Johannes Schickel
28e6859a69 GUI: ThemeEngine.cpp/.h formatting fixes. 2011-04-03 15:04:20 +02:00
Jerome Fisher
8f02cdeed2 CREDITS: Pull Jerome Fisher out of retirement (for one final mission, etc.). 2011-04-02 02:00:34 +02:00
Alyssa Milburn
a33ee051d0 CREDITS: Update Mohawk credits. 2011-03-28 17:53:31 +02:00
Thierry Crozat
ca772d1460 I18N: Update translation data file 2011-03-22 22:20:20 +00:00
Thierry Crozat
649304db3c CREDITS: Add credits for Swedish translation 2011-03-22 22:20:17 +00:00
Thierry Crozat
6f59d02db7 I18N: Regenerate translation data file 2011-03-22 22:20:15 +00:00
Thierry Crozat
5ed102ded9 CREDITS: Fix typo in previous commit 2011-03-09 22:36:24 +00:00
Thierry Crozat
4ba1c5c106 CREDITS: Add credits for web sites maintainer and new skins
Also add Andre in the credits for Android port.
2011-03-09 22:21:56 +00:00
madmoose
5b50113bc0 CREDITS: Credit madmoose Smacker video decoder 2011-03-01 22:10:39 +08:00
Johannes Schickel
2d46c9b6a2 GUI: Increment theme version.
With 50a682e7e1 we changed the resolution string
in a way which is incompatible with old resolution strings, thus all old theme
files are not usable anymore and will cause problems. To avoid that we just
increase the version string and thus it is not possible to use them anymore.
2011-03-01 04:20:32 +01:00
dhewg
ff11ab284a Revert "GUI: Properly clear the screen buffer"
This reverts commit c8551b80dd.

Turns out the flicking comes from an updateScreen() call in
android's clearScreen(). Besides, this broke GMM... a little
2011-02-25 00:08:46 +01:00
dhewg
a017cb3d00 GUI: Fix two-step rendering
This is used when changing directories in the 'add game' dialog or when
choosing another tab in the option dialog. Only blit to the overlay on
the final pass. Gets rid of highly annoying flickers on androids
2011-02-24 23:18:34 +01:00
dhewg
c8551b80dd GUI: Properly clear the screen buffer
Don't operate on the overlay, it might be a pointer to a texture
used by the hardware. This get's rid of some annoying flickers on
androids
2011-02-24 23:18:34 +01:00
dhewg
50a682e7e1 GUI: Make the ThemeParser less dumb
Instead of running into assert()s due to dumb parser decisions, use
'less than' and 'greater than' width/height conditions on the
'resolution' tags.
Seems better than listing >9000 different android resolutions.
2011-02-24 23:18:33 +01:00
Johannes Schickel
7b8b73f64a GUI: Update cursor palette handling for RGBA->RGB change. 2011-02-14 17:08:32 +01:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Thierry Crozat
9fceb20012 CREDITS: Add credits for Czech translation
Also add missing html entities conversion for rtf and tex outputs (hopefully
I got them right).

svn-id: r55834
2011-02-08 22:28:32 +00:00
Thierry Crozat
89bc8bfdb2 I18N: Add Czech translation (patch #3174438)
svn-id: r55833
2011-02-08 22:25:35 +00:00
Max Horn
2d1c8a3533 ALL: Fix whitespaces / indention
svn-id: r55818
2011-02-07 23:01:06 +00:00
Max Horn
377b4c67d9 GUI: Change SaveLoadChooser to not 'public subclass' GUI::Dialog
svn-id: r55817
2011-02-07 22:59:00 +00:00
Max Horn
41121be4d6 GUI: Rename SaveLoadChooser::runModal to runModalWithPluginAndTarget
This avoids hiding an overloaded virtual method, which in turn can
cause weird bugs (see also the next commit).

svn-id: r55815
2011-02-07 22:58:22 +00:00
Thierry Crozat
37aa513815 I18N: Add polish translation (patch #3162838)
svn-id: r55435
2011-01-22 16:46:32 +00:00
David Turner
6412b1d2c7 GUI: Fix Memory Leak from PicButtonWidget _gfx Member.
This widget is only currently used by Hugo.

svn-id: r55364
2011-01-20 22:32:30 +00:00
Thierry Crozat
024b7758c5 I18N: Update credits and NEWS file after adding two new GUI translations
svn-id: r55339
2011-01-19 23:05:06 +00:00
Thierry Crozat
a9bbfb1fcd I18N: Add Norwegian Nynorsk and Danish translations
Norwegian Nynorsk translation was submitted in patch #3142157
Danish translation was submitted in patch #3153476

svn-id: r55338
2011-01-19 23:02:45 +00:00
Johannes Schickel
99f62728a3 GUI: Fix implicit signed to unsigned conversion warnings for some compilers.
svn-id: r55313
2011-01-18 21:03:13 +00:00
Johannes Schickel
2633a70018 GUI: Fix language popup in the game options.
r49786 introduced a regression which made the game options menu set the
game language to "zh-cn" in case "<default>" was selected. Also in case no
language key was present in the game's config domain no text was shown at all,
now it shows "<default>" in that case again.

svn-id: r55267
2011-01-16 20:12:55 +00:00
Eugene Sandulenko
04a9082d02 GUI: Implement PicButtonWidget
It is a button with picture intead of text. To be used by Hugo engine

svn-id: r55099
2011-01-03 12:23:50 +00:00
Arnaud Boutonné
6a299ce0b8 COPYRIGHT: Update copyright year - Happy new year!
svn-id: r55082
2010-12-31 23:04:49 +00:00
Yotam Barnoy
ee2b1092ab PLUGINS: switched plugin manager to inheritance rather than #defines
The reason for this was that I found issues where the wrong functions were called in EngineManager for single plugin operation. Rather than inserting more messy #defines, I preferred to change the PluginManager to use virtual functions, which also makes EngineManager simpler.

svn-id: r55024
2010-12-23 13:38:37 +00:00
Johannes Schickel
44dfb67faa GUI: Adapt GUI themes to latest Mohawk resolution change.
svn-id: r54944
2010-12-17 12:23:59 +00:00
Thierry Crozat
27e7da7340 I18N: Add Norwegian (Bokmaal) translation (patch #3134466)
svn-id: r54876
2010-12-12 00:24:19 +00:00
Thierry Crozat
bf044c0212 I18N: Update Brazilian Portuguese translation (from patch #3131421)
svn-id: r54836
2010-12-08 22:03:35 +00:00
Max Horn
6edc86a19b DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engine
svn-id: r54815
2010-12-07 18:54:21 +00:00
Thierry Crozat
06310f8176 I18N: Update Brazilian Portuguese translation
svn-id: r54788
2010-12-05 21:55:26 +00:00
Johannes Schickel
a29adaa77c GUI: Prevent high res versions of the themes to be picked for 544x333.
This fixes a problem in case the high resolution theme file was picked up
before the low resolution theme file and thus it was directly chosen.

svn-id: r54746
2010-12-02 21:54:55 +00:00
Johannes Schickel
d6fadb2cb4 GUI: Change the themes to use their low res version for 544x333.
This fixes an assertion in Myst when opening the GMM. The GMM in Myst looks a
bit odd now though.

svn-id: r54745
2010-12-02 21:46:11 +00:00
Thierry Crozat
a2e49af864 I18N: Update Hungarian translation (from patch #3124359)
svn-id: r54738
2010-12-02 20:43:37 +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
Thierry Crozat
ae1607cd99 i18N: Update all translation files from template file.
German has also an updated translation.

svn-id: r54548
2010-11-28 19:24:44 +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
Thierry Crozat
64f959ea0e I18N: Updating French, Portuguese and Hungarian translations.
All other translation files are also updated from the template file but without
change in the translations.

svn-id: r54450
2010-11-23 22:49:45 +00:00
Thierry Crozat
8c0160cca6 I18N: Add Brazilian Portuguese (from patch #3114669)
svn-id: r54411
2010-11-21 22:12:31 +00:00
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
Florian Kagerer
72f65f8204 GUI: fix music device popup (thanks to clone2727 for reporting)
svn-id: r50382
2010-06-27 16:58:06 +00:00
Eugene Sandulenko
d5bff2f5d4 GUI: Copy over fonts from the vendor branch, so they will lay next to the GUI.
It will be used for future support of locale-dependent fonts.

svn-id: r50377
2010-06-27 13:25:06 +00:00
Johannes Schickel
58fcda82f3 Remove support for translation of console messages.
In recent discussions on -devel it turned out, that this
feature is rather superfluous and instead we should rather
implement a proper error reporting in our GUI.

I also removed the dependency on iconv along with this.

svn-id: r50335
2010-06-26 18:07:41 +00:00
Jordi Vilalta Prat
4102b4a682 GUI: Add the catalan translation
svn-id: r50327
2010-06-26 15:59:06 +00:00
Jordi Vilalta Prat
063cef0c28 GUI: Add and improve some messages to translate
svn-id: r50324
2010-06-26 15:48:03 +00:00
Jordi Vilalta Prat
21831b6183 GUI: If no language is explicitly selected and autodetection is available, select "<default>" (which is already in use) instead of English.
svn-id: r50323
2010-06-26 15:25:47 +00:00
Florian Kagerer
3962f8ba59 AUDIO: some fixes in the audio device code (no sound option, new GUIO flags)
svn-id: r50281
2010-06-25 18:47:52 +00:00
Thierry Crozat
dfd8ecc55c Gives proper credits for the Hungarian translation. Also remembered to update the website credits this time (it was also missing the Android credits by the way).
svn-id: r50251
2010-06-24 22:56:32 +00:00
Thierry Crozat
ff47de5cd1 Add credits for the translations.
svn-id: r50248
2010-06-24 22:37:30 +00:00
Max Horn
bbad3f333a Patch #1956501: "GUI/LAUNCHER: Midi device selection"
svn-id: r50128
2010-06-21 21:36:36 +00:00
Max Horn
d79428e816 GUI: Tweak low-res Launcher layout (1-2 more games visible in game list, less space wasted between buttons)
svn-id: r50098
2010-06-20 20:36:14 +00:00
Thierry Crozat
f58c69e65d Commit slightly modified version of patch #3018727: fix subtitle options (thanks fuzzie).
svn-id: r50080
2010-06-20 14:46:00 +00:00
David Turner
8f962a8fc3 Fix for Tooltip calls causing valgrind errors.
svn-id: r49901
2010-06-16 06:24:21 +00:00
Johannes Schickel
81926f106a Fix g++ warning "format not a string literal and no format arguments".
svn-id: r49896
2010-06-15 23:45:13 +00:00
Max Horn
38fc910353 Yet another WinCE fix
svn-id: r49889
2010-06-15 20:01:31 +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
Willem Jan Palenstijn
7c7054dbd1 Remove unnecessary svn:executable properties
svn-id: r49870
2010-06-15 17:14:38 +00:00
Max Horn
953b1324a3 Another attempt to fix WinCE compilation
svn-id: r49864
2010-06-15 16:50:28 +00:00
Max Horn
82b66ffdf8 Fix some warnings about 'format not a string literal'.
svn-id: r49847
2010-06-15 12:34:55 +00:00
Max Horn
651e2760a3 Fix spelling, cleanup
svn-id: r49843
2010-06-15 12:33:20 +00:00
Eugene Sandulenko
103cb1b3ba GUI: Fixed warnings
svn-id: r49804
2010-06-15 11:38:53 +00:00
Eugene Sandulenko
079713c717 GUI: Fix crash
svn-id: r49803
2010-06-15 11:32:08 +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
8dcc49251f GUI: Disable AdLib controls if game does not support it.
svn-id: r49785
2010-06-15 10:56:46 +00:00
Eugene Sandulenko
dc57c68454 GUI: Fix crash.
svn-id: r49784
2010-06-15 10:56:30 +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
2b67bcc8e4 GUI: Added tooltips to more widgets.
svn-id: r49779
2010-06-15 10:54:22 +00:00
Eugene Sandulenko
5370fc2312 GUI: Widened max tooltip width for bigger screen resolutions
svn-id: r49778
2010-06-15 10:53:55 +00:00
Eugene Sandulenko
96b3aa6504 GUI: Added tons of tooltips.
svn-id: r49777
2010-06-15 10:53:30 +00:00
Eugene Sandulenko
d19807e983 GUI: Add auto-repeater to scrollbar arrows.
svn-id: r49775
2010-06-15 10:52:52 +00:00
Eugene Sandulenko
01f9006ee7 GUI: Implement tooltips. FR #2821513.
FR #2821513: "GUI: add tooltips".
Added tooltips for Add Game button, clear field buttons and couple
other.

Current problem: Only first call correctly restores text. I could
not find where restore information gets lost.

svn-id: r49774
2010-06-15 10:52:35 +00:00
Eugene Sandulenko
ef36b80dfa GUI: Implement FR #2821514.
FR #2821514: "GUI: OK and Cancel buttons in option tabs".
Now tabs are visually separated from the buttons.

svn-id: r49770
2010-06-15 10:50:28 +00:00
Eugene Sandulenko
a295f13152 GUI: Tidied up lowres themes.
svn-id: r49769
2010-06-15 10:49:46 +00:00
Eugene Sandulenko
24abc6fb39 GUI: Improved look of GMM options menu.
svn-id: r49768
2010-06-15 10:49:16 +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
Max Horn
48cfc94421 Add Gus to credits, update README & NEWS
svn-id: r49454
2010-06-06 13:36:55 +00:00
Max Horn
4ba291d4b1 GUI: Fix about dialog regression from my previous commit
svn-id: r49268
2010-05-27 20:29:39 +00:00
Max Horn
b99d65e561 Fix for bug #3007656: "GMM: Crash in 320x200"
svn-id: r49267
2010-05-27 19:34:41 +00:00
Max Horn
a03b5a3434 GUI: Reduce code duplication in about dialog
svn-id: r49266
2010-05-27 19:34:12 +00:00
Max Horn
947edd08c3 Replace SCUMM F5 dialog by GMM & add help button to GMM
The new "Help" button in the GMM is currently only used by SCUMM.
To use it, an engine currently needs to subclass MainMenuDialog.

svn-id: r49249
2010-05-26 19:54:50 +00:00
Eugene Sandulenko
2f4f70f3b0 Patch #2951677: Text boxes should init with the caret at the beginning
svn-id: r49239
2010-05-26 13:26:52 +00:00
Eugene Sandulenko
e0099ef394 Implement FR #2858270: GUI: List scrollbar actions should focus on list
svn-id: r49133
2010-05-21 18:27:13 +00:00
Johannes Schickel
ada03c57b3 Prevent editable widgets from adding various characters when F1-F12 is pressed by the user.
Formerly the code just casted the "ascii" value of the key event to "byte"
and thus truncating the character value. Now that would be fine, if we
would not allow values >= 256 in the ascii field, for example 322 for F8
which in turn resulted in a "B" added to the editable field. I just added
a check for the values being in the byte range before doing the cast,
which fixes this.

svn-id: r48967
2010-05-08 18:30:00 +00:00
Max Horn
970745e60c Move DebugChannel related code to new header
svn-id: r48935
2010-05-04 11:59:22 +00:00
Max Horn
460d69e885 COMMON: Move DebugChannel stuff into a new DebugMan singleton
svn-id: r48821
2010-04-27 21:40:52 +00:00
Max Horn
5ab6a53f87 Update credits: Fredrik retired
svn-id: r48766
2010-04-21 21:23:35 +00:00
Ori Avtalion
843a547cf7 Update default theme
svn-id: r48650
2010-04-12 23:30:52 +00:00
Ori Avtalion
434b5369f6 Remove trailing whitespace
svn-id: r48649
2010-04-12 23:25:09 +00:00
Ori Avtalion
e35133064b Center labels in mass-add dialog
svn-id: r48648
2010-04-12 23:23:23 +00:00
Thierry Crozat
08077db0ea Update credits for myself to reflect that I am now part of the team.
svn-id: r48646
2010-04-12 21:22:03 +00:00
Yotam Barnoy
98d7ba281c Changed my credits to indicate more extensive contributions
svn-id: r48633
2010-04-12 07:20:54 +00:00
Max Horn
f2ff555996 Rest of patch #2982224: GSoC: Added unit test and unified error message display
svn-id: r48627
2010-04-11 19:04:02 +00:00
Max Horn
7d97ee48e6 No Mandriva updates in ages -> mark Mandriva packager as retired
svn-id: r48592
2010-04-09 11:18:30 +00:00
Max Horn
77c1e0dfe1 GUI: Remove 'typedef Common::String String' from (Global)OptionsDialog
svn-id: r48565
2010-04-06 09:26:59 +00:00
Max Horn
894e2aefe6 GUI: Unify various definitions of kOKCmd and move it to namespace GUI
svn-id: r48564
2010-04-06 09:26:43 +00:00
Johannes Schickel
c5c4060719 Commit of patch #2980691 "GSoC: GUI: Caret blink shaves pixels [...] (bug #2951681)".
svn-id: r48551
2010-04-05 12:41:08 +00:00
Johannes Schickel
75b041364b Mark Chris Gray (former Win64 builder) retired and add myself to the Win64 builder section.
svn-id: r48540
2010-04-05 10:38:43 +00:00
Max Horn
4bac9e1b75 COMMON: Cleanup ConfigManager code
* get rid of ConfigManager::_emptyString
* get rid of ConfigManager::Domain::get (use getVal instead)
* remove some dead code

svn-id: r48417
2010-03-29 20:31:23 +00:00
Max Horn
92c896d883 Patch #2973290: Semicolon cleanup
svn-id: r48359
2010-03-22 20:28:08 +00:00
Johannes Schickel
38b2b3c04f Move StringTokenizer to its own files (tokenizer.h/tokenizer.cpp).
svn-id: r48310
2010-03-20 12:56:56 +00:00
Max Horn
c934642bdb COMMON: Move typedef StringList from str.h to new header str-array.h
This removes the dependency on array.h from str.h.
Also, begun migration from the confusing type name "StringList" to
the more appropriate StringArray.

svn-id: r48282
2010-03-18 15:09:24 +00:00
Max Horn
a17bbf3c2e GUI: Make GuiObject::_name const, init all members in constructor
svn-id: r48275
2010-03-18 15:04:15 +00:00
Johannes Schickel
40562798d6 Fix our DECLARE_SINGLETON macro to conform to the C++ specs.
We need to use a namespace Common { } there to make strict C++ compilers
like clang++ and comeau happy. I also added a slight comment about why
that is needed to the macro definition and a note that you need to use
it from the global namespace.

svn-id: r48254
2010-03-13 21:55:49 +00:00
Max Horn
75a3f4a3ec Fix from LordHoto for bug #2859401: GUI: GMM crashes when running in 320x200 and 320x240
svn-id: r48248
2010-03-12 23:02:24 +00:00
Max Horn
4fc8ebab01 GUI: Remove GuiObject::getMillis()
svn-id: r48241
2010-03-11 23:41:28 +00:00
Max Horn
6e78fdc161 cleanup
svn-id: r48240
2010-03-11 23:40:40 +00:00
Yotam Barnoy
ef330ed9b4 Patch for bug 2943361 by littleboy, adding full kb modifier support to all engines + GUI and proper keypad handling
svn-id: r48101
2010-02-21 04:04:13 +00:00
Max Horn
8ac5d00d57 Hide ZipArchive implementation, only expose it via factory functions: makeZipArchive()
svn-id: r48040
2010-02-13 11:56:30 +00:00
Max Horn
c2c82b22da Fix Rober Spalek & Hans-Joerg Frieden in the CPP resp. plain text versions of the credits
svn-id: r48034
2010-02-10 17:08:07 +00:00
Fabio Battaglia
6938ca072a Add N64 backend to credits
svn-id: r47988
2010-02-08 11:44:29 +00:00
Johannes Schickel
99411b177c Add the DOSBox Team to our "Special Thanks" section for their awesome OPL2/OPL3 emulator.
svn-id: r47983
2010-02-07 22:04:00 +00:00
Johannes Schickel
516d44e65c Fix behavior of delete key, when the cursor is at the end of the input line.
svn-id: r47802
2010-02-01 18:23:23 +00:00
Johannes Schickel
17f198369d Fix assert after ^W and Delete key events in the debugger, when there's nothing on the line.
svn-id: r47801
2010-02-01 18:18:20 +00:00
Martin Kiewitz
bc89883da8 partly reverting r46807 ffs. Regression in numpad handling - ID: 2943361
svn-id: r47796
2010-02-01 15:44:24 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Johannes Schickel
69071078b3 Replace some more Adlib uses by AdLib.
svn-id: r47530
2010-01-25 00:13:32 +00:00