#include <llfloaterproperties.h>
Inheritance diagram for LLFloaterProperties:
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 |
Definition at line 50 of file llfloaterproperties.h.
typedef std::map<LLUUID, LLFloaterProperties*, lluuid_less> LLFloaterProperties::instance_map [protected] |
Definition at line 95 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 141 of file llfloaterproperties.cpp.
References LLInventoryModel::addObserver(), LLUICtrlFactory::buildFloater(), LLPanel::childSetAction(), LLPanel::childSetCommitCallback(), LLPanel::childSetPrevalidate(), gInventory, gPropertiesObserver, gUICtrlFactory, mItemID, mObjectID, onClickCreator(), onClickOwner(), onCommitDescription(), onCommitName(), onCommitPermissions(), onCommitSaleInfo(), onCommitSaleType(), LLLineEditor::prevalidatePrintableNotPipe(), refresh(), and sInstances.
LLFloaterProperties::~LLFloaterProperties | ( | ) | [virtual] |
Definition at line 189 of file llfloaterproperties.cpp.
References mItemID, mObjectID, and sInstances.
Definition at line 917 of file llfloaterproperties.cpp.
References LLFloater::close(), and find().
Referenced by LLViewerObject::removeInventory().
void LLFloaterProperties::dirty | ( | ) | [inline] |
void LLFloaterProperties::dirtyAll | ( | ) | [static] |
Definition at line 130 of file llfloaterproperties.cpp.
References sInstances.
Referenced by LLPropertiesObserver::changed(), and dialog_refresh_all().
void LLFloaterProperties::draw | ( | ) | [protected, virtual] |
Reimplemented from LLFloater.
Definition at line 250 of file llfloaterproperties.cpp.
References LLFloater::draw(), FALSE, mDirty, and refresh().
LLFloaterProperties * LLFloaterProperties::find | ( | const LLUUID & | item_id, | |
const LLUUID & | object_id | |||
) | [static] |
Definition at line 95 of file llfloaterproperties.cpp.
References NULL, and sInstances.
Referenced by closeByID(), LLPanelInventory::inventoryChanged(), and show().
LLInventoryItem * LLFloaterProperties::findItem | ( | ) | const [protected] |
Definition at line 898 of file llfloaterproperties.cpp.
References LLViewerObjectList::findObject(), LLViewerObject::getInventoryObject(), LLInventoryModel::getItem(), gInventory, gObjectList, LLUUID::isNull(), mItemID, mObjectID, and NULL.
Referenced by refresh(), and updateSaleInfo().
Definition at line 572 of file llfloaterproperties.cpp.
References LLInventoryItem::getCreatorUUID(), LLUUID::isNull(), and LLFloaterAvatarInfo::showFromObject().
Referenced by LLFloaterProperties().
Definition at line 585 of file llfloaterproperties.cpp.
References LLPermissions::getGroup(), LLPermissions::getOwner(), LLInventoryItem::getPermissions(), LLPermissions::isGroupOwned(), LLUUID::isNull(), LLFloaterAvatarInfo::showFromObject(), and LLFloaterGroupInfo::showFromUUID().
Referenced by LLFloaterProperties().
Definition at line 647 of file llfloaterproperties.cpp.
References LLAgent::allowOperation(), FALSE, LLViewerObjectList::findObject(), gAgent, LLInventoryItem::getDescription(), LLUICtrlFactory::getLineEditorByName(), 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().
Definition at line 605 of file llfloaterproperties.cpp.
References LLAgent::allowOperation(), FALSE, LLViewerObjectList::findObject(), gAgent, LLUICtrlFactory::getLineEditorByName(), 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().
Definition at line 687 of file llfloaterproperties.cpp.
References LLAssetType::AT_OBJECT, FALSE, LLViewerObjectList::findObject(), gAgent, LLCheckBoxCtrl::get(), LLUICtrlFactory::getCheckBoxByName(), LLAgent::getGroupID(), LLAgent::getID(), LLInventoryItem::getPermissions(), 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::refresh | ( | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 199 of file llfloaterproperties.cpp.
References LLPanel::childSetEnabled(), LLPanel::childSetVisible(), findItem(), mDirty, refreshFromItem(), t, and TRUE.
Referenced by draw(), LLFloaterProperties(), show(), and updateSaleInfo().
void LLFloaterProperties::refreshFromItem | ( | LLInventoryItem * | item | ) | [protected] |
Definition at line 262 of file llfloaterproperties.cpp.
References LLAgent::allowOperation(), LLAssetType::AT_OBJECT, LLPanel::childGetText(), LLPanel::childSetEnabled(), LLPanel::childSetText(), LLPanel::childSetValue(), LLPanel::childSetVisible(), DB_FIRST_NAME_BUF_SIZE, DB_GROUP_NAME_BUF_SIZE, DB_LAST_NAME_BUF_SIZE, FALSE, LLViewerObjectList::findObject(), gAgent, gCacheName, LLControlGroup::getBOOL(), LLUICtrlFactory::getCheckBoxByName(), LLInventoryItem::getCreationDate(), LLInventoryItem::getCreatorUUID(), LLInventoryItem::getDescription(), LLInventoryItem::getFlags(), LLPermissions::getGroup(), LLCacheName::getGroupName(), LLPermissions::getMaskBase(), LLPermissions::getMaskEveryone(), LLPermissions::getMaskGroup(), LLPermissions::getMaskNextOwner(), LLPermissions::getMaskOwner(), LLCacheName::getName(), LLInventoryObject::getName(), LLPermissions::getOwner(), LLInventoryItem::getPermissions(), LLUICtrlFactory::getRadioGroupByName(), LLAgent::getRegion(), LLInventoryItem::getSaleInfo(), LLSaleInfo::getSalePrice(), LLSaleInfo::getSaleType(), 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, 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, LLViewerObject::permOwnerModify(), S32, LLCheckBoxCtrl::set(), LLRadioGroup::setSelectedIndex(), LLCheckBoxCtrl::setTentative(), and TRUE.
Referenced by refresh().
LLFloaterProperties * LLFloaterProperties::show | ( | const LLUUID & | item_id, | |
const LLUUID & | object_id | |||
) | [static] |
Definition at line 111 of file llfloaterproperties.cpp.
References find(), LLFloater::getFloaterHost(), LLFloater::getHost(), LLFloater::open(), refresh(), and TRUE.
Referenced by LLTaskInvFVBridge::showProperties(), and LLShowProps::showProperties().
void LLFloaterProperties::updateSaleInfo | ( | ) | [protected] |
Definition at line 803 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, LLUICtrlFactory::getLineEditorByName(), LLInventoryItem::getPermissions(), LLUICtrlFactory::getRadioGroupByName(), LLInventoryItem::getSaleInfo(), LLRadioGroup::getSelectedIndex(), LLLineEditor::getText(), gInventory, gObjectList, GP_OBJECT_SET_SALE, LLViewerInventoryItem::isComplete(), LLUUID::isNull(), mObjectID, LLInventoryModel::notifyObservers(), PERM_COPY, PERM_TRANSFER, refresh(), S32, TASK_INVENTORY_ITEM_KEY, LLViewerObject::updateInventory(), and LLInventoryModel::updateItem().
BOOL LLFloaterProperties::mDirty [protected] |
LLUUID LLFloaterProperties::mItemID [protected] |
Definition at line 86 of file llfloaterproperties.h.
Referenced by findItem(), LLFloaterProperties(), and ~LLFloaterProperties().
LLUUID LLFloaterProperties::mObjectID [protected] |
Definition at line 91 of file llfloaterproperties.h.
Referenced by findItem(), LLFloaterProperties(), refreshFromItem(), updateSaleInfo(), and ~LLFloaterProperties().
LLFloaterProperties::instance_map LLFloaterProperties::sInstances [static, protected] |
---------------------------------------------------------------------------- Class LLFloaterProperties ----------------------------------------------------------------------------
Definition at line 96 of file llfloaterproperties.h.
Referenced by dirtyAll(), find(), LLFloaterProperties(), and ~LLFloaterProperties().