LLFloaterNewIM Class Reference

#include <llfloaternewim.h>

Inheritance diagram for LLFloaterNewIM:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterNewIM:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLFloaterNewIM ()
 ~LLFloaterNewIM ()
BOOL postBuild ()
BOOL handleKeyHere (KEY key, MASK mask, BOOL called_from_parent)
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

LLNameListCtrlmSelectionList

Detailed Description

Definition at line 39 of file llfloaternewim.h.


Constructor & Destructor Documentation

LLFloaterNewIM::LLFloaterNewIM (  ) 

Definition at line 62 of file llfloaternewim.cpp.

References LLUICtrlFactory::buildFloater(), and gUICtrlFactory.

LLFloaterNewIM::~LLFloaterNewIM (  ) 

Definition at line 99 of file llfloaternewim.cpp.

References clearAllTargets().


Member Function Documentation

void LLFloaterNewIM::addAgent ( const LLUUID uuid,
void data,
BOOL  online 
)

Definition at line 154 of file llfloaternewim.cpp.

References LLNameListCtrl::addElement(), COL_1_WIDTH, DB_FIRST_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, first, gCacheName, LLScrollListCtrl::getFirstSelectedIndex(), LLCacheName::getName(), mSelectionList, LLScrollListCtrl::selectFirstItem(), LLUIString::setArg(), LLScrollListItem::setUserdata(), sNameFormat, and sOnlineDescriptor.

void LLFloaterNewIM::addDefaultTargets (  ) 

void LLFloaterNewIM::addGroup ( const LLUUID uuid,
void data,
BOOL  bold,
BOOL  online 
)

Definition at line 133 of file llfloaternewim.cpp.

References LLNameListCtrl::addElement(), COL_1_WIDTH, LLScrollListCtrl::getFirstSelectedIndex(), mSelectionList, LLScrollListCtrl::selectFirstItem(), LLScrollListItem::setUserdata(), and sOnlineDescriptor.

void LLFloaterNewIM::addSpecial ( const LLUUID uuid,
const std::string &  name,
void data,
BOOL  bold,
BOOL  online 
)

Definition at line 110 of file llfloaternewim.cpp.

References LLNameListCtrl::addElement(), COL_1_WIDTH, LLScrollListCtrl::getFirstSelectedIndex(), mSelectionList, LLScrollListCtrl::selectFirstItem(), LLScrollListItem::setUserdata(), and sOnlineDescriptor.

BOOL LLFloaterNewIM::canClose (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 250 of file llfloaternewim.cpp.

References LLMultiFloater::getFloaterCount(), LLFloater::getHost(), and TRUE.

void LLFloaterNewIM::clearAllTargets (  ) 

Definition at line 105 of file llfloaternewim.cpp.

References LLScrollListCtrl::deleteAllItems(), and mSelectionList.

Referenced by ~LLFloaterNewIM().

void LLFloaterNewIM::close ( bool  app_quitting  )  [virtual]

Reimplemented from LLFloater.

Definition at line 261 of file llfloaternewim.cpp.

References LLFloater::close(), and LLFloater::getHost().

S32 LLFloaterNewIM::getScrollPos (  ) 

Definition at line 274 of file llfloaternewim.cpp.

References LLScrollListCtrl::getScrollPos(), and mSelectionList.

BOOL LLFloaterNewIM::handleKeyHere ( KEY  key,
MASK  mask,
BOOL  called_from_parent 
) [virtual]

Reimplemented from LLPanel.

Definition at line 233 of file llfloaternewim.cpp.

References LLView::getVisible(), gIMMgr, LLPanel::handleKeyHere(), KEY_ESCAPE, LLView::mEnabled, NULL, LLIMMgr::toggle(), and TRUE.

BOOL LLFloaterNewIM::isUUIDAvailable ( const LLUUID uuid  ) 

Definition at line 183 of file llfloaternewim.cpp.

References FALSE, LLScrollListCtrl::getAllData(), mSelectionList, and TRUE.

void LLFloaterNewIM::onClickClose ( void userdata  )  [static]

Reimplemented from LLFloater.

Definition at line 227 of file llfloaternewim.cpp.

References FALSE, gIMMgr, and LLIMMgr::setFloaterOpen().

Referenced by postBuild().

void LLFloaterNewIM::onStart ( void userdata  )  [static]

Definition at line 198 of file llfloaternewim.cpp.

References LLIMMgr::addSession(), LLIMMgr::defaultIMTypeForAgent(), LLScrollListItem::getColumn(), LLScrollListCell::getText(), LLScrollListItem::getUserdata(), LLScrollListItem::getUUID(), gIMMgr, make_ui_sound(), t, and type.

Referenced by postBuild().

BOOL LLFloaterNewIM::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 67 of file llfloaternewim.cpp.

References LLSD::asString(), LLPanel::checkRequirements(), LLPanel::childGetValue(), LLPanel::childSetAction(), FALSE, LLViewerUICtrlFactory::getNameListByName(), llendl, llwarns, mSelectionList, onClickClose(), onStart(), LLPanel::requires(), LLUICtrl::setCallbackUserData(), LLPanel::setDefaultBtn(), LLScrollListCtrl::setDoubleClickCallback(), sNameFormat, sOnlineDescriptor, TRUE, WIDGET_TYPE_BUTTON, WIDGET_TYPE_NAME_LIST, and WIDGET_TYPE_TEXT_BOX.

void LLFloaterNewIM::setScrollPos ( S32  pos  ) 

Definition at line 279 of file llfloaternewim.cpp.

References mSelectionList, and LLScrollListCtrl::setScrollPos().


Member Data Documentation

LLNameListCtrl* LLFloaterNewIM::mSelectionList [protected]

Definition at line 73 of file llfloaternewim.h.

Referenced by addAgent(), addGroup(), addSpecial(), clearAllTargets(), getScrollPos(), isUUIDAvailable(), postBuild(), and setScrollPos().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:20 2010 for Second Life Viewer by  doxygen 1.4.7