diff options
Diffstat (limited to 'src/gui/updatewindow.h')
-rw-r--r-- | src/gui/updatewindow.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/gui/updatewindow.h b/src/gui/updatewindow.h index b602c053..89e13610 100644 --- a/src/gui/updatewindow.h +++ b/src/gui/updatewindow.h @@ -27,20 +27,21 @@ #include "window.h" #include "vbox.h" #include "progressbar.h" +#include "button.h" /** * Update progress window GUI * * \ingroup GUI */ -class UpdaterWindow : public Window +class UpdaterWindow : public Window, public gcn::ActionListener { protected: std::string labelText; /**< Text for caption label */ - double progress; /**< Progress */ - VBox *vbox; gcn::Label *label; /**< Progress bar caption */ + Button *cancelButton; /**< Button to stop the update process */ + Button *playButton; /**< Button to start playing */ ProgressBar *progressBar; /**< Update progress bar */ public: @@ -57,14 +58,24 @@ class UpdaterWindow : public Window /** * Set's progress bar status */ - void setProgress(double); + void setProgress(float p); /** * Set's label above progress */ void setLabel(const std::string &); + + /** + * Enables play button + */ + void enable(); + + void action(const std::string& eventId); void draw(gcn::Graphics *); + + int updateState; }; +void updateData(); #endif |