PageRenderTime 25ms CodeModel.GetById 14ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llcommon/stdenums.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 136 lines | 81 code | 15 blank | 40 comment | 0 complexity | ff47884419ce9d175df9c4c6c5a2f12c MD5 | raw file
  1/** 
  2 * @file stdenums.h
  3 * @brief Enumerations for indra.
  4 *
  5 * $LicenseInfo:firstyear=2002&license=viewerlgpl$
  6 * Second Life Viewer Source Code
  7 * Copyright (C) 2010, Linden Research, Inc.
  8 * 
  9 * This library is free software; you can redistribute it and/or
 10 * modify it under the terms of the GNU Lesser General Public
 11 * License as published by the Free Software Foundation;
 12 * version 2.1 of the License only.
 13 * 
 14 * This library is distributed in the hope that it will be useful,
 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 17 * Lesser General Public License for more details.
 18 * 
 19 * You should have received a copy of the GNU Lesser General Public
 20 * License along with this library; if not, write to the Free Software
 21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 22 * 
 23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
 24 * $/LicenseInfo$
 25 */
 26
 27#ifndef LL_STDENUMS_H
 28#define LL_STDENUMS_H
 29
 30//----------------------------------------------------------------------------
 31// DEPRECATED - create new, more specific files for shared enums/constants
 32//----------------------------------------------------------------------------
 33
 34// this enum is used by the llview.h (viewer) and the llassetstorage.h (viewer and sim) 
 35enum EDragAndDropType
 36{
 37	DAD_NONE			= 0,
 38	DAD_TEXTURE			= 1,
 39	DAD_SOUND			= 2,
 40	DAD_CALLINGCARD		= 3,
 41	DAD_LANDMARK		= 4,
 42	DAD_SCRIPT			= 5,
 43	DAD_CLOTHING 		= 6,
 44	DAD_OBJECT			= 7,
 45	DAD_NOTECARD		= 8,
 46	DAD_CATEGORY		= 9,
 47	DAD_ROOT_CATEGORY 	= 10,
 48	DAD_BODYPART		= 11,
 49	DAD_ANIMATION		= 12,
 50	DAD_GESTURE			= 13,
 51	DAD_LINK			= 14,
 52	DAD_MESH            = 15,
 53	DAD_WIDGET          = 16,
 54	DAD_COUNT           = 17,   // number of types in this enum
 55};
 56
 57// Reasons for drags to be denied.
 58// ordered by priority for multi-drag
 59enum EAcceptance
 60{
 61	ACCEPT_POSTPONED,	// we are asynchronously determining acceptance
 62	ACCEPT_NO,			// Uninformative, general purpose denial.
 63	ACCEPT_NO_LOCKED,	// Operation would be valid, but permissions are set to disallow it.
 64	ACCEPT_YES_COPY_SINGLE,	// We'll take a copy of a single item
 65	ACCEPT_YES_SINGLE,		// Accepted. OK to drag and drop single item here.
 66	ACCEPT_YES_COPY_MULTI,	// We'll take a copy of multiple items
 67	ACCEPT_YES_MULTI		// Accepted. OK to drag and drop multiple items here.
 68};
 69
 70// This is used by the DeRezObject message to determine where to put
 71// derezed tasks.
 72enum EDeRezDestination
 73{
 74	DRD_SAVE_INTO_AGENT_INVENTORY = 0,
 75	DRD_ACQUIRE_TO_AGENT_INVENTORY = 1,		// try to leave copy in world
 76	DRD_SAVE_INTO_TASK_INVENTORY = 2,
 77	DRD_ATTACHMENT = 3,
 78	DRD_TAKE_INTO_AGENT_INVENTORY = 4,		// delete from world
 79	DRD_FORCE_TO_GOD_INVENTORY = 5,			// force take copy
 80	DRD_TRASH = 6,
 81	DRD_ATTACHMENT_TO_INV = 7,
 82	DRD_ATTACHMENT_EXISTS = 8,
 83	DRD_RETURN_TO_OWNER = 9,				// back to owner's inventory
 84	DRD_RETURN_TO_LAST_OWNER = 10,			// deeded object back to last owner's inventory
 85
 86	DRD_COUNT = 11
 87};
 88
 89
 90// This is used by the return to owner code to determine the reason
 91// that this object is being returned.
 92enum EReturnReason
 93{
 94	RR_GENERIC = 0,
 95	RR_SANDBOX = 1,
 96	RR_PARCEL_OWNER = 2,
 97	RR_PARCEL_AUTO = 3,
 98	RR_PARCEL_FULL = 4,
 99	RR_OFF_WORLD = 5,
100	
101	RR_COUNT = 6
102};
103
104// This is used for filling in the first byte of the ExtraID field of
105// the ObjectProperties message.
106enum EObjectPropertiesExtraID
107{
108	OPEID_NONE = 0,
109	OPEID_ASSET_ID = 1,
110	OPEID_FROM_TASK_ID = 2,
111
112	OPEID_COUNT = 3
113};
114
115enum EAddPosition
116{
117	ADD_TOP,
118	ADD_BOTTOM,
119	ADD_DEFAULT
120};
121
122enum LLGroupChange
123{
124	GC_PROPERTIES,
125	GC_MEMBER_DATA,
126	GC_ROLE_DATA,
127	GC_ROLE_MEMBER_DATA,
128	GC_TITLES,
129	GC_ALL
130};
131
132//----------------------------------------------------------------------------
133// DEPRECATED - create new, more specific files for shared enums/constants
134//----------------------------------------------------------------------------
135
136#endif