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
Max Horn
34d097be20
GUI: Pressing 'ESC' in the Launcher's quick search field now resets the search filter
...
svn-id: r41310
2009-06-06 23:22:35 +00:00
Eugene Sandulenko
020450465d
Fix font size in EditTextWidget on screen resolution change.
...
svn-id: r41270
2009-06-06 17:54:43 +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
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
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
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
7c132d340a
Misc text drawing improvements.
...
Added carets/text edit widgets.
svn-id: r33684
2008-08-07 18:42:47 +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
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
d707bfb615
When a user clicks on an editable string, use the correct font for calculating
...
the width. Should fix bug #1640622 .
svn-id: r25139
2007-01-21 08:43:28 +00:00
Max Horn
0485f76c8d
Changed GUI code to do 'lazy'/'just-in-time' reflowing, so that client code doesn't have to forward EVENT_SCREEN_CHANGED to us (this may initially cause some regressions, please report any induced crashes or oddities you observe to me)
...
svn-id: r23663
2006-08-04 15:48:37 +00:00
Max Horn
1a10cacfb9
Renamed handleScreenChanged() -> reflowLayout() in the GUI code
...
svn-id: r23662
2006-08-04 13:55:53 +00:00
Max Horn
c0805830eb
Fix various typenames to comply to the ScummVM coding guidelines
...
svn-id: r22928
2006-06-05 12:22:51 +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
8975ba8963
Cleanup. We no longer need these widget size parameters.
...
svn-id: r22798
2006-05-31 12:09:00 +00:00
Johannes Schickel
ae191feb21
Fixes caret drawing in EditTextWidgets.
...
svn-id: r22678
2006-05-27 12:37:00 +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
Torbjörn Andersson
71d07416cd
Call the inherited handleScreenChanged() method, so that the widget can resize
...
itself on scaler changes.
svn-id: r22537
2006-05-19 22:49:23 +00:00
Torbjörn Andersson
ce749cd44c
Call handleScreenChanged() *before* calling setEditString(). Otherwise
...
_leftPadding may be wrong, or even undefined, when getEditRect() is called,
which may cause ScummVM to trigger an "invalid rect" assertion.
svn-id: r22536
2006-05-19 22:41:51 +00:00
Eugene Sandulenko
4ead8dff26
- Fix spelling in theme config
...
- Introduce embossing shadow
- Less round corners in popup widget
- Custom border in editable text widget
- Matched color in popup widget and editable text widget with mock-ups
- Less round corners in editable text widget
- Text padding in editable text widget
svn-id: r22525
2006-05-18 20:53:28 +00:00
Johannes Schickel
96cf7028b9
- implements .bdf font loader based on convbdf (sure could have some clean up)
...
- adds three different font styles to the themes (normal, bold (default one), italic)
- implements code for specifing the font files in the theme config ('fontfile_normal','fontfile_bold' and 'fontfile_italic' in the 'extra' section)
- changes EditTextWidget to use the normal font (has some minor aligment problems with the caret now, though)
- extends the FontManager (new functions: getFontByName, assignFontToName, removeFontName)
- adds the font style constans to the builtin constants for the evaluator)
svn-id: r21868
2006-04-14 02:16:55 +00:00
Eugene Sandulenko
8a5f44d797
Converted last dialogs to new scheme. Now it seems to be everything. Please,
...
test throghoutly.
svn-id: r21157
2006-03-09 05:18:00 +00:00
Max Horn
b34e207dbb
Change CVS keywords to SVN keywords
...
svn-id: r20518
2006-02-11 10:08:56 +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
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
Max Horn
b43a53f74d
Move more text editing code into class EditableWidget; ListWidget now has all the editing capabilities of EditTextWidget
...
svn-id: r16694
2005-01-29 18:04:34 +00:00
Max Horn
04fc9fe6e7
Started to merge the text editing code in ListWidget and EditTextWidget
...
svn-id: r16692
2005-01-29 16:30:51 +00:00
Max Horn
cffd917165
system.h was being included in tons of places, without any good reason; reduced this (total dependencies on system.h went down from 193 to 85 files)
...
svn-id: r16527
2005-01-10 22:06:49 +00:00
Max Horn
47280d9433
Updated copyright
...
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
9581bd5691
Fix for bug #1091801 (ALL: Possible to create corrupt config file)
...
svn-id: r16379
2004-12-30 12:54:04 +00:00
Max Horn
ce8c99bf62
Rename remaining OSystem methods to match our coding guidelines
...
svn-id: r15332
2004-09-28 20:19:37 +00:00
Max Horn
f59eb3b219
renamed (Const)Iterator to (const_)iterator; changed size() to return an uint
...
svn-id: r12722
2004-02-05 00:19:57 +00:00
Max Horn
033ff78ae9
updated copyright notice
...
svn-id: r12176
2004-01-06 12:45:34 +00:00
Max Horn
b8c0fbf06e
new font code (currently disabled by default), which allows using 'arbitrary' BDF fonts (via convbdf)
...
svn-id: r11350
2003-11-19 23:46:39 +00:00
Max Horn
7d0fcb71a8
cleanup; fixed return/enter in ListWidget when not in editing mode
...
svn-id: r11346
2003-11-18 23:44:28 +00:00
Max Horn
22c22d1e81
added namespace GUI
...
svn-id: r11255
2003-11-10 23:40:48 +00:00
Paweł Kołodziejski
14b7d027a2
cleanup whitespaces
...
svn-id: r11223
2003-11-08 23:22:16 +00:00
Max Horn
ee253d4c90
modified NewGui::drawString to shorten strings which don't fit using ellipsis (disabled for the EditTextWidget for now)
...
svn-id: r11136
2003-11-04 22:00:36 +00:00
Max Horn
f0d2a1b91c
make coordinate calculation based on position of parent -> needed for nested widgets
...
svn-id: r11058
2003-11-02 17:41:01 +00:00
Max Horn
e9ae86bb76
introduced common base class GuiObject for Dialog/Widget -> step towards making it possible to nest widgets (needed for TabWidget)
...
svn-id: r11052
2003-11-02 14:50:53 +00:00
Max Horn
b27a871f87
turned NewGui into a singleton, and made OSystem a pseudo-singleton; added Widget::findWidget (preparing to add support for nested widgets, for the tab widget)
...
svn-id: r11045
2003-11-02 02:18:16 +00:00