aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.cpp
AgeCommit message (Collapse)Author
2008-06-16Fixed a problem where the function that I previously implemented, ↵Christopher Page
popAllCursors(), was causing the mouse cursor to disapear svn-id: r32719
2008-06-09Implemented popAllCursors() in CursorManager to ensure that all unnecessary ↵Christopher Page
cursors are removed from the cursor stack when returning to the launcher svn-id: r32642
2008-05-07minor tweak to the GUI double click handling codeMax Horn
svn-id: r31922
2008-03-27Patch #1926787: small memory leak and cleanupMax Horn
svn-id: r31261
2007-11-04- starting to document the theme rendererJohannes Schickel
- Theme::closeDialog -> Theme::closeAllDialogs, since it would remove every dialog currently svn-id: r29394
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2007-06-30Changed GUI system to use Common::KeyState stateMax Horn
svn-id: r27786
2007-06-03Fix bugs mentioned in #1730147 "GUI: Classic themes need to be updated"Eugene Sandulenko
svn-id: r27061
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-05-29Fix warning caused by not handling all enum values in a switch (caused by ↵Max Horn
the newly added EVENT_PREDICTIVE_DIALOG constant) svn-id: r27008
2007-05-27Reverted r26922.Johannes Schickel
svn-id: r26967
2007-05-22Simpilified Singleton implementation and usage.Johannes Schickel
svn-id: r26922
2007-04-29Fix for crash when trying to select an outdated/wrong theme config.Johannes Schickel
svn-id: r26670
2007-03-17Moved Event/EventType/keyboard enum from common/system.h (part of class ↵Max Horn
OSystem) to common/events.h (part of namespace Common). Porters may have to make minor changes to their backends to get them to compile again svn-id: r26180
2007-03-17Applied my re-revised patch #1487149 ("Simplified keyboard repeat"), withTorbjörn Andersson
Fingolfin's blessings. Keyboard repeat is now handled by the event manager, rather than by individual engines. Since this can cause problems with some engines (see the AGI engine), the extra "key down" events are marked as "synthetic", so that they can be ignored if necessary. svn-id: r26170
2007-03-17Force all code to use EventManager::pollEvent instead of OSystem::pollEventMax Horn
svn-id: r26156
2007-03-16Added new file gui/object.cpp (collecting GuiObject methods in there), and ↵Max Horn
renamed Dialog::deleteWidget to Dialog::removeWidget (name was misleading, the removed object does *not* get deleted) svn-id: r26147
2007-02-12Merged the "palette manager" into the cursor manager. It was only used toTorbjörn Andersson
manage *cursor* palettes, so the name was misleading. svn-id: r25500
2007-02-09cleanupJohannes Schickel
svn-id: r25435
2007-02-08Moved definition of ThemeClassic and ThemeModern to their own files.Johannes Schickel
svn-id: r25432
2006-12-27Added NewGui::getTopDialog methodMax Horn
svn-id: r24938
2006-10-25- renamed GUI::ThemeNew to GUI::ThemeModernJohannes Schickel
- renamed ThemeNew.cpp to ThemeModern.cpp svn-id: r24512
2006-10-25Formatting.Johannes Schickel
svn-id: r24511
2006-10-25Compile fix when DISABLE_FANCY_THEMES is #definedBertrand Augereau
svn-id: r24510
2006-10-08Final fix for wrong cursor palettes in SCUMM games after using the GUI.Johannes Schickel
svn-id: r24233
2006-10-08Making engines working again.Johannes Schickel
svn-id: r24232
2006-10-08- reworked my commit for r24216, not 'Classic (Builtin)' uses the builtin ↵Johannes Schickel
classic theme and classic uses the classic.ini file - save the chosen theme now svn-id: r24222
2006-10-08- Forcing 'classic' as the builtin classic theme (which means it ignores the ↵Johannes Schickel
classic.ini atm) svn-id: r24216
2006-10-08- Added dialog for selecting the theme to useJohannes Schickel
- Added runtime theme switching svn-id: r24213
2006-10-08- added auto detection of the Theme style to useJohannes Schickel
- fixed a bug which would lead to a crash when loading the modern theme config with the classic theme svn-id: r24201
2006-08-12Whitespace.Torbjörn Andersson
svn-id: r23704
2006-08-04Only refresh the theme & reflow all dialogs if the screen settings actually ↵Max Horn
changed svn-id: r23669
2006-08-04There is no need anymore to report EVENT_SCREEN_CHANGED changes to the GUI codeMax Horn
svn-id: r23668
2006-08-04Changed GUI code to do 'lazy'/'just-in-time' reflowing, so that client code ↵Max Horn
doesn't have to forward EVENT_SCREEN_CHANGED to us (this may initially cause some regressions, please report any induced crashes or oddities you observe to me) svn-id: r23663
2006-08-04Renamed handleScreenChanged() -> reflowLayout() in the GUI codeMax Horn
svn-id: r23662
2006-07-23String class usage cleanupMax Horn
svn-id: r23582
2006-07-14More whitespace changes.Torbjörn Andersson
svn-id: r23496
2006-06-16The top dialog can change during the event loop. In that case, flush all theTorbjörn Andersson
dialog-related events since they were probably generated while the old dialog was still visible, and therefore note intended for the new one. This hopefully fixes strange behaviour/crashes with pop-up widgets. (Most easy to trigger in 3x mode or when running ScummVM under Valgrind.) svn-id: r23141
2006-06-15- Adds 'THEME_HINT_NO_BACKGROUND_RESTORE' for buttons which don't want ↵Johannes Schickel
restored background (example: the tab scrolling buttons). - Call _theme->drawAll() at the end of the redraw method of NewGui svn-id: r23134
2006-06-13Disable the theme before restoring the cursor, not afterwards. Otherwise thereTorbjörn Andersson
may be a noticeable amount of time (disabling the theme can be comparatively slow) where the cursor is wrong. svn-id: r23082
2006-06-08- Removes (obsolete) USE_AUTO_SCALE defineJohannes Schickel
- typo fix svn-id: r22987
2006-06-03*Loads* of Common::String related optimizations. Woa, *tons* of methods were ↵Max Horn
copying strings needlessly svn-id: r22873
2006-06-03When the screen changes, redraw all dialogs *immediately* rather than waitingTorbjörn Andersson
for the main loop to check for _needRedraw. Otherwise subsequent events can cause widgets to be redrawn before the theme has had a chance to re-open the dialogs, and this could cause at least the modern theme to crash. svn-id: r22860
2006-05-27Don't "tickle" a dialog until after it has had a chance to redraw itself,Torbjörn Andersson
otherwise it may be in an inconsistent state since the modern theme uses openDialog() to allocate a surface as large as he dialog itself. This fixes a crash when changing to a bigger scaler when the About dialog is running. svn-id: r22688
2006-05-27Major GUI update:Eugene Sandulenko
- Implemented padding in console - Update only current line in console instead of whole screen - Fixed caret positioning in edit text widget - Improved buttons drawing, now they look more realistic - Added label spacing in popup widget - Correct shadow in popup widget - Fixed up with selected popup widget being drawn on wrong tab - Added shading to list dialog - Adjusted shading of inactive widgets - Proper coloring of browset (add game) dialog - Introduced Container widget - Used Container widget in scumm save/load dialog. Now it looks properly - Adjusted button colors even more. Now they match almost perfectly albeit with banding - Made scrollbar appear only when it is really needed svn-id: r22670
2006-05-25The GUI never asked for the cursor to be visible. I'm not sure why that used toTorbjörn Andersson
work before the cursor manager. Oh well, the launcher should have a visible cursor again, knock on wood. svn-id: r22641
2006-05-25Set and show/hide mouse cursors through a "cursor manager" (analogous to theTorbjörn Andersson
recently added (cursor) palette manager) so that the cursor can be properly restored after returning from the GUI. If there's any C++ magic that can keep the backend functions from being called by anything else than these managing classes, that would probably be a good idea. Also, since the cursor manager keeps a copy of the cursor image, perhaps there are at least some backends that will no longer need to? svn-id: r22639
2006-05-20After the GUI has finished, restore the old cursor palette (if any). For thisTorbjörn Andersson
to work, cursor palette now has to be set using the new "palette manager". See graphics/paletteman.cpp svn-id: r22543
2006-05-20Set a cursor palette for the classic theme, as well. Otherwise we'll get theTorbjörn Andersson
wrong colours in many games. svn-id: r22540
2006-04-19Adds handleScreenChanged() to NewGui, so (scumm) engine can call it when it ↵Johannes Schickel
recives a EVENT_SCREEN_CHANGED. svn-id: r22025