PageRenderTime 129ms CodeModel.GetById 117ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llpanelpermissions.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 92 lines | 41 code | 20 blank | 31 comment | 0 complexity | 3cbb9f2754e47b6a3475cc5adde80bf8 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llpanelpermissions.h
  3. * @brief LLPanelPermissions class header file
  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_LLPANELPERMISSIONS_H
  27. #define LL_LLPANELPERMISSIONS_H
  28. #include "llpanel.h"
  29. #include "lluuid.h"
  30. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  31. // Class llpanelpermissions
  32. //
  33. // Panel for permissions of an object.
  34. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  35. class LLNameBox;
  36. class LLPanelPermissions : public LLPanel
  37. {
  38. public:
  39. LLPanelPermissions();
  40. virtual ~LLPanelPermissions();
  41. /*virtual*/ BOOL postBuild();
  42. void refresh(); // refresh all labels as needed
  43. protected:
  44. // statics
  45. static void onClickClaim(void*);
  46. static void onClickRelease(void*);
  47. void onClickGroup();
  48. void cbGroupID(LLUUID group_id);
  49. static void onClickDeedToGroup(void*);
  50. static void onCommitPerm(LLUICtrl *ctrl, void *data, U8 field, U32 perm);
  51. static void onCommitGroupShare(LLUICtrl *ctrl, void *data);
  52. static void onCommitEveryoneMove(LLUICtrl *ctrl, void *data);
  53. static void onCommitEveryoneCopy(LLUICtrl *ctrl, void *data);
  54. static void onCommitNextOwnerModify(LLUICtrl* ctrl, void* data);
  55. static void onCommitNextOwnerCopy(LLUICtrl* ctrl, void* data);
  56. static void onCommitNextOwnerTransfer(LLUICtrl* ctrl, void* data);
  57. static void onCommitName(LLUICtrl* ctrl, void* data);
  58. static void onCommitDesc(LLUICtrl* ctrl, void* data);
  59. static void onCommitSaleInfo(LLUICtrl* ctrl, void* data);
  60. static void onCommitSaleType(LLUICtrl* ctrl, void* data);
  61. void setAllSaleInfo();
  62. static void onCommitClickAction(LLUICtrl* ctrl, void*);
  63. static void onCommitIncludeInSearch(LLUICtrl* ctrl, void*);
  64. protected:
  65. void disableAll();
  66. private:
  67. LLNameBox* mLabelGroupName; // group name
  68. LLUUID mCreatorID;
  69. LLUUID mOwnerID;
  70. LLUUID mLastOwnerID;
  71. };
  72. #endif // LL_LLPANELPERMISSIONS_H