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

/indra/newview/lltoastgroupnotifypanel.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 79 lines | 30 code | 14 blank | 35 comment | 0 complexity | 5362d8d1ffed1d0e019fabca0a60df5a MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file lltoastgroupnotifypanel.h
  3. * @brief Panel for group notify toasts.
  4. *
  5. * $LicenseInfo:firstyear=2001&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_LLGROUPNOTIFY_H
  27. #define LL_LLGROUPNOTIFY_H
  28. #include "llfontgl.h"
  29. #include "lltoastpanel.h"
  30. #include "lldarray.h"
  31. #include "lltimer.h"
  32. #include "llviewermessage.h"
  33. #include "llnotificationptr.h"
  34. class LLButton;
  35. /**
  36. * Toast panel for group notification.
  37. *
  38. * Replaces class LLGroupNotifyBox.
  39. */
  40. class LLToastGroupNotifyPanel
  41. : public LLToastPanel
  42. {
  43. public:
  44. void close();
  45. static bool onNewNotification(const LLSD& notification);
  46. // Non-transient messages. You can specify non-default button
  47. // layouts (like one for script dialogs) by passing various
  48. // numbers in for "layout".
  49. LLToastGroupNotifyPanel(LLNotificationPtr& notification);
  50. /*virtual*/ ~LLToastGroupNotifyPanel();
  51. protected:
  52. void onClickOk();
  53. void onClickAttachment();
  54. private:
  55. static bool isAttachmentOpenable(LLAssetType::EType);
  56. static const S32 DEFAULT_MESSAGE_MAX_LINE_COUNT;
  57. LLButton* mSaveInventoryBtn;
  58. LLUUID mGroupID;
  59. LLOfferInfo* mInventoryOffer;
  60. };
  61. // This view contains the stack of notification windows.
  62. //extern LLView* gGroupNotifyBoxView;
  63. const S32 GROUP_LAYOUT_DEFAULT = 0;
  64. const S32 GROUP_LAYOUT_SCRIPT_DIALOG = 1;
  65. #endif