PageRenderTime 38ms CodeModel.GetById 16ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1
  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. #ifndef LL_STDENUMS_H
  27. #define LL_STDENUMS_H
  28. //----------------------------------------------------------------------------
  29. // DEPRECATED - create new, more specific files for shared enums/constants
  30. //----------------------------------------------------------------------------
  31. // this enum is used by the llview.h (viewer) and the llassetstorage.h (viewer and sim)
  32. enum EDragAndDropType
  33. {
  34. DAD_NONE = 0,
  35. DAD_TEXTURE = 1,
  36. DAD_SOUND = 2,
  37. DAD_CALLINGCARD = 3,
  38. DAD_LANDMARK = 4,
  39. DAD_SCRIPT = 5,
  40. DAD_CLOTHING = 6,
  41. DAD_OBJECT = 7,
  42. DAD_NOTECARD = 8,
  43. DAD_CATEGORY = 9,
  44. DAD_ROOT_CATEGORY = 10,
  45. DAD_BODYPART = 11,
  46. DAD_ANIMATION = 12,
  47. DAD_GESTURE = 13,
  48. DAD_LINK = 14,
  49. DAD_MESH = 15,
  50. DAD_WIDGET = 16,
  51. DAD_COUNT = 17, // number of types in this enum
  52. };
  53. // Reasons for drags to be denied.
  54. // ordered by priority for multi-drag
  55. enum EAcceptance
  56. {
  57. ACCEPT_POSTPONED, // we are asynchronously determining acceptance
  58. ACCEPT_NO, // Uninformative, general purpose denial.
  59. ACCEPT_NO_LOCKED, // Operation would be valid, but permissions are set to disallow it.
  60. ACCEPT_YES_COPY_SINGLE, // We'll take a copy of a single item
  61. ACCEPT_YES_SINGLE, // Accepted. OK to drag and drop single item here.
  62. ACCEPT_YES_COPY_MULTI, // We'll take a copy of multiple items
  63. ACCEPT_YES_MULTI // Accepted. OK to drag and drop multiple items here.
  64. };
  65. // This is used by the DeRezObject message to determine where to put
  66. // derezed tasks.
  67. enum EDeRezDestination
  68. {
  69. DRD_SAVE_INTO_AGENT_INVENTORY = 0,
  70. DRD_ACQUIRE_TO_AGENT_INVENTORY = 1, // try to leave copy in world
  71. DRD_SAVE_INTO_TASK_INVENTORY = 2,
  72. DRD_ATTACHMENT = 3,
  73. DRD_TAKE_INTO_AGENT_INVENTORY = 4, // delete from world
  74. DRD_FORCE_TO_GOD_INVENTORY = 5, // force take copy
  75. DRD_TRASH = 6,
  76. DRD_ATTACHMENT_TO_INV = 7,
  77. DRD_ATTACHMENT_EXISTS = 8,
  78. DRD_RETURN_TO_OWNER = 9, // back to owner's inventory
  79. DRD_RETURN_TO_LAST_OWNER = 10, // deeded object back to last owner's inventory
  80. DRD_COUNT = 11
  81. };
  82. // This is used by the return to owner code to determine the reason
  83. // that this object is being returned.
  84. enum EReturnReason
  85. {
  86. RR_GENERIC = 0,
  87. RR_SANDBOX = 1,
  88. RR_PARCEL_OWNER = 2,
  89. RR_PARCEL_AUTO = 3,
  90. RR_PARCEL_FULL = 4,
  91. RR_OFF_WORLD = 5,
  92. RR_COUNT = 6
  93. };
  94. // This is used for filling in the first byte of the ExtraID field of
  95. // the ObjectProperties message.
  96. enum EObjectPropertiesExtraID
  97. {
  98. OPEID_NONE = 0,
  99. OPEID_ASSET_ID = 1,
  100. OPEID_FROM_TASK_ID = 2,
  101. OPEID_COUNT = 3
  102. };
  103. enum EAddPosition
  104. {
  105. ADD_TOP,
  106. ADD_BOTTOM,
  107. ADD_DEFAULT
  108. };
  109. enum LLGroupChange
  110. {
  111. GC_PROPERTIES,
  112. GC_MEMBER_DATA,
  113. GC_ROLE_DATA,
  114. GC_ROLE_MEMBER_DATA,
  115. GC_TITLES,
  116. GC_ALL
  117. };
  118. //----------------------------------------------------------------------------
  119. // DEPRECATED - create new, more specific files for shared enums/constants
  120. //----------------------------------------------------------------------------
  121. #endif