#include <llfloaterproperties.h>
Public Member Functions | |
LLFloaterProperties (const std::string &name, const LLRect &rect, const std::string &title, const LLUUID &item_id, const LLUUID &object_id) | |
virtual | ~LLFloaterProperties () |
void | dirty () |
void | refresh () |
Static Public Member Functions | |
static LLFloaterProperties * | find (const LLUUID &item_id, const LLUUID &object_id) |
static LLFloaterProperties * | show (const LLUUID &item_id, const LLUUID &object_id) |
static void | dirtyAll () |
static void | closeByID (const LLUUID &item_id, const LLUUID &object_id) |
Protected Types | |
typedef std::map< LLUUID, LLFloaterProperties *, lluuid_less > | instance_map |
Protected Member Functions | |
void | updateSaleInfo () |
LLInventoryItem * | findItem () const |
void | refreshFromItem (LLInventoryItem *item) |
virtual void | draw () |
Static Protected Member Functions | |
static void | onClickCreator (void *data) |
static void | onClickOwner (void *data) |
static void | onCommitName (LLUICtrl *ctrl, void *data) |
static void | onCommitDescription (LLUICtrl *ctrl, void *data) |
static void | onCommitPermissions (LLUICtrl *ctrl, void *data) |
static void | onCommitSaleInfo (LLUICtrl *ctrl, void *data) |
static void | onCommitSaleType (LLUICtrl *ctrl, void *data) |
Protected Attributes | |
LLUUID | mItemID |
LLUUID | mObjectID |
BOOL | mDirty |
Static Protected Attributes | |
static instance_map | sInstances |
static LLPropertiesObserver * | sPropertiesObserver = NULL |
static S32 | sPropertiesObserverCount = 0 |
Definition at line 52 of file llfloaterproperties.h.
typedef std::map<LLUUID, LLFloaterProperties*, lluuid_less> LLFloaterProperties::instance_map [protected] |
Definition at line 97 of file llfloaterproperties.h.
LLFloaterProperties::LLFloaterProperties | ( | const std::string & | name, | |
const LLRect & | rect, | |||
const std::string & | title, | |||
const LLUUID & | item_id, | |||
const LLUUID & | object_id | |||
) |
Definition at line 153 of file llfloaterproperties.cpp.
References LLUICtrlFactory::buildFloater(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetPrevalidate(), LLSingleton< LLUICtrlFactory >::getInstance(), mItemID, mObjectID, onClickCreator(), onClickOwner(), onCommitDescription(), onCommitName(), onCommitPermissions(), onCommitSaleInfo(), onCommitSaleType(), LLLineEditor::prevalidatePrintableNotPipe(), refresh(), sInstances, sPropertiesObserver, and sPropertiesObserverCount.
LLFloaterProperties::~LLFloaterProperties | ( | ) | [virtual] |
Definition at line 201 of file llfloaterproperties.cpp.
References mItemID, mObjectID, NULL, sInstances, sPropertiesObserver, and sPropertiesObserverCount.
LLFloaterProperties * LLFloaterProperties::find | ( | const LLUUID & | item_id, | |
const LLUUID & | object_id | |||
) | [static] |
Definition at line 107 of file llfloaterproperties.cpp.
References NULL, and sInstances.
Referenced by closeByID(), LLPanelInventory::inventoryChanged(), and show().
LLFloaterProperties * LLFloaterProperties::show | ( | const LLUUID & | item_id, | |
const LLUUID & | object_id | |||
) | [static] |
Definition at line 123 of file llfloaterproperties.cpp.
References LLMultiFloater::addFloater(), find(), LLFloater::getFloaterHost(), LLFloater::getHost(), LLFloater::open(), refresh(), and TRUE.
Referenced by LLTaskInvFVBridge::showProperties(), and LLShowProps::showProperties().
void LLFloaterProperties::dirtyAll | ( | ) | [static] |
Definition at line 142 of file llfloaterproperties.cpp.
References sInstances.
Referenced by LLPropertiesObserver::changed(), and dialog_refresh_all().
Definition at line 931 of file llfloaterproperties.cpp.
References LLFloater::close(), and find().
Referenced by LLViewerObject::removeInventory().
void LLFloaterProperties::dirty | ( | ) | [inline] |
void LLFloaterProperties::refresh | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 217 of file llfloaterproperties.cpp.
References LLPanel::childSetEnabled(), LLPanel::childSetVisible(), findItem(), mDirty, refreshFromItem(), and TRUE.
Referenced by draw(), LLPanelInventory::inventoryChanged(), LLFloaterProperties(), show(), and updateSaleInfo().
void LLFloaterProperties::onClickCreator | ( | void * | data | ) | [static, protected] |
Definition at line 580 of file llfloaterproperties.cpp.
References LLInventoryItem::getCreatorUUID(), LLUUID::isNull(), and LLFloaterAvatarInfo::showFromObject().
Referenced by LLFloaterProperties().
void LLFloaterProperties::onClickOwner | ( | void * | data | ) | [static, protected] |
Definition at line 593 of file llfloaterproperties.cpp.
References LLPermissions::getGroup(), LLPermissions::getOwner(), LLInventoryItem::getPermissions(), LLPermissions::isGroupOwned(), LLUUID::isNull(), LLFloaterAvatarInfo::showFromObject(), and LLFloaterGroupInfo::showFromUUID().
Referenced by LLFloaterProperties().
void LLFloaterProperties::onCommitName | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 613 of file llfloaterproperties.cpp.
References LLAgent::allowOperation(), FALSE, LLViewerObjectList::findObject(), gAgent, LLInventoryObject::getName(), LLInventoryItem::getPermissions(), LLLineEditor::getText(), gInventory, gObjectList, GP_OBJECT_MANIPULATE, LLInventoryModel::notifyObservers(), PERM_MODIFY, TASK_INVENTORY_ITEM_KEY, LLViewerObject::updateInventory(), and LLInventoryModel::updateItem().
Referenced by LLFloaterProperties().
void LLFloaterProperties::onCommitDescription | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 655 of file llfloaterproperties.cpp.
References LLAgent::allowOperation(), FALSE, LLViewerObjectList::findObject(), gAgent, LLInventoryItem::getDescription(), LLInventoryItem::getPermissions(), LLLineEditor::getText(), gInventory, gObjectList, GP_OBJECT_MANIPULATE, LLInventoryModel::notifyObservers(), PERM_MODIFY, TASK_INVENTORY_ITEM_KEY, LLViewerObject::updateInventory(), and LLInventoryModel::updateItem().
Referenced by LLFloaterProperties().
void LLFloaterProperties::onCommitPermissions | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 695 of file llfloaterproperties.cpp.
References LLAssetType::AT_OBJECT, FALSE, LLViewerObjectList::findObject(), gAgent, LLCheckBoxCtrl::get(), LLAgent::getGroupID(), LLAgent::getID(), LLPermissions::getMaskEveryone(), LLPermissions::getMaskGroup(), LLPermissions::getMaskNextOwner(), LLInventoryItem::getPermissions(), LLInventoryObject::getType(), gInventory, gObjectList, LLInventoryItem::II_FLAGS_OBJECT_PERM_OVERWRITE_EVERYONE, LLInventoryItem::II_FLAGS_OBJECT_PERM_OVERWRITE_GROUP, LLInventoryItem::II_FLAGS_OBJECT_SLAM_PERM, LLViewerInventoryItem::isComplete(), LLInventoryModel::notifyObservers(), PERM_COPY, PERM_MODIFY, PERM_MOVE, PERM_TRANSFER, TASK_INVENTORY_ITEM_KEY, LLViewerObject::updateInventory(), and LLInventoryModel::updateItem().
Referenced by LLFloaterProperties().
void LLFloaterProperties::onCommitSaleInfo | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 794 of file llfloaterproperties.cpp.
Referenced by LLFloaterProperties().
void LLFloaterProperties::onCommitSaleType | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, protected] |
Definition at line 803 of file llfloaterproperties.cpp.
Referenced by LLFloaterProperties().
void LLFloaterProperties::updateSaleInfo | ( | ) | [protected] |
Definition at line 811 of file llfloaterproperties.cpp.
References LLAgent::allowOperation(), LLPanel::childGetValue(), LLPanel::childSetValue(), FALSE, findItem(), LLViewerObjectList::findObject(), LLSaleInfo::FS_CONTENTS, LLSaleInfo::FS_COPY, LLSaleInfo::FS_NOT, LLSaleInfo::FS_ORIGINAL, gAgent, LLInventoryItem::getPermissions(), LLInventoryItem::getSaleInfo(), LLRadioGroup::getSelectedIndex(), LLLineEditor::getText(), gInventory, gObjectList, GP_OBJECT_SET_SALE, LLInventoryItem::II_FLAGS_OBJECT_SLAM_SALE, LLViewerInventoryItem::isComplete(), LLUUID::isNull(), mObjectID, LLInventoryModel::notifyObservers(), PERM_COPY, PERM_TRANSFER, refresh(), S32, TASK_INVENTORY_ITEM_KEY, LLViewerObject::updateInventory(), and LLInventoryModel::updateItem().
LLInventoryItem * LLFloaterProperties::findItem | ( | ) | const [protected] |
Definition at line 912 of file llfloaterproperties.cpp.
References LLViewerObjectList::findObject(), LLViewerObject::getInventoryObject(), LLInventoryModel::getItem(), gInventory, gObjectList, LLUUID::isNull(), mItemID, mObjectID, and NULL.
Referenced by refresh(), and updateSaleInfo().
void LLFloaterProperties::refreshFromItem | ( | LLInventoryItem * | item | ) | [protected] |
Definition at line 280 of file llfloaterproperties.cpp.
References LLAgent::allowOperation(), LLAssetType::AT_OBJECT, LLPanel::childSetEnabled(), LLPanel::childSetText(), LLPanel::childSetValue(), LLPanel::childSetVisible(), FALSE, LLViewerObjectList::findObject(), gAgent, gCacheName, LLControlGroup::getBOOL(), LLInventoryItem::getCreationDate(), LLInventoryItem::getCreatorUUID(), LLInventoryItem::getDescription(), LLInventoryItem::getFlags(), LLCacheName::getFullName(), LLPermissions::getGroup(), LLCacheName::getGroupName(), LLPermissions::getMaskBase(), LLPermissions::getMaskEveryone(), LLPermissions::getMaskGroup(), LLPermissions::getMaskNextOwner(), LLPermissions::getMaskOwner(), LLInventoryObject::getName(), LLPermissions::getOwner(), LLInventoryItem::getPermissions(), LLAgent::getRegion(), LLInventoryItem::getSaleInfo(), LLSaleInfo::getSalePrice(), LLSaleInfo::getSaleType(), LLPanel::getString(), LLInventoryObject::getType(), gObjectList, GP_OBJECT_MANIPULATE, GP_OBJECT_SET_SALE, gSavedSettings, i, LLInventoryItem::II_FLAGS_OBJECT_PERM_OVERWRITE_EVERYONE, LLInventoryItem::II_FLAGS_OBJECT_PERM_OVERWRITE_GROUP, LLInventoryItem::II_FLAGS_OBJECT_SLAM_PERM, LLViewerInventoryItem::isComplete(), LLSaleInfo::isForSale(), LLPermissions::isGroupOwned(), LLUUID::isNull(), LLPermissions::isOwned(), llformat(), mask_to_string(), mObjectID, LLUUID::notNull(), NULL, PERM_COPY, PERM_MODIFY, PERM_MOVE, PERM_OWNER, PERM_TRANSFER, S32, LLCheckBoxCtrl::set(), LLRadioGroup::setSelectedIndex(), LLCheckBoxCtrl::setTentative(), and TRUE.
Referenced by refresh().
void LLFloaterProperties::draw | ( | void | ) | [protected, virtual] |
Reimplemented from LLFloater.
Definition at line 268 of file llfloaterproperties.cpp.
References LLFloater::draw(), FALSE, mDirty, and refresh().
LLUUID LLFloaterProperties::mItemID [protected] |
Definition at line 88 of file llfloaterproperties.h.
Referenced by findItem(), LLFloaterProperties(), and ~LLFloaterProperties().
LLUUID LLFloaterProperties::mObjectID [protected] |
Definition at line 93 of file llfloaterproperties.h.
Referenced by findItem(), LLFloaterProperties(), refreshFromItem(), updateSaleInfo(), and ~LLFloaterProperties().
BOOL LLFloaterProperties::mDirty [protected] |
LLFloaterProperties::instance_map LLFloaterProperties::sInstances [static, protected] |
---------------------------------------------------------------------------- Class LLFloaterProperties ----------------------------------------------------------------------------
Definition at line 98 of file llfloaterproperties.h.
Referenced by dirtyAll(), find(), LLFloaterProperties(), and ~LLFloaterProperties().
LLPropertiesObserver * LLFloaterProperties::sPropertiesObserver = NULL [static, protected] |
Definition at line 99 of file llfloaterproperties.h.
Referenced by LLFloaterProperties(), and ~LLFloaterProperties().
S32 LLFloaterProperties::sPropertiesObserverCount = 0 [static, protected] |
Definition at line 100 of file llfloaterproperties.h.
Referenced by LLFloaterProperties(), and ~LLFloaterProperties().