PageRenderTime 31ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llfloaterchat.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 78 lines | 31 code | 14 blank | 33 comment | 0 complexity | 8854f1835997475d61c352e0721c8706 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llfloaterchat.h
  3. * @brief LLFloaterChat 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. /*
  27. * Actually the "Chat History" floater.
  28. * Should be llfloaterchathistory, not llfloaterchat.
  29. */
  30. #ifndef LL_LLFLOATERCHAT_H
  31. #define LL_LLFLOATERCHAT_H
  32. #include "llfloater.h"
  33. #include "lllogchat.h"
  34. class LLChat;
  35. class LLPanelActiveSpeakers;
  36. class LLLogChat;
  37. class LLFloaterChat : public LLFloater
  38. {
  39. public:
  40. LLFloaterChat(const LLSD& seed);
  41. ~LLFloaterChat();
  42. virtual void draw();
  43. virtual BOOL postBuild();
  44. void updateConsoleVisibility();
  45. static void setHistoryCursorAndScrollToEnd();
  46. // *TODO:Skinning - move these to LLChat (or LLViewerChat?)
  47. // Add chat to console and history list.
  48. // Color based on source, type, distance.
  49. static void addChat(const LLChat& chat, BOOL local_agent = FALSE);
  50. // Add chat to history alone.
  51. static void addChatHistory(const LLChat& chat, bool log_to_file = true);
  52. static void triggerAlerts(const std::string& text);
  53. static void onClickMute(void *data);
  54. static void onClickToggleShowMute(LLUICtrl* caller, void *data);
  55. static void onClickToggleActiveSpeakers(void* userdata);
  56. static void chatFromLogFile(LLLogChat::ELogLineType type, const LLSD& line, void* userdata);
  57. static void loadHistory();
  58. static void* createSpeakersPanel(void* data);
  59. static void* createChatPanel(void* data);
  60. static LLFloaterChat* getInstance(); // *TODO:Skinning Deprecate
  61. LLPanelActiveSpeakers* mPanel;
  62. BOOL mScrolledToEnd;
  63. };
  64. #endif