PageRenderTime 32ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llpanelvolumepulldown.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 58 lines | 23 code | 9 blank | 26 comment | 0 complexity | 15caa97bb63a59c17de85e37ff6f12aa MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llpanelvolumepulldown.h
  3. * @author Tofu Linden
  4. * @brief A panel showing the master volume pull-down
  5. *
  6. * $LicenseInfo:firstyear=2008&license=viewerlgpl$
  7. * Second Life Viewer Source Code
  8. * Copyright (C) 2010, Linden Research, Inc.
  9. *
  10. * This library is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU Lesser General Public
  12. * License as published by the Free Software Foundation;
  13. * version 2.1 of the License only.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public
  21. * License along with this library; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  23. *
  24. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  25. * $/LicenseInfo$
  26. */
  27. #ifndef LL_LLPANELVOLUMEPULLDOWN_H
  28. #define LL_LLPANELVOLUMEPULLDOWN_H
  29. #include "linden_common.h"
  30. #include "llpanel.h"
  31. class LLFrameTimer;
  32. class LLPanelVolumePulldown : public LLPanel
  33. {
  34. public:
  35. LLPanelVolumePulldown();
  36. /*virtual*/ void draw();
  37. /*virtual*/ void onMouseEnter(S32 x, S32 y, MASK mask);
  38. /*virtual*/ void onMouseLeave(S32 x, S32 y, MASK mask);
  39. /*virtual*/ void onTopLost();
  40. /*virtual*/ void handleVisibilityChange ( BOOL new_visibility );
  41. /*virtual*/ BOOL postBuild();
  42. private:
  43. void setControlFalse(const LLSD& user_data);
  44. void onAdvancedButtonClick(const LLSD& user_data);
  45. LLFrameTimer mHoverTimer;
  46. static const F32 sAutoCloseFadeStartTimeSec;
  47. static const F32 sAutoCloseTotalTimeSec;
  48. };
  49. #endif // LL_LLPANELVOLUMEPULLDOWN_H