Commit Graph

79 Commits

Author SHA1 Message Date
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