From 1ae9c54d120338e4165d168c72ef16eb7f76ac18 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Wed, 13 Jul 2005 19:01:22 +0000 Subject: My version of the updater (ok it needs a lot of bug fixes, a lot of checks and whaever else) WARNING: Needs to be tested --- src/gui/updatewindow.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'src/gui/updatewindow.h') 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 -- cgit v1.2.3-70-g09d2