Johannes Schickel
a1e56adad8
GUI: Use in-place Surface conversion in widget code.
2012-08-28 02:28:17 +02:00
Johannes Schickel
0cf00ddfe2
GUI: Make container widget a bit more container like.
...
Now it is possible to add sub widgets to a ContainerWidget and allow for these
to get events too.
2012-07-09 02:18:22 +02:00
Johannes Schickel
c1426f783d
GUI: Use a black rect when no thumbnail is available in the thumbnail load chooser.
2012-06-29 16:16:28 +02:00
Johannes Schickel
80ae9d7d34
GUI: Allow tooltips to be changed after widget creation.
2012-06-20 03:31:50 +02:00
Johannes Schickel
cebbc11dac
GUI: Allow Surfaces with abitrary RGB pixel formats to be used in PicButtonWidget and GraphicsWidget.
...
Only 1Bpp aka paletted surfaces are not supported.
2012-06-13 04:48:34 +02:00
Oleksiy Kurochko
e6c317a922
GUI: Implemented pressed state for buttons
2012-05-03 19:32:08 +03:00
Tarek Soliman
be0f8407b6
GUI: Handle adding clear buttons that don't exist in layouts
...
The buttons in the keymapper are dynamically generated and don't exist in
the layout; They have no name.
2011-12-13 08:37:18 -06:00
Tarek Soliman
c6e001a1f5
GUI: Move addClearButton() from options.cpp to widget.cpp
...
This is so it can be used outside options.cpp
2011-12-13 08:36:41 -06:00
Eugene Sandulenko
b0fe2bbaf9
GUI: Made PicButtonWidget derivative of ButtonWidget
2011-10-25 14:56:04 +01:00
Eugene Sandulenko
9e0c1a38e1
GUI: Consistent behavior of ButtonWidget::setLabel()
2011-08-06 11:30:58 +01: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
David Turner
6412b1d2c7
GUI: Fix Memory Leak from PicButtonWidget _gfx Member.
...
This widget is only currently used by Hugo.
svn-id: r55364
2011-01-20 22:32:30 +00:00
Eugene Sandulenko
04a9082d02
GUI: Implement PicButtonWidget
...
It is a button with picture intead of text. To be used by Hugo engine
svn-id: r55099
2011-01-03 12:23:50 +00:00
Eugene Sandulenko
d6695e180c
GUI: Fix tooltip drawing
...
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-23 19:36:47 +00:00
Johannes Schickel
e5e94d4511
Strip trailing whitespaces in our common code base.
...
svn-id: r51094
2010-07-21 18:17:51 +00:00
Eugene Sandulenko
01f9006ee7
GUI: Implement tooltips. FR #2821513 .
...
FR #2821513 : "GUI: add tooltips".
Added tooltips for Add Game button, clear field buttons and couple
other.
Current problem: Only first call correctly restores text. I could
not find where restore information gets lost.
svn-id: r49774
2010-06-15 10:52:35 +00:00
Eugene Sandulenko
dc040aa867
GUI: Implement radiobuttons.
...
Implement radiobuttons in GUI. Also closes FR #2821529 :
"GUI: volume and subtitles speed sliders".
Subtitle toggle button is replaced by three radiobuttons grouped
by a single group.
Updated translations and themes.
svn-id: r49767
2010-06-15 10:48:39 +00:00
Eugene Sandulenko
3fafa07ab0
GUI: Added in-place hotkeys for widgets.
...
Now it is possible to specify hotkeys in place for ButtonWidget
and CheckboxWidget (the only widgets with hotkeys now).
Use de-facto standard with putting hotkey between tildes (~).
Like '~O~pen'. The tildes gets stripped before after hotkey
is extracted.
This is done for giving translators possibility to specify
their own hotkeys.
Old hotkeys defined at widget instance creation are left for
leaving possibility to specify non-printable hotkeys such as
Common::ASCII_ESCAPE.
Translation files were updated respectively.
svn-id: r49766
2010-06-15 10:47:31 +00:00
Max Horn
6e78fdc161
cleanup
...
svn-id: r48240
2010-03-11 23:40:40 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Johannes Schickel
e7bf64744b
Got rid of GuiManager::clearDragWidget instead handle it via a new widget flag WIDGET_IGNORE_DRAG.
...
svn-id: r35662
2009-01-02 01:31:46 +00:00
Max Horn
f26f85ee96
GUI: Added Widget::setVisible convenience wrapper
...
svn-id: r35572
2008-12-27 14:36:28 +00:00
Jordi Vilalta Prat
bce76931d3
Added valueToBarWidth to calculate SliderWidget's bar width like it was done before (as discussed with LordHoto)
...
svn-id: r35519
2008-12-24 01:11:58 +00:00
Jordi Vilalta Prat
f75893a294
Modify the SliderWidget value by using the mouse wheel
...
svn-id: r35513
2008-12-23 23:36:38 +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
144be21bed
GUI: Got rid of the WidgetSize stuff
...
svn-id: r35022
2008-11-12 13:14:44 +00:00
Max Horn
fa942c42cc
GUI: Got rid of most 'built-in' variables
...
svn-id: r35018
2008-11-12 12:53:53 +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
Max Horn
0508fec8a8
Pushing down some header deps
...
svn-id: r34936
2008-11-08 01:30:32 +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
Torbjörn Andersson
1cb4578d2f
Cleanup.
...
svn-id: r30357
2008-01-09 21:15:34 +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
Eugene Sandulenko
4073e7f8f8
Proper implementation of ".enabled" theme widget property.
...
svn-id: r29282
2007-10-28 12:02:09 +00:00
Max Horn
2243197f50
Changed GUI system to use Common::KeyState state
...
svn-id: r27786
2007-06-30 12:26:59 +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
Max Horn
56b00f05cc
Replaced 'typedef Common::String String' with explicit usages of Common::String (mainly to make doxygen happy)
...
svn-id: r25360
2007-02-03 21:32:18 +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
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
1d72b954c7
Introduces special switch for GraphicsWidget for use of theme transparency again.
...
svn-id: r22746
2006-05-29 14:55:43 +00:00
Johannes Schickel
0165c98e00
- adds option to fill GraphicsWidgets with a special color
...
- updates builtin theme config for my next commit
- bumps theme config
svn-id: r22743
2006-05-29 14:38:56 +00:00
Johannes Schickel
0a557cf2a4
- changes transparency parameter of Theme::drawSurface to alpha parameter.
...
- adds possibility to draw GraphicsWidgets with alpha values.
svn-id: r22738
2006-05-29 14:00: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
Eugene Sandulenko
e982782281
Fix bug #1483272 : "GUI: SCUMM pause dialog breaks upon scaler switch". Also
...
fix same problem in scumm help dialog.
svn-id: r22522
2006-05-18 16:44:44 +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
819033b649
o Move built-in evaluator constants to AssocArray to speed it up
...
o Introduced .align text widget property
o Moved all text widgets to use it and populated theme config file
svn-id: r21420
2006-03-24 01:24:26 +00:00
Eugene Sandulenko
c9970b78b5
Rearrange launcher.
...
Logo is still shown weirdly.
svn-id: r21268
2006-03-14 02:19:38 +00:00
Eugene Sandulenko
c3f91ca288
Converted all scumm dialogs to new scheme
...
svn-id: r21147
2006-03-09 01:08:25 +00:00