PageRenderTime 35ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llpanelcontents.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 75 lines | 36 code | 12 blank | 27 comment | 0 complexity | 765371d294b7ae4b73d50f550b25a6b1 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llpanelcontents.h
  3. * @brief Object contents panel in the tools floater.
  4. *
  5. * $LicenseInfo:firstyear=2001&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_LLPANELCONTENTS_H
  27. #define LL_LLPANELCONTENTS_H
  28. #include "v3math.h"
  29. #include "llpanel.h"
  30. #include "llinventory.h"
  31. #include "lluuid.h"
  32. #include "llmap.h"
  33. #include "llviewerobject.h"
  34. #include "llvoinventorylistener.h"
  35. class LLButton;
  36. class LLPanelObjectInventory;
  37. class LLViewerObject;
  38. class LLCheckBoxCtrl;
  39. class LLSpinCtrl;
  40. class LLPanelContents : public LLPanel
  41. {
  42. public:
  43. virtual BOOL postBuild();
  44. LLPanelContents();
  45. virtual ~LLPanelContents();
  46. void refresh();
  47. static void onClickNewScript(void*);
  48. static void onClickPermissions(void*);
  49. // Key suffix for "tentative" fields
  50. static const char* TENTATIVE_SUFFIX;
  51. // These aren't fields in LLMediaEntry, so we have to define them ourselves for checkbox control
  52. static const char* PERMS_OWNER_INTERACT_KEY;
  53. static const char* PERMS_OWNER_CONTROL_KEY;
  54. static const char* PERMS_GROUP_INTERACT_KEY;
  55. static const char* PERMS_GROUP_CONTROL_KEY;
  56. static const char* PERMS_ANYONE_INTERACT_KEY;
  57. static const char* PERMS_ANYONE_CONTROL_KEY;
  58. protected:
  59. void getState(LLViewerObject *object);
  60. public:
  61. LLPanelObjectInventory* mPanelInventoryObject;
  62. };
  63. #endif // LL_LLPANELCONTENTS_H