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

/indra/newview/llfloaternotificationsconsole.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 75 lines | 30 code | 14 blank | 31 comment | 0 complexity | 3704f6dad132b6e23efc5267d067d22c MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llfloaternotificationsconsole.h
  3. * @brief Debugging console for unified notifications.
  4. *
  5. * $LicenseInfo:firstyear=2003&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_LLFLOATER_NOTIFICATIONS_CONSOLE_H
  27. #define LL_LLFLOATER_NOTIFICATIONS_CONSOLE_H
  28. #include "llfloater.h"
  29. #include "lllayoutstack.h"
  30. //#include "llnotificationsutil.h"
  31. class LLNotification;
  32. class LLFloaterNotificationConsole :
  33. public LLFloater
  34. {
  35. friend class LLFloaterReg;
  36. public:
  37. // LLPanel
  38. BOOL postBuild();
  39. void addChannel(const std::string& type, bool open = false);
  40. void updateResizeLimits(LLLayoutStack &stack);
  41. void removeChannel(const std::string& type);
  42. void updateResizeLimits();
  43. private:
  44. LLFloaterNotificationConsole(const LLSD& key);
  45. void onClickAdd();
  46. };
  47. /*
  48. * @brief Pop-up debugging view of a generic new notification.
  49. */
  50. class LLFloaterNotification : public LLFloater
  51. {
  52. public:
  53. LLFloaterNotification(LLNotification* note);
  54. // LLPanel
  55. BOOL postBuild();
  56. void respond();
  57. private:
  58. static void onCommitResponse(LLUICtrl* ctrl, void* data) { ((LLFloaterNotification*)data)->respond(); }
  59. LLNotification* mNote;
  60. };
  61. #endif