545 Commits

Author SHA1 Message Date
Torbjörn Andersson
4d9edbedc6 Made the chooser dialog scale itself, albeit in a slightly hackish way.
svn-id: r18194
2005-05-20 15:59:29 +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
81453854ee Big version of the popup widget. It could use a bit more polish, though...
svn-id: r18185
2005-05-19 17:03:31 +00:00
Torbjörn Andersson
7d0d766988 More scaling work. It's still more about infrastructure than layout: I want
to give each widget the opportunity to scale itself.

There's a slight regression this time, though: In the small version of the
GUI, some of the buttons (e.g. "SoundFont") have their text truncated. Not
good.

svn-id: r18182
2005-05-19 13:10:57 +00:00
Torbjörn Andersson
d927a41638 Make sure the labels for the volume sliders aren't truncated. (This is my
last scaling change today. Feel free to continue. :-)

svn-id: r18172
2005-05-18 16:17:25 +00:00
Torbjörn Andersson
35dda2b636 Added big slider widget. There is nothing in the widget itself that's
dependent on size, so the two different sizes are handled through a new
addSlider() function.

Figuring out why the big widget won't let you set volume to 0 is left as an
exercise for the reader.

svn-id: r18170
2005-05-18 15:58:39 +00:00
Torbjörn Andersson
4aac7819d1 Some more scaling work. Parts of the options dialogs scale themselves. Some
of them better than others.

svn-id: r18165
2005-05-18 14:11:53 +00:00
Max Horn
81287495e9 Remove duplicate _ws member
svn-id: r18164
2005-05-18 10:30:52 +00:00
Max Horn
4c9761592a Remove the label code from SliderWidget (simplifies it a lot); instead use a StaticTextWidget for the label
svn-id: r18163
2005-05-18 10:24:02 +00:00
Max Horn
77a237c86e Revised scrollbar look again
svn-id: r18162
2005-05-18 10:17:00 +00:00
Torbjörn Andersson
ef8e42473a Made use of addCheckbox(). I had to add an alternative form of the function
because most checkboxes are on tabs. (We'll probably need a similar form of
addButton() as well.)

svn-id: r18161
2005-05-18 10:12:20 +00:00
Torbjörn Andersson
f0e43fb2a6 New function: addCheckbox()
svn-id: r18159
2005-05-18 09:21:03 +00:00
Torbjörn Andersson
16a1f8814b Big version of the checkbox widget.
svn-id: r18154
2005-05-18 07:23:21 +00:00
Max Horn
e05da91674 Added automatic word wrapping to the about scroller
svn-id: r18145
2005-05-17 23:41:35 +00:00
Max Horn
42db49b15a Center about dialog, and make it just wide enough to display the credits, but not wider
svn-id: r18139
2005-05-17 21:40:29 +00:00
Torbjörn Andersson
4ecb6d650f Added "big" version of the Tab widget, and made use of it.
svn-id: r18134
2005-05-17 06:19:42 +00:00
Torbjörn Andersson
99ef35bdd4 Fixed caret regression in editable text fields.
svn-id: r18133
2005-05-17 06:19:11 +00:00
Torbjörn Andersson
c64467af1a Fixed drawing of the caret. (It was drawn using the GUI font, rather than
the widget's font.)

svn-id: r18130
2005-05-16 13:43:31 +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
Torbjörn Andersson
469319aa70 Made the buttons scale themselves too.
svn-id: r18127
2005-05-16 10:26:20 +00:00
Torbjörn Andersson
6a0ba15b0d Made the file/directory browser dialog scale itself.
svn-id: r18126
2005-05-16 09:24:28 +00:00
Torbjörn Andersson
6bcfb6ed97 Fixed the SoundFont button's behaviour in the Edit Game dialog.
svn-id: r18125
2005-05-16 06:33:33 +00:00
Max Horn
2935434504 Enlarge the option dialogs; note that the widgets should be rearranged / enlarged, too; they aren't yet
svn-id: r18123
2005-05-16 00:38:30 +00:00
Max Horn
c9290b68ff Made the launcher dialog scale itself
svn-id: r18122
2005-05-16 00:26:23 +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
8c3085eb2b Center button label vertically, too (possible now that the GUI scaling is off)
svn-id: r18117
2005-05-15 18:22:17 +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
f2646d3e53 Turn off auto scaling for now
svn-id: r18114
2005-05-15 17:59:27 +00:00
Max Horn
2425e657a2 Add a switch which allows turning off the automatic GUI scaling easily
svn-id: r18112
2005-05-15 17:08:44 +00:00
Max Horn
2d40452a11 Unified rules that determine when a dialog shall use its 'big' mode and when its 'normal' mode; MessageDialog uses Font::wordWrapText now; MessageDialog scales itself now
svn-id: r18111
2005-05-15 17:01:32 +00:00
Max Horn
1043554591 Word wrap the 'features' string
svn-id: r18110
2005-05-15 16:19:43 +00:00
Eugene Sandulenko
5c228fc028 Forgot to credit Ivan for his gob engine. Now fix that.
svn-id: r18075
2005-05-12 21:12:46 +00:00
Torbjörn Andersson
8e7c4ffa37 Quick fix to make button texts etc. draw at the correct position. (They
were being drawn at unscaled coordinates.) I don't know if this is the
correct fix, but the change is small and easy to revert, if need be.

svn-id: r18072
2005-05-12 15:46:03 +00:00
Max Horn
cccbb52e1e Do not autoscale about dialog, rather let it scale itself properly
svn-id: r18061
2005-05-11 19:31:23 +00:00
Max Horn
79241d323f Start work on support for 'big' widgets
svn-id: r18060
2005-05-11 19:30:30 +00:00
Max Horn
1a615346ab Moved class SoundMixer to Audio::Mixer (didn't call the namespace 'Sound' because we already have many classes with that name)
svn-id: r18039
2005-05-10 23:48:48 +00:00
Max Horn
52bbc86797 Patch #1181544 (AmigaOS 4 changes)
svn-id: r18011
2005-05-09 21:21:21 +00:00
Max Horn
2801693db5 Added LordHoto to credits
svn-id: r17984
2005-05-09 00:11:08 +00:00
Max Horn
74aed6382b cleanup
svn-id: r17980
2005-05-08 23:39:37 +00:00
Max Horn
3279513b64 A simple widget which renders any 16 bit graphics surface given to it (part of patch #1163026)
svn-id: r17977
2005-05-08 22:38:29 +00:00
Max Horn
cca744f69a Comply to our coding conventions
svn-id: r17975
2005-05-08 21:49:52 +00:00
Max Horn
2eb868d2a3 Fix doxygen warning
svn-id: r17969
2005-05-08 17:05:19 +00:00
Max Horn
1f3ce23da8 GameDetector isn't actually used here
svn-id: r17757
2005-04-22 21:20:22 +00:00
Max Horn
25d56525c8 Replace OSystem::hasAlpha with a feature flag
svn-id: r17695
2005-04-19 20:35:48 +00:00
Max Horn
2141a2648c Use variable width scrollbar in the console dialog
svn-id: r17652
2005-04-17 12:03:03 +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
f4a5d245b5 Updated TODO list
svn-id: r17649
2005-04-17 11:26:13 +00:00
Max Horn
919af98314 Added Dialog::wantsScaling(), to allow dialogs to turn off automatic scaling
svn-id: r17646
2005-04-17 11:20:59 +00:00
Max Horn
aea451f092 Reunify DirBrowserDialog and FileBrowserDialog; implemented file browser mode for OSX, too; fixed some memory leaks in the launcher
svn-id: r17639
2005-04-16 17:55:09 +00:00
Max Horn
caf142657d setLabel should probably cause an automatic redraw...
svn-id: r17638
2005-04-16 17:53:18 +00:00