PageRenderTime 35ms CodeModel.GetById 27ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/newview/llfloaterregiondebugconsole.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 62 lines | 22 code | 13 blank | 27 comment | 0 complexity | 72c9d7d9f6c167672148cca1df4a3a79 MD5 | raw file
 1/** 
 2 * @file llfloaterregiondebugconsole.h
 3 * @author Brad Kittenbrink <brad@lindenlab.com>
 4 * @brief Quick and dirty console for region debug settings
 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
28#ifndef LL_LLFLOATERREGIONDEBUGCONSOLE_H
29#define LL_LLFLOATERREGIONDEBUGCONSOLE_H
30
31#include <boost/signals2.hpp>
32
33#include "llfloater.h"
34#include "llhttpclient.h"
35
36class LLTextEditor;
37
38typedef boost::signals2::signal<
39	void (const std::string& output)> console_reply_signal_t;
40
41class LLFloaterRegionDebugConsole : public LLFloater, public LLHTTPClient::Responder
42{
43public:
44	LLFloaterRegionDebugConsole(LLSD const & key);
45	virtual ~LLFloaterRegionDebugConsole();
46
47	// virtual
48	BOOL postBuild();
49	
50	void onInput(LLUICtrl* ctrl, const LLSD& param);
51
52	LLTextEditor * mOutput;
53
54	static boost::signals2::connection setConsoleReplyCallback(const console_reply_signal_t::slot_type& cb);
55
56 private:
57	void onReplyReceived(const std::string& output);
58
59	boost::signals2::connection mReplySignalConnection;
60};
61
62#endif // LL_LLFLOATERREGIONDEBUGCONSOLE_H