aboutsummaryrefslogtreecommitdiff
path: root/gui/object.cpp
AgeCommit message (Collapse)Author
2020-01-04GUI: Introduce dynamic layoutsBastien Bouclet
Prior to this change, a GUI layout was only affected by the screen size. Now, a layout can additionally be influenced by the GUI dialog and widgets that uses it. This capability is leveraged to implement the following features: * Layout elements that are not bound to a GUI widget do not take space. This means that dialogs where the widgets shown depend on for example a feature being enabled at configure time no longer have blank spaces. * Widgets can define a minimal required size for their contents not to be cut. For now this is only used for buttons so their width is always sufficient for their caption not to be cut. This mechanism could be applied to other widget types in the future.
2018-04-19GUI: Unify clip and non-clip draw callsBastien Bouclet
2018-01-27GUI: Implement dirty-checking for widget redrawsBastien Bouclet
2016-07-03GUI: Add checks in Widget::getBossClipRect()Alexander Tkachev
Prints a warning if clipping area is invalid and fixes it.
2016-07-03GUI: drawRoundedSquareClip()Alexander Tkachev
2014-02-18GUI: Make GPL headers consistent in themselves.Johannes Schickel
2013-08-16GRAPHICS: Added changes and improved code from inisider/scummvm (partial text)Narek Mailian
Includes code from https://github.com/inisider/scummvm/ , which has been squashed and bugfixed
2012-02-24GUI: Fix "clear" buttons after theme switch (bug #3482459)Torbjörn Andersson
Because the "clear" buttons are very different between themes (in the Modern theme they have a graphical symbol, while in the Classic theme they have a letter), they have to be removed and re-added when reflowing the layout. This is patterned after how the LauncherDialog class handles the larger changes in layout. Removing widgets from a tab turned out to be trickier than I first thought, so I had to move the removeWidget() method from Dialog to GuiObject.
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2010-11-16GUI: Rename gui/GuiManager.* to gui/gui-manager.*Max Horn
svn-id: r54265
2010-03-18GUI: Make GuiObject::_name const, init all members in constructorMax Horn
svn-id: r48275
2010-03-12Fix from LordHoto for bug #2859401: GUI: GMM crashes when running in 320x200 ↵Max Horn
and 320x240 svn-id: r48248
2010-03-11GUI: Remove GuiObject::getMillis()Max Horn
svn-id: r48241
2010-01-03Setup the dimensions of GuiObject in the constructor, by using reflowLayout.Johannes Schickel
This properly initializes _x, _y, _w and _h, which might be used uninitialized otherwise. This probably lead to a creash for _sev, when drawing the tab widget, before GuiObject::reflowLayout had been called. FYI GuiObject::reflowLayout is usually only called on layout changes (i.e. resolution changes etc.), thus it might not be called before drawing a newly created widget. svn-id: r46947
2009-05-07More debug info in the error messages when GUI layout is wrong.Eugene Sandulenko
svn-id: r40371
2009-01-02Renamed gui/newgui.cpp -> gui/GuiManager.cpp and gui/newgui.h -> ↵Johannes Schickel
gui/GuiManager.h svn-id: r35668
2008-11-08Pushing down some header depsMax Horn
svn-id: r34936
2008-11-03Moved GuiObject::reflowLayout from newgui.cpp to object.cppMax Horn
svn-id: r34882
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
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