PageRenderTime 115ms CodeModel.GetById 102ms app.highlight 7ms RepoModel.GetById 2ms 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
 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
27#ifndef LL_LLFLOATER_NOTIFICATIONS_CONSOLE_H
28#define LL_LLFLOATER_NOTIFICATIONS_CONSOLE_H
29
30#include "llfloater.h"
31#include "lllayoutstack.h"
32//#include "llnotificationsutil.h"
33
34class LLNotification;
35
36class LLFloaterNotificationConsole : 
37	public LLFloater
38{
39	friend class LLFloaterReg;
40
41public:
42
43	// LLPanel
44	BOOL postBuild();
45
46	void addChannel(const std::string& type, bool open = false);
47	void updateResizeLimits(LLLayoutStack &stack);
48
49	void removeChannel(const std::string& type);
50	void updateResizeLimits();
51
52private:
53	LLFloaterNotificationConsole(const LLSD& key);	
54	void onClickAdd();
55};
56
57
58/*
59 * @brief Pop-up debugging view of a generic new notification.
60 */
61class LLFloaterNotification : public LLFloater
62{
63public:
64	LLFloaterNotification(LLNotification* note);
65
66	// LLPanel
67	BOOL postBuild();
68	void respond();
69
70private:
71	static void onCommitResponse(LLUICtrl* ctrl, void* data) { ((LLFloaterNotification*)data)->respond(); }
72	LLNotification* mNote;
73};
74#endif
75