diff options
author | Alexander Tkachev | 2016-07-04 18:30:23 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | a5765a339e150952dca27035357bbfb1f88a4718 (patch) | |
tree | 243922d32dba938709b8dcca130beb4987ecc931 /gui/downloaddialog.h | |
parent | 1cfdb9661678a5cabb77c2cf60d2fa357121d584 (diff) | |
download | scummvm-rg350-a5765a339e150952dca27035357bbfb1f88a4718.tar.gz scummvm-rg350-a5765a339e150952dca27035357bbfb1f88a4718.tar.bz2 scummvm-rg350-a5765a339e150952dca27035357bbfb1f88a4718.zip |
GUI: Update DownloadDialog
It now less empty, because if there is no download in progress, user
sees the RemoteBrowser instead of empty dialog. The cancel button is now
in the left bottom corner.
Diffstat (limited to 'gui/downloaddialog.h')
-rw-r--r-- | gui/downloaddialog.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gui/downloaddialog.h b/gui/downloaddialog.h index 429e20af98..74dd1e2e39 100644 --- a/gui/downloaddialog.h +++ b/gui/downloaddialog.h @@ -45,24 +45,24 @@ enum DownloadProgress { class DownloadDialog : public Dialog { BrowserDialog *_browser; RemoteBrowserDialog *_remoteBrowser; - - StaticTextWidget *_messageText; - ButtonWidget *_mainButton; + StaticTextWidget *_remoteDirectoryLabel; StaticTextWidget *_localDirectoryLabel; StaticTextWidget *_percentLabel; SliderWidget *_progressBar; + ButtonWidget *_cancelButton; ButtonWidget *_closeButton; - bool _reflow; + bool _close, _reflow; - void updateButtons(); - void selectDirectories(); + void refreshWidgets(); + bool selectDirectories(); public: DownloadDialog(uint32 storageId); virtual ~DownloadDialog(); + virtual void open(); virtual void close(); virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); virtual void handleTickle(); |