summaryrefslogtreecommitdiff
path: root/src/gui/updaterwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-20 14:20:26 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-20 14:20:26 +0300
commit31acb66791e27b6cfa846302156ad2e7a88f5f04 (patch)
tree77b67fbb0dfb2e7cba3c2edcc1fbbb4b257bf15f /src/gui/updaterwindow.h
parentb4eae25edc2b75af41fdb98c4d0a332ee3dcf500 (diff)
downloadmv-31acb66791e27b6cfa846302156ad2e7a88f5f04.tar.gz
mv-31acb66791e27b6cfa846302156ad2e7a88f5f04.tar.bz2
mv-31acb66791e27b6cfa846302156ad2e7a88f5f04.tar.xz
mv-31acb66791e27b6cfa846302156ad2e7a88f5f04.zip
Show clickable update links for manaplus.
Site url and download link.
Diffstat (limited to 'src/gui/updaterwindow.h')
-rw-r--r--src/gui/updaterwindow.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/updaterwindow.h b/src/gui/updaterwindow.h
index 1039bbb9e..90bd06847 100644
--- a/src/gui/updaterwindow.h
+++ b/src/gui/updaterwindow.h
@@ -23,6 +23,7 @@
#ifndef UPDATERWINDOW_H
#define UPDATERWINDOW_H
+#include "gui/widgets/linkhandler.h"
#include "gui/widgets/window.h"
#include "net/download.h"
@@ -61,7 +62,9 @@ struct updateFile
*
* \ingroup GUI
*/
-class UpdaterWindow : public Window, public gcn::ActionListener,
+class UpdaterWindow : public Window,
+ public gcn::ActionListener,
+ public LinkHandler,
public gcn::KeyListener
{
public:
@@ -112,6 +115,8 @@ class UpdaterWindow : public Window, public gcn::ActionListener,
void logic();
+ void handleLink(const std::string &link, gcn::MouseEvent *event A_UNUSED);
+
static void loadLocalUpdates(std::string dir);
static void addUpdateFile(ResourceManager *resman, std::string path,