Commit Graph

63 Commits

Author SHA1 Message Date
Max Horn
caf142657d setLabel should probably cause an automatic redraw...
svn-id: r17638
2005-04-16 17:53:18 +00:00
Torbjörn Andersson
d0615eb956 Removed unnecessary semi-colons.
svn-id: r17418
2005-04-06 15:21:32 +00:00
Max Horn
47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
a9789acfc6 Moved Surface/Font code into new 'graphics' module
svn-id: r13357
2004-03-21 21:20:25 +00:00
Max Horn
a0bde7a732 Revamped the font code: now it's very easy to switch between the 'original' SCUMM font and any new font... or to have multiple different fonts (like, one for 320x240 and and one for 640x480); furthermore, font rendering can now be done w/o using NewGui
svn-id: r13243
2004-03-13 13:03:25 +00:00
Max Horn
033ff78ae9 updated copyright notice
svn-id: r12176
2004-01-06 12:45:34 +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
Max Horn
8a8743a042 removed PushButtonWidget
svn-id: r11120
2003-11-03 23:33:40 +00:00
Max Horn
9f3edb11c5 added a builtin label to PopUpWidget
svn-id: r11076
2003-11-03 01:00:26 +00:00
Max Horn
cfd658cd29 added built-in label for SliderWidget
svn-id: r11075
2003-11-03 00:43:29 +00:00
Max Horn
56bc737086 Widget::handleCommand delegates unhandled commands to the boss
svn-id: r11071
2003-11-03 00:17:12 +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
72699c3d2b fixed Widget::draw for bordered items to adjust _h; removed unused label param from SliderWidget constructor; cleanup
svn-id: r11041
2003-11-01 22:21:18 +00:00
Max Horn
0e645f88ae renamed namespace ScummVM to Common
svn-id: r10544
2003-10-02 17:43:02 +00:00
Max Horn
0df319e952 #include cleanup (explicityl specify the location for headers from common/, so that we at some point can get rid of -Icommon; exception is made for stdafx.h, since a) we might want to rename it and b) might want to move it to the top level)
svn-id: r9359
2003-08-01 12:21:04 +00:00
Max Horn
8c8f22f65a whitespaces
svn-id: r9125
2003-07-22 16:26:12 +00:00
Max Horn
68f67c98e6 incresed button width a little more for spanish games
svn-id: r6988
2003-04-12 17:19:28 +00:00
Max Horn
ddb1173bf8 grow default buttons size & browser dialog to accomodate for spanish games
svn-id: r6871
2003-03-26 22:41:12 +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
563f99b1fe more -pedantic warnings fixed
svn-id: r6109
2002-12-25 00:38:53 +00:00
Max Horn
d0dff9d727 added TODO comment
svn-id: r5938
2002-12-13 21:43:46 +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
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
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
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
Max Horn
2618a9bfdc use class String for widget labels
svn-id: r4878
2002-08-31 13:42:07 +00:00
Max Horn
14cd6ec272 no reason to limit value to 8 bit!
svn-id: r4669
2002-07-28 14:59:27 +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
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
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