From b56c7b88d7de665f92e1600f81dcec5c4af3a2aa Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 27 May 2006 05:46:04 +0000 Subject: Major GUI update: - 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 --- gui/widget.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'gui/widget.h') diff --git a/gui/widget.h b/gui/widget.h index 4fcd277f9d..6c712ef264 100644 --- a/gui/widget.h +++ b/gui/widget.h @@ -58,7 +58,8 @@ enum { kScrollBarWidget = 'SCRB', kPopUpWidget = 'POPU', kTabWidget = 'TABW', - kGraphicsWidget = 'GFXW' + kGraphicsWidget = 'GFXW', + kContainerWidget = 'CTNR' }; enum { @@ -279,6 +280,16 @@ protected: bool _transparency; }; +/* ContainerWidget */ +class ContainerWidget : public Widget { +public: + ContainerWidget(GuiObject *boss, int x, int y, int w, int h); + ContainerWidget(GuiObject *boss, Common::String name); + +protected: + void drawWidget(bool hilite); +}; + } // End of namespace GUI #endif -- cgit v1.2.3