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