aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeEngine.cpp
AgeCommit message (Collapse)Author
2009-04-10GUI: Fixed nasty typoMax Horn
svn-id: r39913
2009-04-09GUI: Rewrote the dirty rect handling code. Previously it was possible that ↵Max Horn
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-03-09Rewrote Common::List iterator code to ensure const correctness is preserved.Max Horn
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-02-15Merged revisions 36329, 38212, 38226and 38234 from branch-0-13-0 to trunk: ↵Oystein Eftevaag
iPhone backend updates svn-id: r38240
2009-02-07Third attemp at fixing release-critical #2472185. Also fixes regression ↵Vicent Marti
reported in #2555710. svn-id: r36227
2009-01-23Changed Graphics::ImageDecoder to allow custom PixelFormatsMax Horn
svn-id: r36026
2009-01-23Renamed Archive::openFile to createReadStreamForMemberMax Horn
svn-id: r36021
2009-01-23Renamed ArchiveMember::open -> createReadStream, and made it a cv member ↵Max Horn
(const); same for Archive::openFile svn-id: r36020
2009-01-22Fix buggy images in GUI when switching overlay mode (e.g. on Mac OS X when ↵Max Horn
toggline full screen and windowed mode) svn-id: r36001
2009-01-22Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. ↵Max Horn
into methods, and added an operator== svn-id: r35993
2009-01-18GUI: Some cleanup and renaming; moved some parsing code from ThemeEngine to ↵Max Horn
ThemeParser svn-id: r35898
2009-01-17Merged gui/ThemeData.cpp into ThemeEngine.cppMax Horn
svn-id: r35881
2009-01-17Removed unused & incomplete widget caching codeMax Horn
svn-id: r35880
2009-01-14Use the current palette size for the theme mouse cursor instead of using the ↵Jordi Vilalta Prat
maximum (fixes a valgrind warning) svn-id: r35857
2009-01-08Fixed release critical bug #2472185. All transparent buttons should now ↵Vicent Marti
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-03- Prevented full theme search when "builtin" theme was specifiedJohannes Schickel
- Only do a recursive search for themes with depth 1 in '.' svn-id: r35706
2009-01-02Fix compilation on Mac OS X; tiny simplificationMax Horn
svn-id: r35688
2009-01-02Cleanup.Johannes Schickel
svn-id: r35687
2009-01-02- Moved theme listing code from GuiManager to ThemeEngineJohannes Schickel
- 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-02GUI: Create the _themeArchive once and then keep it; also do not reload ↵Max Horn
theme bitmaps needlessly svn-id: r35663
2009-01-02GUI: Fix the recent regression where starting games directly (bypassing the ↵Max Horn
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-01cleanupMax Horn
svn-id: r35654
2009-01-01Revamping the handling of GUI themes a bit:Max Horn
* 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-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2009-01-01Restore the text background of pop-up widgets to fix the glitch on classic ↵Jordi Vilalta Prat
theme when changing the option with the mouse wheel svn-id: r35647
2008-12-31ThemeEngine:Max Horn
* 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-31ThemeEngine changes:Max Horn
* 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-29Fix for ""LAUNCHER: "(Mass) Add" buttons + built-in GUI = buggy"" (bug ID ↵Vicent Marti
2472185) svn-id: r35617
2008-12-26Fix for the SliderWidget glitch when showing very small values (and ↵Jordi Vilalta Prat
potentially for other small widgets) svn-id: r35557
2008-12-24Added FIXME in ThemeEngine::drawSlider.Johannes Schickel
svn-id: r35515
2008-12-22Fixed indentation and removed whitespaces at the end of lineJordi Vilalta Prat
svn-id: r35481
2008-12-22Allow the disabled state of the popup widget to be themedJordi Vilalta Prat
svn-id: r35480
2008-11-21Added ArchiveMember::getDisplayName() method; changed ↵Max Horn
ArchiveMember::getName() to always return a name compatible with Archive::openFile() svn-id: r35139
2008-11-20Fixed ZipArchive/FSDirectory creation.Johannes Schickel
svn-id: r35133
2008-11-12GUI: Blitting the full screen to the backbuffer (or vice versa) can be done ↵Max Horn
with a single memcpy, which is a bit faster than using _vectorRenderer->blitSurface svn-id: r35029
2008-11-12Renamed Graphics::TextAlignment -> Graphics::TextAlign and merged it with ↵Max Horn
GUI::ThemeEngine::TextAlignVertical svn-id: r35023
2008-11-10Include required headerMax Horn
svn-id: r34985
2008-11-10Merged GUI::Theme and Gui::ThemeEngine into the same class, GUI::ThemeEngine.Vicent Marti
Massive cleanup. svn-id: r34983
2008-11-09Removed many unnecessary #includesMax Horn
svn-id: r34959
2008-11-08Thou shalst never use the 'using' keyword in a header file, lest the wrath ↵Max Horn
of ye fingolfin will crush your sorrow bones to dust... *grrr* ;) svn-id: r34937
2008-11-08Pushing down some header depsMax Horn
svn-id: r34936
2008-11-08Moved some internal stuff from ThemeEngine.h to ThemeEngine.cppMax Horn
svn-id: r34935
2008-11-06Got rid of OSystem::colorToRGB and RGBToColor; added implementations for ↵Max Horn
OSystem::getOverlayFormat to several ports (pending testing by the porters) svn-id: r34912
2008-11-04Some cleanup / handle the case where the themepath is neither pointing to a ↵Max Horn
dir nor to a .zip file svn-id: r34897
2008-11-04Reordered initialization lists to kill a ton of warnings.Nicola Mettifogo
svn-id: r34892
2008-11-03Fix commentMax Horn
svn-id: r34880
2008-11-03Documented & cleaned up ThemeEngine::createCursorMax Horn
svn-id: r34879
2008-11-03Instead of allocating (and leaking, in case of an error) a 64k table with at ↵Max Horn
most 256 entries, use a HashMap svn-id: r34878
2008-10-29Store names for renderer configuration in config file instead of integers.Johannes Schickel
svn-id: r34867
2008-10-29Committed my patch from -devel, which reintroduces DISABLE_FANCY_THEMES to ↵Johannes Schickel
strip functionallity in theme renderer uneeded by small devices. svn-id: r34864