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
Willem Jan Palenstijn
e53c1af362
listwidget: handle clicking outside of the list more gracefully
...
svn-id: r23295
2006-06-24 13:21:46 +00:00
Max Horn
76116f36dd
*Loads* of Common::String related optimizations. Woa, *tons* of methods were copying strings needlessly
...
svn-id: r22873
2006-06-03 13:33:39 +00:00
Torbjörn Andersson
09074b1685
More cleanup. We shouldn't need these widget size parameters either.
...
svn-id: r22799
2006-05-31 12:27:05 +00:00
Torbjörn Andersson
8975ba8963
Cleanup. We no longer need these widget size parameters.
...
svn-id: r22798
2006-05-31 12:09:00 +00:00
Johannes Schickel
fbc55218f1
- Fixes list position after screen change.
...
svn-id: r22736
2006-05-29 13:21:56 +00:00
Torbjörn Andersson
923101abcb
Override the list widget's FindWidget() function, to allow it to return the
...
scrollbar widget.
svn-id: r22672
2006-05-27 06:38:45 +00:00
Eugene Sandulenko
b56c7b88d7
Major GUI update:
...
- Implemented padding in console
- Update only current line in console instead of whole screen
- Fixed caret positioning in edit text widget
- Improved buttons drawing, now they look more realistic
- Added label spacing in popup widget
- Correct shadow in popup widget
- Fixed up with selected popup widget being drawn on wrong tab
- Added shading to list dialog
- Adjusted shading of inactive widgets
- Proper coloring of browset (add game) dialog
- Introduced Container widget
- Used Container widget in scumm save/load dialog. Now it looks properly
- Adjusted button colors even more. Now they match almost perfectly albeit with banding
- Made scrollbar appear only when it is really needed
svn-id: r22670
2006-05-27 05:46:04 +00:00
Eugene Sandulenko
9477029a44
remove unused variable
...
svn-id: r22647
2006-05-26 01:51:03 +00:00
Eugene Sandulenko
5fee4afc32
- Put scrollbar inside of list widget
...
- Use resize() instead of setPos() and setSize() where applicable
svn-id: r22646
2006-05-26 01:49:56 +00:00
Torbjörn Andersson
b6783677b5
If I understand things correctly, this should fix the caret drawing in list
...
widgets. (The glitch was most noticeable in the modern theme.)
svn-id: r22052
2006-04-20 08:14:55 +00:00
Johannes Schickel
30787714d3
Started to prepare the gui for runtime resolution switches.
...
(some little things could be missing yet though)
svn-id: r22017
2006-04-19 01:05:28 +00:00
Eugene Sandulenko
924ec172ff
- Implemented text padding in ListWidget and PopUpWidget. Right padding does not work yet.
...
- Implemented highlisght padding in ListWidget
- Eval::getVar() method with default value
- Removed unused constructors for ListWidget and PoUpWidget
- cleanup
- bumped theme version
svn-id: r21934
2006-04-16 10:23:36 +00:00
Max Horn
08ad918af6
Reduce (indirect) dependencies on gui/eval.h (and thus common/assocarray.h) to a minimum
...
svn-id: r21426
2006-03-24 14:15:45 +00:00
Eugene Sandulenko
a8a8624511
o Converted most (all?) widgets to new scheme.
...
o Converted global options dialog to new scheme.
svn-id: r21137
2006-03-08 01:42:02 +00:00
Eugene Sandulenko
018c93b14a
More work on customizable GUI.
...
o Implemented special alias 'prev'
o Added new calling scheme to several widgets
o Partially converted launcher dialog to new scheme
o Converted couple widgets of chooser dialog
svn-id: r21118
2006-03-07 05:39:52 +00:00
Torbjörn Andersson
0c91e91b44
Cleanup
...
svn-id: r20840
2006-02-24 19:33:23 +00:00
Torbjörn Andersson
6cf5d85e8e
Fix redraw glitches when typing very long - enough to be truncated - strings.
...
It seems the only purpose of 'deltax' in this function was to introduce such
redrawing glitches. Weird...
svn-id: r20839
2006-02-24 19:19:55 +00:00
Max Horn
b34e207dbb
Change CVS keywords to SVN keywords
...
svn-id: r20518
2006-02-11 10:08:56 +00:00
Johannes Schickel
129e7846b5
Implemented shadow drawing, also extended the theme config again
...
(new color entries for highlighted buttons and for other widgets).
Also added a 'highlight' check to the CheckBox widget.
Changed the PopUpDialog to use a shadow around itself.
svn-id: r20341
2006-02-01 15:11:39 +00:00
Torbjörn Andersson
f881fc47c7
Limit the maximum line width.
...
svn-id: r20296
2006-01-29 13:14:04 +00:00
Torbjörn Andersson
91d253c5b1
Applied my own patch #1416897 , in an attempt to speed up list widget
...
redrawing. There may be regressions, but none are known at the moment.
svn-id: r20271
2006-01-28 18:21:46 +00:00
Johannes Schickel
5051b080a2
- adds the new gui renderer also a new implementation for the classic gui
...
- 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-27 15:43:23 +00:00
Eugene Sandulenko
ea42bad781
Update copyright notice
...
svn-id: r20088
2006-01-18 17:39:49 +00:00
Eugene Sandulenko
b36677af71
Update FSF address. Eek. Actually that took place on May 1, 2005
...
svn-id: r19142
2005-10-18 01:30:26 +00:00
Marcus Comstedt
ee15539952
Try do display the virtual keyboard only when a string input widget has focus.
...
svn-id: r19102
2005-10-15 15:46:12 +00:00
Chris Apers
be9d8951eb
Change PalmOS ident
...
svn-id: r18748
2005-09-03 16:24:58 +00:00
Eugene Sandulenko
6b4484472b
Remove trailing whitespaces.
...
svn-id: r18604
2005-07-30 21:11:48 +00:00
Torbjörn Andersson
1d39f986c9
Whitespace changes.
...
svn-id: r18449
2005-06-24 16:08:31 +00:00
Max Horn
8b1d7b9166
When including files from common/, explicitly use the common/ prefix
...
svn-id: r18444
2005-06-24 15:23:51 +00:00
Torbjörn Andersson
7dfa96a8b8
Cleanup.
...
svn-id: r18319
2005-06-03 11:33:15 +00:00
Torbjörn Andersson
801db4a515
Added big editable text widget, and removed some cruft. I think this means
...
that all our widgets are able to scale themselves now, but I could be
mistaken.
svn-id: r18192
2005-05-20 15:03:26 +00:00
Torbjörn Andersson
9a17302f57
Use the same offset - string width for the item number - for every line in
...
the list. There's a slight hack here: I've assumed that all digits have the
same width.
svn-id: r18129
2005-05-16 13:28:34 +00:00
Max Horn
06cc657f0d
Use big font in ListWidget if it is in kBigScrollBarWidth mode
...
svn-id: r18118
2005-05-15 18:22:44 +00:00
Max Horn
841c600fef
Draw scrollbar arrows using drawLine, instead of hard coding bitmaps; add a param to the ListWidget constructor to choose a 'big' variant
...
svn-id: r18115
2005-05-15 18:02:10 +00:00
Max Horn
cca744f69a
Comply to our coding conventions
...
svn-id: r17975
2005-05-08 21:49:52 +00:00
Max Horn
a9f700b0a3
Allow usage of ScrollBarWidget with a non-standard width
...
svn-id: r17650
2005-04-17 11:47:44 +00:00
Max Horn
0b5a407567
Init _editMode
...
svn-id: r17482
2005-04-09 17:51:40 +00:00
Max Horn
e80cdab64b
Patch #1171300 : ListWidget + Chooser Patch
...
svn-id: r17260
2005-03-27 11:27:07 +00:00
Max Horn
1fde0d90f4
Fix popup widget in scaled GUI mode
...
svn-id: r17099
2005-03-12 15:29:16 +00:00