Commit Graph

139 Commits

Author SHA1 Message Date
Torbjörn Andersson
4fb4626ac9 Variable initializations in SliderWidget
svn-id: r7786
2003-05-21 16:18:41 +00:00
Max Horn
3b1d4e4c06 Make it possible to disable popups/checkboxes
svn-id: r6864
2003-03-26 12:30:20 +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
f6de146c5e changed the slider widget, better suited to represent volume settings this way (IMO)
svn-id: r5918
2002-12-12 23:21:29 +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
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
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
Matt Hargett
8390b0cc53 2002-09-21 Matt Hargett <matt@use.net>
* scumm.dsp, scummvm.dsp, simon.dsp: Turn on warning as errors. Generate
    PDBs on all builds.

  * gameDetector.cpp, newgui.cpp, widget.cpp, actor.cpp,
    dialogs.cpp, resource.cpp, saveload.cpp, scumm_renderer.cpp:
    Fix warnings where possible. One pragma added to eliminate
    warning of unknown pragmas.

  * string.cpp: If unknown escape sequence, print warning.

svn-id: r4998
2002-09-22 03:53:53 +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
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
2618a9bfdc use class String for widget labels
svn-id: r4878
2002-08-31 13:42:07 +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
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
f831a948de fixed slider
svn-id: r4646
2002-07-26 23:29:43 +00:00
Max Horn
89a65b7c01 fixed crash on some systems by setting defaults for the slider value range
svn-id: r4636
2002-07-26 15:34:04 +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
e277d392b8 limit slider drag range
svn-id: r4566
2002-07-16 12:01:03 +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
e6f6e5df8f allow static text/button widgets in NewGUI to be drawn centred
svn-id: r4551
2002-07-15 12:59:56 +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
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
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
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