Commit Graph

1769 Commits

Author SHA1 Message Date
Eugene Sandulenko
dcc90445f6 Add to launcher not yet functional search widget.
Make EditableWidget CommandSender

svn-id: r41267
2009-06-06 17:53:25 +00:00
Eugene Sandulenko
b0db1b5ed0 Implement FR#2507667: "GUI: Improve PopupWidget rendering / theme layouting".
- Split out label from PopUp widget
- Aligned every widget on all layouts so GUI becomes to look nice again
- Moved textHAlign to layout properties

svn-id: r41266
2009-06-06 17:52:44 +00:00
Eugene Sandulenko
b0f7f2e8d4 Implement widget property "textalign". Added it to all theme layouts
svn-id: r41265
2009-06-06 17:51:41 +00:00
Eugene Sandulenko
b49d23b898 Sync all themes with improvements of mass dialog. Fixed list positioning
svn-id: r41264
2009-06-06 17:50:30 +00:00
Eugene Sandulenko
f2547eb62c Implement FR#2707442: "GUI: Improve Mass Add dialog"
svn-id: r41263
2009-06-06 17:49:59 +00:00
Eugene Sandulenko
41505a00d0 Improved look of popup widget, buttons, checkbox and tab widget
svn-id: r41262
2009-06-06 17:49:09 +00:00
Eugene Sandulenko
a3b6b0efb5 Make PopUp widget look more balanced
svn-id: r41261
2009-06-06 17:48:46 +00:00
Eugene Sandulenko
974f47bbba Implement FR#1522626: "GUI: Friendlier "Add Game" session"
svn-id: r41236
2009-06-06 17:37:15 +00:00
Eugene Sandulenko
74c16b0072 Add Mute control to all themes
svn-id: r41235
2009-06-06 17:36:58 +00:00
Eugene Sandulenko
c295f524b2 Implement feature request #1180217: "GUI: Mute option"
svn-id: r41233
2009-06-06 17:36:06 +00:00
Jody Northup
56e5920bba Corrected cursor display errors introduced by revision 41204, reimplemented 16-bit cursor support in a less hacky, but still temporary way.
svn-id: r41209
2009-06-06 01:16:04 +00:00
Jody Northup
d65bbe1d7a Fixes ScummEngine_v70he::setDefaultCursor to work in 16-bit, using a temporary hack.
svn-id: r41204
2009-06-05 23:59:40 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Eugene Sandulenko
eb92554db9 Fix bug #2791868: "GUI: Glitch when closing menu after hovering on option"
svn-id: r40702
2009-05-18 21:02:52 +00:00
Johannes Schickel
049618ce15 Fix all occurrences of AdLib spelling:
- credits
- options dialog

svn-id: r40538
2009-05-13 21:15:12 +00:00
Eugene Sandulenko
923d26d9fb Enable Audio options for a game when OPL driver is overridden.
svn-id: r40532
2009-05-13 21:02:03 +00:00
Johannes Schickel
68c7aa7ff1 Fix invalid pop up widget selection, when no "opl_driver" setting is present.
svn-id: r40506
2009-05-12 19:36:09 +00:00
Johannes Schickel
4f0768b909 - Add support for selecting the OPL emulator being used (config entry: "opl_driver")
- Make MAME FM OPL the default emulator again
- Add GUI support for selecting the active OPL emulator
- Update themes

svn-id: r40496
2009-05-12 18:42:44 +00:00
Eugene Sandulenko
938db170f3 Sync with STXes
svn-id: r40494
2009-05-12 17:48:58 +00:00
Willem Jan Palenstijn
3b9f21be80 Use lowercase form for quickselect in ListWidget.
This matches POSIX strcasecmp and MSVC stricmp behaviour.

svn-id: r40467
2009-05-11 20:53:28 +00:00
Max Horn
95a4b26efe Turned fixed-size lists of debugger/console commands and variables into more flexible data structures
svn-id: r40458
2009-05-11 18:02:27 +00:00
Eugene Sandulenko
665e472ef0 Keymapper:
- Introduced new OSystem method getHardwareKeySet() with default implementation
- Moved global keymap creation to base/main.cpp
- Moved GUI keymap creation to gui/GuiManager.cpp
- Added various safeguard checks to various keymapper methods

Now it is really possible to add keymapper to all backends.

svn-id: r40439
2009-05-10 22:05:04 +00:00
Eugene Sandulenko
87fdc5d544 Original GSoC'08 keymapper now works.
Plans:
  - Make remap dialog less ugly
  - Port dialog to other resolutions and classic theme
  - Stop polluting config namespaces with keymap
  - Improve automapper
  - Add support to the engines and backends

svn-id: r40404
2009-05-09 22:36:57 +00:00
Eugene Sandulenko
bb03043b16 More debug info in the error messages when GUI layout is wrong.
svn-id: r40371
2009-05-07 20:56:33 +00:00
Eugene Sandulenko
8c60930aaa Part of patch #2738575: "GSOC09: Upd copyright add about line, fix MSVC warnings"
svn-id: r39995
2009-04-18 21:18:23 +00:00
Eugene Sandulenko
e246c0d94f Patch #2761396: "Typo fixes to README and comments"
svn-id: r39993
2009-04-18 21:12:32 +00:00
Vicent Marti
8fe3735f69 Fixed bug #2706939 (Enabled button not drawn correctly) and other similar cases.
Fixed background shading weirdness when opening many dialogs on top of each other.
Fixed some modal dialogs not redrawing properly when closed.

svn-id: r39938
2009-04-11 17:12:17 +00:00
Max Horn
0c8ffc80fd GUI: Fixed nasty typo
svn-id: r39913
2009-04-10 14:06:21 +00:00
Max Horn
9d4c917f59 GUI: Rewrote the dirty rect handling code. Previously it was possible that the dirty rect list got clobbered by many rects containg other rects in the list. Also got rid of some obsolete params to addDirtyRect as well as the obsolete return value
svn-id: r39909
2009-04-09 17:07:38 +00:00
Max Horn
21ebc88b00 GUI: Commited fix for bug in ThemeParser::parserCallback_defaults (at least I think this is the correct fix, somebody should review this)
svn-id: r39812
2009-04-03 15:12:46 +00:00
Vicent Marti
95a8c28dd5 Fixed bug where screen wasn't automatically updated when changing theme, unless you moved the mouse.
svn-id: r39706
2009-03-27 12:04:43 +00:00
Vicent Marti
053b7b8a9b Theme selection dialog now automatically selects the currently active theme. Fixes bug #2706967.
svn-id: r39703
2009-03-26 20:24:16 +00:00
Max Horn
e5e1615280 MidiDriver cleanup: findMusicDriver now returns a pointer (makes it possible to distinguish 'no match found' from other results); updated parseMusicDriver accordingly; some methods now return MidiDriverType instead of int
svn-id: r39702
2009-03-26 13:52:43 +00:00
Filippos Karapetis
bd240eb60a Added myself to the MADE engine credits
svn-id: r39684
2009-03-25 10:49:52 +00:00
Henry Bush
5681531bbd Sync
svn-id: r39458
2009-03-16 21:45:21 +00:00
Johannes Schickel
77d5d3093a Fix small cursor for modern theme.
svn-id: r39426
2009-03-15 18:29:47 +00:00
Vicent Marti
9e54b1c963 Fixed bug #2619802 (Game name overwrites scroll bar).
svn-id: r39335
2009-03-11 20:39:31 +00:00
Max Horn
5181546c63 Rewrote Common::List iterator code to ensure const correctness is preserved.
We tried to implement the list iterators in a clever way, to reduce code
duplication. But this is essentially impossible to do properly, sadly --
this is one of the places where the ugly drawbacks of C++ really show.
As a consequence, our implementation had a bug which allowed one to
convert any const_iterator to an iterator, thus allowing modifying
elements of const lists.

This rewrite reintroduces code duplication but at least ensures that no
const list is written to accidentally.

Also fix some places which incorrectly used iterator instead of const_iterator
or (in the kyra code) accidentally wrote into a const list.

svn-id: r39279
2009-03-09 22:26:02 +00:00
Willem Jan Palenstijn
68490c5c1e Move Greg Frieger from Tinsel to SCI in credits as intended by r39179
svn-id: r39220
2009-03-08 12:13:10 +00:00
Max Horn
63eda8cf3c Added Greg and myself to SCI engine credis
svn-id: r39179
2009-03-07 06:57:59 +00:00
Max Lingua
188d8f4414 Removed the defined(__PLAYSTATION2__) case to re-enable extra paths for PS2.
svn-id: r39144
2009-03-06 00:28:39 +00:00
Jordi Vilalta Prat
047f116515 Renamed MetaEngine::getCopyright() to getOriginalCopyright() to better match the meaning of the returned string, as discussed some time ago in scummvm-devel
svn-id: r39132
2009-03-05 12:04:58 +00:00
Johannes Schickel
7270c87919 Fix bug #2621207 "GUI: Debug console glitch".
svn-id: r39128
2009-03-04 12:28:23 +00:00
Max Horn
5422e81718 Make the file browser bigger in 1x mode
svn-id: r39077
2009-03-02 18:04:44 +00:00
Lars Persson
7176a61a85 Small UI updated with smaller HELP dialog to fit a 320x200 screen. The help text does not fit though.
svn-id: r38848
2009-02-24 18:51:42 +00:00
Vicent Marti
e7ee119603 Fixed regression in Options menu and disabled Save/Load buttons.
svn-id: r38524
2009-02-19 00:37:34 +00:00
Vicent Marti
ad4f3fb410 Last minute fix (enabling/disabling widgets mid-frame).
svn-id: r38520
2009-02-19 00:17:08 +00:00
Oystein Eftevaag
fc34cb3bd3 When adding games from a directory the user had no permissions to, instead of exiting with an error we'll (for normal adds) show an error message and (for mass adds) just continue in the list.
svn-id: r38448
2009-02-17 21:02:47 +00:00
Eugene Sandulenko
e5def6fbea Add SCI team to credits
svn-id: r38441
2009-02-17 19:57:29 +00:00
Willem Jan Palenstijn
26f45be083 properly (re)select game after adding/editing domain name in launcher
svn-id: r38313
2009-02-15 22:07:19 +00:00
Oystein Eftevaag
5b86801553 Merged revisions 36329, 38212, 38226and 38234 from branch-0-13-0 to trunk: iPhone backend updates
svn-id: r38240
2009-02-15 13:58:15 +00:00
Vicent Marti
fe6854d5b8 Fixed bug #2485123 (weird looking game load dialog).
svn-id: r36313
2009-02-13 20:01:50 +00:00
Max Horn
2844c22136 Fix GUI themes zip files
svn-id: r36287
2009-02-13 00:00:36 +00:00
Lars Persson
adbc453163 Fixed working Keys button in in game options dialog
Fixed key mappings dialog layout

svn-id: r36285
2009-02-12 22:05:07 +00:00
Max Horn
4942ce18f1 Patch #2553049: Remove clem's name from forum design, following his request
svn-id: r36272
2009-02-11 23:00:31 +00:00
Vicent Marti
341873c9d3 Third attemp at fixing release-critical #2472185. Also fixes regression reported in #2555710.
svn-id: r36227
2009-02-07 00:23:53 +00:00
Vicent Marti
108d4cfbd0 Reverted previous commit.
svn-id: r36226
2009-02-06 23:28:08 +00:00
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
Jordi Vilalta Prat
05d3633eb3 Restore the text background of pop-up widgets to fix the glitch on classic theme when changing the option with the mouse wheel
svn-id: r35647
2009-01-01 08:14:43 +00:00
Max Horn
167a9cb767 ThemeEngine:
* more cleanup, esp. of Doxygen comments
* completely got rid of ImageMan, instead use the same Common::Archive to load bitmaps and XML data from

svn-id: r35636
2008-12-31 15:07:30 +00:00
Max Horn
693b9df098 cleanup
svn-id: r35635
2008-12-31 15:03:17 +00:00
Filippos Karapetis
587a691b12 Proper fix: Readded the const keyword, together with the missing data type in ThemeEngine.h
svn-id: r35634
2008-12-31 14:54:30 +00:00
Filippos Karapetis
9f0a401047 Removed "const" keyword from kDrawDataDefaults. MSVC complains that "'const' static/global data initialized with compiler generated default constructor fills the object with zeros", in ThemeEngine.h line 123
svn-id: r35632
2008-12-31 14:37:22 +00:00
Max Horn
be73014f67 ThemeEngine changes:
* removed lots of dead code / methods
* fixed bad Doxygen comments (they were attached to the wrong member variables)
* some cleanup

svn-id: r35631
2008-12-31 14:10:23 +00:00
Vicent Marti
a4f2be4638 Fix for ""LAUNCHER: "(Mass) Add" buttons + built-in GUI = buggy"" (bug ID 2472185)
svn-id: r35617
2008-12-29 20:33:09 +00:00
Vicent Marti
49976794c4 Updated Theme Package generator to work with Python 2.6-3.0 (push Python forward!)
svn-id: r35613
2008-12-29 16:22:52 +00:00
Vicent Marti
e432dad215 Changed PSP graphic modes to use low resolution themes (possible fix for bug ID 2458134)
svn-id: r35612
2008-12-29 16:17:51 +00:00
Kostas Nakos
25ac7c7fb0 1) Add the KeysDialog layout to the modern theme. 2) Improve somewhat the layout of the KeysDialog
svn-id: r35592
2008-12-28 20:15:00 +00:00
Torbjörn Andersson
ab2297e28b Made the F6 and F5 (SCUMM only) menus fit in 320x200. I'd appreciate if someone
who's more familiar with this could look at my changes, in case I messed up.

svn-id: r35589
2008-12-28 16:53:57 +00:00
Max Horn
c5cabc7b2a Renamed some stuff
svn-id: r35574
2008-12-27 16:09:08 +00:00
Max Horn
1d099c0d40 GuiManager::runLoop: do not call OSystem::quit() when receiving EVENT_QUIT, just return to the caller instead
svn-id: r35573
2008-12-27 16:07:10 +00:00
Max Horn
f26f85ee96 GUI: Added Widget::setVisible convenience wrapper
svn-id: r35572
2008-12-27 14:36:28 +00:00
Max Horn
69f4b7a383 Got rid of ThemeLayout::getDialogData; added some comments, asserts; moved getParentW & getParentH to class ThemeLayoutStacked
svn-id: r35571
2008-12-27 14:30:30 +00:00
Jordi Vilalta Prat
d18d2d72a8 Fix for the SliderWidget glitch when showing very small values (and potentially for other small widgets)
svn-id: r35557
2008-12-26 12:15:51 +00:00
Max Horn
751df013e1 If more than 8 items have to be resized in a stacked theme layout, abort with an error (instead of silently trashing the stack)
svn-id: r35549
2008-12-26 01:13:08 +00:00
Max Horn
131cb5a05a Merged ThemeLayoutHorizontal and ThemeLayoutVertical into a new class ThemeLayoutStacked (suggestions for a better name are welcome); stored padding data in a Common::Rect
svn-id: r35548
2008-12-26 01:08:49 +00:00
Max Horn
c59f5919a2 ThemeLayout::getParentW was calling getHeight instead of getWidth by mistake (though this didn't seem to cause any problems anywhere... ?)
svn-id: r35547
2008-12-26 00:57:30 +00:00
Max Horn
c9105aa58f Fix for bug #2210082: GUI: Crash in GMM when changing scale factor
svn-id: r35546
2008-12-26 00:43:52 +00:00
Max Horn
c3aec16033 Some 'cleanup' of Gui::ThemeLayout
svn-id: r35545
2008-12-26 00:26:34 +00:00
Max Horn
6510226216 Renamed NewGui to GuiManager
svn-id: r35544
2008-12-25 23:55:36 +00:00
Jordi Vilalta Prat
bce76931d3 Added valueToBarWidth to calculate SliderWidget's bar width like it was done before (as discussed with LordHoto)
svn-id: r35519
2008-12-24 01:11:58 +00:00
Max Horn
1c238fe1e1 Removed Ender from SCUMM credits (matching other retired team members, like ludde and yazor)
svn-id: r35517
2008-12-24 00:18:46 +00:00
Johannes Schickel
ff45c8aa65 Added FIXME in ThemeEngine::drawSlider.
svn-id: r35515
2008-12-24 00:05:42 +00:00
Jordi Vilalta Prat
604b8f08b6 Modify the PopUpWidget selection by using the mouse wheel
svn-id: r35514
2008-12-23 23:47:16 +00:00
Jordi Vilalta Prat
f75893a294 Modify the SliderWidget value by using the mouse wheel
svn-id: r35513
2008-12-23 23:36:38 +00:00
Jordi Vilalta Prat
d1530fcf18 Tweaked the Modern theme colors to make it look more like it did in the old renderer
svn-id: r35490
2008-12-22 18:34:43 +00:00
Jordi Vilalta Prat
382a46ffc4 Changed the game chooser to make the game candidates not editable and selectable by pressing enter
svn-id: r35489
2008-12-22 15:40:11 +00:00
Jordi Vilalta Prat
b1999a2a16 Fixed indentation and removed whitespaces at the end of line
svn-id: r35481
2008-12-22 11:22:15 +00:00
Jordi Vilalta Prat
2ec51ef358 Allow the disabled state of the popup widget to be themed
svn-id: r35480
2008-12-22 10:31:01 +00:00
Lars Persson
a56af219d9 Added KeyConfiguration dialog to classic theme(320 and normal). Updated KeysDialog to follow xml syntax properly.
svn-id: r35416
2008-12-17 21:19:46 +00:00
Lars Persson
4e2565ca1f Set SMALL SCREEN DEVICE settings in ::open function with new UI framework
svn-id: r35404
2008-12-16 22:54:38 +00:00
Eugene Sandulenko
8b60af5330 Add Tucker engine to credits
svn-id: r35361
2008-12-14 14:19:23 +00:00
Jordi Vilalta Prat
b66a9d4e03 Added Groovie credits
svn-id: r35219
2008-12-03 15:04:15 +00:00
Max Horn
46482b4de8 News update: Ender stepping down as project lead
svn-id: r35202
2008-12-01 21:50:34 +00:00
Max Horn
b25257d4eb Added Cyx to SCUMM credits
svn-id: r35169
2008-11-28 11:56:08 +00:00
Max Horn
a28b531ed0 Added ArchiveMember::getDisplayName() method; changed ArchiveMember::getName() to always return a name compatible with Archive::openFile()
svn-id: r35139
2008-11-21 12:17:35 +00:00
Max Horn
33dd58ca98 GUI: Simplify ThemeBrowser code
svn-id: r35138
2008-11-21 08:22:33 +00:00
Johannes Schickel
4368081c55 Fixed ZipArchive/FSDirectory creation.
svn-id: r35133
2008-11-20 18:25:22 +00:00
Max Horn
7e97205417 GUI: Reduce space used by credits
svn-id: r35127
2008-11-20 13:46:34 +00:00
Vicent Marti
149345e13f Moved binary theme parser to tools folder.
svn-id: r35049
2008-11-13 19:58:04 +00:00
Vicent Marti
313cba75b1 DrawStep parsing added to binary theme parser.
svn-id: r35048
2008-11-13 19:56:26 +00:00
Vicent Marti
f7bdf6b40f Binary theme format parser.
Warning: Work in progress. May erase hard drive.

svn-id: r35046
2008-11-13 14:25:39 +00:00
Travis Howell
2c58689e14 Add newlines at end of files, to squash warning.
svn-id: r35042
2008-11-13 11:46:53 +00:00
Max Horn
c0786313fa cleanup
svn-id: r35037
2008-11-13 11:21:16 +00:00
Max Horn
f974a6c8d5 GUI: Blitting the full screen to the backbuffer (or vice versa) can be done with a single memcpy, which is a bit faster than using _vectorRenderer->blitSurface
svn-id: r35029
2008-11-12 22:23:19 +00:00
Max Horn
c0f82d3518 Renamed Graphics::TextAlignment -> Graphics::TextAlign and merged it with GUI::ThemeEngine::TextAlignVertical
svn-id: r35023
2008-11-12 14:30:16 +00:00
Max Horn
144be21bed GUI: Got rid of the WidgetSize stuff
svn-id: r35022
2008-11-12 13:14:44 +00:00
Max Horn
190468c79a GUI: Turn scrollbar width into a theme variable
svn-id: r35021
2008-11-12 13:07:41 +00:00
Max Horn
42533c2354 cleanup
svn-id: r35020
2008-11-12 13:01:21 +00:00
Max Horn
710084dde6 GUI: Got rid of kBigButtonWidth etc.
svn-id: r35019
2008-11-12 12:58:33 +00:00
Max Horn
fa942c42cc GUI: Got rid of most 'built-in' variables
svn-id: r35018
2008-11-12 12:53:53 +00:00
Max Horn
28c24b3fbb Some GUI tweaks to make certain widgets readable
svn-id: r35004
2008-11-11 12:29:41 +00:00
Max Horn
a39c78a1ba Moved GUI::SaveLoadChooser to its own source file
svn-id: r35002
2008-11-11 12:13:55 +00:00
Max Horn
32526079aa Include required header
svn-id: r34985
2008-11-10 12:45:09 +00:00
Vicent Marti
b98f89c7f0 Merged GUI::Theme and Gui::ThemeEngine into the same class, GUI::ThemeEngine.
Massive cleanup.

svn-id: r34983
2008-11-10 11:24:55 +00:00
Vicent Marti
631c679e40 Added some more whitespace skipping to default theme generation script.
svn-id: r34982
2008-11-10 10:40:08 +00:00
Filippos Karapetis
03a0046b1c Fixed an off-by-one error in the save slot gap filling code
svn-id: r34980
2008-11-09 21:39:41 +00:00
Filippos Karapetis
a5502b296f Cleanup and simplification
svn-id: r34979
2008-11-09 21:20:44 +00:00
Filippos Karapetis
1353a304f3 Do not allow the user to alter the description of write protected save slots in the GMM save dialog
svn-id: r34978
2008-11-09 21:09:26 +00:00
Johannes Schickel
9879985abf Prevent double click handling if choose button is disabled. (SaveLoadChooser)
svn-id: r34976
2008-11-09 20:34:52 +00:00
Johannes Schickel
bc829e721b Cleanup (and a little bug fix :-P).
svn-id: r34975
2008-11-09 20:33:15 +00:00
Johannes Schickel
818d87f448 Disable 'Save' button if no entry is selected in the save chooser.
svn-id: r34974
2008-11-09 20:22:43 +00:00
Johannes Schickel
d7c5e9ce87 Fixed 'Save'/'Load' button enable/disable triggering.
svn-id: r34972
2008-11-09 20:18:51 +00:00
Filippos Karapetis
ea7f305960 Added a new SaveStateDescriptor flag, is_write_protected, which can be used to stop the user from overwriting certain saves (e.g. the auto save, the restart save in the Kyrandia games, the quicksaves etc)
svn-id: r34970
2008-11-09 20:07:46 +00:00
Filippos Karapetis
765e37dc2e - The save list iterator should now be synced correctly
- Numbering of save slots starts from 0 again, not 1

svn-id: r34968
2008-11-09 19:14:39 +00:00
Filippos Karapetis
8b0f38acd1 Corrected comment
svn-id: r34967
2008-11-09 18:38:25 +00:00
Filippos Karapetis
eee2e68007 Gaps in the list of save games are now handled correctly in the GMM save/load dialogs
svn-id: r34966
2008-11-09 18:35:26 +00:00
Filippos Karapetis
bf857a73fe Save game descriptions are now set correctly in the GMM save dialog
svn-id: r34965
2008-11-09 17:53:37 +00:00
Filippos Karapetis
f5729a4a8b - The GMM save dialog is now working for all engines which support the appropriate features
- Added a new method to the MetaEngine class, getMaximumSaveSlot(), and implemented it in all engines for which the listSavefiles() method is implemented (it goes together with the listSavefiles method). It is used to fill the unused save slots in the save/load dialogs of each engine, so that the user can create new save games in empty slots
- Unified the save/load dialog list numbering in the GMM load/save screens and in the load screen of the main menu (before a game is started)

svn-id: r34963
2008-11-09 16:13:34 +00:00
Max Horn
08eecfd3e5 Run xmllint on our *.STX files. Fixed several XML syntax violations
svn-id: r34962
2008-11-09 16:03:45 +00:00
Max Horn
1ad8e59c12 minor tweaks
svn-id: r34961
2008-11-09 15:59:14 +00:00
Max Horn
53d530af37 Got rid of some more 'using' usages
svn-id: r34960
2008-11-09 15:22:36 +00:00
Max Horn
f5b70114ca Removed many unnecessary #includes
svn-id: r34959
2008-11-09 15:14:01 +00:00
Max Horn
cb581c61b2 Partially merge classes Theme and ThemeEngine (saves another couple KB), somebody (Tanoku?) should do a proper merge
svn-id: r34951
2008-11-09 12:38:30 +00:00
Max Horn
7cbd04dc23 Thou shalst never use the 'using' keyword in a header file, lest the wrath of ye fingolfin will crush your sorrow bones to dust... *grrr* ;)
svn-id: r34937
2008-11-08 01:34:02 +00:00
Max Horn
0508fec8a8 Pushing down some header deps
svn-id: r34936
2008-11-08 01:30:32 +00:00
Max Horn
2071f606a9 Moved some internal stuff from ThemeEngine.h to ThemeEngine.cpp
svn-id: r34935
2008-11-08 00:54:58 +00:00
Filippos Karapetis
57e57c49ce Saving a game from GMM is now working for the SAGA engine, though the description is not set correctly yet
svn-id: r34932
2008-11-07 19:43:01 +00:00
Johannes Schickel
1512fbd261 Formatting.
svn-id: r34927
2008-11-07 13:20:25 +00:00
Filippos Karapetis
3cdb3d76c3 Fixed colors for the GMM save/load dialogs
svn-id: r34920
2008-11-06 23:29:48 +00:00
Torbjörn Andersson
2d42880ccf Fixed compilation.
svn-id: r34919
2008-11-06 22:00:29 +00:00
Filippos Karapetis
27d1959683 Added some WIP code for the GMM save dialog (still not working correctly)
svn-id: r34918
2008-11-06 20:26:19 +00:00
Max Horn
edf9f24926 Got rid of OSystem::colorToRGB and RGBToColor; added implementations for OSystem::getOverlayFormat to several ports (pending testing by the porters)
svn-id: r34912
2008-11-06 15:02:50 +00:00
Max Horn
79614d28b6 Tweaked browser dialog in 320x200 mode
svn-id: r34904
2008-11-05 14:58:47 +00:00
Max Horn
27628688d2 Tweaked classic theme in 320x200 mode, to use the available space better
svn-id: r34902
2008-11-05 14:33:22 +00:00
Max Horn
b2d93543d4 Paranoia check
svn-id: r34901
2008-11-05 11:57:11 +00:00
Max Horn
817d2078cc Some cleanup / handle the case where the themepath is neither pointing to a dir nor to a .zip file
svn-id: r34897
2008-11-04 19:49:26 +00:00
Nicola Mettifogo
33b6bc4215 Reordered initialization lists to kill a ton of warnings.
svn-id: r34892
2008-11-04 05:29:53 +00:00
Johannes Schickel
4905d827b7 Removed dependency on OSystem::RGBToColor, by using Graphics::RGBToColor + Graphics::PixelFormat instead.
svn-id: r34888
2008-11-03 20:15:45 +00:00
Johannes Schickel
f3f3c69f63 Updated theme files for r34883.
svn-id: r34884
2008-11-03 19:38:15 +00:00
Max Horn
55c10e0ec6 Patch #2122869: ALL: Common load dialog
svn-id: r34883
2008-11-03 18:32:16 +00:00