Alexander Tkachev
49caaf77a1
GUI: Add ScrollContainer
2016-07-03 12:10:56 +02:00
Eugene Sandulenko
b590cc2d8f
GUI: Cleanup class initialization
2016-06-01 13:16:12 +02:00
Eugene Sandulenko
bf06b3bc18
GUI: Initialize widget padding
2016-05-02 15:19:07 +02:00
Eugene Sandulenko
35a44edca1
GUI: Implement immediate coordinate mode for PopUp widget
2016-03-30 19:02:02 +02:00
Eugene Sandulenko
6f44d4f7e1
GUI: Make disabled EditTextWidget not allowing to edit the string
2015-11-07 13:26:55 +01:00
Filippos Karapetis
0d81e522c1
GUI: Remove trailing whitespace
2014-10-28 15:38:51 +02:00
Zerophase
5c12e09ed1
GUI: Tab cycling handles multiple themes.
...
First visible tab moves up when a theme's width cannot fit another tab.
2014-04-06 19:58:56 -05:00
Zerophase
5df3c14eba
GUI: Fix tab cycling when total tabs increase.
...
Tab cycling ignores tab width, and slides correctly for larger tab counts.
2014-04-01 07:28:57 -05:00
Zerophase
80d34a8a7c
GUI: Add Tab cycling to TabWidget
...
Tab and Shift-Tab can now cycle between each Tab of the Edit Game menu.
2014-04-01 07:28:48 -05:00
Johannes Schickel
f5dfe6725a
GUI: Make GPL headers consistent in themselves.
2014-02-18 02:39:35 +01:00
Johannes Schickel
fe7f28bf6c
GUI: Do not draw text outside edit rect in EditableWidget.
2013-11-24 01:15:27 +01:00
Johannes Schickel
b487c1fc38
GUI: Fix undrawing caret glitch when the edit text is inversed.
...
This is prominently visible in the list based save/load chooser since the
edit string is drawn on a special green background there. When the caret is
at the end of the edit string this would result in the green color missing
at the place of the (undrawn) caret. To avoid this we simply draw a fake
space now.
2013-11-24 00:38:47 +01:00
Johannes Schickel
95f07fd405
GUI: Document EditableWidget::getEditRect.
2013-11-24 00:20:29 +01:00
Johannes Schickel
3be846cfd7
GUI: Draw caret over the whole height of the edit rect.
...
This improves the look of the editable widgets.
2013-11-24 00:15:48 +01:00
Johannes Schickel
bb4a730a88
GUI: Fix out-of-bounds check in EditableWidget::drawCaret.
...
The line "y + editRect.height() + 2" is not included in drawing anymore. Thus
it is allowed to equal EditableWidget::_h.
2013-11-24 00:15:48 +01:00
Johannes Schickel
aaad08c9fe
GUI: Fix character redrawing behind caret in EditTextWidgets.
...
This fixes an ugly y position change when the caret is moved to a character in
an edit text widget.
2013-11-24 00:15:48 +01:00
Johannes Schickel
e036aa76da
GUI: Fix EditTextWidget::getEditRect's returned height.
2013-11-24 00:15:48 +01:00
Johannes Schickel
129e891a87
GUI: Fix ListWidget::getEditRect's returned height.
2013-11-24 00:15:47 +01:00
D G Turner
62d07700b3
GUI: Fix missing initializers for ListWidget. CID 1002259.
2013-09-30 04:53:17 +01:00
Narek Mailian
887a99e211
GRAPHICS: Added changes and improved code from inisider/scummvm (partial text)
...
Includes code from https://github.com/inisider/scummvm/ , which has been
squashed and bugfixed
2013-08-16 20:54:08 +02:00
Chris Warren-Smith
be399188c4
TIZEN: bada port updated to tizen
2013-07-03 07:04:11 +10:00
Johannes Schickel
a41457e224
GUI: Always try to show as many entries as possible in ListWidget.
...
In case there were less items in the list than on a page, it was possible
that a "scrollTo" call scrolled items out of the view even though all could
be displayed. This caused odd behavior in the load dialog in T7G. There
the list contains 10 entries. In case the last one was loaded via the dialog,
the next time it was brought up again it showed the 9th entry at the top
of the view and effectively hiding all the others. It furthermore did not
show the scroll bar because all entries would have fit onto one page.
To prevent this odd behavior, a boundary check has been added to all places
where the scroll position is set. This has been taken from "scrollToCurrent"
which already tried to prevent this.
This fixes the second issue described in bug #3610960
"T7G - savegame glitches".
2013-04-16 23:25:04 +02:00
Torbjörn Andersson
5b09c1c8e3
GUI: Don't allow changing disabled popup widgets with mouse wheel
...
This was another inconsistency between changing the widget by
clicking and changing it with the mouse wheel. Hopefully the last
one, though.
2012-12-27 10:37:02 +01:00
Torbjörn Andersson
ba182faeaf
GUI: Notify when popup widget changes by mousewheel
...
This is consistent with the notification when the widget changes by
clicking. As far as I can tell, that notification was added shortly
before mouse wheel handling was added. It missing from the mouse
wheel handler was presumably just an oversight.
2012-12-27 10:30:52 +01:00
Torbjörn Andersson
61b25b9707
GUI: Redraw the popup widget when a the selection changes
...
Otherwise, it will look like the value hasn't changed until the
widget is redrawn for other reasons, e.g. by mouse-over.
Incidentally, does anyone know why handleMouseDown() calls
sendCommand() when the selection changes, while handleMouseWheel()
does not?
2012-12-27 02:21:24 +01:00
Johannes Schickel
b0ba4b01a4
COMMON: Add wrapper for isprint.
...
This is done in the spirit of 658080deed .
2012-12-13 21:08:47 +01:00
Johannes Schickel
89abab97e3
JANITORIAL: Remove trailing whitespaces.
...
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Johannes Schickel
bc1743b225
GUI: Save/restore last scroll position in the list save/load dialog.
...
This should give a better user experience, since the user will not have to
scroll back to where he was when he used the dialog last.
Thanks to wjp for suggesting this.
2012-09-26 02:59:32 +02:00
Oleksiy Kurochko
ec32ccb6d6
GUI: Move predictive dialog to common gui
2012-03-25 12:21:38 +03:00
Johannes Schickel
73df649fd6
GUI: Let edit text widgets use a non-bold (aka normal) font.
...
This change was done per request of _sev.
2012-02-25 18:52:47 +01:00
Johannes Schickel
9f3fbe1bd7
GRAPHICS/GUI: Implement kerning support for Font.
...
This adapts the related graphics code, which is the generic Font API and the
TTF font implementation.
It furthermore adapts the GUI to properly take care of kerning in text input
widgets.
2012-01-29 16:26:20 +01:00
Johannes Schickel
7f2b2e99f8
GUI: Change scrollbar repeat handling from a timer proc to handleTickle.
...
This should be less heavy on timer usage and makes sure no race conditions
will occur.
2011-10-28 12:08:15 +02:00
Johannes Schickel
7022cdc82b
GUI: Slight formatting fix.
2011-10-27 01:02:25 +02:00
Eugene Sandulenko
78f1ea7690
OSYSTEM: extended installTimerProc() with timer ID parameter
2011-08-06 11:28:35 +01:00
Max Horn
333be9c072
GUI: Replace some s(n)printf uses by Common::String::format
2011-06-02 00:07:18 +02:00
Matthew Hoops
9539017ee3
ALL: initialise -> initialize
2011-05-25 11:17:11 -04:00
Max Horn
52d81727a3
GUI: Trying to clarify my comment on ctrl-a/ctrl-e *sigh*
2011-05-17 16:27:10 +02:00
Max Horn
29851abaea
GUI: Text editing tweaks
...
- Streamline keypad handling
- Allow up/down to act like home/end
- On Mac OS X, allow ctrl-a and ctrl-e to act like home/end
2011-05-17 12:23:55 +02:00
Max Horn
a3fe84cfe6
GUI: For a list entry in edit mode, move caret to end
2011-05-17 12:23:55 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Eugene Sandulenko
6224b74f34
GUI: Let EditTextWidget notify when the editing is finished
2011-04-16 16:18:59 +03:00
Max Horn
5b735131ba
GUI: Push down some header (inter)dependencies
...
svn-id: r54267
2010-11-16 10:29:31 +00:00
Max Horn
f3f73a7832
GUI: Commit some changes missing in my previous commit (oops)
...
svn-id: r54266
2010-11-16 10:24:16 +00:00
Max Horn
427dc1ae93
GUI: Move major widgets to new directory gui/widgets
...
Also renamed the source/header files, now they are more closely
aligned to how we rename most other source files
svn-id: r54264
2010-11-16 10:11:57 +00:00