diff options
author | Bastien Bouclet | 2019-11-13 21:09:21 +0100 |
---|---|---|
committer | Bastien Bouclet | 2019-11-24 14:06:25 +0100 |
commit | 2c812a6b7a0b24b9012379118867fb4f64f32c14 (patch) | |
tree | 6f4225127305dbdae8f3a0dc7dfe61e51af51b1a /gui/launcher.h | |
parent | 3db6aed4e474d5b16639ee4958d1cd13504d12fb (diff) | |
download | scummvm-rg350-2c812a6b7a0b24b9012379118867fb4f64f32c14.tar.gz scummvm-rg350-2c812a6b7a0b24b9012379118867fb4f64f32c14.tar.bz2 scummvm-rg350-2c812a6b7a0b24b9012379118867fb4f64f32c14.zip |
GUI: Add DropdownButtonWidget and use it in the launcher for mass add
DropdownButtonWidget is a button split in two parts vertically. Clicking
the left part triggers a default action. Clicking the right part shows a
list of other actions the user can choose from.
Using this widget on the launcher lets 'Mass add' be a secondary action
of the 'Add' button, removing the necessity of pressing the shift key to
access the feature.
Diffstat (limited to 'gui/launcher.h')
-rw-r--r-- | gui/launcher.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gui/launcher.h b/gui/launcher.h index 5bb386f9a0..7009b993f2 100644 --- a/gui/launcher.h +++ b/gui/launcher.h @@ -82,7 +82,6 @@ protected: void updateListing(); void updateButtons(); - void switchButtonsText(ButtonWidget *button, const char *normalText, const char *shiftedText); void build(); void clean(); @@ -94,6 +93,7 @@ protected: * Handle "Add game..." button. */ virtual void addGame(); + void massAddGame(); /** * Handle "Remove game..." button. @@ -106,11 +106,6 @@ protected: void editGame(int item); /** - * Facade for "Load..."/"Record..." buttons. - */ - void loadGameButtonPressed(int item); - - /** * Handle "Record..." button. */ void recordGame(int item); |