LLFloaterClothing Class Reference

#include <llfloaterclothing.h>

Inheritance diagram for LLFloaterClothing:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterClothing:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLFloaterClothing ()
virtual ~LLFloaterClothing ()
virtual void onClose (bool app_quitting)

Static Public Member Functions

static void show (void *unused=NULL)
static void toggleVisibility ()
static void refreshAll ()

Private Member Functions

void buildClothingList ()

Static Private Member Functions

static void onClickWear (void *data)
static void onClickTakeOff (void *data)
static void onCommitList (LLUICtrl *ctrl, void *data)

Private Attributes

LLUUID mSelectedID
BOOL mAllowSelection

Static Private Attributes

static LLFloaterClothingsInstance = NULL
static LLFloaterClothingObserversObserver = NULL

Detailed Description

Definition at line 45 of file llfloaterclothing.h.


Constructor & Destructor Documentation

LLFloaterClothing::LLFloaterClothing (  ) 

Definition at line 72 of file llfloaterclothing.cpp.

References LLInventoryModel::addObserver(), LLUICtrlFactory::buildFloater(), LLPanel::childGetListInterface(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetDoubleClickCallback(), gInventory, gUICtrlFactory, list, LOADING_STRING, onClickTakeOff(), onClickWear(), onCommitList(), LLPanel::setDefaultBtn(), sInstance, sObserver, and LLInventoryModel::startBackgroundFetch().

Referenced by show().

LLFloaterClothing::~LLFloaterClothing (  )  [virtual]

Definition at line 102 of file llfloaterclothing.cpp.

References gInventory, NULL, LLInventoryModel::removeObserver(), sInstance, and sObserver.


Member Function Documentation

void LLFloaterClothing::buildClothingList (  )  [private]

Definition at line 243 of file llfloaterclothing.cpp.

References LLInventoryModel::backgroundFetchActive(), LLPanel::childGetListInterface(), LLInventoryModel::collectDescendentsIf(), count, LLInventoryModel::EXCLUDE_TRASH, FALSE, gAgent, get_item_icon_uuid(), LLAgent::getInventoryRootID(), gInventory, i, LLInventoryItem::II_FLAGS_OBJECT_HAS_MULTIPLE_ITEMS, LLAgent::isWearingItem(), list, LOADING_STRING, mAllowSelection, LLCtrlSelectionInterface::OP_DELETE, S32, TRUE, and LLWearable::typeToTypeLabel().

Referenced by refreshAll().

void LLFloaterClothing::onClickTakeOff ( void data  )  [static, private]

Definition at line 367 of file llfloaterclothing.cpp.

References gAgent, LLAgent::getAvatarObject(), LLInventoryItem::getFlags(), LLInventoryModel::getItem(), LLAgent::getWearable(), gInventory, llendl, llwarns, LLAgent::removeWearable(), and wearable_can_take_off().

Referenced by LLFloaterClothing().

void LLFloaterClothing::onClickWear ( void data  )  [static, private]

Definition at line 325 of file llfloaterclothing.cpp.

References LLInventoryModel::getItem(), gInventory, llendl, llwarns, and wear_inventory_item_on_avatar().

Referenced by LLFloaterClothing().

void LLFloaterClothing::onClose ( bool  app_quitting  )  [virtual]

Reimplemented from LLFloater.

Definition at line 113 of file llfloaterclothing.cpp.

References FALSE, gSavedSettings, LLFloater::onClose(), and LLControlGroup::setBOOL().

void LLFloaterClothing::onCommitList ( LLUICtrl ctrl,
void data 
) [static, private]

Definition at line 396 of file llfloaterclothing.cpp.

References gAgent, LLAgent::getAvatarObject(), LLInventoryItem::getFlags(), LLInventoryModel::getItem(), gInventory, LLAgent::isWearingItem(), and wearable_can_take_off().

Referenced by LLFloaterClothing(), refreshAll(), and show().

void LLFloaterClothing::refreshAll (  )  [static]

Definition at line 164 of file llfloaterclothing.cpp.

References buildClothingList(), LLPanel::childGetListInterface(), LLPanel::childGetScrollInterface(), LLUUID::isNull(), list, mAllowSelection, mSelectedID, NULL, onCommitList(), LLCtrlSelectionInterface::OP_DESELECT, LLCtrlScrollInterface::scrollToShowSelected(), and sInstance.

Referenced by LLFloaterClothingObserver::changed().

void LLFloaterClothing::show ( void unused = NULL  )  [static]

Definition at line 122 of file llfloaterclothing.cpp.

References gSavedSettings, LLFloaterClothing(), NULL, LLUUID::null, onCommitList(), LLCtrlSelectionInterface::selectFirstItem(), LLControlGroup::setBOOL(), LLFloater::setVisibleAndFrontmost(), sInstance, and TRUE.

Referenced by toggleVisibility().

void LLFloaterClothing::toggleVisibility (  )  [static]

Definition at line 151 of file llfloaterclothing.cpp.

References LLFloater::close(), LLView::getVisible(), show(), and sInstance.

Referenced by handle_clothing().


Member Data Documentation

BOOL LLFloaterClothing::mAllowSelection [private]

Definition at line 67 of file llfloaterclothing.h.

Referenced by buildClothingList(), and refreshAll().

LLUUID LLFloaterClothing::mSelectedID [private]

Definition at line 66 of file llfloaterclothing.h.

Referenced by refreshAll().

LLFloaterClothing * LLFloaterClothing::sInstance = NULL [static, private]

Definition at line 69 of file llfloaterclothing.h.

Referenced by LLFloaterClothing(), refreshAll(), show(), toggleVisibility(), and ~LLFloaterClothing().

LLFloaterClothingObserver * LLFloaterClothing::sObserver = NULL [static, private]

Definition at line 70 of file llfloaterclothing.h.

Referenced by LLFloaterClothing(), and ~LLFloaterClothing().


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