PageRenderTime 79ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llpanelmediasettingspermissions.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 73 lines | 30 code | 9 blank | 34 comment | 0 complexity | 3d9fbedef52f8c625de6225fff2fe80e MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llpanelmediasettingspermissions.h
  3. * @brief LLPanelMediaSettingsPermissions class definition
  4. *
  5. * note that "permissions" tab is really "Controls" tab - refs to 'perms' and
  6. * 'permissions' not changed to 'controls' since we don't want to change
  7. * shared files in server code and keeping everything the same seemed best.
  8. *
  9. * $LicenseInfo:firstyear=2007&license=viewerlgpl$
  10. * Second Life Viewer Source Code
  11. * Copyright (C) 2010, Linden Research, Inc.
  12. *
  13. * This library is free software; you can redistribute it and/or
  14. * modify it under the terms of the GNU Lesser General Public
  15. * License as published by the Free Software Foundation;
  16. * version 2.1 of the License only.
  17. *
  18. * This library is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  21. * Lesser General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU Lesser General Public
  24. * License along with this library; if not, write to the Free Software
  25. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  26. *
  27. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  28. * $/LicenseInfo$
  29. */
  30. #ifndef LL_LLPANELMEDIAMEDIASETTINGSPERMISSIONS_H
  31. #define LL_LLPANELMEDIAMEDIASETTINGSPERMISSIONS_H
  32. #include "llpanel.h"
  33. #include "lluuid.h"
  34. class LLComboBox;
  35. class LLCheckBoxCtrl;
  36. class LLNameBox;
  37. class LLPanelMediaSettingsPermissions : public LLPanel
  38. {
  39. public:
  40. LLPanelMediaSettingsPermissions();
  41. ~LLPanelMediaSettingsPermissions();
  42. BOOL postBuild();
  43. virtual void draw();
  44. // XXX TODO: put these into a common parent class?
  45. // Hook that the floater calls before applying changes from the panel
  46. void preApply();
  47. // Function that asks the panel to fill in values associated with the panel
  48. // 'include_tentative' means fill in tentative values as well, otherwise do not
  49. void getValues(LLSD &fill_me_in, bool include_tentative = true);
  50. // Hook that the floater calls after applying changes to the panel
  51. void postApply();
  52. static void initValues( void* userdata, const LLSD& media_settings, bool editable );
  53. static void clearValues( void* userdata, bool editable);
  54. private:
  55. LLComboBox* mControls;
  56. LLCheckBoxCtrl* mPermsOwnerInteract;
  57. LLCheckBoxCtrl* mPermsOwnerControl;
  58. LLNameBox* mPermsGroupName;
  59. LLCheckBoxCtrl* mPermsGroupInteract;
  60. LLCheckBoxCtrl* mPermsGroupControl;
  61. LLCheckBoxCtrl* mPermsWorldInteract;
  62. LLCheckBoxCtrl* mPermsWorldControl;
  63. };
  64. #endif // LL_LLPANELMEDIAMEDIASETTINGSPERMISSIONS_H