PageRenderTime 33ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llpanelvoiceeffect.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 67 lines | 27 code | 12 blank | 28 comment | 0 complexity | 9125d0adce2d09f59c30ba83cd1ad0da MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llpanelvoiceeffect.h
  3. * @author Aimee
  4. * @brief Panel to select Voice Effects.
  5. *
  6. * $LicenseInfo:firstyear=2010&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_PANELVOICEEFFECT_H
  28. #define LL_PANELVOICEEFFECT_H
  29. #include "llpanel.h"
  30. #include "llvoiceclient.h"
  31. class LLComboBox;
  32. class LLPanelVoiceEffect
  33. : public LLPanel
  34. , public LLVoiceEffectObserver
  35. {
  36. public:
  37. LOG_CLASS(LLPanelVoiceEffect);
  38. LLPanelVoiceEffect();
  39. virtual ~LLPanelVoiceEffect();
  40. virtual BOOL postBuild();
  41. private:
  42. void onCommitVoiceEffect();
  43. void update(bool list_updated);
  44. /// Called by voice effect provider when voice effect list is changed.
  45. virtual void onVoiceEffectChanged(bool effect_list_updated);
  46. // Fixed entries in the Voice Morph list
  47. typedef enum e_voice_effect_combo_items
  48. {
  49. NO_VOICE_EFFECT = 0,
  50. PREVIEW_VOICE_EFFECTS = 1,
  51. GET_VOICE_EFFECTS = 2
  52. } EVoiceEffectComboItems;
  53. LLComboBox* mVoiceEffectCombo;
  54. };
  55. #endif //LL_PANELVOICEEFFECT_H