ManaPlus
|
#include <itemlinkhandler.h>
Public Member Functions | |
ItemLinkHandler () | |
~ItemLinkHandler () | |
void | handleLink (const std::string &link, MouseEvent *event) |
void | setAllowCommands (const bool b) |
Public Member Functions inherited from LinkHandler | |
LinkHandler () | |
virtual | ~LinkHandler () |
Private Member Functions | |
void | handleCommandLink (const std::string &link, const std::string &prefix) |
Static Private Member Functions | |
static void | handleHelpLink (const std::string &link) |
static void | handleHttpLink (const std::string &link, const MouseEvent *const event) |
static void | handleItemLink (const std::string &link) |
static void | handleSearchLink (const std::string &link) |
Private Attributes | |
bool | mAllowCommands |
Definition at line 31 of file itemlinkhandler.h.
ItemLinkHandler::ItemLinkHandler | ( | ) |
Definition at line 59 of file itemlinkhandler.cpp.
ItemLinkHandler::~ItemLinkHandler | ( | ) |
Definition at line 65 of file itemlinkhandler.cpp.
|
private |
Definition at line 69 of file itemlinkhandler.cpp.
References _, Widget::addActionListener(), confirmDlg, CREATEWIDGETR, InputManager::executeRemoteChatCommand(), inputActionRemoteListener, inputManager, mAllowCommands, Modal_true, parse2Str(), InputActionRemoteListener::setCommand(), SOUND_REQUEST, and strprintf().
Referenced by handleLink().
|
staticprivate |
Definition at line 100 of file itemlinkhandler.cpp.
References helpWindow, HelpWindow::loadHelp(), and Widget::requestMoveToTop().
Referenced by handleLink().
|
staticprivate |
Definition at line 109 of file itemlinkhandler.cpp.
References _, Widget::addActionListener(), confirmDlg, CREATEWIDGETR, MouseButton::LEFT, anonymous_namespace{itemlinkhandler.cpp}::listener, Modal_true, popupMenu, replaceAll(), MouseButton::RIGHT, PopupMenu::showLinkPopup(), SOUND_REQUEST, OpenUrlListener::url, and Actions::url().
Referenced by handleLink().
|
staticprivate |
Definition at line 137 of file itemlinkhandler.cpp.
References ItemDB::get(), ItemColorManager::getColorFromCards(), Popup::isPopupVisible(), Actions::itemInfo(), itemPopup, maxCards, Viewport::mMouseX, Viewport::mMouseY, Popup::position(), ItemPopup::setItem(), Widget::setVisible(), splitToIntVector(), viewport, and Visible_false.
Referenced by handleLink().
|
virtual |
Implements LinkHandler.
Definition at line 185 of file itemlinkhandler.cpp.
References InputManager::executeAction(), handleCommandLink(), handleHelpLink(), handleHttpLink(), handleItemLink(), handleSearchLink(), helpWindow, inputManager, Settings::linkCommandSymbol, HelpWindow::loadHelpSimple(), questsWindow, QuestsWindow::selectQuest(), settings, strStartWith(), and InputAction::WINDOW_ABOUT.
|
staticprivate |
Definition at line 176 of file itemlinkhandler.cpp.
References helpWindow, Widget::requestMoveToTop(), and HelpWindow::search().
Referenced by handleLink().
|
inline |
Definition at line 43 of file itemlinkhandler.h.
References mAllowCommands.
Referenced by ChatWindow::ChatWindow().
|
private |
Definition at line 59 of file itemlinkhandler.h.
Referenced by handleCommandLink(), and setAllowCommands().