diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-26 21:47:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-26 21:47:37 +0300 |
commit | ed3a977346009c22c30908a9e7b81f409d310b59 (patch) | |
tree | 0101284761788307a5c231fe0f0466810ee651a1 /src/gui/windows/didyouknowwindow.h | |
parent | 4b517a69de505e5f3b0eec2e42d2f5bc5d913faa (diff) | |
download | manaverse-ed3a977346009c22c30908a9e7b81f409d310b59.tar.gz manaverse-ed3a977346009c22c30908a9e7b81f409d310b59.tar.bz2 manaverse-ed3a977346009c22c30908a9e7b81f409d310b59.tar.xz manaverse-ed3a977346009c22c30908a9e7b81f409d310b59.zip |
Add support for links "news" and "copyright".
Use for links in didyouknow window ItemLinkHandler.
Diffstat (limited to 'src/gui/windows/didyouknowwindow.h')
-rw-r--r-- | src/gui/windows/didyouknowwindow.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gui/windows/didyouknowwindow.h b/src/gui/windows/didyouknowwindow.h index c63b2d421..8a9ee9c1f 100644 --- a/src/gui/windows/didyouknowwindow.h +++ b/src/gui/windows/didyouknowwindow.h @@ -23,7 +23,6 @@ #ifndef GUI_WINDOWS_DIDYOUKNOWWINDOW_H #define GUI_WINDOWS_DIDYOUKNOWWINDOW_H -#include "gui/widgets/linkhandler.h" #include "gui/widgets/window.h" #include "listeners/actionlistener.h" @@ -31,13 +30,13 @@ class Button; class BrowserBox; class CheckBox; +class ItemLinkHandler; class ScrollArea; /** * The help dialog. */ class DidYouKnowWindow final : public Window, - public LinkHandler, public ActionListener { public: @@ -46,6 +45,8 @@ class DidYouKnowWindow final : public Window, */ DidYouKnowWindow(); + ~DidYouKnowWindow(); + A_DELETE_COPY(DidYouKnowWindow) void postInit() override final; @@ -55,12 +56,6 @@ class DidYouKnowWindow final : public Window, */ void action(const ActionEvent &event) override final; - /** - * Handles link action. - */ - void handleLink(const std::string &link, - MouseEvent *const event) override final; - void loadData(int num = 0); void setVisible(Visible visible) override final; @@ -68,6 +63,7 @@ class DidYouKnowWindow final : public Window, private: void loadFile(const int num); + ItemLinkHandler *mItemLinkHandler A_NONNULLPOINTER; BrowserBox *mBrowserBox A_NONNULLPOINTER; ScrollArea *mScrollArea A_NONNULLPOINTER; Button *mButtonPrev A_NONNULLPOINTER; |