aboutsummaryrefslogtreecommitdiff
path: root/gui/dialog.cpp
AgeCommit message (Collapse)Author
2009-05-18Fix bug #2791868: "GUI: Glitch when closing menu after hovering on option"Eugene Sandulenko
svn-id: r40702
2009-02-06Reverted previous commit.Vicent Marti
svn-id: r36226
2009-02-06Removed special case when redrawing the dialog stack. Fixes bug #2555710 and ↵Vicent Marti
several lesser graphical glitches with classic theme. svn-id: r36225
2009-01-11Merge in Virtual Keybpard & KeyMapper branch,Eugene Sandulenko
- 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-02Fixed crash when returning to launcher from a 640x480 game running with a ↵Johannes Schickel
non 1x scaler. svn-id: r35686
2009-01-02Renamed gui/newgui.cpp -> gui/GuiManager.cpp and gui/newgui.h -> ↵Johannes Schickel
gui/GuiManager.h svn-id: r35668
2009-01-02Reverted the handling of mouse move events, now the slider widget should be ↵Johannes Schickel
highlighted correctly again. svn-id: r35667
2009-01-02Modified the way button highlights are processed when a widget is in ↵Johannes Schickel
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-02Got rid of GuiManager::clearDragWidget instead handle it via a new widget ↵Johannes Schickel
flag WIDGET_IGNORE_DRAG. svn-id: r35662
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
2008-12-25Renamed NewGui to GuiManagerMax Horn
svn-id: r35544
2008-12-22Fixed indentation and removed whitespaces at the end of lineJordi Vilalta Prat
svn-id: r35481
2008-11-12GUI: Got rid of most 'built-in' variablesMax Horn
svn-id: r35018
2008-11-10Merged GUI::Theme and Gui::ThemeEngine into the same class, GUI::ThemeEngine.Vicent Marti
Massive cleanup. svn-id: r34983
2008-08-13Bug fix: Widget removal from dialog now handled properlyStephen Kennedy
svn-id: r33841
2008-08-13Finished legacy API cleanup. Removed all legacy code.Vicent Marti
Possible regressions. svn-id: r33833
2008-08-07Game Options menu parsing.Vicent Marti
Added support for importing layouts inside other layouts. Misc bugfixes. svn-id: r33676
2008-08-05Options menu layout parsing, featuring the brand new FATPOPUPS.Vicent Marti
svn-id: r33651
2008-07-17Rendering pipeline (almost) fixed. This time for real.Vicent Marti
svn-id: r33092
2007-11-04- made Widget::_flags privateJohannes Schickel
- reworked state (enabled/disabled/highlighted) handling of widgets - cleanup in ModernTheme.cpp svn-id: r29403
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2007-06-30Changed GUI system to use Common::KeyState stateMax Horn
svn-id: r27786
2007-06-22Use KEYCODE constants.Torbjörn Andersson
svn-id: r27598
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-04-15Fixing some memory leaks in the GUI codeMax Horn
svn-id: r26515
2007-03-16Added new file gui/object.cpp (collecting GuiObject methods in there), and ↵Max Horn
renamed Dialog::deleteWidget to Dialog::removeWidget (name was misleading, the removed object does *not* get deleted) svn-id: r26147
2006-12-27Fix bug #1595627: "SCUMM: F5 crashes game (640x480)". This partiallyEugene Sandulenko
reverts commit r24656 for fixing bug #1590596 and effectively fixes both. svn-id: r24933
2006-08-04Renamed handleScreenChanged() -> reflowLayout() in the GUI codeMax Horn
svn-id: r23662
2006-06-03*Loads* of Common::String related optimizations. Woa, *tons* of methods were ↵Max Horn
copying strings needlessly svn-id: r22873
2006-06-02Let deleteWidget() check if it's deleting _mouseWidget, _focusedWidget orTorbjörn Andersson
_dragWidget. We don't want to keep references to the deleted widget. svn-id: r22836
2006-05-31More cleanup. We shouldn't need these widget size parameters either.Torbjörn Andersson
svn-id: r22799
2006-04-19Started to prepare the gui for runtime resolution switches.Johannes Schickel
(some little things could be missing yet though) svn-id: r22017
2006-04-18- PopUpWidget (drop down list) does not shadow underlying dialog anymoreEugene Sandulenko
- Remove reduntant code in drawing pipeline. Topmost dialog was drawn up to 4 times svn-id: r21998
2006-03-24Reduce (indirect) dependencies on gui/eval.h (and thus common/assocarray.h) ↵Max Horn
to a minimum svn-id: r21426
2006-03-09Converted last dialogs to new scheme. Now it seems to be everything. Please,Eugene Sandulenko
test throghoutly. svn-id: r21157
2006-03-08o Converted most (all?) widgets to new scheme.Eugene Sandulenko
o Converted global options dialog to new scheme. svn-id: r21137
2006-03-07o More widgets fot alternative constructorsEugene Sandulenko
o Cleanup of launcher dialog o Implemented useWithPrefix keyword svn-id: r21131
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20518
2006-01-28- Fixes a bug that the debugger crashed while openingJohannes Schickel
- Changed gradient calculating - added background saving for all dialog/widget backgrounds for now (change that later maybe) - changed ScummDialog to use the colors of our launcher dialog svn-id: r20276
2006-01-27 - adds the new gui renderer also a new implementation for the classic guiJohannes Schickel
- adds a ImageMan and ImageDec class for loading and managing image files - adds a loader for zip files which is used by the new theme and the image manager - changes the widgets to use the new gui code - changes the scumm dialogs to use the new gui code - fixes a #include problem in the sky debugger with the new gui code To use the new gui copy gui/themes/default-theme.zip to your extrapath. If the theme zip can not be found the gui will fallback to the classic theme. If you want to change the gui styles use "gui_theme=classic" for the classic theme and "gui_theme=default-theme" for the new theme. Thanks to eriktorbjorn for testing and help with the new theme and to sev for reviewing this patch. svn-id: r20227
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-06-24I don't think we need <ctype.h> here.Torbjörn Andersson
svn-id: r18448
2005-06-24When including files from common/, explicitly use the common/ prefixMax Horn
svn-id: r18444
2005-06-03Cleanup.Torbjörn Andersson
svn-id: r18324
2005-06-02The GUI has reached the point where I think it's safe to begin removing theTorbjörn Andersson
old auto-scaling hack. Removed wantsScaling(), USE_AUTO_SCALING, _scaleFactor and _scaleEnable. Also removed drawBitmap() since we no longer use bitmaps for widget decorations. svn-id: r18310
2005-05-20Added big editable text widget, and removed some cruft. I think this meansTorbjörn Andersson
that all our widgets are able to scale themselves now, but I could be mistaken. svn-id: r18192
2005-05-19Big version of the popup widget. It could use a bit more polish, though...Torbjörn Andersson
svn-id: r18185
2005-05-18Added big slider widget. There is nothing in the widget itself that'sTorbjörn Andersson
dependent on size, so the two different sizes are handled through a new addSlider() function. Figuring out why the big widget won't let you set volume to 0 is left as an exercise for the reader. svn-id: r18170
2005-05-18Some more scaling work. Parts of the options dialogs scale themselves. SomeTorbjörn Andersson
of them better than others. svn-id: r18165