42 Commits

Author SHA1 Message Date
Max Horn
8a0c5753f3 GUI: Simplified ThemeEngine::getImageSurface (this way it's easier to add more graphics in the future ;)
svn-id: r41309
2009-06-06 23:22:22 +00:00
Eugene Sandulenko
fe75d083b7 Bump theme version to 0.5 due to number of recent changes.
svn-id: r41287
2009-06-06 18:27:25 +00:00
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
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
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
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
487f4eafb0 Updated theme version to 0.4
svn-id: r35914
2009-01-18 20:05: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
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
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
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
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
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
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06: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
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
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
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
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
Max Horn
1ad8e59c12 minor tweaks
svn-id: r34961
2008-11-09 15:59:14 +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
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
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
2ec5515e89 Store names for renderer configuration in config file instead of integers.
svn-id: r34867
2008-10-29 20:45:28 +00:00
Johannes Schickel
98b0c4b33c Committed my patch from -devel, which reintroduces DISABLE_FANCY_THEMES to strip functionallity in theme renderer uneeded by small devices.
svn-id: r34864
2008-10-29 19:48:15 +00:00
Vicent Marti
fccf455bcc Bugfix: Dirty rectangle out of range when blitting into the overlay.
svn-id: r34862
2008-10-29 18:57:42 +00:00
Max Horn
4a56e0d9c1 Merged ThemeEngine::themeEval() and ThemeEngine::evaluator() methods into a single getEvaluator() method
svn-id: r34789
2008-10-12 22:25:35 +00:00
Max Horn
1b3952fbab Don't force inline on big funcs if you don't have to (in this case, it added 24k to the binary size for no good reason)
svn-id: r34783
2008-10-12 22:03:35 +00:00
Max Horn
c39175d2ec GUI ThemeEngine changes:
- removed unused typedefs
- fixed some typos
- got rid of pointless parser() method
- unified theme XML loading code for Zip files and regular directories

svn-id: r34774
2008-10-11 22:14:47 +00:00
Vicent Marti
2c775d851b Added global ingame menu definitions to theme files.
svn-id: r34608
2008-09-20 12:36:58 +00:00
Max Horn
6893418942 Fixing some compiler warnings
svn-id: r34341
2008-09-05 11:32:23 +00:00
Vicent Marti
dcc72fe29e Massive refactoring/cleanup on the theme engine/parser.
svn-id: r34285
2008-09-02 17:51:08 +00:00