summaryrefslogtreecommitdiff
path: root/src/gui/updatewindow.h
diff options
context:
space:
mode:
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 *);