PageRenderTime 41ms CodeModel.GetById 20ms app.highlight 3ms RepoModel.GetById 17ms 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
 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
27#ifndef LL_LLGROUPNOTIFY_H
28#define LL_LLGROUPNOTIFY_H
29
30#include "llfontgl.h"
31#include "lltoastpanel.h"
32#include "lldarray.h"
33#include "lltimer.h"
34#include "llviewermessage.h"
35#include "llnotificationptr.h"
36
37class LLButton;
38
39/**
40 * Toast panel for group notification.
41 *
42 * Replaces class LLGroupNotifyBox.
43 */
44class LLToastGroupNotifyPanel
45:	public LLToastPanel
46{
47public:
48	void close();
49
50	static bool onNewNotification(const LLSD& notification);
51
52
53	// Non-transient messages.  You can specify non-default button
54	// layouts (like one for script dialogs) by passing various
55	// numbers in for "layout".
56	LLToastGroupNotifyPanel(LLNotificationPtr& notification);
57
58	/*virtual*/ ~LLToastGroupNotifyPanel();
59protected:
60	void onClickOk();
61	void onClickAttachment();
62private:
63	static bool isAttachmentOpenable(LLAssetType::EType);
64
65	static const S32 DEFAULT_MESSAGE_MAX_LINE_COUNT;
66
67	LLButton* mSaveInventoryBtn;
68
69	LLUUID mGroupID;
70	LLOfferInfo* mInventoryOffer;
71};
72
73// This view contains the stack of notification windows.
74//extern LLView* gGroupNotifyBoxView;
75
76const S32 GROUP_LAYOUT_DEFAULT = 0;
77const S32 GROUP_LAYOUT_SCRIPT_DIALOG = 1;
78
79#endif