#include <GLWChannelView.h>

Definition at line 40 of file GLWChannelView.h.
| GLWChannelView::GLWChannelView | ( | ) |
Definition at line 43 of file GLWChannelView.cpp.
References downButton_, resetButton_, GLWButton::setHandler(), GLWidget::setToolTip(), ToolTip::ToolTipAlignLeft, ToolTip::ToolTipHelp, and upButton_.
| GLWChannelView::~GLWChannelView | ( | ) | [virtual] |
Definition at line 78 of file GLWChannelView.cpp.
| bool GLWChannelView::getParentSized | ( | ) | [inline] |
Definition at line 62 of file GLWChannelView.h.
References parentSized_.
Referenced by GLWChannelText::draw().
| bool GLWChannelView::initFromXMLInternal | ( | XMLNode * | node | ) |
Definition at line 561 of file GLWChannelView.cpp.
References alignTop_, allowScroll_, channelColors_, displayTime_, fontSize_, Keyboard::getKey(), XMLNode::getNamedChild(), Keyboard::instance(), lineDepth_, outlineFontSize_, parentSized_, scrollDownKey_, scrollResetKey_, scrollUpKey_, showChannelName_, showChannelNumber_, splitLargeLines_, startupChannels_, textSound_, totalLines_, and visibleLines_.
Referenced by initFromXML(), and GLWChannelText::initFromXML().
| unsigned int GLWChannelView::getLastWhisperSrc | ( | ) | [inline] |
Definition at line 65 of file GLWChannelView.h.
References lastWhisperSrc_.
Referenced by GLWChannelText::itemSelected(), and GLWChannelText::processSpecialText().
| std::list<CurrentChannelEntry>& GLWChannelView::getCurrentChannels | ( | ) | [inline] |
Definition at line 67 of file GLWChannelView.h.
References currentChannels_.
Referenced by GLWChannelText::buttonDown(), and GLWChannelText::checkCurrentChannel().
| std::list<BaseChannelEntry>& GLWChannelView::getAvailableChannels | ( | ) | [inline] |
Definition at line 68 of file GLWChannelView.h.
References availableChannels_.
Referenced by GLWChannelText::buttonDown().
| GLWChannelView::CurrentChannelEntry * GLWChannelView::getChannel | ( | const std::string & | channelName | ) |
Definition at line 82 of file GLWChannelView.cpp.
References GLWChannelView::BaseChannelEntry::channel, currentChannels_, and GLWChannelView::CurrentChannelEntry::id.
Referenced by channelText(), GLWChannelText::channelValid(), GLWChannelText::checkCurrentChannel(), GLWChannelText::itemSelected(), GLWChannelText::processNotVisibleKey(), and GLWChannelText::processSpecialText().
| void GLWChannelView::joinChannel | ( | const std::string & | channelName | ) |
Definition at line 172 of file GLWChannelView.cpp.
References ClientChannelManager::changeRegistration(), formCurrentChannelList(), and ClientChannelManager::instance().
Referenced by GLWChannelText::itemSelected().
| void GLWChannelView::leaveChannel | ( | const std::string & | channelName | ) |
Definition at line 181 of file GLWChannelView.cpp.
References ClientChannelManager::changeRegistration(), formCurrentChannelList(), and ClientChannelManager::instance().
Referenced by GLWChannelText::itemSelected().
| void GLWChannelView::setHandler | ( | GLWChannelViewI * | handler | ) | [inline] |
Definition at line 74 of file GLWChannelView.h.
References handler_.
Referenced by GLWChannelText::GLWChannelText().
| void GLWChannelView::draw | ( | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 375 of file GLWChannelView.cpp.
References alignTop_, allowScroll_, GLWColors::black, GLState::BLEND_ON, GLWChannelView::GLWChannelViewEntry::color, GLTexture::create(), createdTexture_, currentVisible_, GLState::DEPTH_OFF, downButton_, downTexture_, GLWIconButton::draw(), GLWidget::draw(), fontSize_, S3D::getDataFile(), GLWFont::getGameFont(), GLWFont::getGameShadowFont(), GLWidget::getH(), ChannelTextParser::getString(), GLWidget::getW(), GLWidget::h_, init_, GLWFont::instance(), ClientChannelManager::instance(), lineDepth_, ImageFactory::loadAlphaImageHandle(), GLWidget::parent_, parentSized_, ClientChannelManager::registerClient(), resetButton_, resetTexture_, scrollPosition_, GLWIconButton::setTexture(), startupChannels_, GLWChannelView::GLWChannelViewEntry::text, textLines_, GLState::TEXTURE_ON, GLWChannelView::GLWChannelViewEntry::timeRemaining, upButton_, upTexture_, visibleLines_, GLWidget::w_, GLWidget::x_, and GLWidget::y_.
Referenced by GLWChannelText::draw().
| void GLWChannelView::simulate | ( | float | frameTime | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 344 of file GLWChannelView.cpp.
References currentVisible_, textLines_, GLWChannelView::GLWChannelViewEntry::timeRemaining, and visibleLines_.
Referenced by GLWChannelText::simulate().
| bool GLWChannelView::initFromXML | ( | XMLNode * | node | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 540 of file GLWChannelView.cpp.
References GLWidget::initFromXML(), and initFromXMLInternal().
| void GLWChannelView::mouseDown | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 495 of file GLWChannelView.cpp.
References downButton_, GLWButton::mouseDown(), resetButton_, and upButton_.
Referenced by GLWChannelText::mouseDown().
| void GLWChannelView::mouseUp | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 503 of file GLWChannelView.cpp.
References downButton_, GLWButton::mouseUp(), resetButton_, and upButton_.
Referenced by GLWChannelText::mouseUp().
| void GLWChannelView::mouseDrag | ( | int | button, | |
| float | mx, | |||
| float | my, | |||
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 511 of file GLWChannelView.cpp.
References downButton_, GLWButton::mouseDrag(), resetButton_, and upButton_.
Referenced by GLWChannelText::mouseDrag().
| void GLWChannelView::keyDown | ( | char * | buffer, | |
| unsigned int | keyState, | |||
| KeyboardHistory::HistoryElement * | history, | |||
| int | hisCount, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 519 of file GLWChannelView.cpp.
References buttonDown(), downButton_, GLWidget::getId(), KeyboardKey::keyDown(), resetButton_, scrollDownKey_, scrollResetKey_, scrollUpKey_, and upButton_.
Referenced by GLWChannelText::keyDown().
| void GLWChannelView::setX | ( | float | x | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 359 of file GLWChannelView.cpp.
References downButton_, resetButton_, GLWIconButton::setX(), GLWidget::setX(), upButton_, and GLWidget::x_.
Referenced by GLWChannelText::setX().
| void GLWChannelView::setY | ( | float | y | ) | [virtual] |
Reimplemented from GLWidget.
Definition at line 367 of file GLWChannelView.cpp.
References downButton_, resetButton_, GLWIconButton::setY(), GLWidget::setY(), upButton_, and GLWidget::y_.
Referenced by GLWChannelText::setY().
| void GLWChannelView::channelText | ( | ChannelText & | text | ) | [virtual] |
Implements ClientChannelManagerI.
Definition at line 190 of file GLWChannelView.cpp.
References addInfo(), CACHE_SOUND, GLWChannelView::BaseChannelEntry::channel, GLWChannelView::CurrentChannelEntry::color, ChannelText::eNoSound, VirtualSoundPriority::eText, ChannelDefinition::eWhisperChannel, ChannelText::getAdminPlayer(), ChannelText::getChannel(), getChannel(), TankContainer::getCurrentTank(), S3D::getDataFile(), ChannelText::getFlags(), ChannelText::getMessage(), Target::getPlayerId(), ChannelText::getSrcPlayerId(), ChannelTextParser::getString(), ScorchedContext::getTankContainer(), Target::getTargetName(), GLWChannelView::CurrentChannelEntry::id, ScorchedClient::instance(), int(), LANG_PARAM_1, LANG_STRING, lastWhisperSrc_, ChannelTextParser::parseText(), SoundUtils::playRelativeSound(), showChannelName_, showChannelNumber_, splitLine(), ChannelTextParser::subset(), textSound_, and GLWChannelView::BaseChannelEntry::type.
| void GLWChannelView::registeredForChannels | ( | std::list< ChannelDefinition > & | registeredChannels, | |
| std::list< ChannelDefinition > & | availableChannels | |||
| ) | [virtual] |
Implements ClientChannelManagerI.
Definition at line 96 of file GLWChannelView.cpp.
References availableChannels_, GLWChannelView::BaseChannelEntry::channel, channelColors_, GLWChannelViewI::channelsChanged(), GLWChannelView::CurrentChannelEntry::color, currentChannels_, GLWidget::getId(), handler_, GLWChannelView::CurrentChannelEntry::id, lastChannelId_, and GLWChannelView::BaseChannelEntry::type.
| void GLWChannelView::buttonDown | ( | unsigned int | id | ) | [virtual] |
Implements GLWButtonI.
Definition at line 261 of file GLWChannelView.cpp.
References allowScroll_, downButton_, GLWidget::getId(), scrollPosition_, textLines_, and upButton_.
Referenced by keyDown().
| GLWChannelView::REGISTER_CLASS_HEADER | ( | GLWChannelView | ) |
| void GLWChannelView::addInfo | ( | Vector & | color, | |
| GLWChannelViewTextRenderer & | text | |||
| ) | [protected] |
Definition at line 323 of file GLWChannelView.cpp.
References GLWChannelView::GLWChannelViewEntry::color, displayTime_, int(), scrollPosition_, GLWChannelView::GLWChannelViewEntry::text, textLines_, GLWChannelView::GLWChannelViewEntry::timeRemaining, and totalLines_.
Referenced by channelText().
| void GLWChannelView::formCurrentChannelList | ( | std::list< std::string > & | result | ) | [protected] |
Definition at line 549 of file GLWChannelView.cpp.
References GLWChannelView::BaseChannelEntry::channel, and currentChannels_.
Referenced by joinChannel(), and leaveChannel().
| int GLWChannelView::splitLine | ( | const LangString & | message | ) | [protected] |
Definition at line 282 of file GLWChannelView.cpp.
References GLWFont::getGameFont(), GLWFont::instance(), int(), outlineFontSize_, splitLargeLines_, and GLWidget::w_.
Referenced by channelText().
GLWChannelViewI* GLWChannelView::handler_ [protected] |
Definition at line 109 of file GLWChannelView.h.
Referenced by registeredForChannels(), and setHandler().
GLWIconButton GLWChannelView::upButton_ [protected] |
Definition at line 110 of file GLWChannelView.h.
Referenced by buttonDown(), draw(), GLWChannelView(), keyDown(), mouseDown(), mouseDrag(), mouseUp(), setX(), and setY().
GLWIconButton GLWChannelView::downButton_ [protected] |
Definition at line 111 of file GLWChannelView.h.
Referenced by buttonDown(), draw(), GLWChannelView(), keyDown(), mouseDown(), mouseDrag(), mouseUp(), setX(), and setY().
GLWIconButton GLWChannelView::resetButton_ [protected] |
Definition at line 112 of file GLWChannelView.h.
Referenced by draw(), GLWChannelView(), keyDown(), mouseDown(), mouseDrag(), mouseUp(), setX(), and setY().
bool GLWChannelView::createdTexture_ [protected] |
GLTexture GLWChannelView::upTexture_ [protected] |
GLTexture GLWChannelView::downTexture_ [protected] |
GLTexture GLWChannelView::resetTexture_ [protected] |
unsigned int GLWChannelView::lastChannelId_ [protected] |
unsigned int GLWChannelView::lastWhisperSrc_ [protected] |
Definition at line 119 of file GLWChannelView.h.
Referenced by channelText(), and getLastWhisperSrc().
bool GLWChannelView::init_ [protected] |
bool GLWChannelView::alignTop_ [protected] |
bool GLWChannelView::parentSized_ [protected] |
Definition at line 121 of file GLWChannelView.h.
Referenced by draw(), getParentSized(), and initFromXMLInternal().
bool GLWChannelView::splitLargeLines_ [protected] |
Definition at line 122 of file GLWChannelView.h.
Referenced by initFromXMLInternal(), and splitLine().
bool GLWChannelView::allowScroll_ [protected] |
Definition at line 122 of file GLWChannelView.h.
Referenced by buttonDown(), draw(), and initFromXMLInternal().
bool GLWChannelView::showChannelName_ [protected] |
Definition at line 123 of file GLWChannelView.h.
Referenced by channelText(), and initFromXMLInternal().
bool GLWChannelView::showChannelNumber_ [protected] |
Definition at line 123 of file GLWChannelView.h.
Referenced by channelText(), and initFromXMLInternal().
int GLWChannelView::lineDepth_ [protected] |
int GLWChannelView::scrollPosition_ [protected] |
float GLWChannelView::displayTime_ [protected] |
Definition at line 126 of file GLWChannelView.h.
Referenced by addInfo(), and initFromXMLInternal().
float GLWChannelView::fontSize_ [protected] |
float GLWChannelView::outlineFontSize_ [protected] |
Definition at line 127 of file GLWChannelView.h.
Referenced by initFromXMLInternal(), and splitLine().
int GLWChannelView::visibleLines_ [protected] |
Definition at line 128 of file GLWChannelView.h.
Referenced by draw(), initFromXMLInternal(), and simulate().
int GLWChannelView::totalLines_ [protected] |
Definition at line 128 of file GLWChannelView.h.
Referenced by addInfo(), and initFromXMLInternal().
int GLWChannelView::currentVisible_ [protected] |
std::list<GLWChannelViewEntry> GLWChannelView::textLines_ [protected] |
Definition at line 130 of file GLWChannelView.h.
Referenced by addInfo(), buttonDown(), draw(), and simulate().
KeyboardKey* GLWChannelView::scrollUpKey_ [protected] |
Definition at line 131 of file GLWChannelView.h.
Referenced by initFromXMLInternal(), and keyDown().
KeyboardKey* GLWChannelView::scrollDownKey_ [protected] |
Definition at line 132 of file GLWChannelView.h.
Referenced by initFromXMLInternal(), and keyDown().
KeyboardKey* GLWChannelView::scrollResetKey_ [protected] |
Definition at line 133 of file GLWChannelView.h.
Referenced by initFromXMLInternal(), and keyDown().
std::map<std::string, Vector> GLWChannelView::channelColors_ [protected] |
Definition at line 134 of file GLWChannelView.h.
Referenced by initFromXMLInternal(), and registeredForChannels().
std::list<std::string> GLWChannelView::startupChannels_ [protected] |
std::list<CurrentChannelEntry> GLWChannelView::currentChannels_ [protected] |
Definition at line 136 of file GLWChannelView.h.
Referenced by formCurrentChannelList(), getChannel(), getCurrentChannels(), and registeredForChannels().
std::list<BaseChannelEntry> GLWChannelView::availableChannels_ [protected] |
Definition at line 137 of file GLWChannelView.h.
Referenced by getAvailableChannels(), and registeredForChannels().
std::string GLWChannelView::textSound_ [protected] |
Definition at line 138 of file GLWChannelView.h.
Referenced by channelText(), and initFromXMLInternal().
1.5.3