PageRenderTime 39ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/lloverlaybar.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 95 lines | 51 code | 16 blank | 28 comment | 1 complexity | 63efe3ec2e84b8780bc11c415df8c05e MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file lloverlaybar.h
  3. * @brief LLOverlayBar class definition
  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_LLOVERLAYBAR_H
  27. #define LL_LLOVERLAYBAR_H
  28. #include "llpanel.h"
  29. // "Constants" loaded from settings.xml at start time
  30. extern S32 STATUS_BAR_HEIGHT;
  31. class LLButton;
  32. class LLLineEditor;
  33. class LLMediaRemoteCtrl;
  34. class LLMessageSystem;
  35. class LLTextBox;
  36. class LLTextEditor;
  37. class LLUICtrl;
  38. class LLUUID;
  39. class LLFrameTimer;
  40. class LLStatGraph;
  41. class LLSlider;
  42. class LLVoiceRemoteCtrl;
  43. class LLOverlayBar
  44. : public LLPanel
  45. {
  46. public:
  47. LLOverlayBar();
  48. ~LLOverlayBar();
  49. /*virtual*/ void refresh();
  50. /*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
  51. /*virtual*/ BOOL postBuild();
  52. void layoutButtons();
  53. // helpers for returning desired state
  54. BOOL musicPlaying() { return mMusicState == PLAYING; }
  55. static void onClickSetNotBusy(void* data);
  56. static void onClickMouselook(void* data);
  57. static void onClickStandUp(void* data);
  58. static void onClickResetView(void* data);
  59. static void onClickFlycam(void* data);
  60. //static media helper functions
  61. static void toggleMediaPlay(void*);
  62. static void toggleMusicPlay(void*);
  63. static void musicPause(void*);
  64. static void musicStop(void*);
  65. static void mediaStop(void*);
  66. static void toggleAudioVolumeFloater(void*);
  67. protected:
  68. static void* createMediaRemote(void* userdata);
  69. static void* createVoiceRemote(void* userdata);
  70. void enableMediaButtons();
  71. protected:
  72. LLMediaRemoteCtrl* mMediaRemote;
  73. LLVoiceRemoteCtrl* mVoiceRemote;
  74. bool mBuilt; // dialog constructed yet?
  75. enum { STOPPED=0, PLAYING=1, PAUSED=2 };
  76. S32 mMusicState;
  77. };
  78. extern LLOverlayBar* gOverlayBar;
  79. #endif