aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.cpp
AgeCommit message (Collapse)Author
2016-07-12GUI: Fix TabWidget height issuesAlexander Tkachev
Changes theme stx files to specify TabWidget's type. That fixes wrong TabWidget height. Changes TabWidget's getHeight() to return not only "children" height, but also tabs height. That fixes wrong clipping area. Changes Widget's findWidget to use getHeight(). That fixes bug when widgets in the bottom of TabWidget were not reacting to the mouse events.
2016-07-03GUI: Add checks in Widget::getBossClipRect()Alexander Tkachev
Prints a warning if clipping area is invalid and fixes it.
2016-07-03JANITORIAL: Remove trailing spacesAlexander Tkachev
2016-07-03GUI: Use clipping everywhereAlexander Tkachev
2016-07-03GUI: Fix blitAlphaBitmapClip()Alexander Tkachev
2016-07-03GUI: Make PopUpWidget clipAlexander Tkachev
2016-07-03GUI: Prepare button to be clippedAlexander Tkachev
2016-07-03GUI: Add ScrollContainerAlexander Tkachev
2016-07-03GUI: Use boss's x/y/w/h instead of clippingAreaAlexander Tkachev
2016-06-01GUI: Cleanup class initializationEugene Sandulenko
2016-05-16Merge pull request #722 from Abde-/masterEugene Sandulenko
GUI: Redraw Widget when setAlign() called
2016-04-14GUI: Remove 'sticky button' featureOri Avtalion
This feature made pressed buttons wait a few moments before returning to an unpressed state. It was half-implemented, and caused several visual bugs. Fixes #7083.
2016-04-13GUI: Remove highlighting when button widget is pressedOri Avtalion
Without this, buttons would stay highlighted after being un-pressed. Fixes #7094.
2016-03-30GUI: Enhanced StaticTextWidget with font styleEugene Sandulenko
2016-03-27GUI: Improve handling of button presses while moving the cursorOri Avtalion
Keep track of where a mouse press started when deciding how mouse-over and mouse-up should behave. This handles the following situations: 1) If a mouse press starts outside a button (e.g. the UI background), mouse-up inside the button has no effect. Previously, it triggered a button click. 2) If a mouse press starts inside a button, the cursor moves outside of its region, then back inside, the button will show as pressed. Previously, it showed as highlighted instead of pressed.
2016-03-25GUI: Widget: redraw when setAlign() calledAbdeselam El-Haman
2014-02-18GUI: Make GPL headers consistent in themselves.Johannes Schickel
2013-08-10GUI: Initialise _hotkey in ButtonWidget constructorThierry Crozat
One of the two ButtonWidget constructor did not initialise _hotkey when given a non-null value. This caused valgrind to report an access to uninitialised variable in Dialog::handleKeyDown().
2013-08-03GUI: Take advantage of Surface::getPixels.Johannes Schickel
2013-08-03GUI: Prefer getBasePtr instead of direct Surface::pixels access.Johannes Schickel
2012-12-27GUI: Change value by one on mouse wheel, not by one pixelTorbjörn Andersson
On file-grained sliders, changing the value by one pixel was unpredictable because it wouldn't change by the same amount every time. (And of course, some values were not possible to set.) On course-grained sliders, changing the value by one pixel would sometimes not change it at all, causing the slider to seem stuck. Now the slider can be set to any value.
2012-10-08Merge pull request #257 from lordhoto/graphics-conversionJohannes Schickel
Extend crossBlit for abitrary (in-place) conversions and add a in-place conversion to Surface
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-08-28GUI: Use in-place Surface conversion in widget code.Johannes Schickel
2012-07-24GUI: Implement saving in the grid based save/load chooser.Johannes Schickel
2012-07-09GUI: Make container widget a bit more container like.Johannes Schickel
Now it is possible to add sub widgets to a ContainerWidget and allow for these to get events too.
2012-06-29GUI: Use a black rect when no thumbnail is available in the thumbnail load ↵Johannes Schickel
chooser.
2012-06-13GUI: Allow Surfaces with abitrary RGB pixel formats to be used in ↵Johannes Schickel
PicButtonWidget and GraphicsWidget. Only 1Bpp aka paletted surfaces are not supported.
2012-06-12GUI: Take advantage of Surface::fillRect in GraphicsWidget::setGfx.Johannes Schickel
2012-05-07GUI: Fix bug with button pressed stateOleksiy Kurochko
2012-05-03GUI: Implemented pressed state for buttonsOleksiy Kurochko
2012-01-29GUI: Slight formatting fix.Johannes Schickel
2011-12-13GUI: Handle adding clear buttons that don't exist in layoutsTarek Soliman
The buttons in the keymapper are dynamically generated and don't exist in the layout; They have no name.
2011-12-13GUI: Move addClearButton() from options.cpp to widget.cppTarek Soliman
This is so it can be used outside options.cpp
2011-10-25GUI: Made PicButtonWidget derivative of ButtonWidgetEugene Sandulenko
2011-08-06GUI: Consistent behavior of ButtonWidget::setLabel()Eugene Sandulenko
2011-06-02GUI: Replace some s(n)printf uses by Common::String::formatMax Horn
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-01Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".Johannes Schickel
For further discussion check here: https://github.com/scummvm/scummvm/pull/16 Conflicts: graphics/png.cpp
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-04-17GUI: Do not access Surface::bytesPerPixel anymore.Johannes Schickel
2011-04-17GUI: Prefer Surface::create taking a PixelFormat over the one taking a byte ↵Johannes Schickel
depth.
2011-02-07ALL: Fix whitespaces / indentionMax Horn
svn-id: r55818
2011-01-20GUI: Fix Memory Leak from PicButtonWidget _gfx Member.David Turner
This widget is only currently used by Hugo. svn-id: r55364
2011-01-03GUI: Implement PicButtonWidgetEugene Sandulenko
It is a button with picture intead of text. To be used by Hugo engine svn-id: r55099
2010-11-16GUI: Rename gui/GuiManager.* to gui/gui-manager.*Max Horn
svn-id: r54265
2010-08-07fixed a typo with hotkeys in ButtonWidgetNeeraj Kumar
svn-id: r51830
2010-07-23GUI: Fix tooltip drawingEugene Sandulenko
With help of Tanoku tooltips were switched from widgets to dialogs which helped to fix nasty bug with background not being restored. Although it is basically a hack around inconsistent font backbuffering in our GUI code, for the time being it is feasible. The patch was extended with way to specify tooltip background in the theme file. svn-id: r51217
2010-07-21Strip trailing whitespaces in our common code base.Johannes Schickel
svn-id: r51094
2010-07-04Prevent GraphicsWidget from being assigned a surface which wouldn't fit in ↵Johannes Schickel
the widget. svn-id: r50641