ManaPlus
|
#include <chatwindow.h>
Public Member Functions | |
ChatWindow (const std::string &name) | |
~ChatWindow () | |
ChatTab * | getFocused () const |
void | clearTab () const |
void | prevTab () |
void | nextTab () |
void | closeTab () const |
void | defaultTab () |
void | action (const ActionEvent &event) |
bool | requestChatFocus () |
bool | isInputFocused () const |
void | chatInput (const std::string &msg) const |
void | localChatInput (const std::string &msg) const |
void | keyPressed (KeyEvent &event) |
void | setInputText (const std::string &text) |
void | addInputText (const std::string &text, const bool space) |
void | addItemText (const std::string &item) |
void | setVisible (Visible visible) |
void | mouseDragged (MouseEvent &event) |
void | mousePressed (MouseEvent &event) |
void | scroll (const int amount) const |
void | setRecordingFile (const std::string &msg) |
bool | getReturnTogglesChat () const |
void | setReturnTogglesChat (const bool toggles) |
void | doPresent () const |
void | addWhisper (const std::string &nick, const std::string &mes, const ChatMsgTypeT own) |
WhisperTab * | addWhisperTab (const std::string &caption, const std::string &nick, const bool switchTo) |
WhisperTab * | getWhisperTab (const std::string &nick) const |
ChatTab * | addChannelTab (const std::string &name, const bool switchTo) |
ChatTab * | addSpecialChannelTab (const std::string &name, const bool switchTo) |
ChatTab * | addChatTab (const std::string &name, const bool switchTo, const bool join) |
void | joinRoom (const bool isJoin) |
void | removeAllWhispers () |
void | removeAllChannels () |
void | ignoreAllWhispers () |
bool | resortChatLog (std::string line, ChatMsgTypeT own, const std::string &channel, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors) |
void | channelChatLog (const std::string &channel, const std::string &line, ChatMsgTypeT own, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors) |
void | updateOnline (const std::set< std::string > &onlinePlayers) const |
void | loadState () |
void | saveState () const |
void | loadCustomList () |
void | loadGMCommands () |
void | adjustTabSize () |
void | addToAwayLog (const std::string &line) |
void | displayAwayLog () const |
void | clearAwayLog () |
void | parseHighlights () |
void | parseGlobalsFilter () |
bool | findHighlight (const std::string &str) |
void | copyToClipboard (const int x, const int y) const |
void | optionChanged (const std::string &name) |
void | mouseEntered (MouseEvent &event) |
void | mouseMoved (MouseEvent &event) |
void | mouseExited (MouseEvent &event) |
void | draw (Graphics *const graphics) |
void | safeDraw (Graphics *const graphics) |
void | updateVisibility () |
void | unHideWindow () |
void | widgetResized (const Event &event) |
void | addGlobalMessage (const std::string &line) |
void | postInit () |
bool | isTabPresent (const ChatTab *const tab) const |
void | selectTabByType (const ChatTabTypeT &type) |
void | attributeChanged (const AttributesT id, const int64_t oldVal, const int64_t newVal) |
void | postConnection () |
void | showGMTab () |
void | debugMessage (const std::string &msg) |
void | scheduleDelete () |
Public Member Functions inherited from Window | |
Window (const std::string &caption, const Modal modal, Window *const parent, std::string skin) | |
~Window () | |
void | setContentSize (int width, int height) |
void | setLocationRelativeTo (const Widget *const widget) |
void | setLocationHorisontallyRelativeTo (const Widget *const widget) |
void | setLocationRelativeTo (const ImagePosition::Type &position, int offsetX, int offsetY) |
void | setResizable (const bool resize) |
void | redraw () |
void | widgetMoved (const Event &event) |
void | widgetHidden (const Event &event) |
void | setCloseButton (const bool flag) |
bool | getCloseButton () const |
void | setAllowClose (const bool b) |
bool | getAlowClose () const |
bool | isResizable () const |
void | setMinWidth (const int width) |
int | getMinWidth () const |
void | setMinHeight (const int height) |
int | getMinHeight () const |
void | setMaxWidth (const int width) |
int | getMaxWidth () const |
void | setMaxHeight (const int height) |
int | getMaxHeight () const |
void | setShowTitle (bool flag) |
void | setStickyButton (const bool flag) |
void | setSticky (const bool sticky) |
bool | isSticky () const |
void | setStickyButtonLock (const bool sticky) |
bool | isStickyButtonLock () const |
void | setVisible (const Visible visible, const bool forceSticky) |
bool | isDefaultVisible () const |
void | setDefaultVisible (const bool save) |
bool | willSaveVisible () const |
void | setSaveVisible (const bool save) |
Window * | getParentWindow () const |
void | mouseReleased (MouseEvent &event) |
void | updateResizeHandler (MouseEvent &event) |
void | setWindowName (const std::string &name) |
const std::string & | getWindowName () const |
void | loadWindowState () |
void | saveWindowState () |
void | setDefaultSize (const int defaultX, const int defaultY, int defaultWidth, int defaultHeight) |
void | setDefaultSize () |
void | setDefaultSize (const int defaultWidth, const int defaultHeight, const ImagePosition::Type &position, const int offsetx, const int offsetY) |
virtual void | resetToDefaultSize () |
void | adjustPositionAfterResize (const int oldScreenWidth, const int oldScreenHeight) |
Layout & | getLayout () |
void | clearLayout () |
void | reflowLayout (int w, int h) |
LayoutCell & | place (const int x, const int y, Widget *const wg, const int w, const int h) |
ContainerPlacer | getPlacer (const int x, const int y) |
void | center () |
void | centerHorisontally () |
virtual void | close () |
void | setModal (const Modal modal) |
Rect | getWindowArea () const |
bool | isResizeAllowed (const MouseEvent &event) const |
void | setCaptionFont (Font *font) |
void | enableVisibleSound (bool b) |
bool | isWindowVisible () const |
void | setPadding (int padding) |
int | getPadding () const |
void | setTitleBarHeight (unsigned int height) |
unsigned int | getTitleBarHeight () const |
void | setCaption (const std::string &caption) |
const std::string & | getCaption () const |
void | setAlignment (Graphics::Alignment alignment) |
Graphics::Alignment | getAlignment () const |
void | setMovable (Move movable) |
bool | isMovable () const |
Rect | getChildrenArea () |
virtual void | resizeToContent () |
Public Member Functions inherited from BasicContainer2 | |
BasicContainer2 (const Widget2 *const widget) | |
~BasicContainer2 () | |
void | setOpaque (Opaque opaque) |
bool | isOpaque () const |
virtual void | add (Widget *const widget) |
void | addXY (Widget *const widget, const int x, const int y) |
Public Member Functions inherited from BasicContainer | |
BasicContainer (const Widget2 *const widget) | |
~BasicContainer () | |
void | showWidgetPart (Widget *const widget, const Rect &area) |
void | moveToTop (Widget *const widget) |
void | moveToBottom (Widget *const widget) |
void | focusNext () |
void | focusPrevious () |
void | logic () |
void | setFocusHandler (FocusHandler *const focusHandler) |
void | setInternalFocusHandler (FocusHandler *const focusHandler) |
Widget * | getWidgetAt (int x, int y) |
void | death (const Event &event) |
Widget * | findFirstWidget (const std::set< Widget * > &list) |
void | add (Widget *const widget) |
virtual void | remove (Widget *const widget) |
virtual void | clear () |
Public Member Functions inherited from Widget | |
Widget (const Widget2 *const widget) | |
~Widget () | |
virtual void | drawFrame (Graphics *graphics) |
virtual void | safeDrawFrame (Graphics *graphics) |
void | setFrameSize (const unsigned int frameSize) |
unsigned int | getFrameSize () const |
Widget * | getParent () const |
void | setWidth (const int width) |
int | getWidth () const |
void | setHeight (const int height) |
int | getHeight () const |
void | setSize (const int width, const int height) |
void | setX (const int x) |
int | getX () const |
void | setY (const int y) |
int | getY () const |
void | setPosition (const int x, const int y) |
void | setDimension (const Rect &dimension) |
const Rect & | getDimension () const |
void | setFocusable (const bool focusable) |
bool | isFocusable () const |
virtual bool | isFocused () const |
void | setEnabled (const bool enabled) |
bool | isEnabled () const |
void | setVisible (Visible visible) |
bool | isVisible () const |
void | setBaseColor (const Color &color) |
const Color & | getBaseColor () const |
void | setForegroundColor (const Color &color) |
const Color & | getForegroundColor () const |
void | setBackgroundColor (const Color &color) |
const Color & | getBackgroundColor () const |
virtual void | requestFocus () |
virtual void | requestMoveToTop () |
virtual void | requestMoveToBottom () |
FocusHandler * | getFocusHandler () |
void | addActionListener (ActionListener *const actionListener) |
void | removeActionListener (ActionListener *const actionListener) |
void | addDeathListener (WidgetDeathListener *const deathListener) |
void | removeDeathListener (WidgetDeathListener *const deathListener) |
void | addMouseListener (MouseListener *const mouseListener) |
void | removeMouseListener (MouseListener *const mouseListener) |
void | addKeyListener (KeyListener *const keyListener) |
void | removeKeyListener (KeyListener *const keyListener) |
void | addFocusListener (FocusListener *const focusListener) |
void | removeFocusListener (FocusListener *const focusListener) |
void | addWidgetListener (WidgetListener *const widgetListener) |
void | removeWidgetListener (WidgetListener *const widgetListener) |
void | setActionEventId (const std::string &actionEventId) |
const std::string & | getActionEventId () const |
virtual void | getAbsolutePosition (int &x, int &y) const |
virtual void | setParent (Widget *parent) |
Font * | getFont () const |
void | setFont (Font *const font) |
virtual void | fontChanged () |
bool | isTabInEnabled () const |
void | setTabInEnabled (const bool enabled) |
bool | isTabOutEnabled () const |
void | setTabOutEnabled (const bool enabled) |
void | requestModalFocus () |
virtual void | requestModalMouseInputFocus () |
virtual void | releaseModalFocus () |
virtual void | releaseModalMouseInputFocus () |
virtual bool | isModalFocused () const |
virtual bool | isModalMouseInputFocused () const |
const std::list< MouseListener * > & | getMouseListeners () const A_CONST |
const std::list< KeyListener * > & | getKeyListeners () const A_CONST |
const std::list< FocusListener * > & | getFocusListeners () const A_CONST |
virtual FocusHandler * | getInternalFocusHandler () |
void | setInternalFocusHandler (FocusHandler *const internalFocusHandler) |
void | setId (const std::string &id) |
const std::string & | getId () const |
virtual void | showPart (const Rect &rectangle) |
bool | isAllowLogic () const |
void | setMouseConsume (const bool b) |
bool | isMouseConsume () const |
void | setRedraw (const bool b) |
virtual bool | isSelectable () const |
void | setSelectable (const bool selectable) |
void | windowResized () |
Public Member Functions inherited from Widget2 | |
virtual | ~Widget2 () |
const Color & | getThemeColor (const ThemeColorIdT type, const unsigned int alpha) const A_INLINE |
const Color & | getThemeCharColor (const signed char c, bool &valid) const A_INLINE |
virtual void | setWidget2 (const Widget2 *const widget) |
void | setPalette (int palette) |
void | checkPalette () |
void | setForegroundColor2 (const Color &color) |
Widget * | getWindow () const |
virtual void | setWindow (Widget *const window) |
Public Member Functions inherited from WidgetDeathListener | |
virtual | ~WidgetDeathListener () |
Public Member Functions inherited from MouseListener | |
virtual | ~MouseListener () |
virtual void | mouseClicked (MouseEvent &event) |
virtual void | mouseWheelMovedUp (MouseEvent &event) |
virtual void | mouseWheelMovedDown (MouseEvent &event) |
Public Member Functions inherited from WidgetListener | |
virtual | ~WidgetListener () |
virtual void | widgetShown (const Event &event) |
Public Member Functions inherited from ActionListener | |
virtual | ~ActionListener () |
Public Member Functions inherited from KeyListener | |
virtual | ~KeyListener () |
virtual void | keyReleased (KeyEvent &event) |
Public Member Functions inherited from ConfigListener | |
ConfigListener () | |
virtual | ~ConfigListener () |
Public Member Functions inherited from AttributeListener | |
AttributeListener () | |
virtual | ~ AttributeListener () |
Public Member Functions inherited from DebugMessageListener | |
DebugMessageListener () | |
virtual | ~ DebugMessageListener () |
Static Public Member Functions | |
static void | clearTab (ChatTab *const tab) |
static void | battleChatLog (const std::string &line, ChatMsgTypeT own, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors) |
static bool | saveTab (const int num, const ChatTab *const tab) |
static std::string | doReplace (const std::string &msg) |
Static Public Member Functions inherited from Window | |
static void | setWindowContainer (WindowContainer *const windowContainer) |
Static Public Member Functions inherited from Widget | |
static void | setGlobalFont (Font *const font) |
static Font * | getGloablFont () |
static void | cleanGlobalFont () |
static bool | widgetExists (const Widget *const widget) |
static void | distributeWindowResizeEvent () |
static Widget * | callPostInit (Widget *const widget) |
Static Public Member Functions inherited from AttributeListener | |
static void | distributeEvent (const AttributesT id, const int64_t oldVal, const int64_t newVal) |
static void | addListener (AttributeListener *const listener) |
static void | removeListener (const AttributeListener *const listener) |
Static Public Member Functions inherited from DebugMessageListener | |
static void | distributeEvent (const std::string &msg) |
static void | addListener (DebugMessageListener *const listener) |
static void | removeListener (const DebugMessageListener *const listener) |
Protected Types | |
typedef std::list< std::string > | History |
Protected Types inherited from BasicContainer | |
typedef std::vector< Widget * > | WidgetList |
typedef WidgetList::iterator | WidgetListIterator |
typedef WidgetList::const_iterator | WidgetListConstIterator |
typedef WidgetList::reverse_iterator | WidgetListReverseIterator |
typedef WidgetList::const_reverse_iterator | WidgetListCReverseIterator |
Protected Types inherited from Widget | |
typedef std::list< MouseListener * > | MouseListenerList |
typedef MouseListenerList::iterator | MouseListenerIterator |
typedef std::list< KeyListener * > | KeyListenerList |
typedef KeyListenerList::iterator | KeyListenerIterator |
typedef std::list< ActionListener * > | ActionListenerList |
typedef ActionListenerList::iterator | ActionListenerIterator |
typedef std::list< WidgetDeathListener * > | WidgetDeathListenerList |
typedef WidgetDeathListenerList::iterator | WidgetDeathListenerIterator |
typedef std::list< FocusListener * > | FocusListenerList |
typedef FocusListenerList::iterator | FocusListenerIterator |
typedef std::list< WidgetListener * > | WidgetListenerList |
typedef WidgetListenerList::iterator | WidgetListenerIterator |
Protected Member Functions | |
void | removeTab (ChatTab *const tab) |
void | addTab (ChatTab *const tab) |
void | removeWhisper (const std::string &nick) |
void | removeChannel (const std::string &nick) |
void | autoComplete () |
std::string | addColors (std::string &msg) |
std::string | autoCompleteHistory (const std::string &partName) const |
void | initTradeFilter () |
void | toggleChatFocus () |
Protected Member Functions inherited from Window | |
bool | canMove () const |
int | getOption (const std::string &name, const int def) const |
bool | getOptionBool (const std::string &name, const bool def) const |
void | setTitlePadding (const int p) |
int | getTitlePadding () const |
Protected Member Functions inherited from BasicContainer | |
virtual void | drawChildren (Graphics *const graphics) |
virtual void | safeDrawChildren (Graphics *const graphics) |
virtual void | logicChildren () |
Protected Member Functions inherited from Widget | |
void | distributeActionEvent () |
void | distributeResizedEvent () |
void | distributeMovedEvent () |
void | distributeHiddenEvent () |
void | distributeShownEvent () |
Protected Member Functions inherited from Widget2 | |
Widget2 (const Widget2 *const widget) | |
Protected Member Functions inherited from WidgetDeathListener | |
WidgetDeathListener () | |
Protected Member Functions inherited from MouseListener | |
MouseListener () | |
Protected Member Functions inherited from WidgetListener | |
WidgetListener () | |
Protected Member Functions inherited from ActionListener | |
ActionListener () | |
Protected Member Functions inherited from KeyListener | |
KeyListener () | |
Static Protected Member Functions | |
static std::string | autoComplete (const std::string &partName, const History *const words) |
static std::string | autoComplete (const StringVect &names, std::string partName) |
Private Types | |
typedef std::map< const std::string, WhisperTab * > | TabMap |
typedef std::map< const std::string, ChannelTab * > | ChannelMap |
typedef History::iterator | HistoryIterator |
typedef std::list< std::string > | ChatCommands |
typedef ChatCommands::iterator | ChatCommandsIterator |
Private Member Functions | |
void | fillCommands () |
void | loadCommandsFile (const std::string &name) |
void | updateTabsMargin () |
bool | addCurrentToHistory () |
Private Attributes | |
TabMap | mWhispers |
ChannelMap | mChannels |
History | mHistory |
HistoryIterator | mCurHist |
History | mCommands |
History | mCustomWords |
StringVect | mTradeFilter |
ColorListModel * | mColorListModel |
DropDown * | mColorPicker |
Button * | mChatButton |
std::list< std::string > | mAwayLog |
StringVect | mHighlights |
StringVect | mGlobalsFilter |
int | mChatColor |
int | mEmoteButtonSpacing |
int | mEmoteButtonY |
unsigned int | mChatHistoryIndex |
bool | mReturnToggles |
bool | mGMLoaded |
bool | mHaveMouse |
bool | mAutoHide |
bool | mShowBattleEvents |
bool | mShowAllLang |
bool | mEnableTradeFilter |
bool | mTmpVisible |
Friends | |
class | ChannelTab |
class | ChatTab |
class | WhisperTab |
class | PopupMenu |
Additional Inherited Members | |
Data Fields inherited from Widget | |
Visible | mVisible |
Static Protected Attributes inherited from Widget | |
static Font * | mGlobalFont = 0 |
The chat window.
Definition at line 55 of file chatwindow.h.
|
private |
Definition at line 365 of file chatwindow.h.
|
private |
Definition at line 375 of file chatwindow.h.
|
private |
Definition at line 376 of file chatwindow.h.
|
protected |
Definition at line 316 of file chatwindow.h.
|
private |
Definition at line 371 of file chatwindow.h.
|
private |
Definition at line 364 of file chatwindow.h.
|
explicit |
Constructor.
Definition at line 98 of file chatwindow.cpp.
References ACTION_COLOR_PICKER, Widget::addActionListener(), Widget::addKeyListener(), Configuration::addListener(), EmoteWindow::addListeners(), Button::adjustSize(), config, emoteWindow, TabbedArea::enableScrollButtons(), Window::enableVisibleSound(), fillCommands(), fromBool, Configuration::getBoolValue(), Graphics::getHeight(), Window::getPadding(), Window::getTitlePadding(), Widget::getWidth(), Graphics::getWidth(), initTradeFilter(), Being::isGM(), loadCustomList(), loadGMCommands(), Window::loadWindowState(), localPlayer, ImagePosition::LOWER_LEFT, mainGraphics, mChatButton, mChatColor, mChatInput, mChatTabs, mColorPicker, mCurHist, mHistory, mItemLinkHandler, Window::mPadding, parseGlobalsFilter(), parseHighlights(), SetupWindow::registerWindowForReset(), Widget::setActionEventId(), ItemLinkHandler::setAllowCommands(), TextField::setAllowSpecialActions(), Window::setDefaultSize(), Window::setDefaultVisible(), TabbedArea::setFollowDownScroll(), Window::setMinHeight(), Window::setMinWidth(), Widget::setPosition(), Window::setResizable(), TabbedArea::setResizeHeight(), Window::setSaveVisible(), DropDown::setSelected(), Window::setShowTitle(), Window::setStickyButtonLock(), Window::setTitleBarHeight(), setupWindow, Widget::setVisible(), Window::setWindowName(), updateTabsMargin(), and ImagePosition::UPPER_LEFT.
ChatWindow::~ChatWindow | ( | ) |
Destructor: used to write back values to the config file
Definition at line 219 of file chatwindow.cpp.
References CHECKLISTENERS, config, delete2, mColorListModel, mColorPicker, mItemLinkHandler, mReturnToggles, removeAllChannels(), removeAllWhispers(), Configuration::removeListeners(), saveState(), and Configuration::setValue().
|
virtual |
Performs action.
Implements ActionListener.
Definition at line 439 of file chatwindow.cpp.
References ACTION_COLOR_PICKER, addColors(), addInputText(), chatInput(), EmoteWindow::clearColor(), EmoteWindow::clearEmote(), EmoteWindow::clearFont(), EmoteWindow::clearText(), config, emoteWindow, FocusHandler::focusNone(), fromBool, Configuration::getBoolValue(), TextDb::getByIndex(), DropDown::getSelected(), EmoteWindow::getSelectedColor(), EmoteWindow::getSelectedEmote(), EmoteWindow::getSelectedFont(), EmoteWindow::getSelectedTextIndex(), PoDict::getStr(), TextField::getText(), EmoteWindow::hide(), mChatColor, mChatInput, mColorPicker, mCurHist, Widget::mFocusHandler, mHistory, mReturnToggles, mTmpVisible, Widget::mVisible, reverseDictionary, TextField::setText(), Configuration::setValue(), Widget::setVisible(), setVisible(), EmoteWindow::show(), ChatInput::unprotectFocus(), Visible_false, and Visible_true.
Referenced by keyPressed().
ChatTab * ChatWindow::addChannelTab | ( | const std::string & | name, |
const bool | switchTo | ||
) |
Definition at line 1311 of file chatwindow.cpp.
References addSpecialChannelTab(), ChannelTab, config, Configuration::getBoolValue(), ChatTab::loadFromLogFile(), mChannels, mChatTabs, ChatTab::setAllowHighlight(), TabbedArea::setSelectedTab(), and Catch::toLower().
Referenced by addChatTab(), channelChatLog(), EAthena::ChatRecv::processColorChat(), and EAthena::ChatRecv::processJoinChannel().
ChatTab * ChatWindow::addChatTab | ( | const std::string & | name, |
const bool | switchTo, | ||
const bool | join | ||
) |
Definition at line 1343 of file chatwindow.cpp.
References addChannelTab(), addWhisperTab(), chatHandler, Net::getNetworkType(), Net::ChatHandler::joinChannel(), and ServerType::TMWATHENA.
Referenced by loadState().
|
protected |
Definition at line 1404 of file chatwindow.cpp.
References changeColor, mChatColor, mRainbowColor, Actions::msg(), and Catch::toString().
Referenced by action().
|
private |
Definition at line 1006 of file chatwindow.cpp.
References FOR_EACH, TextField::getText(), mChatInput, and mHistory.
Referenced by keyPressed().
void ChatWindow::addGlobalMessage | ( | const std::string & | line | ) |
Definition at line 2154 of file chatwindow.cpp.
References ChatMsgType::BY_GM, ChatMsgType::BY_OTHER, ChatTab::chatLog(), debugChatTab, findI(), IgnoreRecord_false, localChatTab, mGlobalsFilter, and TryRemoveColors_true.
Referenced by EAthena::ChatRecv::processGmChat(), TmwAthena::ChatRecv::processGmChat(), and EAthena::ChatRecv::processGmChat2().
void ChatWindow::addInputText | ( | const std::string & | text, |
const bool | space | ||
) |
Add the given text to the chat input.
Definition at line 1080 of file chatwindow.cpp.
References CAST_S32, TextField::getCaretPosition(), TextField::getText(), mChatInput, requestChatFocus(), TextField::setCaretPosition(), and TextField::setText().
Referenced by StatDebugTab::action(), action(), StatusWindow::action(), addItemText(), WhoIsOnline::handleLink(), and keyPressed().
void ChatWindow::addItemText | ( | const std::string & | item | ) |
Called to add item to chat
Definition at line 1098 of file chatwindow.cpp.
References addInputText().
Referenced by ItemContainer::mousePressed().
ChatTab * ChatWindow::addSpecialChannelTab | ( | const std::string & | name, |
const bool | switchTo | ||
) |
Definition at line 1282 of file chatwindow.cpp.
References chatHandler, chatWindow, ChatTab::getChannelName(), GM_CHANNEL, gmChatTab, Net::ChatHandler::joinChannel(), mChatTabs, ChatTab::setAllowHighlight(), TabbedArea::setSelectedTab(), TRADE_CHANNEL, and tradeChatTab.
Referenced by addChannelTab(), createGuiWindows(), and showGMTab().
|
protected |
Add the tab to the window
Definition at line 589 of file chatwindow.cpp.
References TabbedArea::addTab(), BasicContainer::logic(), mChatTabs, and ChatTab::mScrollArea.
Referenced by ChatTab::ChatTab().
void ChatWindow::addToAwayLog | ( | const std::string & | line | ) |
Definition at line 1993 of file chatwindow.cpp.
References Settings::awayMode, findI(), mAwayLog, mHighlights, and settings.
Referenced by ChatTab::chatLog().
void ChatWindow::addWhisper | ( | const std::string & | nick, |
const std::string & | mes, | ||
const ChatMsgTypeT | own | ||
) |
Definition at line 1117 of file chatwindow.cpp.
References _, ChatMsgType::ACT_WHISPER, addWhisperTab(), LocalPlayer::afkRespond(), ChatMsgType::BY_PLAYER, ChatMsgType::BY_SERVER, chatHandler, ChatTab::chatInput(), ChatTab::chatLog(), config, Configuration::getBoolValue(), Being::getName(), ChatTab::getRemoveNames(), IgnoreRecord_false, localChatTab, localPlayer, Actions::msg(), mWhispers, Net::ChatHandler::privateMessage(), removeColors(), saveState(), strprintf(), Catch::toLower(), Catch::trim(), and TryRemoveColors_true.
Referenced by EAthena::ChatRecv::processWhisperContinue(), TmwAthena::ChatRecv::processWhisperContinue(), Ea::ChatRecv::processWhisperResponseContinue(), TmwAthena::BuySellHandler::requestBuyList(), TmwAthena::BuySellHandler::requestSellList(), TmwAthena::BuySellHandler::sendBuyRequest(), ShopWindow::sendMessage(), and TmwAthena::BuySellHandler::sendSellRequest().
WhisperTab * ChatWindow::addWhisperTab | ( | const std::string & | caption, |
const std::string & | nick, | ||
const bool | switchTo | ||
) |
Definition at line 1220 of file chatwindow.cpp.
References config, Configuration::getBoolValue(), Being::getName(), Gui::getSecureFont(), gui, PlayerRelationsManager::isGoodName(), ChatTab::loadFromLogFile(), localPlayer, mChatTabs, mWhispers, playerRelations, Tab::setLabelFont(), TabbedArea::setSelectedTab(), Catch::toLower(), and WhisperTab.
Referenced by addChatTab(), addWhisper(), and AvatarListBox::mousePressed().
void ChatWindow::adjustTabSize | ( | ) |
Definition at line 281 of file chatwindow.cpp.
References TabbedArea::adjustSize(), config, Configuration::getBoolValue(), Window::getChildrenArea(), TabbedArea::getContainerHeight(), getFocused(), Widget::getFrameSize(), Widget::getHeight(), Widget::getWidth(), Rect::height, Widget::logic(), mChatButton, mChatInput, mChatTabs, mColorPicker, mEmoteButtonSpacing, mEmoteButtonY, Window::mPadding, ChatTab::mScrollArea, Widget::mVisible, TabbedArea::setHeight(), Widget::setPosition(), Widget::setSize(), Widget::setVisible(), Widget::setWidth(), TabbedArea::setWidth(), updateTabsMargin(), Visible_false, Visible_true, Rect::width, x, and y.
Referenced by Setup_Chat::apply(), ChatInput::processVisible(), and widgetResized().
|
virtual |
Implements AttributeListener.
Definition at line 1020 of file chatwindow.cpp.
References battleChatLog(), ChatMsgType::BY_SERVER, CAST_S32, CAST_U64, config, PlayerInfo::getAttribute(), Configuration::getBoolValue(), IgnoreRecord_false, mShowBattleEvents, Attributes::PLAYER_BASE_LEVEL, Attributes::PLAYER_EXP, Attributes::PLAYER_JOB_EXP, Attributes::PLAYER_JOB_EXP_NEEDED, PRAGMA45(), Catch::toString(), and TryRemoveColors_true.
|
protected |
Definition at line 1438 of file chatwindow.cpp.
References actorManager, SpellManager::autoComplete(), autoCompleteHistory(), CAST_S32, ChatTab::getAutoCompleteCommands(), ChatTab::getAutoCompleteList(), TextField::getCaretPosition(), ActorManager::getMobNames(), WhoIsOnline::getPlayerNames(), ActorManager::getPlayerNames(), TabbedArea::getSelectedTab(), TextField::getText(), isWordSeparator(), mChatInput, mChatTabs, mCommands, mCustomWords, NpcNames_true, secureChatCommand(), TextField::setCaretPosition(), TextField::setText(), spellManager, and whoIsOnline.
Referenced by autoComplete(), autoCompleteHistory(), and keyPressed().
|
staticprotected |
|
staticprotected |
Definition at line 1516 of file chatwindow.cpp.
References findSameSubstringI(), and Catch::toLower().
|
protected |
Definition at line 1578 of file chatwindow.cpp.
References autoComplete(), isWordSeparator(), and mHistory.
Referenced by autoComplete().
|
static |
Definition at line 1765 of file chatwindow.cpp.
References battleChatTab, ChatMsgType::BY_SERVER, ChatMsgType::BY_UNKNOWN, ChatTab::chatLog(), and debugChatTab.
Referenced by attributeChanged(), and Being::takeDamage().
void ChatWindow::channelChatLog | ( | const std::string & | channel, |
const std::string & | line, | ||
ChatMsgTypeT | own, | ||
const IgnoreRecord | ignoreRecord, | ||
const TryRemoveColors | tryRemoveColors | ||
) |
Definition at line 1777 of file chatwindow.cpp.
References addChannelTab(), ChatTab::chatLog(), mChannels, saveState(), and Catch::toLower().
Referenced by EAthena::ChatRecv::processJoinChannel(), EAthena::ChatRecv::processWhisperResponse(), and resortChatLog().
void ChatWindow::chatInput | ( | const std::string & | msg | ) | const |
Passes the text to the current tab as input
msg | The message text which is to be sent. |
Definition at line 665 of file chatwindow.cpp.
References ChatTab::chatInput(), config, Configuration::getBoolValue(), getFocused(), Game::instance(), localChatTab, Actions::msg(), Game::setValidSpeed(), and Catch::trim().
Referenced by action(), IPC::flush(), and localChatInput().
|
inline |
Definition at line 257 of file chatwindow.h.
References mAwayLog.
Referenced by GameModifiers::changeAwayMode().
void ChatWindow::clearTab | ( | ) | const |
|
static |
Clear the given tab.
Definition at line 362 of file chatwindow.cpp.
References ChatTab::clearText().
void ChatWindow::closeTab | ( | ) | const |
Close current chat tab
Definition at line 419 of file chatwindow.cpp.
References ChatTabType::CHANNEL, TabbedArea::getSelectedTabIndex(), TabbedArea::getTabByIndex(), ChatTab::getType(), ChatTab::handleCommand(), mChatTabs, and ChatTabType::WHISPER.
void ChatWindow::copyToClipboard | ( | const int | x, |
const int | y | ||
) | const |
Definition at line 2050 of file chatwindow.cpp.
References getFocused(), BrowserBox::getTextAtPos(), ChatTab::mTextOutput, sendBuffer(), x, and y.
|
virtual |
Implements DebugMessageListener.
Definition at line 2178 of file chatwindow.cpp.
References ChatMsgType::BY_SERVER, ChatTab::chatLog(), debugChatTab, IgnoreRecord_false, Actions::msg(), and TryRemoveColors_true.
void ChatWindow::defaultTab | ( | ) |
Switch to the default tab
Definition at line 433 of file chatwindow.cpp.
References CAST_U32, mChatTabs, and TabbedArea::setSelectedTabByIndex().
Referenced by ChannelTab::handleCommand(), and WhisperTab::handleCommand().
void ChatWindow::displayAwayLog | ( | ) | const |
Definition at line 2005 of file chatwindow.cpp.
References ChatTab::addNewRow(), localChatTab, and mAwayLog.
Referenced by GameModifiers::changeAwayMode().
void ChatWindow::doPresent | ( | ) | const |
Definition at line 699 of file chatwindow.cpp.
References _, actorManager, ChatMsgType::BY_SERVER, ChatTab::chatLog(), FOR_EACH, ActorManager::getAll(), getFocused(), Being::getName(), IgnoreRecord_false, ActorType::Player, strprintf(), and TryRemoveColors_true.
|
static |
Definition at line 1961 of file chatwindow.cpp.
References Actions::msg(), and replaceSpecialChars().
Referenced by ChannelTab::handleInput(), ChatTab::handleInput(), ClanTab::handleInput(), EmulateGuildTab::handleInput(), GmTab::handleInput(), GuildTab::handleInput(), PartyTab::handleInput(), TradeTab::handleInput(), and WhisperTab::handleInput().
|
virtual |
Draws the window.
Reimplemented from Window.
Definition at line 2094 of file chatwindow.cpp.
References BLOCK_END, BLOCK_START, Window::draw(), GLDEBUG_END, GLDEBUG_START, mAutoHide, and mHaveMouse.
|
private |
Definition at line 258 of file chatwindow.cpp.
References InputManager::addChatCommands(), loadCommandsFile(), and mCommands.
Referenced by ChatWindow().
bool ChatWindow::findHighlight | ( | const std::string & | str | ) |
Definition at line 2045 of file chatwindow.cpp.
References findI(), and mHighlights.
Referenced by ChatTab::chatLog().
ChatTab * ChatWindow::getFocused | ( | ) | const |
Gets the focused tab.
Definition at line 357 of file chatwindow.cpp.
References TabbedArea::getSelectedTab(), and mChatTabs.
Referenced by adjustTabSize(), chatInput(), clearTab(), copyToClipboard(), doPresent(), keyPressed(), mousePressed(), and scroll().
|
inline |
WhisperTab * ChatWindow::getWhisperTab | ( | const std::string & | nick | ) | const |
Definition at line 1259 of file chatwindow.cpp.
References Being::getName(), localPlayer, mWhispers, and Catch::toLower().
Referenced by LocalPlayer::checkNewName().
void ChatWindow::ignoreAllWhispers | ( | ) |
Definition at line 645 of file chatwindow.cpp.
References WhisperTab::getNick(), PlayerRelationsManager::getRelation(), WhisperTab::handleCommand(), Relation::IGNORED, mWhispers, playerRelations, and PlayerRelationsManager::setRelation().
|
protected |
Definition at line 1804 of file chatwindow.cpp.
References mTradeFilter, Settings::serverConfigDir, and settings.
Referenced by ChatWindow().
bool ChatWindow::isInputFocused | ( | ) | const |
Checks whether ChatWindow is Focused or not.
Definition at line 579 of file chatwindow.cpp.
References Widget::isFocused(), and mChatInput.
Referenced by Game::handleMove(), and InputManager::updateConditionMask().
bool ChatWindow::isTabPresent | ( | const ChatTab *const | tab | ) | const |
Definition at line 2173 of file chatwindow.cpp.
References TabbedArea::isTabPresent(), and mChatTabs.
Referenced by Actions::uploadUpdate().
void ChatWindow::joinRoom | ( | const bool | isJoin | ) |
Definition at line 2207 of file chatwindow.cpp.
References _, PlayerInfo::getRoomName(), TabbedArea::getTabByIndex(), mChatTabs, and Tab::setCaption().
Referenced by EAthena::ChatRecv::processChatRoomCreateAck(), EAthena::ChatRecv::processChatRoomJoinAck(), EAthena::ChatRecv::processChatRoomLeave(), and EAthena::ChatRecv::processChatRoomSettings().
|
virtual |
Called when key is pressed
Reimplemented from KeyListener.
Definition at line 822 of file chatwindow.cpp.
References action(), addCurrentToHistory(), addInputText(), autoComplete(), CAST_SIZE, CAST_U32, InputAction::CHAT_NEXT_HISTORY, InputAction::CHAT_PREV_HISTORY, emoteWindow, getFocused(), KeyEvent::getKey(), ChatTab::getRows(), TextField::getText(), TextField::getTextBeforeCaret(), Key::getValue(), InputAction::GUI_B, InputAction::GUI_CANCEL, InputAction::GUI_CTRL, InputAction::GUI_DOWN, InputAction::GUI_F1, InputAction::GUI_F10, InputAction::GUI_F11, InputAction::GUI_F12, InputAction::GUI_F2, InputAction::GUI_F3, InputAction::GUI_F4, InputAction::GUI_F5, InputAction::GUI_F6, InputAction::GUI_F7, InputAction::GUI_F8, InputAction::GUI_F9, InputAction::GUI_INSERT, InputAction::GUI_TAB, InputAction::GUI_UP, ChatTab::hasRows(), EmoteWindow::hide(), ifKey, inputManager, InputManager::isActionActive(), mChatHistoryIndex, mChatInput, mCurHist, mHistory, Widget::mVisible, ChatInput::processVisible(), TextField::setCaretPosition(), TextField::setText(), EmoteWindow::show(), KeyValue::TEXTINPUT, Catch::toLower(), Visible_false, and Visible_true.
|
private |
Definition at line 242 of file chatwindow.cpp.
References VirtFs::loadTextFile(), and mCommands.
Referenced by fillCommands(), and loadGMCommands().
void ChatWindow::loadCustomList | ( | ) |
Definition at line 1968 of file chatwindow.cpp.
References mCustomWords, Settings::serverConfigDir, and settings.
Referenced by ChatWindow().
void ChatWindow::loadGMCommands | ( | ) |
Definition at line 264 of file chatwindow.cpp.
References loadCommandsFile(), and mGMLoaded.
Referenced by ChatWindow(), and LocalPlayer::setGroupId().
void ChatWindow::loadState | ( | ) |
Definition at line 1888 of file chatwindow.cpp.
References addChatTab(), ConfigurationObject::getValue(), serverConfig, ChatTab::setAllowHighlight(), ChatTab::setNoAway(), ChatTab::setRemoveNames(), and Catch::toString().
Referenced by createGuiWindows().
void ChatWindow::localChatInput | ( | const std::string & | msg | ) | const |
Passes the text to the local chat tab as input
msg | The message text which is to be sent. |
Definition at line 691 of file chatwindow.cpp.
References ChatTab::chatInput(), chatInput(), localChatTab, and Actions::msg().
Referenced by WhoIsOnline::handleLink(), ActorManager::heal(), SpellManager::invokeCommand(), SpellManager::invokeSpell(), ActorManager::itenplz(), and LocalPlayer::tryMagic().
|
virtual |
Handles mouse when dragged.
Reimplemented from Window.
Definition at line 799 of file chatwindow.cpp.
References Window::canMove(), Widget::getHeight(), Widget::getWidth(), MouseEvent::getX(), Widget::getX(), MouseEvent::getY(), Widget::getY(), InputGuiEvent::isConsumed(), Window::isMovable(), mainGraphics, Window::mDragOffsetX, Window::mDragOffsetY, Graphics::mHeight, Window::mMoved, Window::mouseDragged(), Graphics::mWidth, and Widget::setPosition().
|
virtual |
Called when the mouse has entered into the widget area.
event | Describes the event. |
Reimplemented from Window.
Definition at line 2082 of file chatwindow.cpp.
References mHaveMouse, and Window::mouseEntered().
|
virtual |
When the mouse leaves the window this ensures that the custom cursor is restored back to it's standard image.
Reimplemented from Window.
Definition at line 2088 of file chatwindow.cpp.
References Window::mouseExited(), and updateVisibility().
|
virtual |
Implements custom cursor image changing context, based on mouse relative position.
Reimplemented from Window.
Definition at line 2076 of file chatwindow.cpp.
References mHaveMouse, and Window::mouseMoved().
|
virtual |
Handles mouse when pressed.
Reimplemented from Window.
Definition at line 743 of file chatwindow.cpp.
References InputAction::CHAT_MOD, InputAction::CLOSE_CHAT_TAB, InputManager::executeChatCommand(), MouseEvent::getButton(), getFocused(), TabbedArea::getSelectedTab(), gui, inputManager, InputManager::isActionActive(), InputGuiEvent::isConsumed(), Window::isResizeAllowed(), MouseButton::LEFT, mChatTabs, Window::mDragOffsetX, Window::mDragOffsetY, Viewport::mMouseX, Viewport::mMouseY, Window::mMoved, Window::mousePressed(), popupMenu, Gui::resetClickCount(), MouseButton::RIGHT, PopupMenu::showChatPopup(), toggleChatFocus(), and viewport.
void ChatWindow::nextTab | ( | ) |
Switch to the next tab in order
Definition at line 387 of file chatwindow.cpp.
References TabbedArea::getNumberOfTabs(), TabbedArea::getSelectedTabIndex(), mChatTabs, and TabbedArea::setSelectedTabByIndex().
|
virtual |
Called when an option changed. The config listener will have to be registered to the option name first.
Implements ConfigListener.
Definition at line 2064 of file chatwindow.cpp.
References config, Configuration::getBoolValue(), mAutoHide, mEnableTradeFilter, mShowBattleEvents, and parseGlobalsFilter().
void ChatWindow::parseGlobalsFilter | ( | ) |
Definition at line 2033 of file chatwindow.cpp.
References config, Being::getName(), Configuration::getStringValue(), localPlayer, mGlobalsFilter, mHighlights, and splitToStringVector().
Referenced by ChatWindow(), and optionChanged().
void ChatWindow::parseHighlights | ( | ) |
Definition at line 2021 of file chatwindow.cpp.
References config, Being::getName(), Configuration::getStringValue(), localPlayer, mHighlights, and splitToStringVector().
Referenced by Setup_Chat::apply(), and ChatWindow().
void ChatWindow::postConnection | ( | ) |
Definition at line 1359 of file chatwindow.cpp.
References chatHandler, FOR_EACH, ChatTab::getChannelName(), Net::ChatHandler::joinChannel(), langChatTab, and mChannels.
Referenced by Game::Game().
|
virtual |
Reimplemented from Window.
Definition at line 232 of file chatwindow.cpp.
References BasicContainer2::add(), mChatButton, mChatInput, mChatTabs, mColorPicker, Window::postInit(), and updateVisibility().
void ChatWindow::prevTab | ( | ) |
Switch to the previous tab in order
Definition at line 373 of file chatwindow.cpp.
References TabbedArea::getNumberOfTabs(), TabbedArea::getSelectedTabIndex(), mChatTabs, and TabbedArea::setSelectedTabByIndex().
void ChatWindow::removeAllChannels | ( | ) |
Definition at line 629 of file chatwindow.cpp.
References FOR_EACH, and mChannels.
Referenced by ~ChatWindow().
void ChatWindow::removeAllWhispers | ( | ) |
Definition at line 613 of file chatwindow.cpp.
References FOR_EACH, and mWhispers.
Referenced by ~ChatWindow().
|
protected |
Definition at line 605 of file chatwindow.cpp.
References chatHandler, mChannels, Net::ChatHandler::partChannel(), and Catch::toLower().
Referenced by ChannelTab::~ChannelTab().
|
protected |
Remove the given tab from the window
Definition at line 584 of file chatwindow.cpp.
References mChatTabs, and TabbedArea::removeTab().
Referenced by ChatTab::~ChatTab().
|
protected |
Definition at line 598 of file chatwindow.cpp.
References mWhispers, and Catch::toLower().
Referenced by WhisperTab::~WhisperTab().
bool ChatWindow::requestChatFocus | ( | ) |
Request focus for typing chat message.
Definition at line 553 of file chatwindow.cpp.
References Widget::isFocused(), Widget::isVisible(), Window::isWindowVisible(), mChatInput, mTmpVisible, ChatInput::processVisible(), Widget::requestFocus(), setVisible(), unHideWindow(), and Visible_true.
Referenced by addInputText(), and toggleChatFocus().
bool ChatWindow::resortChatLog | ( | std::string | line, |
ChatMsgTypeT | own, | ||
const std::string & | channel, | ||
const IgnoreRecord | ignoreRecord, | ||
const TryRemoveColors | tryRemoveColors | ||
) |
Definition at line 1600 of file chatwindow.cpp.
References _, ChatMsgType::BY_OTHER, ChatMsgType::BY_PLAYER, ChatMsgType::BY_SERVER, ChatMsgType::BY_UNKNOWN, channelChatLog(), ChatTab::chatLog(), findI(), ChatTab::getChannelName(), Being::getName(), Net::getNetworkType(), langChatTab, localChatTab, localPlayer, mEnableTradeFilter, mShowAllLang, mTradeFilter, replaceAll(), ServerType::TMWATHENA, and tradeChatTab.
Referenced by EAthena::ChatRecv::processBeingChat(), TmwAthena::ChatRecv::processBeingChat(), TmwAthena::ChatRecv::processChatContinue(), and EAthena::ChatRecv::processChatContinue().
|
virtual |
Reimplemented from Window.
Definition at line 2106 of file chatwindow.cpp.
References BLOCK_END, BLOCK_START, GLDEBUG_END, GLDEBUG_START, mAutoHide, mHaveMouse, and Window::safeDraw().
void ChatWindow::saveState | ( | ) | const |
Definition at line 1913 of file chatwindow.cpp.
References ConfigurationObject::deleteKey(), mChannels, mWhispers, saveTab(), serverConfig, and Catch::toString().
Referenced by SetupWindow::action(), addWhisper(), channelChatLog(), AvatarListBox::mousePressed(), and ~ChatWindow().
|
static |
Definition at line 1944 of file chatwindow.cpp.
References CAST_S32, ChatTab::getAllowHighlight(), ChatTab::getChannelName(), ChatTab::getNoAway(), ChatTab::getRemoveNames(), serverConfig, Configuration::setValue(), and Catch::toString().
Referenced by saveState().
|
virtual |
Schedule this window for deletion. It will be deleted at the start of the next logic update.
Reimplemented from Window.
Definition at line 2226 of file chatwindow.cpp.
References DebugMessageListener::removeListener(), and Window::scheduleDelete().
Referenced by createGuiWindows(), and WindowManager::createWindows().
void ChatWindow::scroll | ( | const int | amount | ) | const |
Scrolls the chat window
amount | direction and amount to scroll. Negative numbers scroll up, positive numbers scroll down. The absolute amount indicates the amount of 1/8ths of chat window real estate that should be scrolled. |
Definition at line 733 of file chatwindow.cpp.
References getFocused(), Window::isWindowVisible(), and ChatTab::scroll().
void ChatWindow::selectTabByType | ( | const ChatTabTypeT & | type | ) |
Definition at line 401 of file chatwindow.cpp.
References TabbedArea::getNumberOfTabs(), TabbedArea::getTabByIndex(), ChatTab::getType(), mChatTabs, and TabbedArea::setSelectedTab().
void ChatWindow::setInputText | ( | const std::string & | text | ) |
Set the chat input as the given text.
void ChatWindow::setRecordingFile | ( | const std::string & | msg | ) |
Sets the file being recorded to
msg | The file to write out to. If null, then stop recording. |
|
inline |
|
virtual |
Override to reset mTmpVisible
Reimplemented from Window.
Definition at line 1106 of file chatwindow.cpp.
References mTmpVisible, and Window::setVisible().
Referenced by action(), WindowManager::createWindows(), and requestChatFocus().
void ChatWindow::showGMTab | ( | ) |
Definition at line 2189 of file chatwindow.cpp.
References addSpecialChannelTab(), config, Configuration::getBoolValue(), Being::getGroupId(), Configuration::getIntValue(), GM_CHANNEL, gmChatTab, localPlayer, and paths.
Referenced by createGuiWindows(), and LocalPlayer::setGroupId().
|
protected |
Definition at line 2199 of file chatwindow.cpp.
References Widget::isFocused(), Widget::isVisible(), mChatInput, ChatInput::processVisible(), requestChatFocus(), and Visible_false.
Referenced by mousePressed().
void ChatWindow::unHideWindow | ( | ) |
Definition at line 2140 of file chatwindow.cpp.
References mHaveMouse.
Referenced by ChatTab::chatLog(), and requestChatFocus().
void ChatWindow::updateOnline | ( | const std::set< std::string > & | onlinePlayers | ) | const |
Definition at line 1830 of file chatwindow.cpp.
References actorManager, ActorManager::findBeingByName(), FOR_EACH, Being::getGuild(), WhisperTab::getNick(), Avatar::getOnline(), Being::getParty(), Actions::gm(), guild, localPlayer, mWhispers, party, ActorType::Player, WhisperTab::setWhisperTabColors(), and WhisperTab::setWhisperTabOfflineColors().
Referenced by WhoIsOnline::loadList(), and WhoIsOnline::slowLogic().
|
private |
Definition at line 273 of file chatwindow.cpp.
References Widget::getWidth(), mChatTabs, mColorPicker, Widget::mVisible, TabbedArea::setRightMargin(), and Visible_true.
Referenced by adjustTabSize(), and ChatWindow().
void ChatWindow::updateVisibility | ( | ) |
Definition at line 2118 of file chatwindow.cpp.
References Widget::getAbsolutePosition(), Widget::getHeight(), Gui::getMouseState(), Widget::getWidth(), gui, Widget::isVisible(), mChatInput, mHaveMouse, x, and y.
Referenced by ChatInput::focusLost(), mouseExited(), and postInit().
|
virtual |
Called whenever the widget changes size.
Reimplemented from Window.
Definition at line 350 of file chatwindow.cpp.
References adjustTabSize(), and Window::widgetResized().
|
friend |
Definition at line 311 of file chatwindow.h.
Referenced by addChannelTab().
|
friend |
Definition at line 312 of file chatwindow.h.
|
friend |
Definition at line 314 of file chatwindow.h.
|
friend |
Definition at line 313 of file chatwindow.h.
Referenced by addWhisperTab().
|
private |
Definition at line 396 of file chatwindow.h.
Referenced by draw(), optionChanged(), and safeDraw().
|
private |
Definition at line 385 of file chatwindow.h.
Referenced by addToAwayLog(), clearAwayLog(), and displayAwayLog().
|
private |
Definition at line 369 of file chatwindow.h.
Referenced by addChannelTab(), channelChatLog(), postConnection(), removeAllChannels(), removeChannel(), and saveState().
|
private |
Definition at line 384 of file chatwindow.h.
Referenced by adjustTabSize(), ChatWindow(), and postInit().
|
private |
Definition at line 388 of file chatwindow.h.
Referenced by action(), addColors(), and ChatWindow().
|
private |
Definition at line 391 of file chatwindow.h.
Referenced by keyPressed().
|
protected |
Input box for typing chat messages.
Definition at line 347 of file chatwindow.h.
Referenced by action(), addCurrentToHistory(), addInputText(), adjustTabSize(), autoComplete(), ChatWindow(), isInputFocused(), keyPressed(), postInit(), requestChatFocus(), toggleChatFocus(), and updateVisibility().
|
protected |
Tabbed area for holding each channel.
Definition at line 344 of file chatwindow.h.
Referenced by addChannelTab(), addSpecialChannelTab(), addTab(), addWhisperTab(), adjustTabSize(), autoComplete(), ChatWindow(), closeTab(), defaultTab(), getFocused(), isTabPresent(), joinRoom(), mousePressed(), nextTab(), postInit(), prevTab(), removeTab(), selectTabByType(), and updateTabsMargin().
|
private |
Definition at line 382 of file chatwindow.h.
Referenced by ~ChatWindow().
|
private |
Definition at line 383 of file chatwindow.h.
Referenced by action(), adjustTabSize(), ChatWindow(), postInit(), updateTabsMargin(), and ~ChatWindow().
|
private |
Command list.
Definition at line 377 of file chatwindow.h.
Referenced by autoComplete(), fillCommands(), and loadCommandsFile().
|
private |
History iterator.
Definition at line 373 of file chatwindow.h.
Referenced by action(), ChatWindow(), and keyPressed().
|
private |
Definition at line 378 of file chatwindow.h.
Referenced by autoComplete(), and loadCustomList().
|
private |
Definition at line 389 of file chatwindow.h.
Referenced by adjustTabSize().
|
private |
Definition at line 390 of file chatwindow.h.
Referenced by adjustTabSize().
|
private |
Definition at line 399 of file chatwindow.h.
Referenced by optionChanged(), and resortChatLog().
|
private |
Definition at line 387 of file chatwindow.h.
Referenced by addGlobalMessage(), and parseGlobalsFilter().
|
private |
Definition at line 394 of file chatwindow.h.
Referenced by loadGMCommands().
|
private |
Definition at line 395 of file chatwindow.h.
Referenced by draw(), mouseEntered(), mouseMoved(), safeDraw(), unHideWindow(), and updateVisibility().
|
private |
Definition at line 386 of file chatwindow.h.
Referenced by addToAwayLog(), findHighlight(), parseGlobalsFilter(), and parseHighlights().
|
private |
Command history.
Definition at line 372 of file chatwindow.h.
Referenced by action(), addCurrentToHistory(), autoCompleteHistory(), ChatWindow(), and keyPressed().
|
protected |
Used for showing item popup on clicking links
Definition at line 341 of file chatwindow.h.
Referenced by ChatTab::ChatTab(), ChatWindow(), and ~ChatWindow().
|
protected |
Definition at line 353 of file chatwindow.h.
Referenced by addColors().
|
private |
Definition at line 392 of file chatwindow.h.
Referenced by action(), getReturnTogglesChat(), setReturnTogglesChat(), and ~ChatWindow().
|
private |
Definition at line 398 of file chatwindow.h.
Referenced by resortChatLog().
|
private |
Definition at line 397 of file chatwindow.h.
Referenced by attributeChanged(), and optionChanged().
|
private |
Definition at line 400 of file chatwindow.h.
Referenced by action(), requestChatFocus(), and setVisible().
|
private |
Definition at line 380 of file chatwindow.h.
Referenced by initTradeFilter(), and resortChatLog().
|
private |
Manage whisper tabs
Definition at line 368 of file chatwindow.h.
Referenced by addWhisper(), addWhisperTab(), getWhisperTab(), ignoreAllWhispers(), removeAllWhispers(), removeWhisper(), saveState(), and updateOnline().