29#include <guichan/actionlistener.hpp>
30#include <guichan/keylistener.hpp>
31#include <guichan/widget.hpp>
32#include <guichan/widgetlistener.hpp>
43#define DEFAULT_CHAT_WINDOW_SCROLL 7
71 public gcn::ActionListener,
111 void action(
const gcn::ActionEvent &
event)
override;
165 void whisper(
const std::string &nick,
const std::string &mes,
A tab for the chat window.
void whisper(const std::string &nick, const std::string &mes, Own own=BY_OTHER)
void clearTab()
Clear the current tab.
void addItemText(const std::string &item)
Called to add item to chat.
ChatInput * mChatInput
Input box for typing chat messages.
TabbedArea * mChatTabs
Tabbed area for holding each channel.
bool isInputFocused() const
Checks whether ChatWindow is Focused or not.
void setVisible(bool visible) override
Override to reset mTmpVisible.
void setRecordingFile(const std::string &msg)
Sets the file being recorded to.
void removeWhisper(const std::string &nick)
~ChatWindow() override
Destructor: used to write back values to the config file.
void addInputText(const std::string &text)
Add the given text to the chat input.
void mouseDragged(gcn::MouseEvent &event) override
bool requestChatFocus()
Request focus for typing chat message.
void scroll(int amount)
Scrolls the chat window.
ItemLinkHandler * mItemLinkHandler
Used for showing item popup on clicking links.
void removeTab(ChatTab *tab)
Remove the given tab from the window.
AutoCompleteLister * mAutoComplete
void nextTab()
Switch to the next tab in order.
ChatTab * addWhisperTab(const std::string &nick, bool switchTo=false)
void action(const gcn::ActionEvent &event) override
Performs action.
void mousePressed(gcn::MouseEvent &event) override
void chatInput(const std::string &msg)
Passes the text to the current tab as input.
void prevTab()
Switch to the previous tab in order.
std::map< const std::string, ChatTab * > mWhispers
Manage whisper tabs.
void resetToDefaultSize() override
Reset the chat window and recorder window attached to it to their default positions.
void addTab(ChatTab *tab)
Add the tab to the window.
ChatTab * getFocused() const
Gets the focused tab.
void event(Event::Channel channel, const Event &event) override
A tabbed area, the same as the guichan tabbed area in 0.8, but extended.
A tab for whispers from a single player.
One item in the chat log.