diff options
author | David Athay <ko2fan@gmail.com> | 2009-01-13 12:48:36 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2009-01-13 12:48:36 +0000 |
commit | db37dcd73f3116917584e81a474f70e0d0786bc4 (patch) | |
tree | e1b03485652de7a129f6c9277a973e1d468b7a16 /src/gui/chat.h | |
parent | 8d6cc0162fec250743e6491fb4b1e2f07c7657c2 (diff) | |
download | mana-db37dcd73f3116917584e81a474f70e0d0786bc4.tar.gz mana-db37dcd73f3116917584e81a474f70e0d0786bc4.tar.bz2 mana-db37dcd73f3116917584e81a474f70e0d0786bc4.tar.xz mana-db37dcd73f3116917584e81a474f70e0d0786bc4.zip |
Added WoW style item adding to chat window. Right Ctrl and Left click to put the item in the chat input. Left click the item link to show a popup description, and click the link again to remove the popup.
Diffstat (limited to 'src/gui/chat.h')
-rw-r--r-- | src/gui/chat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/chat.h b/src/gui/chat.h index 8ca0e4c9..bb742a77 100644 --- a/src/gui/chat.h +++ b/src/gui/chat.h @@ -37,6 +37,7 @@ class BrowserBox; class ScrollArea; class TabbedArea; class Channel; +class ItemLinkHandler; enum { @@ -141,6 +142,9 @@ class ChatWindow : public Window, /** Called to set current text */ void setInputText(std::string input_str); + /** Called to add item to chat */ + void addItemText(int itemid, const std::string &item); + /** Override to reset mTmpVisible */ void setVisible(bool visible); @@ -175,6 +179,9 @@ class ChatWindow : public Window, ScrollArea *scroll; }; + /** Used for showing item popup on clicking links **/ + ItemLinkHandler *mItemLinkHandler; + /** Tabbed area for holding each channel. */ TabbedArea *mChatTabs; |