aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.h
AgeCommit message (Collapse)Author
2008-03-27Patch #1926787: small memory leak and cleanupMax Horn
svn-id: r31261
2008-01-27Removed trailing spaces.Jordi Vilalta Prat
svn-id: r30664
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-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-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-11-08Fix bug #1590596: "HE: When 3x graphics are choosen, F5 crashes game"Eugene Sandulenko
svn-id: r24656
2006-10-08Final fix for wrong cursor palettes in SCUMM games after using the GUI.Johannes Schickel
svn-id: r24233
2006-10-08- Added dialog for selecting the theme to useJohannes Schickel
- Added runtime theme switching svn-id: r24213
2006-08-04There is no need anymore to report EVENT_SCREEN_CHANGED changes to the GUI codeMax Horn
svn-id: r23668
2006-06-05Fix various typenames to comply to the ScummVM coding guidelinesMax Horn
svn-id: r22928
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-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-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-04-19Adds handleScreenChanged() to NewGui, so (scumm) engine can call it when it ↵Johannes Schickel
recives a EVENT_SCREEN_CHANGED. svn-id: r22025
2006-04-14- implements .bdf font loader based on convbdf (sure could have some clean up)Johannes Schickel
- adds three different font styles to the themes (normal, bold (default one), italic) - implements code for specifing the font files in the theme config ('fontfile_normal','fontfile_bold' and 'fontfile_italic' in the 'extra' section) - changes EditTextWidget to use the normal font (has some minor aligment problems with the caret now, though) - extends the FontManager (new functions: getFontByName, assignFontToName, removeFontName) - adds the font style constans to the builtin constants for the evaluator) svn-id: r21868
2006-03-24Reduce (indirect) dependencies on gui/eval.h (and thus common/assocarray.h) ↵Max Horn
to a minimum svn-id: r21426
2006-03-08o Converted most (all?) widgets to new scheme.Eugene Sandulenko
o Converted global options dialog to new scheme. svn-id: r21137
2006-03-07More work on customizable GUI.Eugene Sandulenko
o Implemented special alias 'prev' o Added new calling scheme to several widgets o Partially converted launcher dialog to new scheme o Converted couple widgets of chooser dialog svn-id: r21118
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20518
2006-01-27 - adds the new gui renderer also a new implementation for the classic guiJohannes Schickel
- adds a ImageMan and ImageDec class for loading and managing image files - adds a loader for zip files which is used by the new theme and the image manager - changes the widgets to use the new gui code - changes the scumm dialogs to use the new gui code - fixes a #include problem in the sky debugger with the new gui code To use the new gui copy gui/themes/default-theme.zip to your extrapath. If the theme zip can not be found the gui will fallback to the classic theme. If you want to change the gui styles use "gui_theme=classic" for the classic theme and "gui_theme=default-theme" for the new theme. Thanks to eriktorbjorn for testing and help with the new theme and to sev for reviewing this patch. svn-id: r20227
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-06-03The alternative form of drawString() is no longer needed.Torbjörn Andersson
svn-id: r18326
2005-06-02The GUI has reached the point where I think it's safe to begin removing theTorbjörn Andersson
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-05-20Added big editable text widget, and removed some cruft. I think this meansTorbjörn Andersson
that all our widgets are able to scale themselves now, but I could be mistaken. svn-id: r18192
2005-05-12Quick fix to make button texts etc. draw at the correct position. (TheyTorbjörn Andersson
were being drawn at unscaled coordinates.) I don't know if this is the correct fix, but the change is small and easy to revert, if need be. svn-id: r18072
2005-05-11Start work on support for 'big' widgetsMax Horn
svn-id: r18060
2005-04-17Added Dialog::wantsScaling(), to allow dialogs to turn off automatic scalingMax Horn
svn-id: r17646
2005-04-16Patch #1183808 (GUI: Less CPU-intensive credits scroll), with some tweaks by meMax Horn
svn-id: r17620
2005-01-10system.h was being included in tons of places, without any good reason; ↵Max Horn
reduced this (total dependencies on system.h went down from 193 to 85 files) svn-id: r16527
2005-01-06Switching GUI to an alternate font; using a second, bigger, font for 640x480 ↵Max Horn
games like COMI. Note: we can always easily switch back to the SCUMM font or any other font, if we want to svn-id: r16467
2005-01-06Added a font manager (work in progress)Max Horn
svn-id: r16460
2005-01-06Patch #1092994 (Selfscaling GUI)Max Horn
svn-id: r16455
2005-01-06Modify the singleton code once more to help overcome an issue with MSVC 7 ↵Max Horn
(see also patch #1095133) svn-id: r16454
2005-01-01Changed the singleton code to allow for custom object factories; this ↵Max Horn
allowed me to change OSystem to use the singleton base class, too svn-id: r16404
2005-01-01Updated copyrightMax Horn
svn-id: r16398
2004-11-25Make use of the new graphic primitivesMax Horn
svn-id: r15886
2004-08-15Allow char drawing with a custom fontMax Horn
svn-id: r14624
2004-08-15Removed some obsolete stuff; made switching to the alt font less intrusive ↵Max Horn
(you only have to recompile a single file now); foundation for future run-time font switching... svn-id: r14623
2004-05-05Added generic variable size stack class - COMPLETELY UNTESTED. Really should ↵Max Horn
add some unit tests for this... svn-id: r13776
2004-03-29Make use of Stack templateMax Horn
svn-id: r13430
2004-03-22cleanupMax Horn
svn-id: r13364
2004-03-21Moved Surface/Font code into new 'graphics' moduleMax Horn
svn-id: r13357
2004-03-13use 'Surface' in NewGuiMax Horn
svn-id: r13244
2004-03-13Revamped the font code: now it's very easy to switch between the 'original' ↵Max Horn
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-02-28renamed more OSystem methods to follow our naming scheme; renamed ↵Max Horn
NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend svn-id: r13087
2004-01-06updated copyright noticeMax Horn
svn-id: r12176
2003-12-01explicitly specify namespace in g_gui helper macroMax Horn
svn-id: r11450