diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-07-13 19:01:22 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-07-13 19:01:22 +0000 |
commit | 1ae9c54d120338e4165d168c72ef16eb7f76ac18 (patch) | |
tree | f4f4cddad188e236ba79eb9265f372d9f923556c /src/gui/updatewindow.h | |
parent | 801cd58db50ad29742939144fc799f98232959cc (diff) | |
download | mana-1ae9c54d120338e4165d168c72ef16eb7f76ac18.tar.gz mana-1ae9c54d120338e4165d168c72ef16eb7f76ac18.tar.bz2 mana-1ae9c54d120338e4165d168c72ef16eb7f76ac18.tar.xz mana-1ae9c54d120338e4165d168c72ef16eb7f76ac18.zip |
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
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 |