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