PageRenderTime 15ms CodeModel.GetById 2ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llfloaterscriptdebug.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 67 lines | 30 code | 12 blank | 25 comment | 0 complexity | 3e6ad061f144f4948b045094de2a6ecd MD5 | raw file
 1/** 
 2 * @file llfloaterscriptdebug.h
 3 * @brief Shows error and warning output from scripts
 4 *
 5 * $LicenseInfo:firstyear=2006&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_LLFLOATERSCRIPTDEBUG_H
28#define LL_LLFLOATERSCRIPTDEBUG_H
29
30#include "llmultifloater.h"
31
32class LLTextEditor;
33class LLUUID;
34
35class LLFloaterScriptDebug : public LLMultiFloater
36{
37public:
38	LLFloaterScriptDebug(const LLSD& key);
39	virtual ~LLFloaterScriptDebug();
40	virtual BOOL postBuild();
41    static void show(const LLUUID& object_id);
42	static void addScriptLine(const std::string &utf8mesg, const std::string &user_name, const LLColor4& color, const LLUUID& source_id);
43
44protected:
45	static LLFloater* addOutputWindow(const LLUUID& object_id);
46
47protected:
48	static LLFloaterScriptDebug*	sInstance;
49};
50
51class LLFloaterScriptDebugOutput : public LLFloater
52{
53public:
54	LLFloaterScriptDebugOutput(const LLSD& object_id);
55	~LLFloaterScriptDebugOutput();
56
57	void addLine(const std::string &utf8mesg, const std::string &user_name, const LLColor4& color);
58
59	virtual BOOL postBuild();
60	
61protected:
62	LLTextEditor* mHistoryEditor;
63
64	LLUUID mObjectID;
65};
66
67#endif // LL_LLFLOATERSCRIPTDEBUG_H