llinventoryactions.cpp File Reference

Implementation of the actions associated with menu items. More...

#include "llviewerprecompiledheaders.h"
#include <utility>
#include "llinventoryview.h"
#include "llpanelinventory.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 "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 "viewer.h"
#include "llviewermessage.h"
#include "llviewerregion.h"
#include "lltabcontainer.h"
#include "llvieweruictrlfactory.h"
#include "llselectmgr.h"

Include dependency graph for llinventoryactions.cpp:

Go to the source code of this file.

Classes

class  LLDoToSelectedPanel
class  LLDoToSelectedFloater
class  LLDoToSelected
class  LLNewWindow
class  LLShowFilters
class  LLResetFilter
class  LLCloseAllFolders
class  LLCloseAllFoldersFloater
class  LLEmptyTrash
class  LLEmptyLostAndFound
class  LLEmptyTrashFloater
class  LLDoCreate
class  LLDoCreateFloater
class  LLSetSortBy
class  LLBeginIMSession
class  LLAttachObject

Typedefs

typedef LLMemberListener<
LLPanelInventory
object_inventory_listener_t
typedef LLMemberListener<
LLInventoryView
inventory_listener_t
typedef LLMemberListener<
LLInventoryPanel
inventory_panel_listener_t

Functions

bool doToSelected (LLFolderView *folder, LLString action)
void do_create (LLInventoryModel *model, LLInventoryPanel *ptr, LLString type, LLFolderBridge *self=NULL)
void rez_attachment (LLViewerInventoryItem *item, LLViewerJointAttachment *attachment)
void init_object_inventory_panel_actions (LLPanelInventory *panel)
void init_inventory_actions (LLInventoryView *floater)
void init_inventory_panel_actions (LLInventoryPanel *panel)

Variables

const char * NEW_LSL_NAME = "New Script"
const char * NEW_NOTECARD_NAME = "New Note"
const char * NEW_GESTURE_NAME = "New Gesture"


Detailed Description

Implementation of the actions associated with menu items.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-2007, 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://secondlife.com/developers/opensource/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://secondlife.com/developers/opensource/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 llinventoryactions.cpp.


Typedef Documentation

typedef LLMemberListener<LLInventoryView> inventory_listener_t

Definition at line 93 of file llinventoryactions.cpp.

typedef LLMemberListener<LLInventoryPanel> inventory_panel_listener_t

Definition at line 94 of file llinventoryactions.cpp.

typedef LLMemberListener<LLPanelInventory> object_inventory_listener_t

Definition at line 92 of file llinventoryactions.cpp.


Function Documentation

void do_create ( LLInventoryModel model,
LLInventoryPanel ptr,
LLString  type,
LLFolderBridge self = NULL 
)

Definition at line 330 of file llinventoryactions.cpp.

References LLAssetType::AT_BODYPART, LLAssetType::AT_CLOTHING, LLAssetType::AT_GESTURE, LLAssetType::AT_LSL_TEXT, LLAssetType::AT_NONE, LLAssetType::AT_NOTECARD, LLInventoryModel::createNewCategory(), LLInventoryPanel::createNewItem(), LLFolderBridge::createWearable(), LLInventoryModel::findCategoryUUIDForType(), gAgent, LLAgent::getInventoryRootID(), LLInventoryPanel::getRootFolder(), gInventory, LLInventoryType::IT_GESTURE, LLInventoryType::IT_LSL, LLInventoryType::IT_NOTECARD, NEW_GESTURE_NAME, NEW_LSL_NAME, NEW_NOTECARD_NAME, LLInventoryModel::notifyObservers(), NULL, PERM_ALL, PERM_MOVE, PERM_TRANSFER, LLFolderView::setNeedsAutoRename(), LLInventoryPanel::setSelection(), TRUE, type, WT_EYES, WT_GLOVES, WT_HAIR, WT_JACKET, WT_PANTS, WT_SHAPE, WT_SHIRT, WT_SHOES, WT_SKIN, WT_SKIRT, WT_SOCKS, WT_UNDERPANTS, and WT_UNDERSHIRT.

Referenced by LLDoCreateFloater::handleEvent(), and LLDoCreate::handleEvent().

bool doToSelected ( LLFolderView folder,
LLString  action 
)

Definition at line 96 of file llinventoryactions.cpp.

References LLView::addChild(), LLFolderView::getItemByID(), LLFolderViewItem::getListener(), LLFloaterView::getNewFloaterPosition(), LLFolderView::getSelectionList(), gFloaterView, gInventory, LLInventoryClipboard::instance(), left, NULL, LLMultiFloater::open(), LLMultiPreview::open(), LLFolderViewEventListener::performAction(), LLFolderView::removeSelectedItems(), LLInventoryClipboard::reset(), S32, LLFloater::setFloaterHost(), LLFolderView::startRenamingSelectedItem(), and top.

Referenced by LLDoToSelected::handleEvent(), LLDoToSelectedFloater::handleEvent(), and LLDoToSelectedPanel::handleEvent().

void init_inventory_actions ( LLInventoryView floater  ) 

---------------------------------------------------------------------------- Function declarations, constants, enums, and typedefs ----------------------------------------------------------------------------

Definition at line 703 of file llinventoryactions.cpp.

Referenced by LLInventoryView::init().

void init_inventory_panel_actions ( LLInventoryPanel panel  ) 

Definition at line 716 of file llinventoryactions.cpp.

Referenced by LLInventoryPanel::postBuild().

void init_object_inventory_panel_actions ( LLPanelInventory panel  ) 

Definition at line 698 of file llinventoryactions.cpp.

Referenced by LLPanelInventory::LLPanelInventory().

void rez_attachment ( LLViewerInventoryItem item,
LLViewerJointAttachment attachment 
)

Definition at line 3233 of file llinventorybridge.cpp.

References LLViewerWindow::alertXml(), confirm_replace_attachment_rez(), gAgent, LLAgent::getAvatarObject(), LLViewerJointAttachment::getObject(), LLInventoryObject::getUUID(), gViewerWindow, LLVOAvatar::mAttachmentPoints, LLAttachmentRezAction::mAttachPt, and LLAttachmentRezAction::mItemID.

Referenced by LLToolDragAndDrop::dad3dRezAttachmentFromInv(), RezAttachmentCallback::fire(), LLAttachObject::handleEvent(), and LLObjectBridge::performAction().


Variable Documentation

const char* NEW_GESTURE_NAME = "New Gesture"

Definition at line 90 of file llinventoryactions.cpp.

Referenced by do_create().

const char* NEW_LSL_NAME = "New Script"

Definition at line 88 of file llinventoryactions.cpp.

Referenced by do_create().

const char* NEW_NOTECARD_NAME = "New Note"

Definition at line 89 of file llinventoryactions.cpp.

Referenced by do_create().


Generated on Thu Jul 1 06:10:29 2010 for Second Life Viewer by  doxygen 1.4.7