diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-11 21:10:53 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-11 21:10:53 +0100 |
commit | 66599a9896e0cf69b58c0a73152aba4750d87af2 (patch) | |
tree | 034b6b4a05ea1b4fc87887f48734f630e757e6f7 /src/gui/updaterwindow.h | |
parent | 0694d89c4147882561ff44c6d0d80e7414dcb24a (diff) | |
download | mana-66599a9896e0cf69b58c0a73152aba4750d87af2.tar.gz mana-66599a9896e0cf69b58c0a73152aba4750d87af2.tar.bz2 mana-66599a9896e0cf69b58c0a73152aba4750d87af2.tar.xz mana-66599a9896e0cf69b58c0a73152aba4750d87af2.zip |
Implemented ability to open external links in news and chat
* Use ConfirmDialog to confirm the opening of the external link.
* ConfirmDialog now centers on its parent window when provided.
* Reset hovered link when mouse exits the BrowserBox.
Diffstat (limited to 'src/gui/updaterwindow.h')
-rw-r--r-- | src/gui/updaterwindow.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/updaterwindow.h b/src/gui/updaterwindow.h index 2d1b059b..6ea1d754 100644 --- a/src/gui/updaterwindow.h +++ b/src/gui/updaterwindow.h @@ -31,9 +31,11 @@ #include <guichan/actionlistener.hpp> #include <guichan/keylistener.hpp> +#include <memory> #include <string> #include <vector> +class LinkHandler; class BrowserBox; class Button; class ProgressBar; @@ -99,8 +101,6 @@ class UpdaterWindow : public Window, public gcn::ActionListener, void logic() override; - int updateState; - private: void download(); @@ -189,6 +189,7 @@ private: ProgressBar *mProgressBar; /**< Update progress bar. */ BrowserBox *mBrowserBox; /**< Box to display news. */ ScrollArea *mScrollArea; /**< Used to scroll news box. */ + std::unique_ptr<LinkHandler> mLinkHandler; }; #endif |