/indra/newview/llfloatervoiceeffect.h

https://bitbucket.org/lindenlab/viewer-beta/ · C++ Header · 72 lines · 32 code · 12 blank · 28 comment · 0 complexity · 2e01fc6600f979aa5580dbc5fc17ac9d MD5 · raw file

  1. /**
  2. * @file llfloatervoiceeffect.h
  3. * @author Aimee
  4. * @brief Selection and preview of 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_LLFLOATERVOICEEFFECT_H
  28. #define LL_LLFLOATERVOICEEFFECT_H
  29. #include "llfloater.h"
  30. #include "llvoiceclient.h"
  31. class LLButton;
  32. class LLScrollListCtrl;
  33. class LLFloaterVoiceEffect
  34. : public LLFloater
  35. , public LLVoiceEffectObserver
  36. {
  37. public:
  38. LOG_CLASS(LLFloaterVoiceEffect);
  39. LLFloaterVoiceEffect(const LLSD& key);
  40. virtual ~LLFloaterVoiceEffect();
  41. virtual BOOL postBuild();
  42. virtual void onClose(bool app_quitting);
  43. private:
  44. enum ColumnIndex
  45. {
  46. NAME_COLUMN = 0,
  47. DATE_COLUMN = 1,
  48. };
  49. void refreshEffectList();
  50. void updateControls();
  51. /// Called by voice effect provider when voice effect list is changed.
  52. virtual void onVoiceEffectChanged(bool effect_list_updated);
  53. void onClickRecord();
  54. void onClickPlay();
  55. void onClickStop();
  56. // void onClickActivate();
  57. LLUUID mSelectedID;
  58. LLScrollListCtrl* mVoiceEffectList;
  59. };
  60. #endif