#include <llfloaternewim.h>
Public Member Functions | |
LLFloaterNewIM () | |
~LLFloaterNewIM () | |
BOOL | postBuild () |
BOOL | handleKeyHere (KEY key, MASK mask) |
virtual BOOL | canClose () |
virtual void | close (bool app_quitting) |
void | clearAllTargets () |
void | addSpecial (const LLUUID &uuid, const std::string &name, void *data, BOOL bold, BOOL online) |
void | addAgent (const LLUUID &uuid, void *data, BOOL online) |
void | addGroup (const LLUUID &uuid, void *data, BOOL bold, BOOL online) |
void | addDefaultTargets () |
BOOL | isUUIDAvailable (const LLUUID &uuid) |
S32 | getScrollPos () |
void | setScrollPos (S32 pos) |
Static Public Member Functions | |
static void | onStart (void *userdata) |
static void | onClickClose (void *userdata) |
Protected Attributes | |
LLNameListCtrl * | mSelectionList |
Definition at line 39 of file llfloaternewim.h.
LLFloaterNewIM::LLFloaterNewIM | ( | ) |
Definition at line 45 of file llfloaternewim.cpp.
References LLUICtrlFactory::buildFloater(), and LLSingleton< LLUICtrlFactory >::getInstance().
LLFloaterNewIM::~LLFloaterNewIM | ( | ) |
Definition at line 80 of file llfloaternewim.cpp.
References clearAllTargets().
BOOL LLFloaterNewIM::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 50 of file llfloaternewim.cpp.
References LLPanel::checkRequirements(), LLPanel::childSetAction(), FALSE, LLPanel::getString(), llendl, llwarns, mSelectionList, onClickClose(), onStart(), LLUICtrl::setCallbackUserData(), LLPanel::setDefaultBtn(), LLScrollListCtrl::setDoubleClickCallback(), and TRUE.
Reimplemented from LLPanel.
Definition at line 211 of file llfloaternewim.cpp.
References gIMMgr, LLPanel::handleKeyHere(), KEY_ESCAPE, NULL, LLIMMgr::toggle(), and TRUE.
BOOL LLFloaterNewIM::canClose | ( | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 225 of file llfloaternewim.cpp.
References LLMultiFloater::getFloaterCount(), LLFloater::getHost(), and TRUE.
void LLFloaterNewIM::close | ( | bool | app_quitting | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 236 of file llfloaternewim.cpp.
References LLFloater::close(), and LLFloater::getHost().
void LLFloaterNewIM::onStart | ( | void * | userdata | ) | [static] |
Definition at line 176 of file llfloaternewim.cpp.
References LLIMMgr::addSession(), LLIMMgr::defaultIMTypeForAgent(), LLScrollListItem::getColumn(), LLScrollListItem::getUserdata(), LLScrollListItem::getUUID(), LLScrollListCell::getValue(), gIMMgr, and make_ui_sound().
Referenced by postBuild().
void LLFloaterNewIM::onClickClose | ( | void * | userdata | ) | [static] |
Reimplemented from LLFloater.
Definition at line 205 of file llfloaternewim.cpp.
References FALSE, gIMMgr, and LLIMMgr::setFloaterOpen().
Referenced by postBuild().
void LLFloaterNewIM::clearAllTargets | ( | ) |
Definition at line 86 of file llfloaternewim.cpp.
References LLScrollListCtrl::deleteAllItems(), and mSelectionList.
Referenced by ~LLFloaterNewIM().
void LLFloaterNewIM::addSpecial | ( | const LLUUID & | uuid, | |
const std::string & | name, | |||
void * | data, | |||
BOOL | bold, | |||
BOOL | online | |||
) |
Definition at line 91 of file llfloaternewim.cpp.
References LLNameListCtrl::addElement(), COL_1_WIDTH, LLScrollListCtrl::getFirstSelectedIndex(), mSelectionList, LLScrollListCtrl::selectFirstItem(), and LLScrollListItem::setUserdata().
Definition at line 135 of file llfloaternewim.cpp.
References LLNameListCtrl::addElement(), COL_1_WIDTH, gCacheName, LLScrollListCtrl::getFirstSelectedIndex(), LLCacheName::getName(), mSelectionList, LLScrollListCtrl::selectFirstItem(), LLUIString::setArg(), and LLScrollListItem::setUserdata().
Definition at line 114 of file llfloaternewim.cpp.
References LLNameListCtrl::addElement(), COL_1_WIDTH, LLScrollListCtrl::getFirstSelectedIndex(), mSelectionList, LLScrollListCtrl::selectFirstItem(), and LLScrollListItem::setUserdata().
void LLFloaterNewIM::addDefaultTargets | ( | ) |
Definition at line 161 of file llfloaternewim.cpp.
References FALSE, LLScrollListCtrl::getAllData(), LLScrollListItem::getUUID(), mSelectionList, and TRUE.
S32 LLFloaterNewIM::getScrollPos | ( | ) |
Definition at line 249 of file llfloaternewim.cpp.
References LLScrollListCtrl::getScrollPos(), and mSelectionList.
void LLFloaterNewIM::setScrollPos | ( | S32 | pos | ) |
Definition at line 254 of file llfloaternewim.cpp.
References mSelectionList, and LLScrollListCtrl::setScrollPos().
LLNameListCtrl* LLFloaterNewIM::mSelectionList [protected] |
Definition at line 73 of file llfloaternewim.h.
Referenced by addAgent(), addGroup(), addSpecial(), clearAllTargets(), getScrollPos(), isUUIDAvailable(), postBuild(), and setScrollPos().