Torbjörn Andersson
41f69db19f
Cleanup.
...
svn-id: r18324
2005-06-03 12:33:03 +00:00
Torbjörn Andersson
bf89c8a4b9
The GUI has reached the point where I think it's safe to begin removing the
...
old auto-scaling hack. Removed wantsScaling(), USE_AUTO_SCALING,
_scaleFactor and _scaleEnable.
Also removed drawBitmap() since we no longer use bitmaps for widget
decorations.
svn-id: r18310
2005-06-02 12:29:01 +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
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
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
Max Horn
79241d323f
Start work on support for 'big' widgets
...
svn-id: r18060
2005-05-11 19:30:30 +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
848a6bcaea
Forgot to remove this
...
svn-id: r17103
2005-03-12 17:03:59 +00:00
Max Horn
1fde0d90f4
Fix popup widget in scaled GUI mode
...
svn-id: r17099
2005-03-12 15:29:16 +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
4fae197c67
Patch #1092994 (Selfscaling GUI)
...
svn-id: r16455
2005-01-06 19:09:34 +00:00
Max Horn
47280d9433
Updated copyright
...
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
a40ed29abd
Renamed _clickedWidget -> _dragWidget; if a drag is in process, send the mouse moved / mouse up events to the widget on which the drag is performed (this fixes at least one bug and improves the user experience)
...
svn-id: r16362
2004-12-28 21:07:34 +00:00
Max Horn
71051f551e
Fix bug #1091189 (GUI: Launcher List/Edit game interaction)
...
svn-id: r16326
2004-12-25 23:20:37 +00:00
Max Horn
033ff78ae9
updated copyright notice
...
svn-id: r12176
2004-01-06 12:45:34 +00:00
Max Horn
1b127480af
erik's patch for bug #854470
...
svn-id: r11521
2003-12-06 13:55:50 +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
767fc87148
fixed memory leak in TabWidget
...
svn-id: r11191
2003-11-07 14:50:32 +00:00
Jonathan Gray
239aea0ff0
spelling fixes
...
svn-id: r11178
2003-11-07 02:31:44 +00:00
Max Horn
8a8743a042
removed PushButtonWidget
...
svn-id: r11120
2003-11-03 23:33:40 +00:00
Max Horn
1d9ac7b91b
more changes to allow widget nesting to fully work
...
svn-id: r11068
2003-11-02 22:31:20 +00:00
Max Horn
ac4b9ccdb8
refactored code in Dialog::findWidget to Widget::findWidgetInChain; changed NewGui::box() to take colors as param (instead of hard coding _color and _shadowColor)
...
svn-id: r11061
2003-11-02 18:57:20 +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
Max Horn
0e645f88ae
renamed namespace ScummVM to Common
...
svn-id: r10544
2003-10-02 17:43:02 +00:00
Torbjörn Andersson
20dd02a833
Don't check for hotkeys when ascii is 0, since that is the default hotkey
...
for widgets that have none. (This means the Shift key words in text edit
widgets again, for instance.)
svn-id: r9148
2003-07-23 16:44:15 +00:00
Max Horn
660ca0f526
fixed button hotkeys in dialogs with a focused widget (e.g. the F5 save/load dialog)
...
svn-id: r9127
2003-07-22 16:30:00 +00:00
Paweł Kołodziejski
aa3766018f
updated copyrights headers
...
svn-id: r6726
2003-03-06 21:46:56 +00:00
Paweł Kołodziejski
1ff9749b87
and more cleanup .... Last
...
svn-id: r6721
2003-03-06 19:52:54 +00:00
Max Horn
17cf386e88
changed the key input system in NewGUI: pass both the keycode and the ascii value to handleKeyUp/Down. Also, use this to fix the key repeat code (see bug #626225 )
...
svn-id: r5691
2002-11-22 14:02:54 +00:00
Max Horn
9ff12dbc01
Implemented EditTextWidget; fixed Add Game/Remove Game in launcher; make use of EditTextWidget in EditGameDialog; various other tweaks
...
svn-id: r5665
2002-11-21 15:20:52 +00:00
Max Horn
ce3cde15a0
added some preliminary game auto detect code to the launcher; this required a small change to the FS API, Windows/Morphos code will have to be adapted slightly I fear. Also, not all games are detected correctly, and some probably never will be, so we still have to add a dialog for cases where auto detect doesn't work
...
svn-id: r5600
2002-11-19 01:36:47 +00:00
Max Horn
bc883a5f1a
fixed dialog redrawing (when you switched in the save/load dialog between save and load mode, it would loose the transparency)
...
svn-id: r5512
2002-11-10 19:39:32 +00:00
Max Horn
56a41a26c0
make buttons 2 pixel wider (fixes 'Options' button); don't use non-portable hack to swap ints
...
svn-id: r5427
2002-11-05 22:34:50 +00:00
Max Horn
7198181b09
reworked the way the save/load dialog works. yup, still not perfect, but we're hopefully getting closer. Feedback welcome
...
svn-id: r5189
2002-10-19 01:22:41 +00:00
Max Horn
b1766c28b2
patch #620627 : mouse wheel support for NewGui
...
svn-id: r5169
2002-10-16 20:32:12 +00:00
Max Horn
d5bcb63f82
dialogs now can be run 'modal'
...
svn-id: r5168
2002-10-16 17:37:30 +00:00
Max Horn
42c7315eed
some more launcher tweaks
...
svn-id: r5138
2002-10-13 11:51:48 +00:00
Max Horn
cdb7b13789
revised options dialog
...
svn-id: r5130
2002-10-12 00:26:24 +00:00
Max Horn
3d7552890a
fixed ListWidget drawin/behaviour if there are less items than fit on one page; enhanced launcher dialog to disable start button if nothing is selected
...
svn-id: r5068
2002-10-01 23:11:19 +00:00
Max Horn
94b55db821
patch #612722 : MI2 NewGui title fix
...
svn-id: r5030
2002-09-28 19:25:09 +00:00
Max Horn
859ef578dc
moved the Scumm specific dialogs to scumm/dialogs.*
...
svn-id: r4973
2002-09-19 17:44:41 +00:00
Max Horn
bb57506d48
Added overlay to OSystem interface; implemented overlay in SDL backend (all other backends, including SDL_gl, still need to implement this!); changed NewGUI to make use of the overlay; added Cmd-Q as a shortcut for Quit on MacOS X
...
svn-id: r4971
2002-09-19 16:06:51 +00:00
James Brown
978e879009
Fix newgui crash, and commit patch 600645: Loom flashlight fix
...
svn-id: r4958
2002-09-17 12:52:53 +00:00
James Brown
79857fd7e8
Replace some exit()'s with a call to the OSystem quit method, as per 610251.
...
svn-id: r4956
2002-09-17 04:52:50 +00:00
Max Horn
5a01787840
removing debug message
...
svn-id: r4922
2002-09-10 11:52:37 +00:00
Max Horn
c0df1c2df2
changed the way listbox draw selected items; list box now has a frame & different spacing; clicking outside any widget doesn't cause the focus widget to loose focus; other tweaks
...
svn-id: r4906
2002-09-08 16:00:13 +00:00
Max Horn
523d8e64c0
rewrote config class; cleanup; code restructuring
...
svn-id: r4903
2002-09-08 01:08:12 +00:00
Paweł Kołodziejski
97ef7c2a34
more resolution fixes
...
svn-id: r4895
2002-09-01 16:37:08 +00:00
Max Horn
828d0849a1
fix for bug #599511 (crash when choosing 'about' option)
...
svn-id: r4883
2002-08-31 14:53:26 +00:00
Max Horn
41c2d6fba3
sound system cleanup
...
svn-id: r4867
2002-08-29 23:45:15 +00:00
Paweł Kołodziejski
9f993a1d29
synced with scummvm
...
svn-id: r4821
2002-08-24 15:31:37 +00:00
Max Horn
96476a9ca0
refixed #include
...
svn-id: r4792
2002-08-21 16:33:56 +00:00
Max Horn
e03fb646af
oops, accidentally checked in a hacked up version of this :-)
...
svn-id: r4791
2002-08-21 16:30:39 +00:00
Max Horn
ce46866403
Initial revision
...
svn-id: r4785
2002-08-21 16:07:07 +00:00
Paweł Kołodziejski
105f966c6a
moved to Sound class
...
svn-id: r4744
2002-08-14 20:43:56 +00:00
Max Horn
77daed66ea
Fixed (worked around?) the nested dialog redraw bug; slightly changed the way mouseMoved events are handled in class Dialog
...
svn-id: r4694
2002-08-04 01:18:06 +00:00
Max Horn
72efbd36b6
NewGUI fixes: save game numbering starts at 0; allow to load autosave
...
svn-id: r4693
2002-08-04 00:44:49 +00:00
Max Horn
18c2d3a4da
added TODO
...
svn-id: r4674
2002-07-28 20:10:39 +00:00
Max Horn
6dd5de48f9
added constants for the default volumes; changed the volume ranges from 0-255 to 0-256
...
svn-id: r4670
2002-07-28 15:03:45 +00:00
Max Horn
39670a73c0
heaps of changes to NewGUI: mouseDown/Up events now count the clicks (so you can detect double/triple clicks); ListWidget sends a message if an item was double clicked or changed; you can abort editing in the ListWidget by pressing ESC; SaveLoadDialog will save when you double click and item, and when you finish editing an item by pressing return, will save
...
svn-id: r4656
2002-07-27 14:16:14 +00:00
Max Horn
403afb0514
added isEmpty() methods to String and List class; fixed crasher that occured when saving/loading in NewGUI when nothing was selected
...
svn-id: r4655
2002-07-27 13:27:34 +00:00
Max Horn
00c4ba1b9b
removed test widgets from save/load dialog
...
svn-id: r4650
2002-07-27 00:46:05 +00:00
Max Horn
95ca2ea043
added support for right aligned text; made use of that in the sound dialog; less redrawing in the sound dialog
...
svn-id: r4649
2002-07-27 00:36:09 +00:00
Max Horn
c318fed633
improved the sound dialog; but my goal is to get rid of it, and merge the sound & misc dialogs into the options dialog
...
svn-id: r4648
2002-07-27 00:05:46 +00:00
Max Horn
e0f1d6c5aa
make sure the mouse over widget and the focused widget are informed when the dialog is closed
...
svn-id: r4645
2002-07-26 20:38:55 +00:00
Max Horn
84c8d4b689
added painelf's (still unfinished) sound dialog in NewGUI. Beware, this is work in progress, don't report problems with it just yet, we already know they are there :-)
...
svn-id: r4635
2002-07-26 00:41:07 +00:00
Max Horn
6d68c4a545
added khalek's about dialog (but changed the text items to be centered)
...
svn-id: r4600
2002-07-19 10:10:02 +00:00
Max Horn
6e6c3c3c96
put stuff in util.h into namespace ScummVM; fixed stupid bug in String class; took painelf's patch which implements save/load dialog in new GUI and fixed it slightly; various other minor changes
...
svn-id: r4591
2002-07-18 20:26:35 +00:00
Max Horn
0e141368b0
fixed spllng
...
svn-id: r4581
2002-07-16 22:34:16 +00:00
Max Horn
a94f9de525
patch by painelf that enables editing in the ListWidget (alas as usual with many mods to his patch by me :-)
...
svn-id: r4561
2002-07-16 10:52:48 +00:00
Max Horn
c3c11b79cb
added latest of painelf's patches which makes NewGui handle system events directly (code becomes much cleaner and more powerful this way); he also implemented a 'focus' item in NewGui; atop of this several changes of my own that further improve the GUI behaviour
...
svn-id: r4541
2002-07-13 22:41:29 +00:00
Max Horn
1238d74227
took painelf's change, modified it a lot, and now here's the result :-)
...
svn-id: r4540
2002-07-13 18:32:09 +00:00
Max Horn
9514e7012e
some cleanup
...
svn-id: r4534
2002-07-13 12:02:10 +00:00
James Brown
86a2ca6b82
Let ListWidget have an 'active' item
...
svn-id: r4529
2002-07-13 09:19:23 +00:00
Max Horn
e34571dca9
Countless changes to the New GUI; some hightligths: new ScrollBarWidget class; ListWidget is usable (demo shows it off); added custom String/StringList classes
...
svn-id: r4521
2002-07-12 16:24:11 +00:00
Max Horn
c60670d561
added prototype ListWidget (doesn't do anything yet, only serves to demo how it might look); renamed various NewGui methods and added frameRect method; made NewGui use our 'own' GUI colors (no worries if you don't like them, this is just an experiment); StaticTextWidget now clones its label (preventing problems when a game was loaded, thus invalidating string locations in memory)
...
svn-id: r4513
2002-07-10 22:49:41 +00:00
Max Horn
d32e3ad11f
improved the alpha blending code, now works properly for nesting/redraw (changed meaning of WIDGET_CLEARBG a little bit for this)
...
svn-id: r4509
2002-07-10 16:49:45 +00:00
Max Horn
0a9baabbdc
replaced clearArea with the more general fillArea; added get/setValue methods to SliderWidget; changed look of SliderWidget a little bit; optimized drawing of SliderWidget
...
svn-id: r4500
2002-07-08 22:11:47 +00:00
James Brown
06d85ff2cb
Fix mouseout
...
svn-id: r4497
2002-07-08 13:54:11 +00:00
James Brown
7be66a5f05
Add slider widget
...
svn-id: r4496
2002-07-08 13:52:50 +00:00
Max Horn
32ea67dfed
got rid of RTTI again (i.e. dynamic_cast)
...
svn-id: r4492
2002-07-08 11:55:55 +00:00
Max Horn
28852f1497
implemented hotkey support in new GUI code
...
svn-id: r4488
2002-07-08 00:29:47 +00:00
Max Horn
c9b1d393b8
delay creation of dialogs till they are used; fixed new pause dialog & use it instead of the old one; dirty area handling in new gui code is more logical/useful now
...
svn-id: r4487
2002-07-08 00:10:11 +00:00
Max Horn
c3b606cd9b
added CheckboxWidget; added NewGui::drawBitmap
...
svn-id: r4486
2002-07-07 23:37:47 +00:00
Max Horn
10d86be564
added options dialog; added NewGui TODO list;
...
svn-id: r4485
2002-07-07 22:44:30 +00:00
Max Horn
2b50e2a7c0
added dialog nesting code (for now using std::stack, I will provide my own stack class later
...
svn-id: r4483
2002-07-07 21:46:53 +00:00
Max Horn
2d72eb552c
once more indent, after adding -TDialog and -TWidget
...
svn-id: r4474
2002-07-07 17:49:25 +00:00
Max Horn
2d73a779cb
applied indent to a couple of source files; added .indent.pro file with default indent settings as per readme.txt
...
svn-id: r4469
2002-07-07 13:14:34 +00:00
Max Horn
671678a6c5
added mouse over effect
...
svn-id: r4466
2002-07-06 12:57:51 +00:00
Max Horn
84cafcc64a
new experimental GUI code
...
svn-id: r4463
2002-07-05 16:56:53 +00:00