#include <llfloaterclothing.h>


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 LLFloaterClothing * | sInstance = NULL |
| static LLFloaterClothingObserver * | sObserver = NULL |
Definition at line 45 of file llfloaterclothing.h.
| LLFloaterClothing::LLFloaterClothing | ( | ) |
Definition at line 72 of file llfloaterclothing.cpp.
References LLScrollListCtrl::addCommentText(), LLInventoryModel::addObserver(), LLUICtrlFactory::buildFloater(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetDoubleClickCallback(), LLSingleton< LLUICtrlFactory >::getInstance(), gInventory, 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.

| 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::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().


| void LLFloaterClothing::refreshAll | ( | ) | [static] |
Definition at line 164 of file llfloaterclothing.cpp.
References buildClothingList(), LLPanel::childGetListInterface(), LLPanel::childGetScrollInterface(), LLUUID::isNull(), mAllowSelection, mSelectedID, NULL, onCommitList(), LLCtrlSelectionInterface::OP_DESELECT, LLCtrlSelectionInterface::operateOnSelection(), LLCtrlScrollInterface::scrollToShowSelected(), LLCtrlSelectionInterface::selectFirstItem(), LLCtrlSelectionInterface::setCurrentByID(), and sInstance.
Referenced by LLFloaterClothingObserver::changed().


| void LLFloaterClothing::buildClothingList | ( | ) | [private] |
Definition at line 243 of file llfloaterclothing.cpp.
References LLScrollListCtrl::addCommentText(), LLScrollListCtrl::addElement(), LLInventoryModel::backgroundFetchActive(), LLInventoryModel::collectDescendentsIf(), LLInventoryModel::EXCLUDE_TRASH, FALSE, gAgent, get_item_icon_name(), LLInventoryItem::getFlags(), LLAgent::getInventoryRootID(), LLInventoryItem::getInventoryType(), LLInventoryObject::getName(), LLInventoryObject::getType(), LLInventoryObject::getUUID(), gInventory, i, LLInventoryItem::II_FLAGS_OBJECT_HAS_MULTIPLE_ITEMS, LLAgent::isWearingItem(), LOADING_STRING, mAllowSelection, LLCtrlSelectionInterface::OP_DELETE, LLScrollListCtrl::operateOnAll(), S32, TRUE, and LLWearable::typeToTypeLabel().
Referenced by refreshAll().


| void LLFloaterClothing::onClickWear | ( | void * | data | ) | [static, private] |
Definition at line 324 of file llfloaterclothing.cpp.
References LLInventoryModel::getItem(), gInventory, llendl, llwarns, and wear_inventory_item_on_avatar().
Referenced by LLFloaterClothing().


| void LLFloaterClothing::onClickTakeOff | ( | void * | data | ) | [static, private] |
Definition at line 366 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::onCommitList | ( | LLUICtrl * | ctrl, | |
| void * | data | |||
| ) | [static, private] |
Definition at line 395 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().


LLUUID LLFloaterClothing::mSelectedID [private] |
BOOL LLFloaterClothing::mAllowSelection [private] |
Definition at line 67 of file llfloaterclothing.h.
Referenced by buildClothingList(), and 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().
1.5.5