aboutsummaryrefslogtreecommitdiff
path: root/gui/EditTextWidget.cpp
AgeCommit message (Collapse)Author
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-06-05Fix various typenames to comply to the ScummVM coding guidelinesMax Horn
svn-id: r22928
2006-06-03*Loads* of Common::String related optimizations. Woa, *tons* of methods were ↵Max Horn
copying strings needlessly svn-id: r22873
2006-05-31Cleanup. We no longer need these widget size parameters.Torbjörn Andersson
svn-id: r22798
2006-05-27Fixes caret drawing in EditTextWidgets.Johannes Schickel
svn-id: r22678
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-19Call the inherited handleScreenChanged() method, so that the widget can resizeTorbjörn Andersson
itself on scaler changes. svn-id: r22537
2006-05-19Call handleScreenChanged() *before* calling setEditString(). OtherwiseTorbjörn Andersson
_leftPadding may be wrong, or even undefined, when getEditRect() is called, which may cause ScummVM to trigger an "invalid rect" assertion. svn-id: r22536
2006-05-18- Fix spelling in theme configEugene Sandulenko
- Introduce embossing shadow - Less round corners in popup widget - Custom border in editable text widget - Matched color in popup widget and editable text widget with mock-ups - Less round corners in editable text widget - Text padding in editable text widget svn-id: r22525
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-09Converted last dialogs to new scheme. Now it seems to be everything. Please,Eugene Sandulenko
test throghoutly. svn-id: r21157
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-24Whitespace changes.Torbjörn Andersson
svn-id: r18449
2005-06-24When including files from common/, explicitly use the common/ prefixMax Horn
svn-id: r18444
2005-06-03Cleanup.Torbjörn Andersson
svn-id: r18319
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-01-29Move more text editing code into class EditableWidget; ListWidget now has ↵Max Horn
all the editing capabilities of EditTextWidget svn-id: r16694
2005-01-29Started to merge the text editing code in ListWidget and EditTextWidgetMax Horn
svn-id: r16692
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-01Updated copyrightMax Horn
svn-id: r16398
2004-12-30Fix for bug #1091801 (ALL: Possible to create corrupt config file)Max Horn
svn-id: r16379
2004-09-28Rename remaining OSystem methods to match our coding guidelinesMax Horn
svn-id: r15332
2004-02-05renamed (Const)Iterator to (const_)iterator; changed size() to return an uintMax Horn
svn-id: r12722
2004-01-06updated copyright noticeMax Horn
svn-id: r12176
2003-11-19new font code (currently disabled by default), which allows using ↵Max Horn
'arbitrary' BDF fonts (via convbdf) svn-id: r11350
2003-11-18cleanup; fixed return/enter in ListWidget when not in editing modeMax Horn
svn-id: r11346
2003-11-10added namespace GUIMax Horn
svn-id: r11255
2003-11-08cleanup whitespacesPaweł Kołodziejski
svn-id: r11223
2003-11-04modified NewGui::drawString to shorten strings which don't fit using ↵Max Horn
ellipsis (disabled for the EditTextWidget for now) svn-id: r11136
2003-11-02make coordinate calculation based on position of parent -> needed for nested ↵Max Horn
widgets svn-id: r11058
2003-11-02introduced common base class GuiObject for Dialog/Widget -> step towards ↵Max Horn
making it possible to nest widgets (needed for TabWidget) svn-id: r11052
2003-11-02turned NewGui into a singleton, and made OSystem a pseudo-singleton; added ↵Max Horn
Widget::findWidget (preparing to add support for nested widgets, for the tab widget) svn-id: r11045
2003-10-01vline -> vLine, hline-> hLine, slightly more in line with ScummVM naming ↵Jonathan Gray
style and more importantly doesn't conflict with the vline and hline Allegro functions svn-id: r10520
2003-09-24Whitespace changesTorbjörn Andersson
svn-id: r10390
2003-05-05Patch #732725: EditTextWidget: handleMouseDown positions caretMax Horn
svn-id: r7360
2003-05-05Patch #732707: EditTextWidget: long string supportMax Horn
svn-id: r7359
2003-05-05fixed cursor placementOliver Kiehl
svn-id: r7343
2003-05-05patch #732184Oliver Kiehl
svn-id: r7341
2003-03-06updated copyrights headersPaweł Kołodziejski
svn-id: r6726
2003-03-06and more cleanup .... LastPaweł Kołodziejski
svn-id: r6721
2003-01-10Added some basic line editing to the EditText widgetOliver Kiehl
svn-id: r6393
2002-11-22improved keyboard input behaviour in SDL backend: make use of the unicode ↵Max Horn
feature in SDL. This way, Shift-1 on my german keyboard generates ! not 1 (on an US keyboard it'll be a different symbol). Should fix bug #600258 and #551447 svn-id: r5692
2002-11-22changed the key input system in NewGUI: pass both the keycode and the ascii ↵Max Horn
value to handleKeyUp/Down. Also, use this to fix the key repeat code (see bug #626225) svn-id: r5691
2002-11-21allow some more chars as inputMax Horn
svn-id: r5672
2002-11-21added missing right borderMax Horn
svn-id: r5671