llinventorybridge.cpp File Reference

Implementation of the Inventory-Folder-View-Bridge classes. More...

#include "llviewerprecompiledheaders.h"
#include <utility>
#include "llinventoryview.h"
#include "llinventorybridge.h"
#include "message.h"
#include "llagent.h"
#include "llcallingcard.h"
#include "llcheckboxctrl.h"
#include "llradiogroup.h"
#include "llspinctrl.h"
#include "lltextbox.h"
#include "llui.h"
#include "llviewercontrol.h"
#include "llfirstuse.h"
#include "llfloateravatarinfo.h"
#include "llfloaterchat.h"
#include "llfloatercustomize.h"
#include "llfloaterproperties.h"
#include "llfloaterworldmap.h"
#include "llfocusmgr.h"
#include "llfolderview.h"
#include "llgesturemgr.h"
#include "lliconctrl.h"
#include "llinventorymodel.h"
#include "llinventoryclipboard.h"
#include "lllineeditor.h"
#include "llmenugl.h"
#include "llpreviewanim.h"
#include "llpreviewgesture.h"
#include "llpreviewlandmark.h"
#include "llpreviewnotecard.h"
#include "llpreviewscript.h"
#include "llpreviewsound.h"
#include "llpreviewtexture.h"
#include "llresmgr.h"
#include "llscrollcontainer.h"
#include "llimview.h"
#include "lltooldraganddrop.h"
#include "llviewerimagelist.h"
#include "llviewerinventory.h"
#include "llviewerobjectlist.h"
#include "llviewerwindow.h"
#include "llwearable.h"
#include "llwearablelist.h"
#include "llviewermessage.h"
#include "llviewerregion.h"
#include "lltabcontainer.h"
#include "lluictrlfactory.h"
#include "llselectmgr.h"
#include "llfloateropenobject.h"

Go to the source code of this file.

Classes

struct  LLWearInfo
class  LLFindWearables
class  LLRightClickInventoryFetchObserver
class  LLRightClickInventoryFetchDescendentsObserver
class  LLInventoryCopyAndWearObserver
struct  LLFoundData
struct  LLWearableHoldingPattern
class  LLOutfitObserver
class  LLWearInventoryCategoryCallback
class  LLOutfitFetch

Functions

void inc_busy_count ()
void dec_busy_count ()
void wear_inventory_category_on_avatar (LLInventoryCategory *category, BOOL append)
void wear_inventory_category_on_avatar_step2 (BOOL proceed, void *userdata)
void wear_inventory_category_on_avatar_loop (LLWearable *wearable, void *)
void wear_inventory_category_on_avatar_step3 (LLWearableHoldingPattern *holder, BOOL append)
void remove_inventory_category_from_avatar (LLInventoryCategory *category)
void remove_inventory_category_from_avatar_step2 (BOOL proceed, void *userdata)
void move_task_inventory_callback (S32 option, void *user_data)
void confirm_replace_attachment_rez (S32 option, void *user_data)
void hideContextEntries (LLMenuGL &menu, const std::vector< LLString > &entries_to_show, const std::vector< LLString > &disabled_entries)
const char * safe_inv_type_lookup (LLInventoryType::EType inv_type)
void warn_move_inventory (LLViewerObject *object, LLMoveInv *move_inv)
BOOL move_inv_category_world_to_agent (const LLUUID &object_id, const LLUUID &category_id, BOOL drop, void(*callback)(S32, void *), void *user_data)
void open_texture (const LLUUID &item_id, const LLString &title, BOOL show_keep_discard, const LLUUID &source_id, BOOL take_focus)
void open_landmark (LLViewerInventoryItem *inv_item, const LLString &title, BOOL show_keep_discard, const LLUUID &source_id, BOOL take_focus)
static void open_landmark_callback (S32 option, void *data)
void open_notecard (LLViewerInventoryItem *inv_item, const LLString &title, const LLUUID &object_id, BOOL show_keep_discard, const LLUUID &source_id, BOOL take_focus)
void rez_attachment (LLViewerInventoryItem *item, LLViewerJointAttachment *attachment)
void wear_inventory_item_on_avatar (LLInventoryItem *item)
void wear_outfit_by_name (const char *name)
void wear_inventory_category (LLInventoryCategory *category, bool copy, bool append)

Variables

const char * ICON_NAME [ICON_NAME_COUNT]
BOOL gAddToOutfit = FALSE


Detailed Description

Implementation of the Inventory-Folder-View-Bridge classes.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-2008, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llinventorybridge.cpp.


Function Documentation

void confirm_replace_attachment_rez ( S32  option,
void *  user_data 
)

void dec_busy_count (  ) 

void hideContextEntries ( LLMenuGL menu,
const std::vector< LLString > &  entries_to_show,
const std::vector< LLString > &  disabled_entries 
)

void inc_busy_count (  ) 

BOOL move_inv_category_world_to_agent ( const LLUUID object_id,
const LLUUID category_id,
BOOL  drop,
void(*)(S32, void *)  callback,
void *  user_data 
)

void move_task_inventory_callback ( S32  option,
void *  user_data 
)

void open_landmark ( LLViewerInventoryItem inv_item,
const LLString title,
BOOL  show_keep_discard,
const LLUUID source_id,
BOOL  take_focus 
)

static void open_landmark_callback ( S32  option,
void *  data 
) [static]

Definition at line 2603 of file llinventorybridge.cpp.

References gAgent, gFloaterWorldMap, LLAgent::teleportViaLandmark(), and LLFloaterWorldMap::trackLandmark().

Referenced by LLLandmarkBridge::openItem().

Here is the call graph for this function:

Here is the caller graph for this function:

void open_notecard ( LLViewerInventoryItem inv_item,
const LLString title,
const LLUUID object_id,
BOOL  show_keep_discard,
const LLUUID source_id,
BOOL  take_focus 
)

void open_texture ( const LLUUID item_id,
const LLString title,
BOOL  show_keep_discard,
const LLUUID source_id,
BOOL  take_focus 
)

void remove_inventory_category_from_avatar ( LLInventoryCategory category  ) 

Definition at line 4081 of file llinventorybridge.cpp.

References LLFloaterCustomize::askToSaveAllIfDirty(), LLInventoryObject::getName(), LLInventoryObject::getUUID(), gFloaterCustomize, lldebugs, llendl, remove_inventory_category_from_avatar_step2(), and TRUE.

Referenced by LLFolderBridge::performAction().

Here is the call graph for this function:

Here is the caller graph for this function:

void remove_inventory_category_from_avatar_step2 ( BOOL  proceed,
void *  userdata 
)

void rez_attachment ( LLViewerInventoryItem item,
LLViewerJointAttachment attachment 
)

const char* safe_inv_type_lookup ( LLInventoryType::EType  inv_type  ) 

Definition at line 599 of file llinventorybridge.cpp.

References LLInventoryType::lookup().

Referenced by LLInvFVBridge::createBridge().

Here is the call graph for this function:

Here is the caller graph for this function:

void warn_move_inventory ( LLViewerObject object,
LLMoveInv move_inv 
)

Definition at line 1239 of file llinventorybridge.cpp.

References LLViewerWindow::alertXml(), LLViewerObject::flagScripted(), gViewerWindow, move_task_inventory_callback(), and NULL.

Referenced by LLFolderBridge::dragItemIntoFolder(), and move_inv_category_world_to_agent().

Here is the call graph for this function:

Here is the caller graph for this function:

void wear_inventory_category ( LLInventoryCategory category,
bool  copy,
bool  append 
)

void wear_inventory_category_on_avatar ( LLInventoryCategory category,
BOOL  append 
)

void wear_inventory_category_on_avatar_loop ( LLWearable wearable,
void *  data 
)

void wear_inventory_category_on_avatar_step2 ( BOOL  proceed,
void *  userdata 
)

Definition at line 3834 of file llinventorybridge.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_AttachmentPt, _PREHASH_CompoundMsgID, _PREHASH_Description, _PREHASH_FirstDetachAll, _PREHASH_HeaderData, _PREHASH_ItemID, _PREHASH_Name, _PREHASH_ObjectData, _PREHASH_OwnerID, _PREHASH_RezMultipleAttachmentsFromInv, _PREHASH_SessionID, _PREHASH_TotalObjects, LLGestureManager::activateGestures(), LLMessageSystem::addBOOLFast(), LLMessageSystem::addStringFast(), LLMessageSystem::addU8Fast(), LLMessageSystem::addUUIDFast(), LLViewerWindow::alertXml(), LLAssetType::AT_GESTURE, LLAssetType::AT_OBJECT, LLInventoryModel::collectDescendentsIf(), LLDynamicArray< Type, BlockSize >::count(), LLInventoryModel::EXCLUDE_TRASH, gAddToOutfit, gAgent, LLUUID::generate(), LLDynamicArray< Type, BlockSize >::get(), LLWearableList::getAsset(), LLAgent::getAvatarObject(), LLInventoryModel::getCategory(), LLInventoryItem::getDescription(), LLInventoryItem::getFlags(), LLViewerRegion::getHost(), LLAgent::getID(), LLInventoryObject::getName(), LLPermissions::getOwner(), LLInventoryItem::getPermissions(), LLAgent::getRegion(), LLAgent::getSessionID(), LLInventoryObject::getUUID(), gGestureManager, gInventory, gMessageSystem, gViewerWindow, gWearableList, i, inc_busy_count(), lldebugs, llendl, llinfos, LLWearInfo::mAppend, LLFoundData::mAssetID, LLFoundData::mAssetType, LLWearInfo::mCategoryID, LLWearableHoldingPattern::mFoundList, LLFoundData::mName, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLInventoryModel::notifyObservers(), NULL, pack_permissions_slam(), LLDynamicArray< Type, BlockSize >::put(), S32, LLMessageSystem::sendReliable(), LLInventoryModel::updateCategory(), LLAgent::userRemoveAllAttachments(), and wear_inventory_category_on_avatar_loop().

Referenced by wear_inventory_category_on_avatar().

Here is the call graph for this function:

Here is the caller graph for this function:

void wear_inventory_category_on_avatar_step3 ( LLWearableHoldingPattern holder,
BOOL  append 
)

void wear_inventory_item_on_avatar ( LLInventoryItem item  ) 

void wear_outfit_by_name ( const char *  name  ) 


Variable Documentation

BOOL gAddToOutfit = FALSE

const char* ICON_NAME[ICON_NAME_COUNT]

Definition at line 114 of file llinventorybridge.cpp.

Referenced by get_item_icon_name(), and LLItemBridge::getIcon().


Generated on Fri May 16 08:36:47 2008 for SecondLife by  doxygen 1.5.5