#include <llfloaterchatterbox.h>
Public Member Functions | |
LLFloaterChatterBox (const LLSD &seed) | |
virtual | ~LLFloaterChatterBox () |
BOOL | handleKeyHere (KEY key, MASK mask) |
void | draw () |
void | onOpen () |
void | onClose (bool app_quitting) |
void | setMinimized (BOOL minimized) |
void | removeFloater (LLFloater *floaterp) |
void | addFloater (LLFloater *floaterp, BOOL select_added_floater, LLTabContainer::eInsertionPoint insertion_point=LLTabContainer::END) |
Static Public Member Functions | |
static LLFloater * | getCurrentVoiceFloater () |
static bool | visible (LLFloater *instance, const LLSD &key) |
static void | show (LLFloater *instance, const LLSD &key) |
static void | hide (LLFloater *instance, const LLSD &key) |
Protected Attributes | |
LLFloater * | mActiveVoiceFloater |
Private Member Functions | |
LLFloater * | getFloater (const LLSD &key) |
Definition at line 44 of file llfloaterchatterbox.h.
LLFloaterChatterBox::LLFloaterChatterBox | ( | const LLSD & | seed | ) |
Definition at line 91 of file llfloaterchatterbox.cpp.
References LLView::addChild(), addFloater(), LLUICtrlFactory::buildFloater(), FALSE, LLControlGroup::getBOOL(), LLUIFactory< LLFloaterChat, LLUISingleton< LLFloaterChat, LLFloaterChat >, LLFloaterChat >::getInstance(), LLUIFactory< LLFloaterMyFriends, LLUISingleton< LLFloaterMyFriends, LLFloaterMyFriends >, LLFloaterMyFriends >::getInstance(), LLSingleton< LLUICtrlFactory >::getInstance(), gFloaterView, gSavedSettings, LLTabContainer::lockTabs(), LLMultiFloater::mAutoResize, LLMultiFloater::mTabContainer, NULL, removeFloater(), and TRUE.
LLFloaterChatterBox::~LLFloaterChatterBox | ( | ) | [virtual] |
Definition at line 127 of file llfloaterchatterbox.cpp.
Reimplemented from LLMultiFloater.
Definition at line 131 of file llfloaterchatterbox.cpp.
References LLFloater::canClose(), LLFloater::close(), LLMultiFloater::getActiveFloater(), LLMultiFloater::handleKeyHere(), LLFloater::isCloseable(), MASK_CONTROL, and TRUE.
void LLFloaterChatterBox::draw | ( | void | ) | [virtual] |
Reimplemented from LLMultiFloater.
Definition at line 156 of file llfloaterchatterbox.cpp.
References LLIMMgr::clearNewIMNotification(), LLMultiFloater::draw(), LLVoiceChannel::getCurrentVoiceChannel(), getCurrentVoiceFloater(), LLVoiceChannel::getState(), gIMMgr, LLColor4::green, LLVoiceChannel::isActive(), LLFloater::isMinimized(), mActiveVoiceFloater, LLMultiFloater::mTabContainer, LLColor4::red, LLTabContainer::setTabImage(), LLVoiceChannel::STATE_ERROR, LLColor4::white, and LLColor4::yellow.
void LLFloaterChatterBox::onOpen | ( | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 202 of file llfloaterchatterbox.cpp.
References gSavedSettings, LLControlGroup::setBOOL(), and TRUE.
void LLFloaterChatterBox::onClose | ( | bool | app_quitting | ) | [virtual] |
Reimplemented from LLMultiFloater.
Definition at line 207 of file llfloaterchatterbox.cpp.
References FALSE, gSavedSettings, LLControlGroup::setBOOL(), and LLMultiFloater::setVisible().
void LLFloaterChatterBox::setMinimized | ( | BOOL | minimized | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 213 of file llfloaterchatterbox.cpp.
References LLUIFactory< LLFloaterChat, LLUISingleton< LLFloaterChat, LLFloaterChat >, LLFloaterChat >::getInstance(), LLFloater::setMinimized(), and LLFloaterChat::updateConsoleVisibility().
void LLFloaterChatterBox::removeFloater | ( | LLFloater * | floaterp | ) | [virtual] |
Reimplemented from LLMultiFloater.
Definition at line 220 of file llfloaterchatterbox.cpp.
References LLView::getName(), LLTabContainer::getNumLockedTabs(), gSavedSettings, LLTabContainer::lockTabs(), LLMultiFloater::mTabContainer, LLMultiFloater::removeFloater(), LLControlGroup::setBOOL(), LLFloater::setCanClose(), and TRUE.
Referenced by LLFloaterChatterBox(), and LLIMMgr::removeSession().
void LLFloaterChatterBox::addFloater | ( | LLFloater * | floaterp, | |
BOOL | select_added_floater, | |||
LLTabContainer::eInsertionPoint | insertion_point = LLTabContainer::END | |||
) | [virtual] |
void addFloater(LLFloater* floaterp, BOOL select_added_floater)
Adds the LLFloater pointed to by floaterp to this. If floaterp is already hosted by this, then it is re-added to get new titles, etc. If select_added_floater is true, the LLFloater pointed to by floaterp will become the selected tab in this
Affects: mTabContainer, floaterp
Reimplemented from LLMultiFloater.
Definition at line 239 of file llfloaterchatterbox.cpp.
References LLMultiFloater::addFloater(), FALSE, LLPanel::getChildView(), LLFloater::getHost(), LLView::getName(), LLTabContainer::getNumLockedTabs(), gSavedSettings, LLTabContainer::lockTabs(), mActiveVoiceFloater, LLMultiFloater::mTabContainer, LLTabContainer::RIGHT_OF_CURRENT, S32, LLTabContainer::selectFirstTab(), LLControlGroup::setBOOL(), LLFloater::setCanClose(), LLTabContainer::setTabImage(), LLTabContainer::START, and LLTabContainer::unlockTabs().
Referenced by LLIMMgr::createFloater(), LLFloaterChatterBox(), and LLToolBar::onClickCommunicate().
LLFloater * LLFloaterChatterBox::getCurrentVoiceFloater | ( | ) | [static] |
Definition at line 293 of file llfloaterchatterbox.cpp.
References LLVoiceChannel::getCurrentVoiceChannel(), LLMultiFloater::getFloaterCount(), LLUIFactory< LLFloaterChatterBox, LLUISingleton< LLFloaterChatterBox, LLFloaterChatterBox >, LLFloaterChatterBox >::getInstance(), LLUIFactory< LLFloaterChat, LLUISingleton< LLFloaterChat, LLFloaterChat >, LLFloaterChat >::getInstance(), LLSingleton< LLVoiceChannelProximal >::getInstance(), LLView::getName(), LLTabContainer::getPanelByIndex(), LLFloaterIMPanel::getVoiceChannel(), i, LLMultiFloater::mTabContainer, NULL, S32, and LLVoiceClient::voiceEnabled().
Referenced by LLVoiceRemoteCtrl::draw(), draw(), and getFloater().
static bool LLFloaterChatterBox::visible | ( | LLFloater * | instance, | |
const LLSD & | key | |||
) | [inline, static] |
Definition at line 64 of file llfloaterchatterbox.h.
References LLView::isInVisibleChain(), and VisibilityPolicy< T >::visible().
Definition at line 77 of file llfloaterchatterbox.h.
References LLFloater::open(), and VisibilityPolicy< T >::show().
Definition at line 88 of file llfloaterchatterbox.h.
References VisibilityPolicy< T >::hide().
Definition at line 94 of file llfloaterchatterbox.h.
References LLSD::asBoolean(), LLSD::asUUID(), LLIMMgr::findFloaterBySession(), getCurrentVoiceFloater(), LLSingleton< LLIMMgr >::getInstance(), LLUUID::notNull(), and NULL.
LLFloater* LLFloaterChatterBox::mActiveVoiceFloater [protected] |