Commit Graph

1562 Commits

Author SHA1 Message Date
Vicent Marti
30189f09d9 Removed special case when redrawing the dialog stack. Fixes bug #2555710 and several lesser graphical glitches with classic theme.
svn-id: r36225
2009-02-06 22:16:04 +00:00
Max Horn
341bc64aaf do not include common/debug.h from common/util.h
svn-id: r36143
2009-01-30 05:25:17 +00:00
Max Horn
7cb437b56f Renamed SpecialDebugLevel to DebugChannel
svn-id: r36142
2009-01-30 05:10:24 +00:00
Max Horn
de7c89e381 Some work on the 'special debug levels' aka 'engine debug levels' code
svn-id: r36139
2009-01-30 04:42:30 +00:00
Johannes Schickel
8ff3f14e29 Fix for bug #2533091 "MAC: Cannot add games in the launcher in fullscreen mode".
svn-id: r36036
2009-01-24 16:27:52 +00:00
Max Horn
5556fc7f72 Changed Graphics::ImageDecoder to allow custom PixelFormats
svn-id: r36026
2009-01-23 23:50:54 +00:00
Max Horn
14c5bbbccf Renamed Archive::openFile to createReadStreamForMember
svn-id: r36021
2009-01-23 04:45:44 +00:00
Max Horn
9861afd8fd Renamed ArchiveMember::open -> createReadStream, and made it a cv member (const); same for Archive::openFile
svn-id: r36020
2009-01-23 04:36:18 +00:00
Max Horn
cc1efb9137 Fix buggy images in GUI when switching overlay mode (e.g. on Mac OS X when toggline full screen and windowed mode)
svn-id: r36001
2009-01-22 18:45:06 +00:00
Max Horn
abc06ca18e Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. into methods, and added an operator==
svn-id: r35993
2009-01-22 04:35:10 +00:00
Max Horn
487f4eafb0 Updated theme version to 0.4
svn-id: r35914
2009-01-18 20:05:24 +00:00
Max Horn
0dc90f51f9 Updated theme .zip files and default theme
svn-id: r35913
2009-01-18 20:01:12 +00:00
Max Horn
0469cf7498 Updated credits list with retired members
svn-id: r35911
2009-01-18 18:52:59 +00:00
Max Horn
2c59a54432 cleanup
svn-id: r35899
2009-01-18 14:48:24 +00:00
Max Horn
c9e97bf6f9 GUI: Some cleanup and renaming; moved some parsing code from ThemeEngine to ThemeParser
svn-id: r35898
2009-01-18 14:48:00 +00:00
Max Horn
2bbbfdbee2 GUI: Removed ThemeEngine::getTabSpacing() and getTabPadding(); removed some dead code
svn-id: r35896
2009-01-18 14:45:23 +00:00
Max Horn
5e1cf1e166 GUI: Renamed Globals.TabLabelWidth to Globals.PopUpWidget.labelWidth (that's what it really is); changed PopUpWidget to use that value directly
svn-id: r35895
2009-01-18 14:42:26 +00:00
Max Horn
20dad9e967 Merged gui/ThemeData.cpp into ThemeEngine.cpp
svn-id: r35881
2009-01-17 17:13:04 +00:00
Max Horn
42d4ddf934 Removed unused & incomplete widget caching code
svn-id: r35880
2009-01-17 16:57:50 +00:00
Max Horn
7d3c94a9ca Added some comments to ThemeLayoutStacked::reflowLayoutH/V
svn-id: r35868
2009-01-14 21:16:21 +00:00
Max Horn
d34a952e5b Renamed various ThemeLayout methods for clarity; removed unused setSpacing method, and moved _spacing to class ThemeLayoutStacked
svn-id: r35867
2009-01-14 20:58:41 +00:00
Jordi Vilalta Prat
bb82b0be97 Handle the sound font clearing button in the game specific options
svn-id: r35864
2009-01-14 18:17:19 +00:00
Jordi Vilalta Prat
ab82db8f86 Use the current palette size for the theme mouse cursor instead of using the maximum (fixes a valgrind warning)
svn-id: r35857
2009-01-14 02:44:09 +00:00
Torbjörn Andersson
cfdb824535 Fixed bug #2500168 ("GUI: Cannot quit in the launcher's load dialog"). I thought
I would have to do more than this to fix it, but it seems to be enough.

svn-id: r35840
2009-01-12 19:56:08 +00:00
Eugene Sandulenko
83972e2001 Merge in Virtual Keybpard & KeyMapper branch,
- Merge is perfromed in order to not let rotting the code
- Makefile modifications were avoided

Stuff to resolve:
- Circular dependency of common/vkeybd from graphics/
- Make it compilable (?)
- Add some keyboards
- Decide on the key bindings

svn-id: r35813
2009-01-11 00:20:27 +00:00
Torbjörn Andersson
20638a0f97 Moved some stuff from the EditGameDialog constructor to its open() method to
avoid uninitialised variables. (This is similar to some bugs that were fixed
earlier today.)

svn-id: r35811
2009-01-10 23:38:30 +00:00
Eugene Sandulenko
b4eb116f65 Update Joachim's role as requested by him.
svn-id: r35809
2009-01-10 23:13:43 +00:00
Willem Jan Palenstijn
0ab01c756a open browser dialog before manipulating it (fixes assert when pressing 'add game')
svn-id: r35807
2009-01-10 22:31:15 +00:00
Vicent Marti
d638ddd3d6 Fixed release critical bug #2472185. All transparent buttons should now properly refresh their text when changed between redrawing frames. This includes the launcher "Add game" button and the options "subtitle mode" button.
svn-id: r35789
2009-01-08 18:09:13 +00:00
Johannes Schickel
23f23d7491 Fixed revertion to "Add game" button string after a "Mass add" was processed.
svn-id: r35788
2009-01-08 17:08:24 +00:00
Max Horn
e668574d88 Tweak gui/ThemeData.* to not produce errors on certain system like Haiku (at least I hope this will work :)
svn-id: r35743
2009-01-05 19:54:10 +00:00
Johannes Schickel
ec631ba7f1 - Prevented full theme search when "builtin" theme was specified
- Only do a recursive search for themes with depth 1 in '.'

svn-id: r35706
2009-01-03 16:24:10 +00:00
Max Horn
6a7e4e3c15 Fix compilation on Mac OS X; tiny simplification
svn-id: r35688
2009-01-02 22:29:13 +00:00
Johannes Schickel
3558cf0e5e Cleanup.
svn-id: r35687
2009-01-02 22:16:33 +00:00
Johannes Schickel
95074af35c Fixed crash when returning to launcher from a 640x480 game running with a non 1x scaler.
svn-id: r35686
2009-01-02 22:10:00 +00:00
Johannes Schickel
1d2c446395 - Moved theme listing code from GuiManager to ThemeEngine
- Only show builtin theme in theme list if GUI_ENABLE_BUILTIN_THEME is defined
- Introduced _themeFile to ThemeEngine again and changed _themeId to store the basename of the theme

svn-id: r35684
2009-01-02 21:24:13 +00:00
Johannes Schickel
6fd559b4f6 - Fixed --gui-theme command line description
- Added --list-themes command line command to list available GUI themes

svn-id: r35681
2009-01-02 20:21:21 +00:00
Johannes Schickel
1b0f945471 - Added support selection of themes via a basename again (This should fix bugs #2473213 "GUI: Theme selection oddities and regressions" and #2219605 "GUI: theme detection")
- Changed default value to "scummmodern" instead of "scummmodern.zip" for "gui_theme"
- Moved theme listing code from ThemeBrowser to GuiManager

svn-id: r35680
2009-01-02 20:03:45 +00:00
Johannes Schickel
690b88f982 Renamed gui/newgui.cpp -> gui/GuiManager.cpp and gui/newgui.h -> gui/GuiManager.h
svn-id: r35668
2009-01-02 03:21:40 +00:00
Johannes Schickel
4ec7876972 Reverted the handling of mouse move events, now the slider widget should be highlighted correctly again.
svn-id: r35667
2009-01-02 03:03:06 +00:00
Johannes Schickel
1b41a49fc5 Modified the way button highlights are processed when a widget is in dragging mode. This allows for example unhighlighting of a button when the user clicked on it but moved the mouse away.
svn-id: r35666
2009-01-02 02:48:06 +00:00
Max Horn
8260944260 GUI: Redraw screen ASAP if the theme was changed
svn-id: r35665
2009-01-02 01:36:38 +00:00
Max Horn
903f52cff8 GUI: Create the _themeArchive once and then keep it; also do not reload theme bitmaps needlessly
svn-id: r35663
2009-01-02 01:32:40 +00:00
Johannes Schickel
e7bf64744b Got rid of GuiManager::clearDragWidget instead handle it via a new widget flag WIDGET_IGNORE_DRAG.
svn-id: r35662
2009-01-02 01:31:46 +00:00
Max Horn
e6b9a3e476 GUI: Fix the recent regression where starting games directly (bypassing the launcher) would result in a black screen; also reinit the theme (which each time causes the full XML data to be parsed) less often
svn-id: r35661
2009-01-02 01:23:17 +00:00
Torbjörn Andersson
685f1f985f Fixed a typo in a comment, plus some slight re-wording.
svn-id: r35655
2009-01-01 22:15:21 +00:00
Max Horn
3851bda05f cleanup
svn-id: r35654
2009-01-01 21:52:15 +00:00
Max Horn
97e9b28c8a Revamping the handling of GUI themes a bit:
* Moved the code which handles fallback to the built-in theme from ThemeEngine to GuiManager
* Changed ThemeEngine::init() to only init&load the theme; no more messing with the overlay
* Commented to a somewhat obscure line in the GuiManager event loop (taking eriktorbjorn's original commit message for that change as comment text)
* Cleaned up the way the Dialog constructor ensures that the current Theme is correctly setup
* Got rid of varios members of ThemeEngine
* Changed ThemeEngine members _screen and _backBuffer from Surface pointers to just plain Surfaces
* Changed ThemeEngine::loadFontFromArchive to use _themeArchive instead of creating an Archive from scratch
* Renamed ThemeEngine::getThemeFileName() to getThemeId() (and some associated tweaks)
* Lots of further cleanup and tweaks

svn-id: r35653
2009-01-01 21:41:55 +00:00
Max Horn
c62efbcab3 Added two FIXMEs to global options dialog, related to theme selection
svn-id: r35650
2009-01-01 17:02:45 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00