diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/launcher.cpp | 6 | ||||
-rw-r--r-- | gui/launcher.h | 1 | ||||
-rw-r--r-- | gui/themes/default.inc | 56 | ||||
-rw-r--r-- | gui/themes/scummclassic.zip | bin | 52924 -> 53162 bytes | |||
-rw-r--r-- | gui/themes/scummclassic/classic_layout.stx | 4 | ||||
-rw-r--r-- | gui/themes/scummclassic/classic_layout_lowres.stx | 4 | ||||
-rw-r--r-- | gui/themes/scummmodern.zip | bin | 157601 -> 157839 bytes | |||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_layout.stx | 4 | ||||
-rw-r--r-- | gui/themes/scummmodern/scummmodern_layout_lowres.stx | 4 |
9 files changed, 79 insertions, 0 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index aebe3d4aa9..da49c1ccfd 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -66,6 +66,7 @@ enum { kQuitCmd = 'QUIT', kSearchCmd = 'SRCH', kListSearchCmd = 'LSSR', + kSearchClearCmd = 'SRCL', kCmdGlobalGraphicsOverride = 'OGFX', kCmdGlobalAudioOverride = 'OSFX', @@ -524,6 +525,7 @@ LauncherDialog::LauncherDialog() _searchDesc = new StaticTextWidget(this, "Launcher.SearchDesc", "Search:"); _searchWidget = new EditTextWidget(this, "Launcher.Search", _search, kSearchCmd); + _searchClearButton = new ButtonWidget(this, "Launcher.SearchClearButton", "C", kSearchClearCmd, 0); // Add list with game titles _list = new ListWidget(this, "Launcher.GameList", kListSearchCmd); @@ -936,6 +938,10 @@ void LauncherDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat case kSearchCmd: _list->setFilter(_searchWidget->getEditString()); break; + case kSearchClearCmd: + _searchWidget->setEditString(""); + _list->setFilter(""); + break; default: Dialog::handleCommand(sender, cmd, data); } diff --git a/gui/launcher.h b/gui/launcher.h index ea50d679c1..d482f26faf 100644 --- a/gui/launcher.h +++ b/gui/launcher.h @@ -63,6 +63,7 @@ protected: GraphicsWidget *_searchPic; #endif StaticTextWidget *_searchDesc; + ButtonWidget *_searchClearButton; StringList _domains; BrowserDialog *_browser; SaveLoadChooser *_loadDialog; diff --git a/gui/themes/default.inc b/gui/themes/default.inc index ebdc7b89e4..d23c7ff060 100644 --- a/gui/themes/default.inc +++ b/gui/themes/default.inc @@ -334,6 +334,9 @@ "<def var='ShowGlobalMenuLogo' value='0'/> " "<def var='ShowSearchPic' value='0'/> " "<def var='ScummSaveLoad.ExtInfo.Visible' value='1'/> " +"<def var='KeyRemapper.Spacing' value='10'/> " +"<def var='KeyRemapper.LabelWidth' value='100'/> " +"<def var='KeyRemapper.ButtonWidth' value='80'/> " "<widget name='OptionsLabel' " "size='110,Globals.Line.Height' " "textalign='right' " @@ -395,6 +398,10 @@ "width='150' " "height='Globals.Line.Height' " "/> " +"<widget name='SearchClearButton' " +"height='Globals.Line.Height' " +"width='Globals.Line.Height' " +"/> " "<space /> " "</layout> " "<widget name='GameList'/> " @@ -1048,6 +1055,27 @@ "</layout> " "</layout> " "</dialog> " +"<dialog name='KeyRemapper' overlays='screen_center' shading='dim'> " +"<layout type='vertical' padding='8,8,32,8' spacing='10' center='true'> " +"<layout type='horizontal' padding='0,0,0,0' spacing='10' center='true'> " +"<widget name='PopupDesc' " +"type='OptionsLabel' " +"/> " +"<widget name='Popup' " +"type='PopUp' " +"width='400' " +"height='Globals.Line.Height' " +"/> " +"</layout> " +"<widget name='KeymapArea' " +"width='600' " +"height='280' " +"/> " +"<widget name='Close' " +"type='Button' " +"/> " +"</layout> " +"</dialog> " "</layout_info> " "<layout_info resolution='320xY,256x240,Xx272'> " "<globals> " @@ -1059,6 +1087,9 @@ "<def var='ShowGlobalMenuLogo' value='0'/> " "<def var='ShowSearchPic' value='0'/> " "<def var='ScummSaveLoad.ExtInfo.Visible' value='0'/> " +"<def var='KeyRemapper.Spacing' value='5'/> " +"<def var='KeyRemapper.LabelWidth' value='80'/> " +"<def var='KeyRemapper.ButtonWidth' value='60'/> " "<widget name='Button' " "size='72,16' " "/> " @@ -1117,6 +1148,10 @@ "width='150' " "height='Globals.Line.Height' " "/> " +"<widget name='SearchClearButton' " +"height='Globals.Line.Height' " +"width='Globals.Line.Height' " +"/> " "<space /> " "</layout> " "<widget name='GameList'/> " @@ -1777,4 +1812,25 @@ "</layout> " "</layout> " "</dialog> " +"<dialog name='KeyRemapper' overlays='screen_center' shading='dim'> " +"<layout type='vertical' padding='8,8,8,8' spacing='10' center='true'> " +"<layout type='horizontal' padding='0,0,0,0' spacing='10' center='true'> " +"<widget name='PopupDesc' " +"type='OptionsLabel' " +"/> " +"<widget name='Popup' " +"type='PopUp' " +"width='150' " +"height='Globals.Line.Height' " +"/> " +"</layout> " +"<widget name='KeymapArea' " +"width='300' " +"height='120' " +"/> " +"<widget name='Close' " +"type='Button' " +"/> " +"</layout> " +"</dialog> " "</layout_info> " diff --git a/gui/themes/scummclassic.zip b/gui/themes/scummclassic.zip Binary files differindex 3b50cd1954..9f2701fcd0 100644 --- a/gui/themes/scummclassic.zip +++ b/gui/themes/scummclassic.zip diff --git a/gui/themes/scummclassic/classic_layout.stx b/gui/themes/scummclassic/classic_layout.stx index 969788cea0..567b0f0d9e 100644 --- a/gui/themes/scummclassic/classic_layout.stx +++ b/gui/themes/scummclassic/classic_layout.stx @@ -106,6 +106,10 @@ width = '150' height = 'Globals.Line.Height' /> + <widget name = 'SearchClearButton' + height = 'Globals.Line.Height' + width = 'Globals.Line.Height' + /> <space /> </layout> <widget name = 'GameList'/> diff --git a/gui/themes/scummclassic/classic_layout_lowres.stx b/gui/themes/scummclassic/classic_layout_lowres.stx index 932ee16389..809ceccf9f 100644 --- a/gui/themes/scummclassic/classic_layout_lowres.stx +++ b/gui/themes/scummclassic/classic_layout_lowres.stx @@ -103,6 +103,10 @@ width = '150' height = 'Globals.Line.Height' /> + <widget name = 'SearchClearButton' + height = 'Globals.Line.Height' + width = 'Globals.Line.Height' + /> <space /> </layout> <widget name = 'GameList'/> diff --git a/gui/themes/scummmodern.zip b/gui/themes/scummmodern.zip Binary files differindex c84ff72b55..8a1739adb5 100644 --- a/gui/themes/scummmodern.zip +++ b/gui/themes/scummmodern.zip diff --git a/gui/themes/scummmodern/scummmodern_layout.stx b/gui/themes/scummmodern/scummmodern_layout.stx index d30e4a805b..d3cd048f1d 100644 --- a/gui/themes/scummmodern/scummmodern_layout.stx +++ b/gui/themes/scummmodern/scummmodern_layout.stx @@ -114,6 +114,10 @@ width = '150' height = 'Globals.Line.Height' /> + <widget name = 'SearchClearButton' + height = 'Globals.Line.Height' + width = 'Globals.Line.Height' + /> <space /> </layout> <layout type = 'horizontal' padding = '0, 0, 0, 0'> diff --git a/gui/themes/scummmodern/scummmodern_layout_lowres.stx b/gui/themes/scummmodern/scummmodern_layout_lowres.stx index 5d15d2efc7..6f7f25db20 100644 --- a/gui/themes/scummmodern/scummmodern_layout_lowres.stx +++ b/gui/themes/scummmodern/scummmodern_layout_lowres.stx @@ -101,6 +101,10 @@ width = '150' height = 'Globals.Line.Height' /> + <widget name = 'SearchClearButton' + height = 'Globals.Line.Height' + width = 'Globals.Line.Height' + /> <space /> </layout> <widget name = 'GameList'/> |