llpanelpermissions.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /**
  2. * @file llpanelpermissions.h
  3. * @brief LLPanelPermissions class header file
  4. *
  5. * $LicenseInfo:firstyear=2002&license=viewergpl$
  6. *
  7. * Copyright (c) 2002-2009, Linden Research, Inc.
  8. *
  9. * Second Life Viewer Source Code
  10. * The source code in this file ("Source Code") is provided by Linden Lab
  11. * to you under the terms of the GNU General Public License, version 2.0
  12. * ("GPL"), unless you have obtained a separate licensing agreement
  13. * ("Other License"), formally executed by you and Linden Lab. Terms of
  14. * the GPL can be found in doc/GPL-license.txt in this distribution, or
  15. * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
  16. *
  17. * There are special exceptions to the terms and conditions of the GPL as
  18. * it is applied to this Source Code. View the full text of the exception
  19. * in the file doc/FLOSS-exception.txt in this software distribution, or
  20. * online at
  21. * http://secondlifegrid.net/programs/open_source/licensing/flossexception
  22. *
  23. * By copying, modifying or distributing this software, you acknowledge
  24. * that you have read and understood your obligations described above,
  25. * and agree to abide by those obligations.
  26. *
  27. * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
  28. * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
  29. * COMPLETENESS OR PERFORMANCE.
  30. * $/LicenseInfo$
  31. */
  32. #ifndef LL_LLPANELPERMISSIONS_H
  33. #define LL_LLPANELPERMISSIONS_H
  34. #include "llpanel.h"
  35. #include "lluuid.h"
  36. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  37. // Class llpanelpermissions
  38. //
  39. // Panel for permissions of an object.
  40. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  41. class LLButton;
  42. class LLCheckBoxCtrl;
  43. class LLComboBox;
  44. class LLIconCtrl;
  45. class LLLineEditor;
  46. class LLNameBox;
  47. class LLRadioGroup;
  48. class LLTextBox;
  49. class LLUICtrl;
  50. class LLPanelPermissions final : public LLPanel
  51. {
  52. public:
  53. LLPanelPermissions(const std::string& title);
  54. ~LLPanelPermissions() override {}
  55. bool postBuild() override;
  56. void refresh() override;
  57. private:
  58. void setAllSaleInfo();
  59. static void onClickClaim(void*);
  60. static void onClickRelease(void*);
  61. static void onClickCreator(void*);
  62. static void onClickOwner(void*);
  63. static void onClickGroup(void*);
  64. static void cbGroupID(LLUUID group_id, void* data);
  65. static void onClickDeedToGroup(void*);
  66. static void onCommitPerm(LLUICtrl* ctrl, void* data, U8 field, U32 perm);
  67. static void onCommitGroupShare(LLUICtrl* ctrl, void* data);
  68. static void onCommitEveryoneExport(LLUICtrl* ctrl, void* data);
  69. static void onCommitEveryoneMove(LLUICtrl* ctrl, void* data);
  70. static void onCommitEveryoneCopy(LLUICtrl* ctrl, void* data);
  71. static void onCommitNextOwnerModify(LLUICtrl* ctrl, void* data);
  72. static void onCommitNextOwnerCopy(LLUICtrl* ctrl, void* data);
  73. static void onCommitNextOwnerTransfer(LLUICtrl* ctrl, void* data);
  74. static void onCommitName(LLUICtrl* ctrl, void* data);
  75. static void onCommitDesc(LLUICtrl* ctrl, void* data);
  76. static void onCommitSaleInfo(LLUICtrl* ctrl, void* data);
  77. static void onCommitSaleType(LLUICtrl* ctrl, void* data);
  78. static void onCommitClickAction(LLUICtrl* ctrl, void*);
  79. static void onCommitIncludeInSearch(LLUICtrl* ctrl, void*);
  80. private:
  81. LLTextBox* mTextObjectName;
  82. LLLineEditor* mEditorObjectName;
  83. LLTextBox* mTextObjectDesc;
  84. LLLineEditor* mEditorObjectDesc;
  85. LLTextBox* mTextCreatorLabel;
  86. LLTextBox* mTextCreatorName;
  87. LLButton* mButtonCreatorProfile;
  88. LLTextBox* mTextOwnerLabel;
  89. LLTextBox* mTextOwnerName;
  90. LLButton* mButtonOwnerProfile;
  91. LLTextBox* mTextGroupName;
  92. LLNameBox* mNameBoxGroupName;
  93. LLButton* mButtonSetGroup;
  94. LLTextBox* mTextPermissions;
  95. LLTextBox* mTextPermissionsModify;
  96. LLCheckBoxCtrl* mCheckShareWithGroup;
  97. LLButton* mButtonDeed;
  98. LLCheckBoxCtrl* mCheckAllowEveryoneExport;
  99. LLCheckBoxCtrl* mCheckAllowEveryoneMove;
  100. LLCheckBoxCtrl* mCheckAllowEveryoneCopy;
  101. LLCheckBoxCtrl* mCheckShowInSearch;
  102. LLCheckBoxCtrl* mCheckForSale;
  103. LLTextBox* mTextCost;
  104. LLLineEditor* mEditorCost;
  105. LLRadioGroup* mRadioSaleType;
  106. LLTextBox* mTextNextOwnerCan;
  107. LLCheckBoxCtrl* mCheckNextCanModify;
  108. LLCheckBoxCtrl* mCheckNextCanCopy;
  109. LLCheckBoxCtrl* mCheckNextCanTransfer;
  110. LLTextBox* mTextClickAction;
  111. LLComboBox* mComboClickAction;
  112. LLIconCtrl* mIconNavMeshInfo;
  113. LLTextBox* mTextNavMeshInfo;
  114. LLTextBox* mTextDebugPermB;
  115. LLTextBox* mTextDebugPermO;
  116. LLTextBox* mTextDebugPermG;
  117. LLTextBox* mTextDebugPermE;
  118. LLTextBox* mTextDebugPermN;
  119. LLTextBox* mTextDebugPermF;
  120. std::string mCostTotal;
  121. std::string mCostDefault;
  122. std::string mCostPerUnit;
  123. std::string mCostMixed;
  124. std::string mSaleMixed;
  125. LLUUID mCreatorID;
  126. LLUUID mOwnerID;
  127. LLUUID mLastOwnerID;
  128. };
  129. #endif // LL_LLPANELPERMISSIONS_H