diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-17 00:09:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-17 00:09:12 +0300 |
commit | e78036b3372e5773fac4207ea48bb61e2fd7873e (patch) | |
tree | f792fc5ecc4bc5a1fd1c3af7cded74229fbfab10 /src/gui/widgets/itemlinkhandler.cpp | |
parent | e8270acbc5118aabbf10738eb9deee07457ea56d (diff) | |
download | manaverse-e78036b3372e5773fac4207ea48bb61e2fd7873e.tar.gz manaverse-e78036b3372e5773fac4207ea48bb61e2fd7873e.tar.bz2 manaverse-e78036b3372e5773fac4207ea48bb61e2fd7873e.tar.xz manaverse-e78036b3372e5773fac4207ea48bb61e2fd7873e.zip |
combine mouseinput into one file.
Diffstat (limited to 'src/gui/widgets/itemlinkhandler.cpp')
-rw-r--r-- | src/gui/widgets/itemlinkhandler.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/widgets/itemlinkhandler.cpp b/src/gui/widgets/itemlinkhandler.cpp index deb3b4451..3e9a99a2a 100644 --- a/src/gui/widgets/itemlinkhandler.cpp +++ b/src/gui/widgets/itemlinkhandler.cpp @@ -35,10 +35,11 @@ #include "resources/db/itemdb.h" -#include <string> - #include "listeners/actionlistener.h" -#include "gui/base/mouseinput.hpp" + +#include "input/mouseinput.h" + +#include <string> #include "debug.h" @@ -85,7 +86,7 @@ void ItemLinkHandler::handleLink(const std::string &link, MouseEvent *event) replaceAll(url, " ", ""); listener.url = url; const int button = event->getButton(); - if (button == gcn::MouseInput::LEFT) + if (button == MouseInput::LEFT) { ConfirmDialog *const confirmDlg = new ConfirmDialog( // TRANSLATORS: dialog message @@ -93,7 +94,7 @@ void ItemLinkHandler::handleLink(const std::string &link, MouseEvent *event) confirmDlg->postInit(); confirmDlg->addActionListener(&listener); } - else if (button == gcn::MouseInput::RIGHT) + else if (button == MouseInput::RIGHT) { if (viewport) viewport->showLinkPopup(url); |