PageRenderTime 92ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llpanelgenerictip.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 51 lines | 10 code | 3 blank | 38 comment | 0 complexity | cd0a65a0852571a6d634ffb869344617 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llpanelgenerictip.h
  3. * @brief Represents a generic panel for a notifytip notifications. As example:
  4. * "SystemMessageTip", "Cancelled", "UploadWebSnapshotDone".
  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_PANELGENERICTIP_H
  28. #define LL_PANELGENERICTIP_H
  29. #include "llpaneltiptoast.h"
  30. /**
  31. * Represents tip toast panel that contains only one child element - message text.
  32. * This panel can be used for different cases of tip notifications.
  33. */
  34. class LLPanelGenericTip: public LLPanelTipToast
  35. {
  36. // disallow instantiation of this class
  37. private:
  38. // grant privileges to instantiate this class to LLToastPanel
  39. friend class LLToastPanel;
  40. /**
  41. * Generic toast tip panel.
  42. * This is particular case of toast panel that decoupled from LLToastNotifyPanel.
  43. * From now LLToastNotifyPanel is deprecated and will be removed after all panel
  44. * types are represented in separate classes.
  45. */
  46. LLPanelGenericTip(const LLNotificationPtr& notification);
  47. };
  48. #endif /* LL_PANELGENERICTIP_H */