Commit Graph

146 Commits

Author SHA1 Message Date
Johannes Schickel
38b2b3c04f Move StringTokenizer to its own files (tokenizer.h/tokenizer.cpp).
svn-id: r48310
2010-03-20 12:56:56 +00:00
Max Horn
c934642bdb COMMON: Move typedef StringList from str.h to new header str-array.h
This removes the dependency on array.h from str.h.
Also, begun migration from the confusing type name "StringList" to
the more appropriate StringArray.

svn-id: r48282
2010-03-18 15:09:24 +00:00
Max Horn
4fc8ebab01 GUI: Remove GuiObject::getMillis()
svn-id: r48241
2010-03-11 23:41:28 +00:00
Yotam Barnoy
ef330ed9b4 Patch for bug 2943361 by littleboy, adding full kb modifier support to all engines + GUI and proper keypad handling
svn-id: r48101
2010-02-21 04:04:13 +00:00
Martin Kiewitz
bc89883da8 partly reverting r46807 ffs. Regression in numpad handling - ID: 2943361
svn-id: r47796
2010-02-01 15:44:24 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Yotam Barnoy
080d6da6e4 Minor additions: added full keypad support to GUI and SCI
svn-id: r46808
2009-12-31 23:52:49 +00:00
Johannes Schickel
bd6de4f642 Hopefully avoiding an assert in the MSVC debug CRT library when entering an umlaut in the launcher.
It's a bad idea to cast a parameter to the "is*" functions from ctype.h to "char",
since "char" might be signed and the "is*" functions are defined to only accept
input which fits "unsigned char" or equals EOF. In this concrete example the value
of "state.ascii" is > 0x7F, thus becomes negative after the cast to "char", which
violates the parameter rules of "isprint".

Sadly it seems this is not the only place in our code, which does pass a possibly
signed parameter to an "is*" function. We might either want to change all code to
only pass an unsigned char value, change the code to do parameter validation or
fix it in another way.

svn-id: r44920
2009-10-11 13:44:19 +00:00
Johannes Schickel
690ee5fa67 Commit salty-horse's fix for bug #2854261 "GUI: Launcher list doesn't highlight after getting focus".
svn-id: r44067
2009-09-13 20:03:04 +00:00
Johannes Schickel
f898cd12e6 Implement automatic clearing of "Untitled Savestate" in edit mode of the SaveLoadChooser as requested in feature request #2834637 "GUI: Allow greying out dummy ListWidget entries".
svn-id: r43555
2009-08-20 10:04:21 +00:00
Johannes Schickel
a8bffbe6a7 Partial implementation of feature request #2834637 "GUI: Allow greying out dummy ListWidget entries", based on a slighly modified version of my latest patch included there.
svn-id: r43551
2009-08-20 09:19:37 +00:00
Johannes Schickel
d6d5da0d9f Change code to use our fractional utilities.
svn-id: r42940
2009-07-30 19:43:36 +00:00
Johannes Schickel
6a26f1b56f For a smoother user experience, use different colors for inverted text of the ListWidget, depending on whether the widget has focus or not.
svn-id: r42512
2009-07-15 18:05:37 +00:00
Johannes Schickel
6a15e14d3f Fix bug, which caused the ListWidget to draw a widget background around the selected item, when the ListWidget had no focus.
svn-id: r42511
2009-07-15 17:23:27 +00:00
Johannes Schickel
7b55b5f5e2 Fix "search" filter being settings lost in launcher, when using the "Edit Game..." menu for example.
svn-id: r42510
2009-07-15 17:07:45 +00:00
Johannes Schickel
32f1e47eff Fix typo, which in fact fixes bug #2820353 "GUI: Search doesn't handle uppercase properly".
svn-id: r42418
2009-07-12 14:29:59 +00:00
Max Horn
8aa667e342 Enhanced the quicksearch box in the launcher to match words in the search string individually
svn-id: r42038
2009-07-02 21:16:36 +00:00
Max Horn
de88db5f36 Fix for bug #2802492 (GUI: search query causes game list scrollbar glitches)
svn-id: r41334
2009-06-07 13:04:16 +00:00
Eugene Sandulenko
472e5906ca Do not change list content if filter was not changed
svn-id: r41276
2009-06-06 17:58:29 +00:00
Eugene Sandulenko
f6d06085d5 Fix item selection on filtered out list in launcher
svn-id: r41271
2009-06-06 17:54:59 +00:00
Eugene Sandulenko
f66da82f03 Improvements to laucher dialog
- Made quicksearch turned off in the launcher game list
- Turn ListWidget into CommandSender
- Turn quicksearch off in launcher game list
- Connect laucher list widget with search box so search is initiated by typing

svn-id: r41269
2009-06-06 17:54:28 +00:00
Eugene Sandulenko
5fc047dddf Implement FR#1970293: "LAUNCHER: Add "quick search" input field like in iTunes"
svn-id: r41268
2009-06-06 17:54:08 +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
f2547eb62c Implement FR#2707442: "GUI: Improve Mass Add dialog"
svn-id: r41263
2009-06-06 17:49:59 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Willem Jan Palenstijn
3b9f21be80 Use lowercase form for quickselect in ListWidget.
This matches POSIX strcasecmp and MSVC stricmp behaviour.

svn-id: r40467
2009-05-11 20:53:28 +00:00
Vicent Marti
9e54b1c963 Fixed bug #2619802 (Game name overwrites scroll bar).
svn-id: r39335
2009-03-11 20:39:31 +00:00
Johannes Schickel
690b88f982 Renamed gui/newgui.cpp -> gui/GuiManager.cpp and gui/newgui.h -> gui/GuiManager.h
svn-id: r35668
2009-01-02 03:21:40 +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
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
Max Horn
190468c79a GUI: Turn scrollbar width into a theme variable
svn-id: r35021
2008-11-12 13:07:41 +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
Vicent Marti
2b52383534 Finished legacy API cleanup. Removed all legacy code.
Possible regressions.

svn-id: r33833
2008-08-13 17:46:00 +00:00
Vicent Marti
a4b3434af9 Bugfix: Selection background too short when scrollbar not present.
Bugfix: Vector renderer drawstep for bitmap blitting.
Added bitmap GFX for checkboxes.

svn-id: r33771
2008-08-10 22:03:00 +00:00
Vicent Marti
52f3551587 Bugfix: Several text-drawing issues.
Bugfix: Overlapping text in text edit dialogs.

svn-id: r33768
2008-08-10 18:56:10 +00:00
Vicent Marti
b2bac41d0e Reverted debug layout drawing.
Bugfix: Scrollbar overlapping in text widgets/text overlapping?

svn-id: r33765
2008-08-10 18:35:27 +00:00
Vicent Marti
185dbbe84d Finished support for theme loading.
Fixed several bugs regarding theme loading.

svn-id: r33728
2008-08-09 22:40:05 +00:00
Vicent Marti
3ca6f76f7b Browser dialog.
Improved layout expansion in the layout parser.
Fixed serious coordinates initialization bug.

svn-id: r33702
2008-08-08 15:06:28 +00:00
Vicent Marti
4095f2eea9 Bugfix: Text selection background in list widget overlays scrollbar (finally).
Bugfix: Game list missing one entry.

svn-id: r33658
2008-08-06 13:58:07 +00:00
Johannes Schickel
600ab40bca Changed all delete [] usages to delete[].
svn-id: r31927
2008-05-07 14:31:45 +00:00
Eugene Sandulenko
5c6597562a Add ListWidget version with immediate parameters.
svn-id: r30709
2008-01-30 22:51:21 +00:00
Johannes Schickel
68eb28a6f6 Fix for bug #1670082 "GUI: Modern theme gfx glitch in launcher".
svn-id: r29971
2007-12-24 03:01:21 +00:00
Johannes Schickel
0ec41a2d80 - made Widget::_flags private
- reworked state (enabled/disabled/highlighted) handling of widgets
- cleanup in ModernTheme.cpp

svn-id: r29403
2007-11-04 03:38:30 +00:00
Nicola Mettifogo
258901bab9 Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
2007-09-19 08:40:12 +00:00
Filippos Karapetis
d2d49e224b Implemented FR #1754616 - "GUI: Add option to delete games using the "Del" Key"
svn-id: r28131
2007-07-17 21:59:44 +00:00
Max Horn
2243197f50 Changed GUI system to use Common::KeyState state
svn-id: r27786
2007-06-30 12:26:59 +00:00
Torbjörn Andersson
4305483ad0 Use KEYCODE constants.
svn-id: r27598
2007-06-22 07:49:02 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Torbjörn Andersson
b4311d15ca The ListWidget constructor already did most of what reflowLayout() does, except
calling Widget::reflowLayout(). I've simplified that by calling reflowLayout()
directly instead. This may be a bit of a hack, but it was the best way I could
think of to ensure that _entriesPerPage was properly initialised. It wasn't
before, because _h had not been initialised, causing Valgrind to complain.

svn-id: r23705
2006-08-12 17:24:49 +00:00
Max Horn
1a10cacfb9 Renamed handleScreenChanged() -> reflowLayout() in the GUI code
svn-id: r23662
2006-08-04 13:55:53 +00:00