summaryrefslogtreecommitdiff
path: root/src/gui/updatewindow.h
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-07-14 16:50:43 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-07-14 16:50:43 +0000
commit1de4ecd6690a0de808c079e4d3b6398574d189cb (patch)
tree9b8e0b36a0257ed1c01a9bdd3256940c46391e04 /src/gui/updatewindow.h
parente177ae485723da3cefbe49dda066fc9ee5729ce0 (diff)
downloadmana-client-1de4ecd6690a0de808c079e4d3b6398574d189cb.tar.gz
mana-client-1de4ecd6690a0de808c079e4d3b6398574d189cb.tar.bz2
mana-client-1de4ecd6690a0de808c079e4d3b6398574d189cb.tar.xz
mana-client-1de4ecd6690a0de808c079e4d3b6398574d189cb.zip
- Fixes and improvements to the update system
- Added news (I know someone doesn't like it :P)
Diffstat (limited to 'src/gui/updatewindow.h')
-rw-r--r--src/gui/updatewindow.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gui/updatewindow.h b/src/gui/updatewindow.h
index e2d6201c..f5f7f747 100644
--- a/src/gui/updatewindow.h
+++ b/src/gui/updatewindow.h
@@ -28,12 +28,16 @@
#include "vbox.h"
#include "progressbar.h"
#include "button.h"
+#include "browserbox.h"
+#include "scrollarea.h"
enum {
UPDATE_ERROR,
UPDATE_IDLE,
UPDATE_RUN,
- UPDATE_COMPLETE
+ UPDATE_COMPLETE,
+ UPDATE_NEWS,
+ UPDATE_RESOURCES
};
/**
@@ -50,6 +54,8 @@ class UpdaterWindow : public Window, public gcn::ActionListener
Button *cancelButton; /**< Button to stop the update process */
Button *playButton; /**< Button to start playing */
ProgressBar *progressBar; /**< Update progress bar */
+ BrowserBox* browserBox; /**< Box to display news */
+ ScrollArea *scrollArea; /**< Used to scroll news box */
public:
/**
@@ -77,6 +83,11 @@ class UpdaterWindow : public Window, public gcn::ActionListener
*/
void enable();
+ /**
+ * Loads and display news
+ */
+ void loadNews();
+
void action(const std::string& eventId);
void draw(gcn::Graphics *);